* java-tree.h : Moved comment for TYPE_DOT_CLASS adjacent to its
[official-gcc.git] / libjava / configure
blob3b80ce1a164540bb70360a902ff35c12e9109c51
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libjava version-unused.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME='libjava'
269 PACKAGE_TARNAME='libjava'
270 PACKAGE_VERSION='version-unused'
271 PACKAGE_STRING='libjava version-unused'
272 PACKAGE_BUGREPORT=''
274 ac_unique_file="java/lang/System.java"
275 ac_subdirs_all="$ac_subdirs_all classpath libltdl"
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 # include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 # include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 # include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os build_subdir host_subdir target_subdir libgcj_basedir host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical LN_S mkinstalldirs CC ac_ct_CC EXEEXT OBJEXT CXX ac_ct_CXX CFLAGS CXXFLAGS LDFLAGS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE AS ac_ct_AS LD ac_ct_LD AR ac_ct_AR RANLIB ac_ct_RANLIB 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 dbexecdir GCJVERSION gxx_include_dir libstdcxx_incdir ALLOCA PERL SYSDEP_SOURCES LD_START_STATIC_SPEC LD_FINISH_STATIC_SPEC here LIBOBJS LTLIBOBJS'
314 ac_subst_files=''
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
354 ac_prev=
355 for ac_option
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
368 case $ac_option in
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 bindir=$ac_optarg ;;
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
387 --config-cache | -C)
388 cache_file=config.cache ;;
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
394 datadir=$ac_optarg ;;
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 case $ac_option in
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 *) ac_optarg=yes ;;
415 esac
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
431 -help | --help | --hel | --he | -h)
432 ac_init_help=long ;;
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 libdir=$ac_optarg ;;
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 mandir=$ac_optarg ;;
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
487 no_create=yes ;;
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 no_recursion=yes ;;
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 prefix=$ac_optarg ;;
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
546 sbindir=$ac_optarg ;;
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
551 | --sha | --sh)
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 | --sha=* | --sh=*)
557 sharedstatedir=$ac_optarg ;;
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
562 site=$ac_optarg ;;
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 srcdir=$ac_optarg ;;
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
587 -with-* | --with-*)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 *) ac_optarg=yes ;;
597 esac
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
632 *=*)
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
640 export $ac_envvar ;;
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650 esac
651 done
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
662 eval ac_val=$`echo $ac_var`
663 case $ac_val in
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
667 esac
668 done
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val=$`echo $ac_var`
675 case $ac_val in
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
679 esac
680 done
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
696 cross_compiling=yes
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703 test "$silent" = yes && exec 6>/dev/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
721 s/.*/./; q'`
722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
726 else
727 ac_srcdir_defaulted=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
733 else
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CXXCPP_set=${CXXCPP+set}
755 ac_env_CXXCPP_value=$CXXCPP
756 ac_cv_env_CXXCPP_set=${CXXCPP+set}
757 ac_cv_env_CXXCPP_value=$CXXCPP
758 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
759 ac_env_CPPFLAGS_value=$CPPFLAGS
760 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
761 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
762 ac_env_CPP_set=${CPP+set}
763 ac_env_CPP_value=$CPP
764 ac_cv_env_CPP_set=${CPP+set}
765 ac_cv_env_CPP_value=$CPP
768 # Report the --help message.
770 if test "$ac_init_help" = "long"; then
771 # Omit some internal or obsolete options to make the list less imposing.
772 # This message is too long to be a string in the A/UX 3.1 sh.
773 cat <<_ACEOF
774 \`configure' configures libjava version-unused to adapt to many kinds of systems.
776 Usage: $0 [OPTION]... [VAR=VALUE]...
778 To assign environment variables (e.g., CC, CFLAGS...), specify them as
779 VAR=VALUE. See below for descriptions of some of the useful variables.
781 Defaults for the options are specified in brackets.
783 Configuration:
784 -h, --help display this help and exit
785 --help=short display options specific to this package
786 --help=recursive display the short help of all the included packages
787 -V, --version display version information and exit
788 -q, --quiet, --silent do not print \`checking...' messages
789 --cache-file=FILE cache test results in FILE [disabled]
790 -C, --config-cache alias for \`--cache-file=config.cache'
791 -n, --no-create do not create output files
792 --srcdir=DIR find the sources in DIR [configure dir or \`..']
794 _ACEOF
796 cat <<_ACEOF
797 Installation directories:
798 --prefix=PREFIX install architecture-independent files in PREFIX
799 [$ac_default_prefix]
800 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
801 [PREFIX]
803 By default, \`make install' will install all the files in
804 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
805 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
806 for instance \`--prefix=\$HOME'.
808 For better control, use the options below.
810 Fine tuning of the installation directories:
811 --bindir=DIR user executables [EPREFIX/bin]
812 --sbindir=DIR system admin executables [EPREFIX/sbin]
813 --libexecdir=DIR program executables [EPREFIX/libexec]
814 --datadir=DIR read-only architecture-independent data [PREFIX/share]
815 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
816 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
817 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
818 --libdir=DIR object code libraries [EPREFIX/lib]
819 --includedir=DIR C header files [PREFIX/include]
820 --oldincludedir=DIR C header files for non-gcc [/usr/include]
821 --infodir=DIR info documentation [PREFIX/info]
822 --mandir=DIR man documentation [PREFIX/man]
823 _ACEOF
825 cat <<\_ACEOF
827 Program names:
828 --program-prefix=PREFIX prepend PREFIX to installed program names
829 --program-suffix=SUFFIX append SUFFIX to installed program names
830 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
832 X features:
833 --x-includes=DIR X include files are in DIR
834 --x-libraries=DIR X library files are in DIR
836 System types:
837 --build=BUILD configure for building on BUILD [guessed]
838 --host=HOST cross-compile to build programs to run on HOST [BUILD]
839 --target=TARGET configure for building compilers for TARGET [HOST]
840 _ACEOF
843 if test -n "$ac_init_help"; then
844 case $ac_init_help in
845 short | recursive ) echo "Configuration of libjava version-unused:";;
846 esac
847 cat <<\_ACEOF
849 Optional Features:
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
852 --enable-version-specific-runtime-libs
853 specify that runtime libraries should be installed
854 in a compiler-specific directory
855 --enable-multilib build many library versions (default)
856 --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}ld", so it can be a program name with args.
3731 set dummy ${ac_tool_prefix}ld; 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_LD+set}" = set; then
3735 echo $ECHO_N "(cached) $ECHO_C" >&6
3736 else
3737 if test -n "$LD"; then
3738 ac_cv_prog_LD="$LD" # 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_LD="${ac_tool_prefix}ld"
3748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3749 break 2
3751 done
3752 done
3756 LD=$ac_cv_prog_LD
3757 if test -n "$LD"; then
3758 echo "$as_me:$LINENO: result: $LD" >&5
3759 echo "${ECHO_T}$LD" >&6
3760 else
3761 echo "$as_me:$LINENO: result: no" >&5
3762 echo "${ECHO_T}no" >&6
3766 if test -z "$ac_cv_prog_LD"; then
3767 ac_ct_LD=$LD
3768 # Extract the first word of "ld", so it can be a program name with args.
3769 set dummy ld; 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_LD+set}" = set; then
3773 echo $ECHO_N "(cached) $ECHO_C" >&6
3774 else
3775 if test -n "$ac_ct_LD"; then
3776 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # 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_LD="ld"
3786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3787 break 2
3789 done
3790 done
3794 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3795 if test -n "$ac_ct_LD"; then
3796 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
3797 echo "${ECHO_T}$ac_ct_LD" >&6
3798 else
3799 echo "$as_me:$LINENO: result: no" >&5
3800 echo "${ECHO_T}no" >&6
3803 LD=$ac_ct_LD
3804 else
3805 LD="$ac_cv_prog_LD"
3808 if test -n "$ac_tool_prefix"; then
3809 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3810 set dummy ${ac_tool_prefix}ar; 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_AR+set}" = set; then
3814 echo $ECHO_N "(cached) $ECHO_C" >&6
3815 else
3816 if test -n "$AR"; then
3817 ac_cv_prog_AR="$AR" # 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_AR="${ac_tool_prefix}ar"
3827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3828 break 2
3830 done
3831 done
3835 AR=$ac_cv_prog_AR
3836 if test -n "$AR"; then
3837 echo "$as_me:$LINENO: result: $AR" >&5
3838 echo "${ECHO_T}$AR" >&6
3839 else
3840 echo "$as_me:$LINENO: result: no" >&5
3841 echo "${ECHO_T}no" >&6
3845 if test -z "$ac_cv_prog_AR"; then
3846 ac_ct_AR=$AR
3847 # Extract the first word of "ar", so it can be a program name with args.
3848 set dummy ar; 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_AR+set}" = set; then
3852 echo $ECHO_N "(cached) $ECHO_C" >&6
3853 else
3854 if test -n "$ac_ct_AR"; then
3855 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # 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_AR="ar"
3865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3866 break 2
3868 done
3869 done
3873 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3874 if test -n "$ac_ct_AR"; then
3875 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3876 echo "${ECHO_T}$ac_ct_AR" >&6
3877 else
3878 echo "$as_me:$LINENO: result: no" >&5
3879 echo "${ECHO_T}no" >&6
3882 AR=$ac_ct_AR
3883 else
3884 AR="$ac_cv_prog_AR"
3887 if test -n "$ac_tool_prefix"; then
3888 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3889 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3890 echo "$as_me:$LINENO: checking for $ac_word" >&5
3891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3892 if test "${ac_cv_prog_RANLIB+set}" = set; then
3893 echo $ECHO_N "(cached) $ECHO_C" >&6
3894 else
3895 if test -n "$RANLIB"; then
3896 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3897 else
3898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3899 for as_dir in $PATH
3901 IFS=$as_save_IFS
3902 test -z "$as_dir" && as_dir=.
3903 for ac_exec_ext in '' $ac_executable_extensions; do
3904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3905 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3907 break 2
3909 done
3910 done
3914 RANLIB=$ac_cv_prog_RANLIB
3915 if test -n "$RANLIB"; then
3916 echo "$as_me:$LINENO: result: $RANLIB" >&5
3917 echo "${ECHO_T}$RANLIB" >&6
3918 else
3919 echo "$as_me:$LINENO: result: no" >&5
3920 echo "${ECHO_T}no" >&6
3924 if test -z "$ac_cv_prog_RANLIB"; then
3925 ac_ct_RANLIB=$RANLIB
3926 # Extract the first word of "ranlib", so it can be a program name with args.
3927 set dummy ranlib; ac_word=$2
3928 echo "$as_me:$LINENO: checking for $ac_word" >&5
3929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3930 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3931 echo $ECHO_N "(cached) $ECHO_C" >&6
3932 else
3933 if test -n "$ac_ct_RANLIB"; then
3934 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3935 else
3936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3937 for as_dir in $PATH
3939 IFS=$as_save_IFS
3940 test -z "$as_dir" && as_dir=.
3941 for ac_exec_ext in '' $ac_executable_extensions; do
3942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3943 ac_cv_prog_ac_ct_RANLIB="ranlib"
3944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3945 break 2
3947 done
3948 done
3950 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3953 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3954 if test -n "$ac_ct_RANLIB"; then
3955 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3956 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3957 else
3958 echo "$as_me:$LINENO: result: no" >&5
3959 echo "${ECHO_T}no" >&6
3962 RANLIB=$ac_ct_RANLIB
3963 else
3964 RANLIB="$ac_cv_prog_RANLIB"
3968 # Find a good install program. We prefer a C program (faster),
3969 # so one script is as good as another. But avoid the broken or
3970 # incompatible versions:
3971 # SysV /etc/install, /usr/sbin/install
3972 # SunOS /usr/etc/install
3973 # IRIX /sbin/install
3974 # AIX /bin/install
3975 # AmigaOS /C/install, which installs bootblocks on floppy discs
3976 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3977 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3978 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3979 # OS/2's system install, which has a completely different semantic
3980 # ./install, which can be erroneously created by make from ./install.sh.
3981 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3982 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3983 if test -z "$INSTALL"; then
3984 if test "${ac_cv_path_install+set}" = set; then
3985 echo $ECHO_N "(cached) $ECHO_C" >&6
3986 else
3987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3988 for as_dir in $PATH
3990 IFS=$as_save_IFS
3991 test -z "$as_dir" && as_dir=.
3992 # Account for people who put trailing slashes in PATH elements.
3993 case $as_dir/ in
3994 ./ | .// | /cC/* | \
3995 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3996 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3997 /usr/ucb/* ) ;;
3999 # OSF1 and SCO ODT 3.0 have their own names for install.
4000 # Don't use installbsd from OSF since it installs stuff as root
4001 # by default.
4002 for ac_prog in ginstall scoinst install; do
4003 for ac_exec_ext in '' $ac_executable_extensions; do
4004 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4005 if test $ac_prog = install &&
4006 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4007 # AIX install. It has an incompatible calling convention.
4009 elif test $ac_prog = install &&
4010 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4011 # program-specific install script used by HP pwplus--don't use.
4013 else
4014 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4015 break 3
4018 done
4019 done
4021 esac
4022 done
4026 if test "${ac_cv_path_install+set}" = set; then
4027 INSTALL=$ac_cv_path_install
4028 else
4029 # As a last resort, use the slow shell script. We don't cache a
4030 # path for INSTALL within a source directory, because that will
4031 # break other packages using the cache if that directory is
4032 # removed, or if the path is relative.
4033 INSTALL=$ac_install_sh
4036 echo "$as_me:$LINENO: result: $INSTALL" >&5
4037 echo "${ECHO_T}$INSTALL" >&6
4039 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4040 # It thinks the first close brace ends the variable substitution.
4041 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4043 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4045 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4048 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4049 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4050 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4051 if test "${enable_maintainer_mode+set}" = set; then
4052 enableval="$enable_maintainer_mode"
4053 USE_MAINTAINER_MODE=$enableval
4054 else
4055 USE_MAINTAINER_MODE=no
4057 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4058 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4061 if test $USE_MAINTAINER_MODE = yes; then
4062 MAINTAINER_MODE_TRUE=
4063 MAINTAINER_MODE_FALSE='#'
4064 else
4065 MAINTAINER_MODE_TRUE='#'
4066 MAINTAINER_MODE_FALSE=
4069 MAINT=$MAINTAINER_MODE_TRUE
4075 # configure.host sets the following important variables
4076 # libgcj_cflags - host specific C compiler flags
4077 # libgcj_cxxflags - host specific C++ compiler flags
4078 # libgcj_javaflags - host specific Java compiler flags
4080 libgcj_cflags=
4081 libgcj_cxxflags=
4082 libgcj_javaflags=
4084 . ${srcdir}/configure.host
4086 LIBGCJ_CFLAGS="${libgcj_cflags}"
4087 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
4088 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
4089 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
4095 # Only use libltdl for non-newlib builds.
4096 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
4097 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
4098 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
4099 library_names_spec=
4100 libname_spec='lib$name'
4101 soname_spec=
4102 shrext=".so"
4103 postinstall_cmds=
4104 postuninstall_cmds=
4105 finish_cmds=
4106 finish_eval=
4107 shlibpath_var=
4108 shlibpath_overrides_runpath=unknown
4109 version_type=none
4110 dynamic_linker="$host_os ld.so"
4111 sys_lib_dlsearch_path_spec="/lib /usr/lib"
4112 if test "$GCC" = yes; then
4113 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4114 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
4115 # if the path contains ";" then we assume it to be the separator
4116 # otherwise default to the standard path separator (i.e. ":") - it is
4117 # assumed that no part of a normal pathname contains ";" but that should
4118 # okay in the real world where ";" in dirpaths is itself problematic.
4119 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4120 else
4121 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4123 else
4124 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4126 need_lib_prefix=unknown
4127 hardcode_into_libs=no
4129 # when you set need_version to no, make sure it does not cause -set_version
4130 # flags to be left without arguments
4131 need_version=unknown
4133 case $host_os in
4134 aix3*)
4135 version_type=linux
4136 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
4137 shlibpath_var=LIBPATH
4139 # AIX 3 has no versioning support, so we append a major version to the name.
4140 soname_spec='${libname}${release}${shared_ext}$major'
4143 aix4* | aix5*)
4144 version_type=linux
4145 need_lib_prefix=no
4146 need_version=no
4147 hardcode_into_libs=yes
4148 if test "$host_cpu" = ia64; then
4149 # AIX 5 supports IA64
4150 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
4151 shlibpath_var=LD_LIBRARY_PATH
4152 else
4153 # With GCC up to 2.95.x, collect2 would create an import file
4154 # for dependence libraries. The import file would start with
4155 # the line `#! .'. This would cause the generated library to
4156 # depend on `.', always an invalid library. This was fixed in
4157 # development snapshots of GCC prior to 3.0.
4158 case $host_os in
4159 aix4 | aix4.[01] | aix4.[01].*)
4160 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4161 echo ' yes '
4162 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
4164 else
4165 can_build_shared=no
4168 esac
4169 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
4170 # soname into executable. Probably we can add versioning support to
4171 # collect2, so additional links can be useful in future.
4172 if test "$aix_use_runtimelinking" = yes; then
4173 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
4174 # instead of lib<name>.a to let people know that these are not
4175 # typical AIX shared libraries.
4176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4177 else
4178 # We preserve .a as extension for shared libraries through AIX4.2
4179 # and later when we are not doing run time linking.
4180 library_names_spec='${libname}${release}.a $libname.a'
4181 soname_spec='${libname}${release}${shared_ext}$major'
4183 shlibpath_var=LIBPATH
4187 amigaos*)
4188 library_names_spec='$libname.ixlibrary $libname.a'
4189 # Create ${libname}_ixlibrary.a entries in /sys/libs.
4190 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'
4193 beos*)
4194 library_names_spec='${libname}${shared_ext}'
4195 dynamic_linker="$host_os ld.so"
4196 shlibpath_var=LIBRARY_PATH
4199 bsdi4*)
4200 version_type=linux
4201 need_version=no
4202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4203 soname_spec='${libname}${release}${shared_ext}$major'
4204 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4205 shlibpath_var=LD_LIBRARY_PATH
4206 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4207 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4208 # the default ld.so.conf also contains /usr/contrib/lib and
4209 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4210 # libtool to hard-code these into programs
4213 cygwin* | mingw* | pw32*)
4214 version_type=windows
4215 shrext=".dll"
4216 need_version=no
4217 need_lib_prefix=no
4219 case $GCC,$host_os in
4220 yes,cygwin* | yes,mingw* | yes,pw32*)
4221 library_names_spec='$libname.dll.a'
4222 # DLL is installed to $(libdir)/../bin by postinstall_cmds
4223 postinstall_cmds='base_file=`basename \${file}`~
4224 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
4225 dldir=$destdir/`dirname \$dlpath`~
4226 test -d \$dldir || mkdir -p \$dldir~
4227 $install_prog $dir/$dlname \$dldir/$dlname'
4228 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
4229 dlpath=$dir/\$dldll~
4230 $rm \$dlpath'
4231 shlibpath_overrides_runpath=yes
4233 case $host_os in
4234 cygwin*)
4235 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
4236 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4237 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
4239 mingw*)
4240 # MinGW DLLs use traditional 'lib' prefix
4241 soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4242 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4243 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
4244 # It is most probably a Windows format PATH printed by
4245 # mingw gcc, but we are running on Cygwin. Gcc prints its search
4246 # path with ; separators, and with drive letters. We can handle the
4247 # drive letters (cygwin fileutils understands them), so leave them,
4248 # especially as we might pass files found there to a mingw objdump,
4249 # which wouldn't understand a cygwinified path. Ahh.
4250 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4251 else
4252 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4255 pw32*)
4256 # pw32 DLLs use 'pw' prefix rather than 'lib'
4257 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
4259 esac
4263 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
4265 esac
4266 dynamic_linker='Win32 ld.exe'
4267 # FIXME: first we should search . and the directory the executable is in
4268 shlibpath_var=PATH
4271 darwin* | rhapsody*)
4272 dynamic_linker="$host_os dyld"
4273 version_type=darwin
4274 need_lib_prefix=no
4275 need_version=no
4276 # FIXME: Relying on posixy $() will cause problems for
4277 # cross-compilation, but unfortunately the echo tests do not
4278 # yet detect zsh echo's removal of \ escapes.
4279 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
4280 soname_spec='${libname}${release}${major}$shared_ext'
4281 shlibpath_overrides_runpath=yes
4282 shlibpath_var=DYLD_LIBRARY_PATH
4283 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
4284 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
4285 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
4286 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"`
4288 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
4291 dgux*)
4292 version_type=linux
4293 need_lib_prefix=no
4294 need_version=no
4295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
4296 soname_spec='${libname}${release}${shared_ext}$major'
4297 shlibpath_var=LD_LIBRARY_PATH
4300 freebsd1*)
4301 dynamic_linker=no
4304 freebsd*)
4305 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
4306 version_type=freebsd-$objformat
4307 case $version_type in
4308 freebsd-elf*)
4309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
4310 need_version=no
4311 need_lib_prefix=no
4313 freebsd-*)
4314 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
4315 need_version=yes
4317 esac
4318 shlibpath_var=LD_LIBRARY_PATH
4319 case $host_os in
4320 freebsd2*)
4321 shlibpath_overrides_runpath=yes
4323 freebsd3.01* | freebsdelf3.01*)
4324 shlibpath_overrides_runpath=yes
4325 hardcode_into_libs=yes
4327 *) # from 3.2 on
4328 shlibpath_overrides_runpath=no
4329 hardcode_into_libs=yes
4331 esac
4334 gnu*)
4335 version_type=linux
4336 need_lib_prefix=no
4337 need_version=no
4338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
4339 soname_spec='${libname}${release}${shared_ext}$major'
4340 shlibpath_var=LD_LIBRARY_PATH
4341 hardcode_into_libs=yes
4344 hpux9* | hpux10* | hpux11*)
4345 # Give a soname corresponding to the major version so that dld.sl refuses to
4346 # link against other versions.
4347 version_type=sunos
4348 need_lib_prefix=no
4349 need_version=no
4350 case "$host_cpu" in
4351 ia64*)
4352 shrext='.so'
4353 hardcode_into_libs=yes
4354 dynamic_linker="$host_os dld.so"
4355 shlibpath_var=LD_LIBRARY_PATH
4356 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4358 soname_spec='${libname}${release}${shared_ext}$major'
4359 if test "X$HPUX_IA64_MODE" = X32; then
4360 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
4361 else
4362 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
4364 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4366 hppa*64*)
4367 shrext='.sl'
4368 hardcode_into_libs=yes
4369 dynamic_linker="$host_os dld.sl"
4370 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
4371 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4373 soname_spec='${libname}${release}${shared_ext}$major'
4374 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
4375 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4378 shrext='.sl'
4379 dynamic_linker="$host_os dld.sl"
4380 shlibpath_var=SHLIB_PATH
4381 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
4382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4383 soname_spec='${libname}${release}${shared_ext}$major'
4385 esac
4386 # HP-UX runs *really* slowly unless shared libraries are mode 555.
4387 postinstall_cmds='chmod 555 $lib'
4390 irix5* | irix6* | nonstopux*)
4391 case $host_os in
4392 nonstopux*) version_type=nonstopux ;;
4394 if test "$lt_cv_prog_gnu_ld" = yes; then
4395 version_type=linux
4396 else
4397 version_type=irix
4398 fi ;;
4399 esac
4400 need_lib_prefix=no
4401 need_version=no
4402 soname_spec='${libname}${release}${shared_ext}$major'
4403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
4404 case $host_os in
4405 irix5* | nonstopux*)
4406 libsuff= shlibsuff=
4409 case $LD in # libtool.m4 will add one of these switches to LD
4410 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
4411 libsuff= shlibsuff= libmagic=32-bit;;
4412 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
4413 libsuff=32 shlibsuff=N32 libmagic=N32;;
4414 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
4415 libsuff=64 shlibsuff=64 libmagic=64-bit;;
4416 *) libsuff= shlibsuff= libmagic=never-match;;
4417 esac
4419 esac
4420 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4421 shlibpath_overrides_runpath=no
4422 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4423 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4424 hardcode_into_libs=yes
4427 # No shared lib support for Linux oldld, aout, or coff.
4428 linux*oldld* | linux*aout* | linux*coff*)
4429 dynamic_linker=no
4432 # This must be Linux ELF.
4433 linux*)
4434 version_type=linux
4435 need_lib_prefix=no
4436 need_version=no
4437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4438 soname_spec='${libname}${release}${shared_ext}$major'
4439 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4440 shlibpath_var=LD_LIBRARY_PATH
4441 shlibpath_overrides_runpath=no
4442 # This implies no fast_install, which is unacceptable.
4443 # Some rework will be needed to allow for fast_install
4444 # before this can be enabled.
4445 hardcode_into_libs=yes
4447 # We used to test for /lib/ld.so.1 and disable shared libraries on
4448 # powerpc, because MkLinux only supported shared libraries with the
4449 # GNU dynamic linker. Since this was broken with cross compilers,
4450 # most powerpc-linux boxes support dynamic linking these days and
4451 # people can always --disable-shared, the test was removed, and we
4452 # assume the GNU/Linux dynamic linker is in use.
4453 dynamic_linker='GNU/Linux ld.so'
4456 netbsd*)
4457 version_type=sunos
4458 need_lib_prefix=no
4459 need_version=no
4460 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4462 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4463 dynamic_linker='NetBSD (a.out) ld.so'
4464 else
4465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
4466 soname_spec='${libname}${release}${shared_ext}$major'
4467 dynamic_linker='NetBSD ld.elf_so'
4469 shlibpath_var=LD_LIBRARY_PATH
4470 shlibpath_overrides_runpath=yes
4471 hardcode_into_libs=yes
4474 newsos6)
4475 version_type=linux
4476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4477 shlibpath_var=LD_LIBRARY_PATH
4478 shlibpath_overrides_runpath=yes
4481 nto-qnx)
4482 version_type=linux
4483 need_lib_prefix=no
4484 need_version=no
4485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4486 soname_spec='${libname}${release}${shared_ext}$major'
4487 shlibpath_var=LD_LIBRARY_PATH
4488 shlibpath_overrides_runpath=yes
4491 openbsd*)
4492 version_type=sunos
4493 need_lib_prefix=no
4494 need_version=no
4495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4496 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4497 shlibpath_var=LD_LIBRARY_PATH
4498 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4499 case $host_os in
4500 openbsd2.[89] | openbsd2.[89].*)
4501 shlibpath_overrides_runpath=no
4504 shlibpath_overrides_runpath=yes
4506 esac
4507 else
4508 shlibpath_overrides_runpath=yes
4512 os2*)
4513 libname_spec='$name'
4514 shrext=".dll"
4515 need_lib_prefix=no
4516 library_names_spec='$libname${shared_ext} $libname.a'
4517 dynamic_linker='OS/2 ld.exe'
4518 shlibpath_var=LIBPATH
4521 osf3* | osf4* | osf5*)
4522 version_type=osf
4523 need_lib_prefix=no
4524 need_version=no
4525 soname_spec='${libname}${release}${shared_ext}$major'
4526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4527 shlibpath_var=LD_LIBRARY_PATH
4528 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
4529 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
4532 sco3.2v5*)
4533 version_type=osf
4534 soname_spec='${libname}${release}${shared_ext}$major'
4535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4536 shlibpath_var=LD_LIBRARY_PATH
4539 solaris*)
4540 version_type=linux
4541 need_lib_prefix=no
4542 need_version=no
4543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4544 soname_spec='${libname}${release}${shared_ext}$major'
4545 shlibpath_var=LD_LIBRARY_PATH
4546 shlibpath_overrides_runpath=yes
4547 hardcode_into_libs=yes
4548 # ldd complains unless libraries are executable
4549 postinstall_cmds='chmod +x $lib'
4552 sunos4*)
4553 version_type=sunos
4554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4555 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
4556 shlibpath_var=LD_LIBRARY_PATH
4557 shlibpath_overrides_runpath=yes
4558 if test "$with_gnu_ld" = yes; then
4559 need_lib_prefix=no
4561 need_version=yes
4564 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4565 version_type=linux
4566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4567 soname_spec='${libname}${release}${shared_ext}$major'
4568 shlibpath_var=LD_LIBRARY_PATH
4569 case $host_vendor in
4570 sni)
4571 shlibpath_overrides_runpath=no
4572 need_lib_prefix=no
4573 export_dynamic_flag_spec='${wl}-Blargedynsym'
4574 runpath_var=LD_RUN_PATH
4576 siemens)
4577 need_lib_prefix=no
4579 motorola)
4580 need_lib_prefix=no
4581 need_version=no
4582 shlibpath_overrides_runpath=no
4583 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
4585 esac
4588 sysv4*MP*)
4589 if test -d /usr/nec ;then
4590 version_type=linux
4591 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
4592 soname_spec='$libname${shared_ext}.$major'
4593 shlibpath_var=LD_LIBRARY_PATH
4597 uts4*)
4598 version_type=linux
4599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4600 soname_spec='${libname}${release}${shared_ext}$major'
4601 shlibpath_var=LD_LIBRARY_PATH
4605 dynamic_linker=no
4607 esac
4608 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
4609 echo "${ECHO_T}$dynamic_linker" >&6
4610 test "$dynamic_linker" = no && can_build_shared=no
4613 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
4614 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
4615 if test "${libltdl_cv_shlibpath_var+set}" = set; then
4616 echo $ECHO_N "(cached) $ECHO_C" >&6
4617 else
4618 libltdl_cv_shlibpath_var="$shlibpath_var"
4620 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
4621 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
4622 if test -n "$libltdl_cv_shlibpath_var"; then
4624 cat >>confdefs.h <<_ACEOF
4625 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
4626 _ACEOF
4632 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
4635 # See if the user has requested runtime debugging.
4636 LIBGCJDEBUG="disable"
4638 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
4639 if test "${enable_libgcj_debug+set}" = set; then
4640 enableval="$enable_libgcj_debug"
4641 if test "$enable_libgcj_debug" = yes; then
4643 cat >>confdefs.h <<\_ACEOF
4644 #define DEBUG 1
4645 _ACEOF
4647 LIBGCJDEBUG="enable"
4651 # Determine which AWT peer libraries to build
4652 # Check whether --enable-java-awt or --disable-java-awt was given.
4653 if test "${enable_java_awt+set}" = set; then
4654 enableval="$enable_java_awt"
4658 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
4659 use_xlib_awt=""
4660 use_gtk_awt=""
4661 use_qt_awt=""
4662 # The default toolkit to use is the first one specified.
4663 TOOLKIT=
4666 for peer in $peerlibs ; do
4667 case $peer in
4668 xlib)
4669 if test "$no_x" = yes; then
4670 echo "*** xlib peers requested but no X library available" 1>&2
4671 exit 1
4672 else
4673 use_xlib_awt="yes"
4674 if test -z "$TOOLKIT"; then
4675 TOOLKIT=gnu.awt.xlib.XToolkit
4679 gtk)
4680 if test "$no_x" = yes; then
4681 echo "*** gtk peers requested but no X library available" 1>&2
4682 exit 1
4683 else
4684 use_gtk_awt=yes
4685 if test -z "$TOOLKIT"; then
4686 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
4691 if test "$no_x" = yes; then
4692 # Perhaps we should admit the possibility of embedded Qt.
4693 echo "*** Qt peers requested but no X library available" 1>&2
4694 exit 1
4695 else
4696 use_qt_awt=yes
4697 if test -z "$TOOLKIT"; then
4698 TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
4703 use_xlib_awt=
4704 use_gtk_awt=
4705 use_qt_awt=
4706 break
4709 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
4710 exit 1
4711 esac
4712 done
4716 if test "$use_xlib_awt" = yes; then
4717 XLIB_AWT_TRUE=
4718 XLIB_AWT_FALSE='#'
4719 else
4720 XLIB_AWT_TRUE='#'
4721 XLIB_AWT_FALSE=
4726 if test "$use_gtk_awt" = yes; then
4727 GTK_AWT_TRUE=
4728 GTK_AWT_FALSE='#'
4729 else
4730 GTK_AWT_TRUE='#'
4731 GTK_AWT_FALSE=
4736 if test "$use_qt_awt" = yes; then
4737 QT_AWT_TRUE=
4738 QT_AWT_FALSE='#'
4739 else
4740 QT_AWT_TRUE='#'
4741 QT_AWT_FALSE=
4745 # Create standard.omit based on decisions we just made.
4746 cp $srcdir/standard.omit.in standard.omit
4747 if test "$use_xlib_awt" != yes; then
4748 echo gnu/awt/xlib >> standard.omit
4749 echo gnu/gcj/xlib >> standard.omit
4751 if test "$use_gtk_awt" != yes; then
4752 echo gnu/java/awt/peer/gtk >> standard.omit
4754 if test "$use_qt_awt" != yes; then
4755 echo gnu/java/awt/peer/qt >> standard.omit
4758 if test -z "${with_multisubdir}"; then
4759 builddotdot=.
4760 else
4761 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
4764 NATIVE=yes
4766 # Which gcj do we use?
4767 which_gcj=default
4768 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
4769 if test -n "${with_cross_host}"; then
4770 # We are being configured with a cross compiler. We can't
4771 # use ac_exeext, because that is for the target platform.
4772 NATIVE=no
4773 cross_host_exeext=
4774 case "${with_cross_host}" in
4775 *mingw* | *cygwin*)
4776 cross_host_exeext=.exe
4778 esac
4779 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
4780 if test x"$build_noncanonical" = x"$with_cross_host"; then
4781 # Ordinary cross (host!=target and host=build)
4782 which_gcj=built
4783 else
4784 # Canadian cross (host!=target and host!=build)
4785 which_gcj=cross
4787 else
4788 which_gcj=cross
4790 else
4791 # We are being configured with a native or crossed-native compiler
4792 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
4793 if test x"$build" = x"$host"; then
4794 # True native build (host=target and host=build)
4795 which_gcj=built
4796 else
4797 # Crossed-native build (host=target and host!=build)
4798 which_gcj=cross
4800 else
4801 which_gcj=path
4804 case "${which_gcj}" in
4805 built)
4806 GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
4807 GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
4808 ZIP='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/fastjar/fastjar'
4810 cross)
4811 if test "x${with_newlib}" = "xyes"; then
4812 # FIXME (comment): Why is this needed?
4813 GCC_UNWIND_INCLUDE=
4814 GCJ="${target_noncanonical}-gcj"
4815 else
4816 GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
4818 ZIP='$(target_noncanonical)-fastjar'
4819 GCJH='$(target_noncanonical)-gcjh'
4821 path)
4822 GCJ="gcj -B`${PWDCMD-pwd}`/"
4823 ## In this case, gcj is found outside the build tree. However, zip is
4824 ## found in the build tree.
4825 ZIP='$(top_builddir)/$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/fastjar'
4826 GCJH=gcjh
4828 esac
4833 # Create it, so that compile/link tests don't fail
4834 test -f libgcj.spec || touch libgcj.spec
4838 # Set up to configure Classpath.
4839 # FIXME: no supported way to pass args in autoconf.
4840 ac_configure_args="$ac_configure_args --disable-load-library"
4841 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
4842 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
4843 dir1=`cd $srcdir && pwd`
4844 dir2=`pwd`
4845 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
4846 ac_configure_args="$ac_configure_args --disable-core-jni"
4847 ac_configure_args="$ac_configure_args --disable-examples"
4848 ac_configure_args="$ac_configure_args --with-glibj=build"
4849 if test "$use_gtk_awt" != yes; then
4850 ac_configure_args="$ac_configure_args --disable-gtk-peer"
4852 if test "$use_qt_awt" != yes; then
4853 ac_configure_args="$ac_configure_args --disable-qt-peer"
4854 else
4855 # We need this as qt is disabled by default in classpath.
4856 ac_configure_args="$ac_configure_args --enable-qt-peer"
4859 # Only use libltdl for non-newlib builds.
4860 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
4861 case $enable_ltdl_convenience in
4862 no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
4863 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
4864 { (exit 1); exit 1; }; } ;;
4865 "") enable_ltdl_convenience=yes
4866 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
4867 esac
4868 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
4869 INCLTDL='-I${top_srcdir}/''libltdl'
4872 DIRLTDL=libltdl
4874 cat >>confdefs.h <<\_ACEOF
4875 #define USE_LTDL 1
4876 _ACEOF
4878 # Sigh. Libtool's macro doesn't do the right thing.
4879 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
4880 # FIXME: this is a hack.
4881 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
4882 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
4887 # Check whether --enable-shared or --disable-shared was given.
4888 if test "${enable_shared+set}" = set; then
4889 enableval="$enable_shared"
4890 p=${PACKAGE-default}
4891 case $enableval in
4892 yes) enable_shared=yes ;;
4893 no) enable_shared=no ;;
4895 enable_shared=no
4896 # Look at the argument we got. We use all the common list separators.
4897 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4898 for pkg in $enableval; do
4899 if test "X$pkg" = "X$p"; then
4900 enable_shared=yes
4902 done
4903 IFS="$ac_save_ifs"
4905 esac
4906 else
4907 enable_shared=yes
4909 # Check whether --enable-static or --disable-static was given.
4910 if test "${enable_static+set}" = set; then
4911 enableval="$enable_static"
4912 p=${PACKAGE-default}
4913 case $enableval in
4914 yes) enable_static=yes ;;
4915 no) enable_static=no ;;
4917 enable_static=no
4918 # Look at the argument we got. We use all the common list separators.
4919 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4920 for pkg in $enableval; do
4921 if test "X$pkg" = "X$p"; then
4922 enable_static=yes
4924 done
4925 IFS="$ac_save_ifs"
4927 esac
4928 else
4929 enable_static=yes
4931 # Check whether --enable-fast-install or --disable-fast-install was given.
4932 if test "${enable_fast_install+set}" = set; then
4933 enableval="$enable_fast_install"
4934 p=${PACKAGE-default}
4935 case $enableval in
4936 yes) enable_fast_install=yes ;;
4937 no) enable_fast_install=no ;;
4939 enable_fast_install=no
4940 # Look at the argument we got. We use all the common list separators.
4941 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4942 for pkg in $enableval; do
4943 if test "X$pkg" = "X$p"; then
4944 enable_fast_install=yes
4946 done
4947 IFS="$ac_save_ifs"
4949 esac
4950 else
4951 enable_fast_install=yes
4954 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4955 if test "${with_gnu_ld+set}" = set; then
4956 withval="$with_gnu_ld"
4957 test "$withval" = no || with_gnu_ld=yes
4958 else
4959 with_gnu_ld=no
4961 ac_prog=ld
4962 if test "$GCC" = yes; then
4963 # Check if gcc -print-prog-name=ld gives a path.
4964 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4965 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4966 case $host in
4967 *-*-mingw*)
4968 # gcc leaves a trailing carriage return which upsets mingw
4969 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4971 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4972 esac
4973 case $ac_prog in
4974 # Accept absolute paths.
4975 [\\/]* | [A-Za-z]:[\\/]*)
4976 re_direlt='/[^/][^/]*/\.\./'
4977 # Canonicalize the path of ld
4978 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4979 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4980 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4981 done
4982 test -z "$LD" && LD="$ac_prog"
4985 # If it fails, then pretend we aren't using GCC.
4986 ac_prog=ld
4989 # If it is relative, then search for the first ld in PATH.
4990 with_gnu_ld=unknown
4992 esac
4993 elif test "$with_gnu_ld" = yes; then
4994 echo "$as_me:$LINENO: checking for GNU ld" >&5
4995 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4996 else
4997 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4998 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5000 if test "${lt_cv_path_LD+set}" = set; then
5001 echo $ECHO_N "(cached) $ECHO_C" >&6
5002 else
5003 if test -z "$LD"; then
5004 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5005 for ac_dir in $PATH; do
5006 test -z "$ac_dir" && ac_dir=.
5007 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5008 lt_cv_path_LD="$ac_dir/$ac_prog"
5009 # Check to see if the program is GNU ld. I'd rather use --version,
5010 # but apparently some GNU ld's only accept -v.
5011 # Break only if it was the GNU/non-GNU ld that we prefer.
5012 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5013 test "$with_gnu_ld" != no && break
5014 else
5015 test "$with_gnu_ld" != yes && break
5018 done
5019 IFS="$ac_save_ifs"
5020 else
5021 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5025 LD="$lt_cv_path_LD"
5026 if test -n "$LD"; then
5027 echo "$as_me:$LINENO: result: $LD" >&5
5028 echo "${ECHO_T}$LD" >&6
5029 else
5030 echo "$as_me:$LINENO: result: no" >&5
5031 echo "${ECHO_T}no" >&6
5033 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5034 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5035 { (exit 1); exit 1; }; }
5036 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5037 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5038 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5039 echo $ECHO_N "(cached) $ECHO_C" >&6
5040 else
5041 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5042 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5043 lt_cv_prog_gnu_ld=yes
5044 else
5045 lt_cv_prog_gnu_ld=no
5048 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5049 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5050 with_gnu_ld=$lt_cv_prog_gnu_ld
5053 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5054 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5055 if test "${lt_cv_ld_reload_flag+set}" = set; then
5056 echo $ECHO_N "(cached) $ECHO_C" >&6
5057 else
5058 lt_cv_ld_reload_flag='-r'
5060 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5061 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5062 reload_flag=$lt_cv_ld_reload_flag
5063 test -n "$reload_flag" && reload_flag=" $reload_flag"
5065 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5066 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5067 if test "${lt_cv_path_NM+set}" = set; then
5068 echo $ECHO_N "(cached) $ECHO_C" >&6
5069 else
5070 if test -n "$NM"; then
5071 # Let the user override the test.
5072 lt_cv_path_NM="$NM"
5073 else
5074 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5075 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5076 test -z "$ac_dir" && ac_dir=.
5077 tmp_nm=$ac_dir/${ac_tool_prefix}nm
5078 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
5079 # Check to see if the nm accepts a BSD-compat flag.
5080 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5081 # nm: unknown option "B" ignored
5082 # Tru64's nm complains that /dev/null is an invalid object file
5083 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
5084 lt_cv_path_NM="$tmp_nm -B"
5085 break
5086 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
5087 lt_cv_path_NM="$tmp_nm -p"
5088 break
5089 else
5090 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5091 continue # so that we can try to find one that supports BSD flags
5094 done
5095 IFS="$ac_save_ifs"
5096 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5100 NM="$lt_cv_path_NM"
5101 echo "$as_me:$LINENO: result: $NM" >&5
5102 echo "${ECHO_T}$NM" >&6
5104 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
5105 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
5106 if test "${lt_cv_deplibs_check_method+set}" = set; then
5107 echo $ECHO_N "(cached) $ECHO_C" >&6
5108 else
5109 lt_cv_file_magic_cmd='$MAGIC_CMD'
5110 lt_cv_file_magic_test_file=
5111 lt_cv_deplibs_check_method='unknown'
5112 # Need to set the preceding variable on all platforms that support
5113 # interlibrary dependencies.
5114 # 'none' -- dependencies not supported.
5115 # `unknown' -- same as none, but documents that we really don't know.
5116 # 'pass_all' -- all dependencies passed with no checks.
5117 # 'test_compile' -- check by making test program.
5118 # 'file_magic [regex]' -- check by looking for files in library path
5119 # which responds to the $file_magic_cmd with a given egrep regex.
5120 # If you have `file' or equivalent on your system and you're not sure
5121 # whether `pass_all' will *always* work, you probably want this one.
5123 case $host_os in
5124 aix*)
5125 lt_cv_deplibs_check_method=pass_all
5128 beos*)
5129 lt_cv_deplibs_check_method=pass_all
5132 bsdi4*)
5133 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5134 lt_cv_file_magic_cmd='/usr/bin/file -L'
5135 lt_cv_file_magic_test_file=/shlib/libc.so
5138 cygwin* | mingw* |pw32*)
5139 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5140 lt_cv_file_magic_cmd='$OBJDUMP -f'
5143 darwin* | rhapsody*)
5144 # this will be overwritten by pass_all, but leave it in just in case
5145 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
5146 lt_cv_file_magic_cmd='/usr/bin/file -L'
5147 case "$host_os" in
5148 rhapsody* | darwin1.012)
5149 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
5151 *) # Darwin 1.3 on
5152 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
5154 esac
5155 lt_cv_deplibs_check_method=pass_all
5158 freebsd* | kfreebsd*-gnu)
5159 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5160 case $host_cpu in
5161 i*86 )
5162 # Not sure whether the presence of OpenBSD here was a mistake.
5163 # Let's accept both of them until this is cleared up.
5164 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5165 lt_cv_file_magic_cmd=/usr/bin/file
5166 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5168 esac
5169 else
5170 lt_cv_deplibs_check_method=pass_all
5174 gnu*)
5175 lt_cv_deplibs_check_method=pass_all
5178 hpux10.20*|hpux11*)
5179 case $host_cpu in
5180 hppa*)
5181 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5182 lt_cv_file_magic_cmd=/usr/bin/file
5183 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5185 ia64*)
5186 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5187 lt_cv_file_magic_cmd=/usr/bin/file
5188 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5190 esac
5193 irix5* | irix6*)
5194 case $host_os in
5195 irix5*)
5196 # this will be overridden with pass_all, but let us keep it just in case
5197 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
5200 case $LD in
5201 *-32|*"-32 ") libmagic=32-bit;;
5202 *-n32|*"-n32 ") libmagic=N32;;
5203 *-64|*"-64 ") libmagic=64-bit;;
5204 *) libmagic=never-match;;
5205 esac
5206 # this will be overridden with pass_all, but let us keep it just in case
5207 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
5209 esac
5210 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
5211 lt_cv_deplibs_check_method=pass_all
5214 # This must be Linux ELF.
5215 linux-gnu*)
5216 lt_cv_deplibs_check_method=pass_all
5219 netbsd* | knetbsd*-gnu)
5220 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5221 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
5222 else
5223 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
5227 newsos6)
5228 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5229 lt_cv_file_magic_cmd=/usr/bin/file
5230 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5233 osf3* | osf4* | osf5*)
5234 # this will be overridden with pass_all, but let us keep it just in case
5235 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
5236 lt_cv_file_magic_test_file=/shlib/libc.so
5237 lt_cv_deplibs_check_method=pass_all
5240 sco3.2v5*)
5241 lt_cv_deplibs_check_method=pass_all
5244 solaris*)
5245 lt_cv_deplibs_check_method=pass_all
5246 lt_cv_file_magic_test_file=/lib/libc.so
5249 sysv5uw[78]* | sysv4*uw2*)
5250 lt_cv_deplibs_check_method=pass_all
5253 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5254 case $host_vendor in
5255 ncr)
5256 lt_cv_deplibs_check_method=pass_all
5258 motorola)
5259 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]'
5260 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5262 esac
5264 esac
5267 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5268 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5269 file_magic_cmd=$lt_cv_file_magic_cmd
5270 deplibs_check_method=$lt_cv_deplibs_check_method
5275 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5277 # find the maximum length of command line arguments
5278 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5279 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5280 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5281 echo $ECHO_N "(cached) $ECHO_C" >&6
5282 else
5284 teststring="ABCD"
5286 case $build_os in
5287 msdosdjgpp*)
5288 # On DJGPP, this test can blow up pretty badly due to problems in libc
5289 # (any single argument exceeding 2000 bytes causes a buffer overrun
5290 # during glob expansion). Even if it were fixed, the result of this
5291 # check would be larger than it should be.
5292 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5295 cygwin* | mingw*)
5296 # On Win9x/ME, this test blows up -- it succeeds, but takes
5297 # about 5 minutes as the teststring grows exponentially.
5298 # Worse, since 9x/ME are not pre-emptively multitasking,
5299 # you end up with a "frozen" computer, even though with patience
5300 # the test eventually succeeds (with a max line length of 256k).
5301 # Instead, let's just punt: use the minimum linelength reported by
5302 # all of the supported platforms: 8192 (on NT/2K/XP).
5303 lt_cv_sys_max_cmd_len=8192;
5306 amigaos*)
5307 # On AmigaOS with pdksh, this test takes hours, literally.
5308 # So we just punt and use a minimum line length of 8192.
5309 lt_cv_sys_max_cmd_len=8192;
5312 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5313 # This has been around since 386BSD, at least. Likely further.
5314 if test -x /sbin/sysctl; then
5315 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5316 elif test -x /usr/sbin/sysctl; then
5317 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5318 else
5319 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5321 # And add a safety zone
5322 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5323 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5325 esac
5329 if test -n "$lt_cv_sys_max_cmd_len" ; then
5330 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5331 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5332 else
5333 echo "$as_me:$LINENO: result: none" >&5
5334 echo "${ECHO_T}none" >&6
5338 # Only perform the check for file, if the check method requires it
5339 case $deplibs_check_method in
5340 file_magic*)
5341 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5342 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5343 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5344 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5345 echo $ECHO_N "(cached) $ECHO_C" >&6
5346 else
5347 case $MAGIC_CMD in
5349 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5351 ?:/*)
5352 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5355 ac_save_MAGIC_CMD="$MAGIC_CMD"
5356 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5357 ac_dummy="/usr/bin:$PATH"
5358 for ac_dir in $ac_dummy; do
5359 test -z "$ac_dir" && ac_dir=.
5360 if test -f $ac_dir/${ac_tool_prefix}file; then
5361 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5362 if test -n "$file_magic_test_file"; then
5363 case $deplibs_check_method in
5364 "file_magic "*)
5365 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5366 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5367 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5368 egrep "$file_magic_regex" > /dev/null; then
5370 else
5371 cat <<EOF 1>&2
5373 *** Warning: the command libtool uses to detect shared libraries,
5374 *** $file_magic_cmd, produces output that libtool cannot recognize.
5375 *** The result is that libtool may fail to recognize shared libraries
5376 *** as such. This will affect the creation of libtool libraries that
5377 *** depend on shared libraries, but programs linked with such libtool
5378 *** libraries will work regardless of this problem. Nevertheless, you
5379 *** may want to report the problem to your system manager and/or to
5380 *** bug-libtool@gnu.org
5383 fi ;;
5384 esac
5386 break
5388 done
5389 IFS="$ac_save_ifs"
5390 MAGIC_CMD="$ac_save_MAGIC_CMD"
5392 esac
5395 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5396 if test -n "$MAGIC_CMD"; then
5397 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5398 echo "${ECHO_T}$MAGIC_CMD" >&6
5399 else
5400 echo "$as_me:$LINENO: result: no" >&5
5401 echo "${ECHO_T}no" >&6
5404 if test -z "$lt_cv_path_MAGIC_CMD"; then
5405 if test -n "$ac_tool_prefix"; then
5406 echo "$as_me:$LINENO: checking for file" >&5
5407 echo $ECHO_N "checking for file... $ECHO_C" >&6
5408 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5409 echo $ECHO_N "(cached) $ECHO_C" >&6
5410 else
5411 case $MAGIC_CMD in
5413 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5415 ?:/*)
5416 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5419 ac_save_MAGIC_CMD="$MAGIC_CMD"
5420 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5421 ac_dummy="/usr/bin:$PATH"
5422 for ac_dir in $ac_dummy; do
5423 test -z "$ac_dir" && ac_dir=.
5424 if test -f $ac_dir/file; then
5425 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5426 if test -n "$file_magic_test_file"; then
5427 case $deplibs_check_method in
5428 "file_magic "*)
5429 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5430 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5431 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5432 egrep "$file_magic_regex" > /dev/null; then
5434 else
5435 cat <<EOF 1>&2
5437 *** Warning: the command libtool uses to detect shared libraries,
5438 *** $file_magic_cmd, produces output that libtool cannot recognize.
5439 *** The result is that libtool may fail to recognize shared libraries
5440 *** as such. This will affect the creation of libtool libraries that
5441 *** depend on shared libraries, but programs linked with such libtool
5442 *** libraries will work regardless of this problem. Nevertheless, you
5443 *** may want to report the problem to your system manager and/or to
5444 *** bug-libtool@gnu.org
5447 fi ;;
5448 esac
5450 break
5452 done
5453 IFS="$ac_save_ifs"
5454 MAGIC_CMD="$ac_save_MAGIC_CMD"
5456 esac
5459 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5460 if test -n "$MAGIC_CMD"; then
5461 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5462 echo "${ECHO_T}$MAGIC_CMD" >&6
5463 else
5464 echo "$as_me:$LINENO: result: no" >&5
5465 echo "${ECHO_T}no" >&6
5468 else
5469 MAGIC_CMD=:
5475 esac
5477 if test -n "$ac_tool_prefix"; then
5478 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5479 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5480 echo "$as_me:$LINENO: checking for $ac_word" >&5
5481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5482 if test "${ac_cv_prog_RANLIB+set}" = set; then
5483 echo $ECHO_N "(cached) $ECHO_C" >&6
5484 else
5485 if test -n "$RANLIB"; then
5486 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5487 else
5488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5489 for as_dir in $PATH
5491 IFS=$as_save_IFS
5492 test -z "$as_dir" && as_dir=.
5493 for ac_exec_ext in '' $ac_executable_extensions; do
5494 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5495 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5497 break 2
5499 done
5500 done
5504 RANLIB=$ac_cv_prog_RANLIB
5505 if test -n "$RANLIB"; then
5506 echo "$as_me:$LINENO: result: $RANLIB" >&5
5507 echo "${ECHO_T}$RANLIB" >&6
5508 else
5509 echo "$as_me:$LINENO: result: no" >&5
5510 echo "${ECHO_T}no" >&6
5514 if test -z "$ac_cv_prog_RANLIB"; then
5515 ac_ct_RANLIB=$RANLIB
5516 # Extract the first word of "ranlib", so it can be a program name with args.
5517 set dummy ranlib; ac_word=$2
5518 echo "$as_me:$LINENO: checking for $ac_word" >&5
5519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5520 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5521 echo $ECHO_N "(cached) $ECHO_C" >&6
5522 else
5523 if test -n "$ac_ct_RANLIB"; then
5524 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5525 else
5526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5527 for as_dir in $PATH
5529 IFS=$as_save_IFS
5530 test -z "$as_dir" && as_dir=.
5531 for ac_exec_ext in '' $ac_executable_extensions; do
5532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5533 ac_cv_prog_ac_ct_RANLIB="ranlib"
5534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5535 break 2
5537 done
5538 done
5540 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5543 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5544 if test -n "$ac_ct_RANLIB"; then
5545 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5546 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5547 else
5548 echo "$as_me:$LINENO: result: no" >&5
5549 echo "${ECHO_T}no" >&6
5552 RANLIB=$ac_ct_RANLIB
5553 else
5554 RANLIB="$ac_cv_prog_RANLIB"
5557 if test -n "$ac_tool_prefix"; then
5558 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5559 set dummy ${ac_tool_prefix}strip; ac_word=$2
5560 echo "$as_me:$LINENO: checking for $ac_word" >&5
5561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5562 if test "${ac_cv_prog_STRIP+set}" = set; then
5563 echo $ECHO_N "(cached) $ECHO_C" >&6
5564 else
5565 if test -n "$STRIP"; then
5566 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5567 else
5568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5569 for as_dir in $PATH
5571 IFS=$as_save_IFS
5572 test -z "$as_dir" && as_dir=.
5573 for ac_exec_ext in '' $ac_executable_extensions; do
5574 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5575 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5577 break 2
5579 done
5580 done
5584 STRIP=$ac_cv_prog_STRIP
5585 if test -n "$STRIP"; then
5586 echo "$as_me:$LINENO: result: $STRIP" >&5
5587 echo "${ECHO_T}$STRIP" >&6
5588 else
5589 echo "$as_me:$LINENO: result: no" >&5
5590 echo "${ECHO_T}no" >&6
5594 if test -z "$ac_cv_prog_STRIP"; then
5595 ac_ct_STRIP=$STRIP
5596 # Extract the first word of "strip", so it can be a program name with args.
5597 set dummy strip; ac_word=$2
5598 echo "$as_me:$LINENO: checking for $ac_word" >&5
5599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5600 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5601 echo $ECHO_N "(cached) $ECHO_C" >&6
5602 else
5603 if test -n "$ac_ct_STRIP"; then
5604 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5605 else
5606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5607 for as_dir in $PATH
5609 IFS=$as_save_IFS
5610 test -z "$as_dir" && as_dir=.
5611 for ac_exec_ext in '' $ac_executable_extensions; do
5612 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5613 ac_cv_prog_ac_ct_STRIP="strip"
5614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5615 break 2
5617 done
5618 done
5620 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5623 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5624 if test -n "$ac_ct_STRIP"; then
5625 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5626 echo "${ECHO_T}$ac_ct_STRIP" >&6
5627 else
5628 echo "$as_me:$LINENO: result: no" >&5
5629 echo "${ECHO_T}no" >&6
5632 STRIP=$ac_ct_STRIP
5633 else
5634 STRIP="$ac_cv_prog_STRIP"
5638 # Check for any special flags to pass to ltconfig.
5639 libtool_flags="--cache-file=$cache_file"
5640 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
5641 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
5642 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
5643 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
5644 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
5647 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5648 if test "${enable_libtool_lock+set}" = set; then
5649 enableval="$enable_libtool_lock"
5652 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
5653 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
5656 # Check whether --with-pic or --without-pic was given.
5657 if test "${with_pic+set}" = set; then
5658 withval="$with_pic"
5659 pic_mode="$withval"
5660 else
5661 pic_mode=default
5663 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
5664 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
5666 # Some flags need to be propagated to the compiler or linker for good
5667 # libtool support.
5668 case $host in
5669 *-*-irix6*)
5670 # Find out which ABI we are using.
5671 echo '#line 5671 "configure"' > conftest.$ac_ext
5672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5673 (eval $ac_compile) 2>&5
5674 ac_status=$?
5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676 (exit $ac_status); }; then
5677 if test "$lt_cv_prog_gnu_ld" = yes; then
5678 case `/usr/bin/file conftest.$ac_objext` in
5679 *32-bit*)
5680 LD="${LD-ld} -melf32bsmip"
5682 *N32*)
5683 LD="${LD-ld} -melf32bmipn32"
5685 *64-bit*)
5686 LD="${LD-ld} -melf64bmip"
5688 esac
5689 else
5690 case `/usr/bin/file conftest.$ac_objext` in
5691 *32-bit*)
5692 LD="${LD-ld} -32"
5694 *N32*)
5695 LD="${LD-ld} -n32"
5697 *64-bit*)
5698 LD="${LD-ld} -64"
5700 esac
5703 rm -rf conftest*
5706 ia64-*-hpux*)
5707 # Find out which ABI we are using.
5708 echo 'int i;' > conftest.$ac_ext
5709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5710 (eval $ac_compile) 2>&5
5711 ac_status=$?
5712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713 (exit $ac_status); }; then
5714 case "`/usr/bin/file conftest.o`" in
5715 *ELF-32*)
5716 HPUX_IA64_MODE="32"
5718 *ELF-64*)
5719 HPUX_IA64_MODE="64"
5721 esac
5723 rm -rf conftest*
5726 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5727 # Find out which ABI we are using.
5728 echo 'int i;' > conftest.$ac_ext
5729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5730 (eval $ac_compile) 2>&5
5731 ac_status=$?
5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); }; then
5734 case "`/usr/bin/file conftest.o`" in
5735 *32-bit*)
5736 case $host in
5737 x86_64-*linux*)
5738 LD="${LD-ld} -m elf_i386"
5740 ppc64-*linux*|powerpc64-*linux*)
5741 LD="${LD-ld} -m elf32ppclinux"
5743 s390x-*linux*)
5744 LD="${LD-ld} -m elf_s390"
5746 sparc64-*linux*)
5747 LD="${LD-ld} -m elf32_sparc"
5749 esac
5751 *64-bit*)
5752 case $host in
5753 x86_64-*linux*)
5754 LD="${LD-ld} -m elf_x86_64"
5756 ppc*-*linux*|powerpc*-*linux*)
5757 LD="${LD-ld} -m elf64ppc"
5759 s390*-*linux*)
5760 LD="${LD-ld} -m elf64_s390"
5762 sparc*-*linux*)
5763 LD="${LD-ld} -m elf64_sparc"
5765 esac
5767 esac
5769 rm -rf conftest*
5772 *-*-sco3.2v5*)
5773 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5774 SAVE_CFLAGS="$CFLAGS"
5775 CFLAGS="$CFLAGS -belf"
5776 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5777 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5778 if test "${lt_cv_cc_needs_belf+set}" = set; then
5779 echo $ECHO_N "(cached) $ECHO_C" >&6
5780 else
5783 ac_ext=c
5784 ac_cpp='$CPP $CPPFLAGS'
5785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5789 if test x$gcc_no_link = xyes; then
5790 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5791 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5792 { (exit 1); exit 1; }; }
5794 cat >conftest.$ac_ext <<_ACEOF
5795 /* confdefs.h. */
5796 _ACEOF
5797 cat confdefs.h >>conftest.$ac_ext
5798 cat >>conftest.$ac_ext <<_ACEOF
5799 /* end confdefs.h. */
5802 main ()
5806 return 0;
5808 _ACEOF
5809 rm -f conftest.$ac_objext conftest$ac_exeext
5810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5811 (eval $ac_link) 2>conftest.er1
5812 ac_status=$?
5813 grep -v '^ *+' conftest.er1 >conftest.err
5814 rm -f conftest.er1
5815 cat conftest.err >&5
5816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817 (exit $ac_status); } &&
5818 { ac_try='test -z "$ac_c_werror_flag"
5819 || test ! -s conftest.err'
5820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5821 (eval $ac_try) 2>&5
5822 ac_status=$?
5823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824 (exit $ac_status); }; } &&
5825 { ac_try='test -s conftest$ac_exeext'
5826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5827 (eval $ac_try) 2>&5
5828 ac_status=$?
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); }; }; then
5831 lt_cv_cc_needs_belf=yes
5832 else
5833 echo "$as_me: failed program was:" >&5
5834 sed 's/^/| /' conftest.$ac_ext >&5
5836 lt_cv_cc_needs_belf=no
5838 rm -f conftest.err conftest.$ac_objext \
5839 conftest$ac_exeext conftest.$ac_ext
5840 ac_ext=c
5841 ac_cpp='$CPP $CPPFLAGS'
5842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5847 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5848 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5849 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5850 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5851 CFLAGS="$SAVE_CFLAGS"
5856 esac
5859 # Save cache, so that ltconfig can load it
5860 cat >confcache <<\_ACEOF
5861 # This file is a shell script that caches the results of configure
5862 # tests run on this system so they can be shared between configure
5863 # scripts and configure runs, see configure's option --config-cache.
5864 # It is not useful on other systems. If it contains results you don't
5865 # want to keep, you may remove or edit it.
5867 # config.status only pays attention to the cache file if you give it
5868 # the --recheck option to rerun configure.
5870 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5871 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5872 # following values.
5874 _ACEOF
5876 # The following way of writing the cache mishandles newlines in values,
5877 # but we know of no workaround that is simple, portable, and efficient.
5878 # So, don't put newlines in cache variables' values.
5879 # Ultrix sh set writes to stderr and can't be redirected directly,
5880 # and sets the high bit in the cache file unless we assign to the vars.
5882 (set) 2>&1 |
5883 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5884 *ac_space=\ *)
5885 # `set' does not quote correctly, so add quotes (double-quote
5886 # substitution turns \\\\ into \\, and sed turns \\ into \).
5887 sed -n \
5888 "s/'/'\\\\''/g;
5889 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5892 # `set' quotes correctly as required by POSIX, so do not add quotes.
5893 sed -n \
5894 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5896 esac;
5898 sed '
5899 t clear
5900 : clear
5901 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5902 t end
5903 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5904 : end' >>confcache
5905 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5906 if test -w $cache_file; then
5907 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5908 cat confcache >$cache_file
5909 else
5910 echo "not updating unwritable cache $cache_file"
5913 rm -f confcache
5915 # Actually configure libtool. ac_aux_dir is where install-sh is found.
5916 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
5917 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5918 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5919 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5920 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5921 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
5922 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
5923 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
5924 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
5925 echo "$as_me: error: libtool configure failed" >&2;}
5926 { (exit 1); exit 1; }; }
5928 # Reload cache, that may have been modified by ltconfig
5929 if test -r "$cache_file"; then
5930 # Some versions of bash will fail to source /dev/null (special
5931 # files actually), so we avoid doing that.
5932 if test -f "$cache_file"; then
5933 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
5934 echo "$as_me: loading cache $cache_file" >&6;}
5935 case $cache_file in
5936 [\\/]* | ?:[\\/]* ) . $cache_file;;
5937 *) . ./$cache_file;;
5938 esac
5940 else
5941 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
5942 echo "$as_me: creating cache $cache_file" >&6;}
5943 >$cache_file
5947 # This can be used to rebuild libtool when needed
5948 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
5950 # Always use our own libtool.
5951 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5953 # Redirect the config.log output again, so that the ltconfig log is not
5954 # clobbered by the next message.
5955 exec 5>>./config.log
5957 ac_ext=cc
5958 ac_cpp='$CXXCPP $CPPFLAGS'
5959 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5960 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5961 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5962 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5963 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5964 if test -z "$CXXCPP"; then
5965 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5966 echo $ECHO_N "(cached) $ECHO_C" >&6
5967 else
5968 # Double quotes because CXXCPP needs to be expanded
5969 for CXXCPP in "$CXX -E" "/lib/cpp"
5971 ac_preproc_ok=false
5972 for ac_cxx_preproc_warn_flag in '' yes
5974 # Use a header file that comes with gcc, so configuring glibc
5975 # with a fresh cross-compiler works.
5976 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5977 # <limits.h> exists even on freestanding compilers.
5978 # On the NeXT, cc -E runs the code through the compiler's parser,
5979 # not just through cpp. "Syntax error" is here to catch this case.
5980 cat >conftest.$ac_ext <<_ACEOF
5981 /* confdefs.h. */
5982 _ACEOF
5983 cat confdefs.h >>conftest.$ac_ext
5984 cat >>conftest.$ac_ext <<_ACEOF
5985 /* end confdefs.h. */
5986 #ifdef __STDC__
5987 # include <limits.h>
5988 #else
5989 # include <assert.h>
5990 #endif
5991 Syntax error
5992 _ACEOF
5993 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5994 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5995 ac_status=$?
5996 grep -v '^ *+' conftest.er1 >conftest.err
5997 rm -f conftest.er1
5998 cat conftest.err >&5
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); } >/dev/null; then
6001 if test -s conftest.err; then
6002 ac_cpp_err=$ac_cxx_preproc_warn_flag
6003 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6004 else
6005 ac_cpp_err=
6007 else
6008 ac_cpp_err=yes
6010 if test -z "$ac_cpp_err"; then
6012 else
6013 echo "$as_me: failed program was:" >&5
6014 sed 's/^/| /' conftest.$ac_ext >&5
6016 # Broken: fails on valid input.
6017 continue
6019 rm -f conftest.err conftest.$ac_ext
6021 # OK, works on sane cases. Now check whether non-existent headers
6022 # can be detected and how.
6023 cat >conftest.$ac_ext <<_ACEOF
6024 /* confdefs.h. */
6025 _ACEOF
6026 cat confdefs.h >>conftest.$ac_ext
6027 cat >>conftest.$ac_ext <<_ACEOF
6028 /* end confdefs.h. */
6029 #include <ac_nonexistent.h>
6030 _ACEOF
6031 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6032 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6033 ac_status=$?
6034 grep -v '^ *+' conftest.er1 >conftest.err
6035 rm -f conftest.er1
6036 cat conftest.err >&5
6037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038 (exit $ac_status); } >/dev/null; then
6039 if test -s conftest.err; then
6040 ac_cpp_err=$ac_cxx_preproc_warn_flag
6041 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6042 else
6043 ac_cpp_err=
6045 else
6046 ac_cpp_err=yes
6048 if test -z "$ac_cpp_err"; then
6049 # Broken: success on invalid input.
6050 continue
6051 else
6052 echo "$as_me: failed program was:" >&5
6053 sed 's/^/| /' conftest.$ac_ext >&5
6055 # Passes both tests.
6056 ac_preproc_ok=:
6057 break
6059 rm -f conftest.err conftest.$ac_ext
6061 done
6062 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6063 rm -f conftest.err conftest.$ac_ext
6064 if $ac_preproc_ok; then
6065 break
6068 done
6069 ac_cv_prog_CXXCPP=$CXXCPP
6072 CXXCPP=$ac_cv_prog_CXXCPP
6073 else
6074 ac_cv_prog_CXXCPP=$CXXCPP
6076 echo "$as_me:$LINENO: result: $CXXCPP" >&5
6077 echo "${ECHO_T}$CXXCPP" >&6
6078 ac_preproc_ok=false
6079 for ac_cxx_preproc_warn_flag in '' yes
6081 # Use a header file that comes with gcc, so configuring glibc
6082 # with a fresh cross-compiler works.
6083 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6084 # <limits.h> exists even on freestanding compilers.
6085 # On the NeXT, cc -E runs the code through the compiler's parser,
6086 # not just through cpp. "Syntax error" is here to catch this case.
6087 cat >conftest.$ac_ext <<_ACEOF
6088 /* confdefs.h. */
6089 _ACEOF
6090 cat confdefs.h >>conftest.$ac_ext
6091 cat >>conftest.$ac_ext <<_ACEOF
6092 /* end confdefs.h. */
6093 #ifdef __STDC__
6094 # include <limits.h>
6095 #else
6096 # include <assert.h>
6097 #endif
6098 Syntax error
6099 _ACEOF
6100 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6101 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6102 ac_status=$?
6103 grep -v '^ *+' conftest.er1 >conftest.err
6104 rm -f conftest.er1
6105 cat conftest.err >&5
6106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107 (exit $ac_status); } >/dev/null; then
6108 if test -s conftest.err; then
6109 ac_cpp_err=$ac_cxx_preproc_warn_flag
6110 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6111 else
6112 ac_cpp_err=
6114 else
6115 ac_cpp_err=yes
6117 if test -z "$ac_cpp_err"; then
6119 else
6120 echo "$as_me: failed program was:" >&5
6121 sed 's/^/| /' conftest.$ac_ext >&5
6123 # Broken: fails on valid input.
6124 continue
6126 rm -f conftest.err conftest.$ac_ext
6128 # OK, works on sane cases. Now check whether non-existent headers
6129 # can be detected and how.
6130 cat >conftest.$ac_ext <<_ACEOF
6131 /* confdefs.h. */
6132 _ACEOF
6133 cat confdefs.h >>conftest.$ac_ext
6134 cat >>conftest.$ac_ext <<_ACEOF
6135 /* end confdefs.h. */
6136 #include <ac_nonexistent.h>
6137 _ACEOF
6138 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6139 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6140 ac_status=$?
6141 grep -v '^ *+' conftest.er1 >conftest.err
6142 rm -f conftest.er1
6143 cat conftest.err >&5
6144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145 (exit $ac_status); } >/dev/null; then
6146 if test -s conftest.err; then
6147 ac_cpp_err=$ac_cxx_preproc_warn_flag
6148 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6149 else
6150 ac_cpp_err=
6152 else
6153 ac_cpp_err=yes
6155 if test -z "$ac_cpp_err"; then
6156 # Broken: success on invalid input.
6157 continue
6158 else
6159 echo "$as_me: failed program was:" >&5
6160 sed 's/^/| /' conftest.$ac_ext >&5
6162 # Passes both tests.
6163 ac_preproc_ok=:
6164 break
6166 rm -f conftest.err conftest.$ac_ext
6168 done
6169 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6170 rm -f conftest.err conftest.$ac_ext
6171 if $ac_preproc_ok; then
6173 else
6174 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6175 See \`config.log' for more details." >&5
6176 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6177 See \`config.log' for more details." >&2;}
6178 { (exit 1); exit 1; }; }
6181 ac_ext=c
6182 ac_cpp='$CPP $CPPFLAGS'
6183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6189 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
6190 lt_save_CC="$CC"
6191 lt_save_CFLAGS="$CFLAGS"
6192 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
6193 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6194 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6195 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6196 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6197 deplibs_check_method="$deplibs_check_method" \
6198 file_magic_cmd="$file_magic_cmd" \
6199 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
6200 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
6201 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
6202 echo "$as_me: error: libtool tag configuration failed" >&2;}
6203 { (exit 1); exit 1; }; }
6204 CC="$lt_save_CC"
6205 CFLAGS="$lt_save_CFLAGS"
6207 # Redirect the config.log output again, so that the ltconfig log is not
6208 # clobbered by the next message.
6209 exec 5>>./config.log
6217 for ac_prog in gcj
6219 # Extract the first word of "$ac_prog", so it can be a program name with args.
6220 set dummy $ac_prog; ac_word=$2
6221 echo "$as_me:$LINENO: checking for $ac_word" >&5
6222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6223 if test "${ac_cv_prog_GCJ+set}" = set; then
6224 echo $ECHO_N "(cached) $ECHO_C" >&6
6225 else
6226 if test -n "$GCJ"; then
6227 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
6228 else
6229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6230 for as_dir in $PATH
6232 IFS=$as_save_IFS
6233 test -z "$as_dir" && as_dir=.
6234 for ac_exec_ext in '' $ac_executable_extensions; do
6235 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6236 ac_cv_prog_GCJ="$ac_prog"
6237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6238 break 2
6240 done
6241 done
6245 GCJ=$ac_cv_prog_GCJ
6246 if test -n "$GCJ"; then
6247 echo "$as_me:$LINENO: result: $GCJ" >&5
6248 echo "${ECHO_T}$GCJ" >&6
6249 else
6250 echo "$as_me:$LINENO: result: no" >&5
6251 echo "${ECHO_T}no" >&6
6254 test -n "$GCJ" && break
6255 done
6256 test -n "$GCJ" || GCJ="gcj"
6258 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
6259 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
6260 { (exit 1); exit 1; }; }
6261 if test "x${GCJFLAGS-unset}" = xunset; then
6262 GCJFLAGS="-g -O2"
6266 depcc="$GCJ" am_compiler_list='gcc3 gcc'
6268 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6269 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6270 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
6271 echo $ECHO_N "(cached) $ECHO_C" >&6
6272 else
6273 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6274 # We make a subdir and do the tests there. Otherwise we can end up
6275 # making bogus files that we don't know about and never remove. For
6276 # instance it was reported that on HP-UX the gcc test will end up
6277 # making a dummy file named `D' -- because `-MD' means `put the output
6278 # in D'.
6279 mkdir conftest.dir
6280 # Copy depcomp to subdir because otherwise we won't find it if we're
6281 # using a relative directory.
6282 cp "$am_depcomp" conftest.dir
6283 cd conftest.dir
6284 # We will build objects and dependencies in a subdirectory because
6285 # it helps to detect inapplicable dependency modes. For instance
6286 # both Tru64's cc and ICC support -MD to output dependencies as a
6287 # side effect of compilation, but ICC will put the dependencies in
6288 # the current directory while Tru64 will put them in the object
6289 # directory.
6290 mkdir sub
6292 am_cv_GCJ_dependencies_compiler_type=none
6293 if test "$am_compiler_list" = ""; then
6294 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6296 for depmode in $am_compiler_list; do
6297 # Setup a source with many dependencies, because some compilers
6298 # like to wrap large dependency lists on column 80 (with \), and
6299 # we should not choose a depcomp mode which is confused by this.
6301 # We need to recreate these files for each test, as the compiler may
6302 # overwrite some of them when testing with obscure command lines.
6303 # This happens at least with the AIX C compiler.
6304 : > sub/conftest.c
6305 for i in 1 2 3 4 5 6; do
6306 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6307 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6308 # Solaris 8's {/usr,}/bin/sh.
6309 touch sub/conftst$i.h
6310 done
6311 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6313 case $depmode in
6314 nosideeffect)
6315 # after this tag, mechanisms are not by side-effect, so they'll
6316 # only be used when explicitly requested
6317 if test "x$enable_dependency_tracking" = xyes; then
6318 continue
6319 else
6320 break
6323 none) break ;;
6324 esac
6325 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6326 # mode. It turns out that the SunPro C++ compiler does not properly
6327 # handle `-M -o', and we need to detect this.
6328 if depmode=$depmode \
6329 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6330 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6331 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6332 >/dev/null 2>conftest.err &&
6333 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6334 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6335 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6336 # icc doesn't choke on unknown options, it will just issue warnings
6337 # or remarks (even with -Werror). So we grep stderr for any message
6338 # that says an option was ignored or not supported.
6339 # When given -MP, icc 7.0 and 7.1 complain thusly:
6340 # icc: Command line warning: ignoring option '-M'; no argument required
6341 # The diagnosis changed in icc 8.0:
6342 # icc: Command line remark: option '-MP' not supported
6343 if (grep 'ignoring option' conftest.err ||
6344 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6345 am_cv_GCJ_dependencies_compiler_type=$depmode
6346 break
6349 done
6351 cd ..
6352 rm -rf conftest.dir
6353 else
6354 am_cv_GCJ_dependencies_compiler_type=none
6358 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
6359 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
6360 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
6365 test "x$enable_dependency_tracking" != xno \
6366 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
6367 am__fastdepGCJ_TRUE=
6368 am__fastdepGCJ_FALSE='#'
6369 else
6370 am__fastdepGCJ_TRUE='#'
6371 am__fastdepGCJ_FALSE=
6377 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
6378 lt_save_CC="$CC"
6379 lt_save_CFLAGS="$CFLAGS"
6380 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
6381 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6382 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6383 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6384 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6385 deplibs_check_method="$deplibs_check_method" \
6386 file_magic_cmd="$file_magic_cmd" \
6387 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
6388 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
6389 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
6390 echo "$as_me: error: libtool tag configuration failed" >&2;}
6391 { (exit 1); exit 1; }; }
6392 CC="$lt_save_CC"
6393 CFLAGS="$lt_save_CFLAGS"
6395 # Redirect the config.log output again, so that the ltconfig log is not
6396 # clobbered by the next message.
6397 exec 5>>./config.log
6401 if test "x$CC" != xcc; then
6402 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
6403 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
6404 else
6405 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
6406 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
6408 set dummy $CC; ac_cc=`echo $2 |
6409 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6410 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
6411 echo $ECHO_N "(cached) $ECHO_C" >&6
6412 else
6413 cat >conftest.$ac_ext <<_ACEOF
6414 /* confdefs.h. */
6415 _ACEOF
6416 cat confdefs.h >>conftest.$ac_ext
6417 cat >>conftest.$ac_ext <<_ACEOF
6418 /* end confdefs.h. */
6421 main ()
6425 return 0;
6427 _ACEOF
6428 # Make sure it works both with $CC and with simple cc.
6429 # We do the test twice because some compilers refuse to overwrite an
6430 # existing .o file with -o, though they will create one.
6431 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
6432 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6433 (eval $ac_try) 2>&5
6434 ac_status=$?
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); } &&
6437 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6438 (eval $ac_try) 2>&5
6439 ac_status=$?
6440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441 (exit $ac_status); };
6442 then
6443 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
6444 if test "x$CC" != xcc; then
6445 # Test first that cc exists at all.
6446 if { ac_try='cc -c conftest.$ac_ext >&5'
6447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6448 (eval $ac_try) 2>&5
6449 ac_status=$?
6450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451 (exit $ac_status); }; }; then
6452 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
6453 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6454 (eval $ac_try) 2>&5
6455 ac_status=$?
6456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457 (exit $ac_status); } &&
6458 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6459 (eval $ac_try) 2>&5
6460 ac_status=$?
6461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462 (exit $ac_status); };
6463 then
6464 # cc works too.
6466 else
6467 # cc exists but doesn't like -o.
6468 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6472 else
6473 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6475 rm -f conftest*
6478 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
6479 echo "$as_me:$LINENO: result: yes" >&5
6480 echo "${ECHO_T}yes" >&6
6481 else
6482 echo "$as_me:$LINENO: result: no" >&5
6483 echo "${ECHO_T}no" >&6
6485 cat >>confdefs.h <<\_ACEOF
6486 #define NO_MINUS_C_MINUS_O 1
6487 _ACEOF
6491 # FIXME: we rely on the cache variable name because
6492 # there is no other way.
6493 set dummy $CC
6494 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6495 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
6496 # Losing compiler, so override with the script.
6497 # FIXME: It is wrong to rewrite CC.
6498 # But if we don't then we get into trouble of one sort or another.
6499 # A longer-term fix would be to have automake use am__CC in this case,
6500 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6501 CC="$am_aux_dir/compile $CC"
6507 subdirs="$subdirs classpath libltdl"
6510 # The -no-testsuite modules omit the test subdir.
6513 if test -d $srcdir/testsuite; then
6514 TESTSUBDIR_TRUE=
6515 TESTSUBDIR_FALSE='#'
6516 else
6517 TESTSUBDIR_TRUE='#'
6518 TESTSUBDIR_FALSE=
6522 # Should the runtime set system properties by examining the
6523 # environment variable GCJ_PROPERTIES?
6524 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
6525 if test "${enable_getenv_properties+set}" = set; then
6526 enableval="$enable_getenv_properties"
6530 # Whether GCJ_PROPERTIES is used depends on the target.
6531 if test -z "$enable_getenv_properties"; then
6532 enable_getenv_properties=${enable_getenv_properties_default-yes}
6534 if test "$enable_getenv_properties" = no; then
6536 cat >>confdefs.h <<\_ACEOF
6537 #define DISABLE_GETENV_PROPERTIES 1
6538 _ACEOF
6542 # Whether we should use arguments to main()
6543 if test -z "$enable_main_args"; then
6544 enable_main_args=${enable_main_args_default-yes}
6546 if test "$enable_main_args" = no; then
6548 cat >>confdefs.h <<\_ACEOF
6549 #define DISABLE_MAIN_ARGS 1
6550 _ACEOF
6555 # Should we use hashtable-based synchronization?
6556 # Currently works only for Linux X86/ia64
6557 # Typically faster and more space-efficient
6558 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
6559 if test "${enable_hash_synchronization+set}" = set; then
6560 enableval="$enable_hash_synchronization"
6564 if test -z "$enable_hash_synchronization"; then
6565 enable_hash_synchronization=$enable_hash_synchronization_default
6569 # Check whether --with-java-home or --without-java-home was given.
6570 if test "${with_java_home+set}" = set; then
6571 withval="$with_java_home"
6572 JAVA_HOME="${withval}"
6573 else
6574 JAVA_HOME=""
6578 if test ! -z "$JAVA_HOME"; then
6579 JAVA_HOME_SET_TRUE=
6580 JAVA_HOME_SET_FALSE='#'
6581 else
6582 JAVA_HOME_SET_TRUE='#'
6583 JAVA_HOME_SET_FALSE=
6588 # What is the native OS API for MinGW?
6590 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
6591 if test "${with_win32_nlsapi+set}" = set; then
6592 withval="$with_win32_nlsapi"
6593 case "${withval}" in
6594 ansi) with_win32_nlsapi=ansi ;;
6595 unicows) with_win32_nlsapi=unicows ;;
6596 unicode) with_win32_nlsapi=unicode ;;
6597 *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
6598 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
6599 { (exit 1); exit 1; }; } ;;
6600 esac
6601 else
6602 with_win32_nlsapi=ansi
6605 case "${with_win32_nlsapi}" in
6606 unicows | unicode)
6608 cat >>confdefs.h <<\_ACEOF
6609 #define MINGW_LIBGCJ_UNICODE 1
6610 _ACEOF
6613 esac
6615 # configure.host sets slow_pthread_self if the synchronization code should
6616 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
6617 if test "${slow_pthread_self}" = "yes"; then
6619 cat >>confdefs.h <<\_ACEOF
6620 #define SLOW_PTHREAD_SELF 1
6621 _ACEOF
6625 # Check for gc debugging. This option is handled both here and in the GC.
6626 # Check whether --enable-gc-debug or --disable-gc-debug was given.
6627 if test "${enable_gc_debug+set}" = set; then
6628 enableval="$enable_gc_debug"
6629 if test "$enable_gc_debug" = "yes"; then
6631 cat >>confdefs.h <<\_ACEOF
6632 #define LIBGCJ_GC_DEBUG 1
6633 _ACEOF
6638 # See if the user has the interpreter included.
6639 # Check whether --enable-interpreter or --disable-interpreter was given.
6640 if test "${enable_interpreter+set}" = set; then
6641 enableval="$enable_interpreter"
6642 if test "$enable_interpreter" = yes; then
6643 # This can also be set in configure.host.
6644 libgcj_interpreter=yes
6645 elif test "$enable_interpreter" = no; then
6646 libgcj_interpreter=no
6650 if test "$libgcj_interpreter" = yes; then
6652 cat >>confdefs.h <<\_ACEOF
6653 #define INTERPRETER 1
6654 _ACEOF
6657 INTERPRETER="$libgcj_interpreter"
6660 echo "$as_me:$LINENO: checking for exception model to use" >&5
6661 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
6662 ac_ext=cc
6663 ac_cpp='$CXXCPP $CPPFLAGS'
6664 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6665 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6666 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6668 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
6669 if test "${enable_sjlj_exceptions+set}" = set; then
6670 enableval="$enable_sjlj_exceptions"
6672 else
6673 cat > conftest.$ac_ext << EOF
6674 #line 6674 "configure"
6675 struct S { ~S(); };
6676 void bar();
6677 void foo()
6679 S s;
6680 bar();
6683 old_CXXFLAGS="$CXXFLAGS"
6684 CXXFLAGS=-S
6685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6686 (eval $ac_compile) 2>&5
6687 ac_status=$?
6688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689 (exit $ac_status); }; then
6690 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
6691 enable_sjlj_exceptions=yes
6692 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
6693 enable_sjlj_exceptions=no
6696 CXXFLAGS="$old_CXXFLAGS"
6697 rm -f conftest*
6699 if test x$enable_sjlj_exceptions = xyes; then
6701 cat >>confdefs.h <<\_ACEOF
6702 #define SJLJ_EXCEPTIONS 1
6703 _ACEOF
6705 ac_exception_model_name=sjlj
6706 elif test x$enable_sjlj_exceptions = xno; then
6707 ac_exception_model_name="call frame"
6708 else
6709 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
6710 echo "$as_me: error: unable to detect exception model" >&2;}
6711 { (exit 1); exit 1; }; }
6713 ac_ext=c
6714 ac_cpp='$CPP $CPPFLAGS'
6715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6719 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
6720 echo "${ECHO_T}$ac_exception_model_name" >&6
6722 # If we are non using SJLJ exceptions, and this host does not have support
6723 # for unwinding from a signal handler, enable checked dereferences and divides.
6724 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
6725 CHECKREFSPEC=-fcheck-references
6726 DIVIDESPEC=-fuse-divide-subroutine
6727 EXCEPTIONSPEC=
6730 # See if the user wants to disable java.net. This is the mildly
6731 # ugly way that we admit that target-side configuration sucks.
6732 # Check whether --enable-java-net or --disable-java-net was given.
6733 if test "${enable_java_net+set}" = set; then
6734 enableval="$enable_java_net"
6738 # Whether java.net is built by default can depend on the target.
6739 if test -z "$enable_java_net"; then
6740 enable_java_net=${enable_java_net_default-yes}
6742 if test "$enable_java_net" = no; then
6744 cat >>confdefs.h <<\_ACEOF
6745 #define DISABLE_JAVA_NET 1
6746 _ACEOF
6750 # See if the user wants to configure without libffi. Some
6751 # architectures don't support it, and default values are set in
6752 # configure.host.
6754 # Check whether --with-libffi or --without-libffi was given.
6755 if test "${with_libffi+set}" = set; then
6756 withval="$with_libffi"
6758 else
6759 with_libffi=${with_libffi_default-yes}
6762 LIBFFI=
6763 LIBFFIINCS=
6764 if test "$with_libffi" != no; then
6766 cat >>confdefs.h <<\_ACEOF
6767 #define USE_LIBFFI 1
6768 _ACEOF
6770 LIBFFI=../libffi/libffi_convenience.la
6771 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
6776 # See if the user wants to disable JVMPI support.
6777 # Check whether --enable-jvmpi or --disable-jvmpi was given.
6778 if test "${enable_jvmpi+set}" = set; then
6779 enableval="$enable_jvmpi"
6783 if test "$enable_jvmpi" != no; then
6785 cat >>confdefs.h <<\_ACEOF
6786 #define ENABLE_JVMPI 1
6787 _ACEOF
6791 # If the target is an eCos system, use the appropriate eCos
6792 # I/O routines.
6793 # FIXME: this should not be a local option but a global target
6794 # system; at present there is no eCos target.
6795 TARGET_ECOS=${PROCESS-"no"}
6797 # Check whether --with-ecos or --without-ecos was given.
6798 if test "${with_ecos+set}" = set; then
6799 withval="$with_ecos"
6800 TARGET_ECOS="$with_ecos"
6804 PLATFORM_INNER_NAT_HDRS=
6805 case "$TARGET_ECOS" in
6806 no) case "$host" in
6807 *mingw*)
6808 PLATFORM=Win32
6809 PLATFORMNET=Win32
6810 PLATFORMH=win32.h
6812 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
6813 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
6814 LD_PROG=`$CC --print-prog-name=ld`
6815 LD_VERSION=`$LD_PROG --version`
6816 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
6817 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
6818 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
6819 LD_OK="ok"
6820 else
6821 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
6822 LD_OK="ok"
6825 if test "x$LD_OK" != x; then
6826 echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
6827 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
6828 else
6829 echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
6830 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
6831 { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
6832 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
6834 cat >>confdefs.h <<\_ACEOF
6835 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
6836 _ACEOF
6841 PLATFORM=Posix
6842 PLATFORMNET=Posix
6843 PLATFORMH=posix.h
6844 PLATFORM_INNER_NAT_HDRS='java/lang/ConcreteProcess$$ProcessManager.h'
6846 esac
6849 PLATFORM=Ecos
6850 PLATFORMNET=NoNet
6852 cat >>confdefs.h <<\_ACEOF
6853 #define ECOS 1
6854 _ACEOF
6856 PLATFORMH=posix.h
6858 esac
6860 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
6863 ac_ext=c
6864 ac_cpp='$CPP $CPPFLAGS'
6865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6868 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6869 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6870 # On Suns, sometimes $CPP names a directory.
6871 if test -n "$CPP" && test -d "$CPP"; then
6872 CPP=
6874 if test -z "$CPP"; then
6875 if test "${ac_cv_prog_CPP+set}" = set; then
6876 echo $ECHO_N "(cached) $ECHO_C" >&6
6877 else
6878 # Double quotes because CPP needs to be expanded
6879 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6881 ac_preproc_ok=false
6882 for ac_c_preproc_warn_flag in '' yes
6884 # Use a header file that comes with gcc, so configuring glibc
6885 # with a fresh cross-compiler works.
6886 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6887 # <limits.h> exists even on freestanding compilers.
6888 # On the NeXT, cc -E runs the code through the compiler's parser,
6889 # not just through cpp. "Syntax error" is here to catch this case.
6890 cat >conftest.$ac_ext <<_ACEOF
6891 /* confdefs.h. */
6892 _ACEOF
6893 cat confdefs.h >>conftest.$ac_ext
6894 cat >>conftest.$ac_ext <<_ACEOF
6895 /* end confdefs.h. */
6896 #ifdef __STDC__
6897 # include <limits.h>
6898 #else
6899 # include <assert.h>
6900 #endif
6901 Syntax error
6902 _ACEOF
6903 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6904 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6905 ac_status=$?
6906 grep -v '^ *+' conftest.er1 >conftest.err
6907 rm -f conftest.er1
6908 cat conftest.err >&5
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); } >/dev/null; then
6911 if test -s conftest.err; then
6912 ac_cpp_err=$ac_c_preproc_warn_flag
6913 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6914 else
6915 ac_cpp_err=
6917 else
6918 ac_cpp_err=yes
6920 if test -z "$ac_cpp_err"; then
6922 else
6923 echo "$as_me: failed program was:" >&5
6924 sed 's/^/| /' conftest.$ac_ext >&5
6926 # Broken: fails on valid input.
6927 continue
6929 rm -f conftest.err conftest.$ac_ext
6931 # OK, works on sane cases. Now check whether non-existent headers
6932 # can be detected and how.
6933 cat >conftest.$ac_ext <<_ACEOF
6934 /* confdefs.h. */
6935 _ACEOF
6936 cat confdefs.h >>conftest.$ac_ext
6937 cat >>conftest.$ac_ext <<_ACEOF
6938 /* end confdefs.h. */
6939 #include <ac_nonexistent.h>
6940 _ACEOF
6941 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6942 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6943 ac_status=$?
6944 grep -v '^ *+' conftest.er1 >conftest.err
6945 rm -f conftest.er1
6946 cat conftest.err >&5
6947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948 (exit $ac_status); } >/dev/null; then
6949 if test -s conftest.err; then
6950 ac_cpp_err=$ac_c_preproc_warn_flag
6951 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6952 else
6953 ac_cpp_err=
6955 else
6956 ac_cpp_err=yes
6958 if test -z "$ac_cpp_err"; then
6959 # Broken: success on invalid input.
6960 continue
6961 else
6962 echo "$as_me: failed program was:" >&5
6963 sed 's/^/| /' conftest.$ac_ext >&5
6965 # Passes both tests.
6966 ac_preproc_ok=:
6967 break
6969 rm -f conftest.err conftest.$ac_ext
6971 done
6972 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6973 rm -f conftest.err conftest.$ac_ext
6974 if $ac_preproc_ok; then
6975 break
6978 done
6979 ac_cv_prog_CPP=$CPP
6982 CPP=$ac_cv_prog_CPP
6983 else
6984 ac_cv_prog_CPP=$CPP
6986 echo "$as_me:$LINENO: result: $CPP" >&5
6987 echo "${ECHO_T}$CPP" >&6
6988 ac_preproc_ok=false
6989 for ac_c_preproc_warn_flag in '' yes
6991 # Use a header file that comes with gcc, so configuring glibc
6992 # with a fresh cross-compiler works.
6993 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6994 # <limits.h> exists even on freestanding compilers.
6995 # On the NeXT, cc -E runs the code through the compiler's parser,
6996 # not just through cpp. "Syntax error" is here to catch this case.
6997 cat >conftest.$ac_ext <<_ACEOF
6998 /* confdefs.h. */
6999 _ACEOF
7000 cat confdefs.h >>conftest.$ac_ext
7001 cat >>conftest.$ac_ext <<_ACEOF
7002 /* end confdefs.h. */
7003 #ifdef __STDC__
7004 # include <limits.h>
7005 #else
7006 # include <assert.h>
7007 #endif
7008 Syntax error
7009 _ACEOF
7010 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7011 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7012 ac_status=$?
7013 grep -v '^ *+' conftest.er1 >conftest.err
7014 rm -f conftest.er1
7015 cat conftest.err >&5
7016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017 (exit $ac_status); } >/dev/null; then
7018 if test -s conftest.err; then
7019 ac_cpp_err=$ac_c_preproc_warn_flag
7020 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7021 else
7022 ac_cpp_err=
7024 else
7025 ac_cpp_err=yes
7027 if test -z "$ac_cpp_err"; then
7029 else
7030 echo "$as_me: failed program was:" >&5
7031 sed 's/^/| /' conftest.$ac_ext >&5
7033 # Broken: fails on valid input.
7034 continue
7036 rm -f conftest.err conftest.$ac_ext
7038 # OK, works on sane cases. Now check whether non-existent headers
7039 # can be detected and how.
7040 cat >conftest.$ac_ext <<_ACEOF
7041 /* confdefs.h. */
7042 _ACEOF
7043 cat confdefs.h >>conftest.$ac_ext
7044 cat >>conftest.$ac_ext <<_ACEOF
7045 /* end confdefs.h. */
7046 #include <ac_nonexistent.h>
7047 _ACEOF
7048 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7049 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7050 ac_status=$?
7051 grep -v '^ *+' conftest.er1 >conftest.err
7052 rm -f conftest.er1
7053 cat conftest.err >&5
7054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055 (exit $ac_status); } >/dev/null; then
7056 if test -s conftest.err; then
7057 ac_cpp_err=$ac_c_preproc_warn_flag
7058 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7059 else
7060 ac_cpp_err=
7062 else
7063 ac_cpp_err=yes
7065 if test -z "$ac_cpp_err"; then
7066 # Broken: success on invalid input.
7067 continue
7068 else
7069 echo "$as_me: failed program was:" >&5
7070 sed 's/^/| /' conftest.$ac_ext >&5
7072 # Passes both tests.
7073 ac_preproc_ok=:
7074 break
7076 rm -f conftest.err conftest.$ac_ext
7078 done
7079 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7080 rm -f conftest.err conftest.$ac_ext
7081 if $ac_preproc_ok; then
7083 else
7084 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7085 See \`config.log' for more details." >&5
7086 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7087 See \`config.log' for more details." >&2;}
7088 { (exit 1); exit 1; }; }
7091 ac_ext=c
7092 ac_cpp='$CPP $CPPFLAGS'
7093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7098 echo "$as_me:$LINENO: checking for egrep" >&5
7099 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
7100 if test "${ac_cv_prog_egrep+set}" = set; then
7101 echo $ECHO_N "(cached) $ECHO_C" >&6
7102 else
7103 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
7104 then ac_cv_prog_egrep='grep -E'
7105 else ac_cv_prog_egrep='egrep'
7108 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
7109 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
7110 EGREP=$ac_cv_prog_egrep
7113 cat >conftest.$ac_ext <<_ACEOF
7114 /* confdefs.h. */
7115 _ACEOF
7116 cat confdefs.h >>conftest.$ac_ext
7117 cat >>conftest.$ac_ext <<_ACEOF
7118 /* end confdefs.h. */
7119 #include <stdint.h>
7121 _ACEOF
7122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7123 $EGREP "uint32_t" >/dev/null 2>&1; then
7125 cat >>confdefs.h <<\_ACEOF
7126 #define HAVE_INT32_DEFINED 1
7127 _ACEOF
7130 rm -f conftest*
7132 cat >conftest.$ac_ext <<_ACEOF
7133 /* confdefs.h. */
7134 _ACEOF
7135 cat confdefs.h >>conftest.$ac_ext
7136 cat >>conftest.$ac_ext <<_ACEOF
7137 /* end confdefs.h. */
7138 #include <inttypes.h>
7140 _ACEOF
7141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7142 $EGREP "uint32_t" >/dev/null 2>&1; then
7144 cat >>confdefs.h <<\_ACEOF
7145 #define HAVE_INT32_DEFINED 1
7146 _ACEOF
7149 rm -f conftest*
7151 cat >conftest.$ac_ext <<_ACEOF
7152 /* confdefs.h. */
7153 _ACEOF
7154 cat confdefs.h >>conftest.$ac_ext
7155 cat >>conftest.$ac_ext <<_ACEOF
7156 /* end confdefs.h. */
7157 #include <sys/types.h>
7159 _ACEOF
7160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7161 $EGREP "u_int32_t" >/dev/null 2>&1; then
7163 cat >>confdefs.h <<\_ACEOF
7164 #define HAVE_BSD_INT32_DEFINED 1
7165 _ACEOF
7168 rm -f conftest*
7170 cat >conftest.$ac_ext <<_ACEOF
7171 /* confdefs.h. */
7172 _ACEOF
7173 cat confdefs.h >>conftest.$ac_ext
7174 cat >>conftest.$ac_ext <<_ACEOF
7175 /* end confdefs.h. */
7176 #include <sys/config.h>
7178 _ACEOF
7179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7180 $EGREP "u_int32_t" >/dev/null 2>&1; then
7182 cat >>confdefs.h <<\_ACEOF
7183 #define HAVE_BSD_INT32_DEFINED 1
7184 _ACEOF
7187 rm -f conftest*
7192 if test "$PLATFORM" = Win32; then
7193 USING_WIN32_PLATFORM_TRUE=
7194 USING_WIN32_PLATFORM_FALSE='#'
7195 else
7196 USING_WIN32_PLATFORM_TRUE='#'
7197 USING_WIN32_PLATFORM_FALSE=
7202 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
7203 USING_POSIX_PLATFORM_TRUE=
7204 USING_POSIX_PLATFORM_FALSE='#'
7205 else
7206 USING_POSIX_PLATFORM_TRUE='#'
7207 USING_POSIX_PLATFORM_FALSE=
7211 case "$host" in
7212 *-darwin*) DARWIN_CRT=true ;;
7213 *) DARWIN_CRT=false ;;
7214 esac
7217 if $DARWIN_CRT; then
7218 USING_DARWIN_CRT_TRUE=
7219 USING_DARWIN_CRT_FALSE='#'
7220 else
7221 USING_DARWIN_CRT_TRUE='#'
7222 USING_DARWIN_CRT_FALSE=
7226 # These may not be defined in a non-ANS conformant embedded system.
7227 # FIXME: Should these case a runtime exception in that case?
7228 cat >conftest.$ac_ext <<_ACEOF
7229 /* confdefs.h. */
7230 _ACEOF
7231 cat confdefs.h >>conftest.$ac_ext
7232 cat >>conftest.$ac_ext <<_ACEOF
7233 /* end confdefs.h. */
7234 #include <time.h>
7236 _ACEOF
7237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7238 $EGREP "mktime" >/dev/null 2>&1; then
7240 cat >>confdefs.h <<\_ACEOF
7241 #define HAVE_MKTIME 1
7242 _ACEOF
7245 rm -f conftest*
7247 cat >conftest.$ac_ext <<_ACEOF
7248 /* confdefs.h. */
7249 _ACEOF
7250 cat confdefs.h >>conftest.$ac_ext
7251 cat >>conftest.$ac_ext <<_ACEOF
7252 /* end confdefs.h. */
7253 #include <time.h>
7255 _ACEOF
7256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7257 $EGREP "localtime" >/dev/null 2>&1; then
7259 cat >>confdefs.h <<\_ACEOF
7260 #define HAVE_LOCALTIME 1
7261 _ACEOF
7264 rm -f conftest*
7267 # Create the subdirectory for natFile.cc, or the attempt
7268 # to create the link will fail.
7269 test -d java || mkdir java
7270 test -d java/io || mkdir java/io
7271 test -d gnu || mkdir gnu
7272 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
7275 # Likewise for ConcreteProcess.java and natConcreteProcess.cc.
7276 test -d java/lang || mkdir java/lang
7277 ac_config_links="$ac_config_links java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java"
7279 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
7282 # Likewise for natInetAddress.cc and natVMNetworkInterface.cc.
7283 test -d java/net || mkdir java/net
7284 ac_config_links="$ac_config_links java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc"
7286 ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
7289 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
7290 test -d gnu/java || mkdir gnu/java
7291 test -d gnu/java/net || mkdir gnu/java/net
7292 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
7294 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
7297 # Likewise for natPipeImpl.cc and natSelectorImpl.cc.
7298 test -d gnu/java/nio || mkdir gnu/java/nio
7299 ac_config_links="$ac_config_links gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc"
7301 ac_config_links="$ac_config_links gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc"
7303 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
7304 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
7307 case "${host}" in
7308 *mingw*)
7309 SYSTEMSPEC="-lgdi32 -lws2_32"
7310 if test "${with_win32_nlsapi}" = "unicows"; then
7311 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
7315 SYSTEMSPEC=
7317 esac
7320 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
7324 # Check whether --with-system-zlib or --without-system-zlib was given.
7325 if test "${with_system_zlib+set}" = set; then
7326 withval="$with_system_zlib"
7329 ZLIBSPEC=
7331 ZLIBTESTSPEC=
7334 echo "$as_me:$LINENO: checking for X" >&5
7335 echo $ECHO_N "checking for X... $ECHO_C" >&6
7338 # Check whether --with-x or --without-x was given.
7339 if test "${with_x+set}" = set; then
7340 withval="$with_x"
7343 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7344 if test "x$with_x" = xno; then
7345 # The user explicitly disabled X.
7346 have_x=disabled
7347 else
7348 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7349 # Both variables are already set.
7350 have_x=yes
7351 else
7352 if test "${ac_cv_have_x+set}" = set; then
7353 echo $ECHO_N "(cached) $ECHO_C" >&6
7354 else
7355 # One or both of the vars are not set, and there is no cached value.
7356 ac_x_includes=no ac_x_libraries=no
7357 rm -fr conftest.dir
7358 if mkdir conftest.dir; then
7359 cd conftest.dir
7360 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7361 cat >Imakefile <<'_ACEOF'
7362 acfindx:
7363 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7364 _ACEOF
7365 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7366 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7367 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7368 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7369 for ac_extension in a so sl; do
7370 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7371 test -f $ac_im_libdir/libX11.$ac_extension; then
7372 ac_im_usrlibdir=$ac_im_libdir; break
7374 done
7375 # Screen out bogus values from the imake configuration. They are
7376 # bogus both because they are the default anyway, and because
7377 # using them would break gcc on systems where it needs fixed includes.
7378 case $ac_im_incroot in
7379 /usr/include) ;;
7380 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7381 esac
7382 case $ac_im_usrlibdir in
7383 /usr/lib | /lib) ;;
7384 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7385 esac
7387 cd ..
7388 rm -fr conftest.dir
7391 # Standard set of common directories for X headers.
7392 # Check X11 before X11Rn because it is often a symlink to the current release.
7393 ac_x_header_dirs='
7394 /usr/X11/include
7395 /usr/X11R6/include
7396 /usr/X11R5/include
7397 /usr/X11R4/include
7399 /usr/include/X11
7400 /usr/include/X11R6
7401 /usr/include/X11R5
7402 /usr/include/X11R4
7404 /usr/local/X11/include
7405 /usr/local/X11R6/include
7406 /usr/local/X11R5/include
7407 /usr/local/X11R4/include
7409 /usr/local/include/X11
7410 /usr/local/include/X11R6
7411 /usr/local/include/X11R5
7412 /usr/local/include/X11R4
7414 /usr/X386/include
7415 /usr/x386/include
7416 /usr/XFree86/include/X11
7418 /usr/include
7419 /usr/local/include
7420 /usr/unsupported/include
7421 /usr/athena/include
7422 /usr/local/x11r5/include
7423 /usr/lpp/Xamples/include
7425 /usr/openwin/include
7426 /usr/openwin/share/include'
7428 if test "$ac_x_includes" = no; then
7429 # Guess where to find include files, by looking for Intrinsic.h.
7430 # First, try using that file with no special directory specified.
7431 cat >conftest.$ac_ext <<_ACEOF
7432 /* confdefs.h. */
7433 _ACEOF
7434 cat confdefs.h >>conftest.$ac_ext
7435 cat >>conftest.$ac_ext <<_ACEOF
7436 /* end confdefs.h. */
7437 #include <X11/Intrinsic.h>
7438 _ACEOF
7439 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7440 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7441 ac_status=$?
7442 grep -v '^ *+' conftest.er1 >conftest.err
7443 rm -f conftest.er1
7444 cat conftest.err >&5
7445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7446 (exit $ac_status); } >/dev/null; then
7447 if test -s conftest.err; then
7448 ac_cpp_err=$ac_c_preproc_warn_flag
7449 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7450 else
7451 ac_cpp_err=
7453 else
7454 ac_cpp_err=yes
7456 if test -z "$ac_cpp_err"; then
7457 # We can compile using X headers with no special include directory.
7458 ac_x_includes=
7459 else
7460 echo "$as_me: failed program was:" >&5
7461 sed 's/^/| /' conftest.$ac_ext >&5
7463 for ac_dir in $ac_x_header_dirs; do
7464 if test -r "$ac_dir/X11/Intrinsic.h"; then
7465 ac_x_includes=$ac_dir
7466 break
7468 done
7470 rm -f conftest.err conftest.$ac_ext
7471 fi # $ac_x_includes = no
7473 if test "$ac_x_libraries" = no; then
7474 # Check for the libraries.
7475 # See if we find them without any special options.
7476 # Don't add to $LIBS permanently.
7477 ac_save_LIBS=$LIBS
7478 LIBS="-lXt $LIBS"
7479 if test x$gcc_no_link = xyes; then
7480 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7481 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7482 { (exit 1); exit 1; }; }
7484 cat >conftest.$ac_ext <<_ACEOF
7485 /* confdefs.h. */
7486 _ACEOF
7487 cat confdefs.h >>conftest.$ac_ext
7488 cat >>conftest.$ac_ext <<_ACEOF
7489 /* end confdefs.h. */
7490 #include <X11/Intrinsic.h>
7492 main ()
7494 XtMalloc (0)
7496 return 0;
7498 _ACEOF
7499 rm -f conftest.$ac_objext conftest$ac_exeext
7500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7501 (eval $ac_link) 2>conftest.er1
7502 ac_status=$?
7503 grep -v '^ *+' conftest.er1 >conftest.err
7504 rm -f conftest.er1
7505 cat conftest.err >&5
7506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507 (exit $ac_status); } &&
7508 { ac_try='test -z "$ac_c_werror_flag"
7509 || test ! -s conftest.err'
7510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7511 (eval $ac_try) 2>&5
7512 ac_status=$?
7513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514 (exit $ac_status); }; } &&
7515 { ac_try='test -s conftest$ac_exeext'
7516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7517 (eval $ac_try) 2>&5
7518 ac_status=$?
7519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520 (exit $ac_status); }; }; then
7521 LIBS=$ac_save_LIBS
7522 # We can link X programs with no special library path.
7523 ac_x_libraries=
7524 else
7525 echo "$as_me: failed program was:" >&5
7526 sed 's/^/| /' conftest.$ac_ext >&5
7528 LIBS=$ac_save_LIBS
7529 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7531 # Don't even attempt the hair of trying to link an X program!
7532 for ac_extension in a so sl; do
7533 if test -r $ac_dir/libXt.$ac_extension; then
7534 ac_x_libraries=$ac_dir
7535 break 2
7537 done
7538 done
7540 rm -f conftest.err conftest.$ac_objext \
7541 conftest$ac_exeext conftest.$ac_ext
7542 fi # $ac_x_libraries = no
7544 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7545 # Didn't find X anywhere. Cache the known absence of X.
7546 ac_cv_have_x="have_x=no"
7547 else
7548 # Record where we found X for the cache.
7549 ac_cv_have_x="have_x=yes \
7550 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7555 eval "$ac_cv_have_x"
7556 fi # $with_x != no
7558 if test "$have_x" != yes; then
7559 echo "$as_me:$LINENO: result: $have_x" >&5
7560 echo "${ECHO_T}$have_x" >&6
7561 no_x=yes
7562 else
7563 # If each of the values was on the command line, it overrides each guess.
7564 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7565 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7566 # Update the cache value to reflect the command line values.
7567 ac_cv_have_x="have_x=yes \
7568 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7569 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7570 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7573 if test "$no_x" = yes; then
7574 # Not all programs may use this symbol, but it does not hurt to define it.
7576 cat >>confdefs.h <<\_ACEOF
7577 #define X_DISPLAY_MISSING 1
7578 _ACEOF
7580 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7581 else
7582 if test -n "$x_includes"; then
7583 X_CFLAGS="$X_CFLAGS -I$x_includes"
7586 # It would also be nice to do this for all -L options, not just this one.
7587 if test -n "$x_libraries"; then
7588 X_LIBS="$X_LIBS -L$x_libraries"
7589 # For Solaris; some versions of Sun CC require a space after -R and
7590 # others require no space. Words are not sufficient . . . .
7591 case `(uname -sr) 2>/dev/null` in
7592 "SunOS 5"*)
7593 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
7594 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
7595 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7596 if test x$gcc_no_link = xyes; then
7597 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7598 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7599 { (exit 1); exit 1; }; }
7601 cat >conftest.$ac_ext <<_ACEOF
7602 /* confdefs.h. */
7603 _ACEOF
7604 cat confdefs.h >>conftest.$ac_ext
7605 cat >>conftest.$ac_ext <<_ACEOF
7606 /* end confdefs.h. */
7609 main ()
7613 return 0;
7615 _ACEOF
7616 rm -f conftest.$ac_objext conftest$ac_exeext
7617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7618 (eval $ac_link) 2>conftest.er1
7619 ac_status=$?
7620 grep -v '^ *+' conftest.er1 >conftest.err
7621 rm -f conftest.er1
7622 cat conftest.err >&5
7623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624 (exit $ac_status); } &&
7625 { ac_try='test -z "$ac_c_werror_flag"
7626 || test ! -s conftest.err'
7627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7628 (eval $ac_try) 2>&5
7629 ac_status=$?
7630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631 (exit $ac_status); }; } &&
7632 { ac_try='test -s conftest$ac_exeext'
7633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7634 (eval $ac_try) 2>&5
7635 ac_status=$?
7636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637 (exit $ac_status); }; }; then
7638 ac_R_nospace=yes
7639 else
7640 echo "$as_me: failed program was:" >&5
7641 sed 's/^/| /' conftest.$ac_ext >&5
7643 ac_R_nospace=no
7645 rm -f conftest.err conftest.$ac_objext \
7646 conftest$ac_exeext conftest.$ac_ext
7647 if test $ac_R_nospace = yes; then
7648 echo "$as_me:$LINENO: result: no" >&5
7649 echo "${ECHO_T}no" >&6
7650 X_LIBS="$X_LIBS -R$x_libraries"
7651 else
7652 LIBS="$ac_xsave_LIBS -R $x_libraries"
7653 if test x$gcc_no_link = xyes; then
7654 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7655 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7656 { (exit 1); exit 1; }; }
7658 cat >conftest.$ac_ext <<_ACEOF
7659 /* confdefs.h. */
7660 _ACEOF
7661 cat confdefs.h >>conftest.$ac_ext
7662 cat >>conftest.$ac_ext <<_ACEOF
7663 /* end confdefs.h. */
7666 main ()
7670 return 0;
7672 _ACEOF
7673 rm -f conftest.$ac_objext conftest$ac_exeext
7674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7675 (eval $ac_link) 2>conftest.er1
7676 ac_status=$?
7677 grep -v '^ *+' conftest.er1 >conftest.err
7678 rm -f conftest.er1
7679 cat conftest.err >&5
7680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7681 (exit $ac_status); } &&
7682 { ac_try='test -z "$ac_c_werror_flag"
7683 || test ! -s conftest.err'
7684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7685 (eval $ac_try) 2>&5
7686 ac_status=$?
7687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688 (exit $ac_status); }; } &&
7689 { ac_try='test -s conftest$ac_exeext'
7690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7691 (eval $ac_try) 2>&5
7692 ac_status=$?
7693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7694 (exit $ac_status); }; }; then
7695 ac_R_space=yes
7696 else
7697 echo "$as_me: failed program was:" >&5
7698 sed 's/^/| /' conftest.$ac_ext >&5
7700 ac_R_space=no
7702 rm -f conftest.err conftest.$ac_objext \
7703 conftest$ac_exeext conftest.$ac_ext
7704 if test $ac_R_space = yes; then
7705 echo "$as_me:$LINENO: result: yes" >&5
7706 echo "${ECHO_T}yes" >&6
7707 X_LIBS="$X_LIBS -R $x_libraries"
7708 else
7709 echo "$as_me:$LINENO: result: neither works" >&5
7710 echo "${ECHO_T}neither works" >&6
7713 LIBS=$ac_xsave_LIBS
7714 esac
7717 # Check for system-dependent libraries X programs must link with.
7718 # Do this before checking for the system-independent R6 libraries
7719 # (-lICE), since we may need -lsocket or whatever for X linking.
7721 if test "$ISC" = yes; then
7722 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7723 else
7724 # Martyn Johnson says this is needed for Ultrix, if the X
7725 # libraries were built with DECnet support. And Karl Berry says
7726 # the Alpha needs dnet_stub (dnet does not exist).
7727 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7728 if test x$gcc_no_link = xyes; then
7729 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7730 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7731 { (exit 1); exit 1; }; }
7733 cat >conftest.$ac_ext <<_ACEOF
7734 /* confdefs.h. */
7735 _ACEOF
7736 cat confdefs.h >>conftest.$ac_ext
7737 cat >>conftest.$ac_ext <<_ACEOF
7738 /* end confdefs.h. */
7740 /* Override any gcc2 internal prototype to avoid an error. */
7741 #ifdef __cplusplus
7742 extern "C"
7743 #endif
7744 /* We use char because int might match the return type of a gcc2
7745 builtin and then its argument prototype would still apply. */
7746 char XOpenDisplay ();
7748 main ()
7750 XOpenDisplay ();
7752 return 0;
7754 _ACEOF
7755 rm -f conftest.$ac_objext conftest$ac_exeext
7756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7757 (eval $ac_link) 2>conftest.er1
7758 ac_status=$?
7759 grep -v '^ *+' conftest.er1 >conftest.err
7760 rm -f conftest.er1
7761 cat conftest.err >&5
7762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763 (exit $ac_status); } &&
7764 { ac_try='test -z "$ac_c_werror_flag"
7765 || test ! -s conftest.err'
7766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7767 (eval $ac_try) 2>&5
7768 ac_status=$?
7769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770 (exit $ac_status); }; } &&
7771 { ac_try='test -s conftest$ac_exeext'
7772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7773 (eval $ac_try) 2>&5
7774 ac_status=$?
7775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776 (exit $ac_status); }; }; then
7778 else
7779 echo "$as_me: failed program was:" >&5
7780 sed 's/^/| /' conftest.$ac_ext >&5
7782 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7783 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7784 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7785 echo $ECHO_N "(cached) $ECHO_C" >&6
7786 else
7787 ac_check_lib_save_LIBS=$LIBS
7788 LIBS="-ldnet $LIBS"
7789 if test x$gcc_no_link = xyes; then
7790 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7791 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7792 { (exit 1); exit 1; }; }
7794 cat >conftest.$ac_ext <<_ACEOF
7795 /* confdefs.h. */
7796 _ACEOF
7797 cat confdefs.h >>conftest.$ac_ext
7798 cat >>conftest.$ac_ext <<_ACEOF
7799 /* end confdefs.h. */
7801 /* Override any gcc2 internal prototype to avoid an error. */
7802 #ifdef __cplusplus
7803 extern "C"
7804 #endif
7805 /* We use char because int might match the return type of a gcc2
7806 builtin and then its argument prototype would still apply. */
7807 char dnet_ntoa ();
7809 main ()
7811 dnet_ntoa ();
7813 return 0;
7815 _ACEOF
7816 rm -f conftest.$ac_objext conftest$ac_exeext
7817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7818 (eval $ac_link) 2>conftest.er1
7819 ac_status=$?
7820 grep -v '^ *+' conftest.er1 >conftest.err
7821 rm -f conftest.er1
7822 cat conftest.err >&5
7823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824 (exit $ac_status); } &&
7825 { ac_try='test -z "$ac_c_werror_flag"
7826 || test ! -s conftest.err'
7827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7828 (eval $ac_try) 2>&5
7829 ac_status=$?
7830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); }; } &&
7832 { ac_try='test -s conftest$ac_exeext'
7833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7834 (eval $ac_try) 2>&5
7835 ac_status=$?
7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837 (exit $ac_status); }; }; then
7838 ac_cv_lib_dnet_dnet_ntoa=yes
7839 else
7840 echo "$as_me: failed program was:" >&5
7841 sed 's/^/| /' conftest.$ac_ext >&5
7843 ac_cv_lib_dnet_dnet_ntoa=no
7845 rm -f conftest.err conftest.$ac_objext \
7846 conftest$ac_exeext conftest.$ac_ext
7847 LIBS=$ac_check_lib_save_LIBS
7849 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7850 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7851 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7852 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7855 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7856 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
7857 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
7858 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
7859 echo $ECHO_N "(cached) $ECHO_C" >&6
7860 else
7861 ac_check_lib_save_LIBS=$LIBS
7862 LIBS="-ldnet_stub $LIBS"
7863 if test x$gcc_no_link = xyes; then
7864 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7865 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7866 { (exit 1); exit 1; }; }
7868 cat >conftest.$ac_ext <<_ACEOF
7869 /* confdefs.h. */
7870 _ACEOF
7871 cat confdefs.h >>conftest.$ac_ext
7872 cat >>conftest.$ac_ext <<_ACEOF
7873 /* end confdefs.h. */
7875 /* Override any gcc2 internal prototype to avoid an error. */
7876 #ifdef __cplusplus
7877 extern "C"
7878 #endif
7879 /* We use char because int might match the return type of a gcc2
7880 builtin and then its argument prototype would still apply. */
7881 char dnet_ntoa ();
7883 main ()
7885 dnet_ntoa ();
7887 return 0;
7889 _ACEOF
7890 rm -f conftest.$ac_objext conftest$ac_exeext
7891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7892 (eval $ac_link) 2>conftest.er1
7893 ac_status=$?
7894 grep -v '^ *+' conftest.er1 >conftest.err
7895 rm -f conftest.er1
7896 cat conftest.err >&5
7897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898 (exit $ac_status); } &&
7899 { ac_try='test -z "$ac_c_werror_flag"
7900 || test ! -s conftest.err'
7901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7902 (eval $ac_try) 2>&5
7903 ac_status=$?
7904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7905 (exit $ac_status); }; } &&
7906 { ac_try='test -s conftest$ac_exeext'
7907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7908 (eval $ac_try) 2>&5
7909 ac_status=$?
7910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911 (exit $ac_status); }; }; then
7912 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7913 else
7914 echo "$as_me: failed program was:" >&5
7915 sed 's/^/| /' conftest.$ac_ext >&5
7917 ac_cv_lib_dnet_stub_dnet_ntoa=no
7919 rm -f conftest.err conftest.$ac_objext \
7920 conftest$ac_exeext conftest.$ac_ext
7921 LIBS=$ac_check_lib_save_LIBS
7923 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7924 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
7925 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
7926 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7931 rm -f conftest.err conftest.$ac_objext \
7932 conftest$ac_exeext conftest.$ac_ext
7933 LIBS="$ac_xsave_LIBS"
7935 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7936 # to get the SysV transport functions.
7937 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7938 # needs -lnsl.
7939 # The nsl library prevents programs from opening the X display
7940 # on Irix 5.2, according to T.E. Dickey.
7941 # The functions gethostbyname, getservbyname, and inet_addr are
7942 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7943 echo "$as_me:$LINENO: checking for gethostbyname" >&5
7944 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
7945 if test "${ac_cv_func_gethostbyname+set}" = set; then
7946 echo $ECHO_N "(cached) $ECHO_C" >&6
7947 else
7948 if test x$gcc_no_link = xyes; then
7949 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7950 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7951 { (exit 1); exit 1; }; }
7953 cat >conftest.$ac_ext <<_ACEOF
7954 /* confdefs.h. */
7955 _ACEOF
7956 cat confdefs.h >>conftest.$ac_ext
7957 cat >>conftest.$ac_ext <<_ACEOF
7958 /* end confdefs.h. */
7959 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
7960 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7961 #define gethostbyname innocuous_gethostbyname
7963 /* System header to define __stub macros and hopefully few prototypes,
7964 which can conflict with char gethostbyname (); below.
7965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7966 <limits.h> exists even on freestanding compilers. */
7968 #ifdef __STDC__
7969 # include <limits.h>
7970 #else
7971 # include <assert.h>
7972 #endif
7974 #undef gethostbyname
7976 /* Override any gcc2 internal prototype to avoid an error. */
7977 #ifdef __cplusplus
7978 extern "C"
7980 #endif
7981 /* We use char because int might match the return type of a gcc2
7982 builtin and then its argument prototype would still apply. */
7983 char gethostbyname ();
7984 /* The GNU C library defines this for functions which it implements
7985 to always fail with ENOSYS. Some functions are actually named
7986 something starting with __ and the normal name is an alias. */
7987 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7988 choke me
7989 #else
7990 char (*f) () = gethostbyname;
7991 #endif
7992 #ifdef __cplusplus
7994 #endif
7997 main ()
7999 return f != gethostbyname;
8001 return 0;
8003 _ACEOF
8004 rm -f conftest.$ac_objext conftest$ac_exeext
8005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8006 (eval $ac_link) 2>conftest.er1
8007 ac_status=$?
8008 grep -v '^ *+' conftest.er1 >conftest.err
8009 rm -f conftest.er1
8010 cat conftest.err >&5
8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 (exit $ac_status); } &&
8013 { ac_try='test -z "$ac_c_werror_flag"
8014 || test ! -s conftest.err'
8015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8016 (eval $ac_try) 2>&5
8017 ac_status=$?
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); }; } &&
8020 { ac_try='test -s conftest$ac_exeext'
8021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8022 (eval $ac_try) 2>&5
8023 ac_status=$?
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); }; }; then
8026 ac_cv_func_gethostbyname=yes
8027 else
8028 echo "$as_me: failed program was:" >&5
8029 sed 's/^/| /' conftest.$ac_ext >&5
8031 ac_cv_func_gethostbyname=no
8033 rm -f conftest.err conftest.$ac_objext \
8034 conftest$ac_exeext conftest.$ac_ext
8036 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8037 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8039 if test $ac_cv_func_gethostbyname = no; then
8040 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8041 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8042 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8043 echo $ECHO_N "(cached) $ECHO_C" >&6
8044 else
8045 ac_check_lib_save_LIBS=$LIBS
8046 LIBS="-lnsl $LIBS"
8047 if test x$gcc_no_link = xyes; then
8048 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8049 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8050 { (exit 1); exit 1; }; }
8052 cat >conftest.$ac_ext <<_ACEOF
8053 /* confdefs.h. */
8054 _ACEOF
8055 cat confdefs.h >>conftest.$ac_ext
8056 cat >>conftest.$ac_ext <<_ACEOF
8057 /* end confdefs.h. */
8059 /* Override any gcc2 internal prototype to avoid an error. */
8060 #ifdef __cplusplus
8061 extern "C"
8062 #endif
8063 /* We use char because int might match the return type of a gcc2
8064 builtin and then its argument prototype would still apply. */
8065 char gethostbyname ();
8067 main ()
8069 gethostbyname ();
8071 return 0;
8073 _ACEOF
8074 rm -f conftest.$ac_objext conftest$ac_exeext
8075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8076 (eval $ac_link) 2>conftest.er1
8077 ac_status=$?
8078 grep -v '^ *+' conftest.er1 >conftest.err
8079 rm -f conftest.er1
8080 cat conftest.err >&5
8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 (exit $ac_status); } &&
8083 { ac_try='test -z "$ac_c_werror_flag"
8084 || test ! -s conftest.err'
8085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8086 (eval $ac_try) 2>&5
8087 ac_status=$?
8088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089 (exit $ac_status); }; } &&
8090 { ac_try='test -s conftest$ac_exeext'
8091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8092 (eval $ac_try) 2>&5
8093 ac_status=$?
8094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8095 (exit $ac_status); }; }; then
8096 ac_cv_lib_nsl_gethostbyname=yes
8097 else
8098 echo "$as_me: failed program was:" >&5
8099 sed 's/^/| /' conftest.$ac_ext >&5
8101 ac_cv_lib_nsl_gethostbyname=no
8103 rm -f conftest.err conftest.$ac_objext \
8104 conftest$ac_exeext conftest.$ac_ext
8105 LIBS=$ac_check_lib_save_LIBS
8107 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8108 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8109 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8110 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8113 if test $ac_cv_lib_nsl_gethostbyname = no; then
8114 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8115 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8116 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8117 echo $ECHO_N "(cached) $ECHO_C" >&6
8118 else
8119 ac_check_lib_save_LIBS=$LIBS
8120 LIBS="-lbsd $LIBS"
8121 if test x$gcc_no_link = xyes; then
8122 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8123 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8124 { (exit 1); exit 1; }; }
8126 cat >conftest.$ac_ext <<_ACEOF
8127 /* confdefs.h. */
8128 _ACEOF
8129 cat confdefs.h >>conftest.$ac_ext
8130 cat >>conftest.$ac_ext <<_ACEOF
8131 /* end confdefs.h. */
8133 /* Override any gcc2 internal prototype to avoid an error. */
8134 #ifdef __cplusplus
8135 extern "C"
8136 #endif
8137 /* We use char because int might match the return type of a gcc2
8138 builtin and then its argument prototype would still apply. */
8139 char gethostbyname ();
8141 main ()
8143 gethostbyname ();
8145 return 0;
8147 _ACEOF
8148 rm -f conftest.$ac_objext conftest$ac_exeext
8149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8150 (eval $ac_link) 2>conftest.er1
8151 ac_status=$?
8152 grep -v '^ *+' conftest.er1 >conftest.err
8153 rm -f conftest.er1
8154 cat conftest.err >&5
8155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156 (exit $ac_status); } &&
8157 { ac_try='test -z "$ac_c_werror_flag"
8158 || test ! -s conftest.err'
8159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8160 (eval $ac_try) 2>&5
8161 ac_status=$?
8162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163 (exit $ac_status); }; } &&
8164 { ac_try='test -s conftest$ac_exeext'
8165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8166 (eval $ac_try) 2>&5
8167 ac_status=$?
8168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169 (exit $ac_status); }; }; then
8170 ac_cv_lib_bsd_gethostbyname=yes
8171 else
8172 echo "$as_me: failed program was:" >&5
8173 sed 's/^/| /' conftest.$ac_ext >&5
8175 ac_cv_lib_bsd_gethostbyname=no
8177 rm -f conftest.err conftest.$ac_objext \
8178 conftest$ac_exeext conftest.$ac_ext
8179 LIBS=$ac_check_lib_save_LIBS
8181 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8182 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8183 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8184 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8190 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8191 # socket/setsockopt and other routines are undefined under SCO ODT
8192 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8193 # on later versions), says Simon Leinen: it contains gethostby*
8194 # variants that don't use the name server (or something). -lsocket
8195 # must be given before -lnsl if both are needed. We assume that
8196 # if connect needs -lnsl, so does gethostbyname.
8197 echo "$as_me:$LINENO: checking for connect" >&5
8198 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8199 if test "${ac_cv_func_connect+set}" = set; then
8200 echo $ECHO_N "(cached) $ECHO_C" >&6
8201 else
8202 if test x$gcc_no_link = xyes; then
8203 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8204 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8205 { (exit 1); exit 1; }; }
8207 cat >conftest.$ac_ext <<_ACEOF
8208 /* confdefs.h. */
8209 _ACEOF
8210 cat confdefs.h >>conftest.$ac_ext
8211 cat >>conftest.$ac_ext <<_ACEOF
8212 /* end confdefs.h. */
8213 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
8214 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8215 #define connect innocuous_connect
8217 /* System header to define __stub macros and hopefully few prototypes,
8218 which can conflict with char connect (); below.
8219 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8220 <limits.h> exists even on freestanding compilers. */
8222 #ifdef __STDC__
8223 # include <limits.h>
8224 #else
8225 # include <assert.h>
8226 #endif
8228 #undef connect
8230 /* Override any gcc2 internal prototype to avoid an error. */
8231 #ifdef __cplusplus
8232 extern "C"
8234 #endif
8235 /* We use char because int might match the return type of a gcc2
8236 builtin and then its argument prototype would still apply. */
8237 char connect ();
8238 /* The GNU C library defines this for functions which it implements
8239 to always fail with ENOSYS. Some functions are actually named
8240 something starting with __ and the normal name is an alias. */
8241 #if defined (__stub_connect) || defined (__stub___connect)
8242 choke me
8243 #else
8244 char (*f) () = connect;
8245 #endif
8246 #ifdef __cplusplus
8248 #endif
8251 main ()
8253 return f != connect;
8255 return 0;
8257 _ACEOF
8258 rm -f conftest.$ac_objext conftest$ac_exeext
8259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8260 (eval $ac_link) 2>conftest.er1
8261 ac_status=$?
8262 grep -v '^ *+' conftest.er1 >conftest.err
8263 rm -f conftest.er1
8264 cat conftest.err >&5
8265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266 (exit $ac_status); } &&
8267 { ac_try='test -z "$ac_c_werror_flag"
8268 || test ! -s conftest.err'
8269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8270 (eval $ac_try) 2>&5
8271 ac_status=$?
8272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273 (exit $ac_status); }; } &&
8274 { ac_try='test -s conftest$ac_exeext'
8275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8276 (eval $ac_try) 2>&5
8277 ac_status=$?
8278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279 (exit $ac_status); }; }; then
8280 ac_cv_func_connect=yes
8281 else
8282 echo "$as_me: failed program was:" >&5
8283 sed 's/^/| /' conftest.$ac_ext >&5
8285 ac_cv_func_connect=no
8287 rm -f conftest.err conftest.$ac_objext \
8288 conftest$ac_exeext conftest.$ac_ext
8290 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8291 echo "${ECHO_T}$ac_cv_func_connect" >&6
8293 if test $ac_cv_func_connect = no; then
8294 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8295 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8296 if test "${ac_cv_lib_socket_connect+set}" = set; then
8297 echo $ECHO_N "(cached) $ECHO_C" >&6
8298 else
8299 ac_check_lib_save_LIBS=$LIBS
8300 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8301 if test x$gcc_no_link = xyes; then
8302 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8303 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8304 { (exit 1); exit 1; }; }
8306 cat >conftest.$ac_ext <<_ACEOF
8307 /* confdefs.h. */
8308 _ACEOF
8309 cat confdefs.h >>conftest.$ac_ext
8310 cat >>conftest.$ac_ext <<_ACEOF
8311 /* end confdefs.h. */
8313 /* Override any gcc2 internal prototype to avoid an error. */
8314 #ifdef __cplusplus
8315 extern "C"
8316 #endif
8317 /* We use char because int might match the return type of a gcc2
8318 builtin and then its argument prototype would still apply. */
8319 char connect ();
8321 main ()
8323 connect ();
8325 return 0;
8327 _ACEOF
8328 rm -f conftest.$ac_objext conftest$ac_exeext
8329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8330 (eval $ac_link) 2>conftest.er1
8331 ac_status=$?
8332 grep -v '^ *+' conftest.er1 >conftest.err
8333 rm -f conftest.er1
8334 cat conftest.err >&5
8335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336 (exit $ac_status); } &&
8337 { ac_try='test -z "$ac_c_werror_flag"
8338 || test ! -s conftest.err'
8339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8340 (eval $ac_try) 2>&5
8341 ac_status=$?
8342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343 (exit $ac_status); }; } &&
8344 { ac_try='test -s conftest$ac_exeext'
8345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8346 (eval $ac_try) 2>&5
8347 ac_status=$?
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); }; }; then
8350 ac_cv_lib_socket_connect=yes
8351 else
8352 echo "$as_me: failed program was:" >&5
8353 sed 's/^/| /' conftest.$ac_ext >&5
8355 ac_cv_lib_socket_connect=no
8357 rm -f conftest.err conftest.$ac_objext \
8358 conftest$ac_exeext conftest.$ac_ext
8359 LIBS=$ac_check_lib_save_LIBS
8361 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8362 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8363 if test $ac_cv_lib_socket_connect = yes; then
8364 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8369 # Guillermo Gomez says -lposix is necessary on A/UX.
8370 echo "$as_me:$LINENO: checking for remove" >&5
8371 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8372 if test "${ac_cv_func_remove+set}" = set; then
8373 echo $ECHO_N "(cached) $ECHO_C" >&6
8374 else
8375 if test x$gcc_no_link = xyes; then
8376 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8377 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8378 { (exit 1); exit 1; }; }
8380 cat >conftest.$ac_ext <<_ACEOF
8381 /* confdefs.h. */
8382 _ACEOF
8383 cat confdefs.h >>conftest.$ac_ext
8384 cat >>conftest.$ac_ext <<_ACEOF
8385 /* end confdefs.h. */
8386 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
8387 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8388 #define remove innocuous_remove
8390 /* System header to define __stub macros and hopefully few prototypes,
8391 which can conflict with char remove (); below.
8392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8393 <limits.h> exists even on freestanding compilers. */
8395 #ifdef __STDC__
8396 # include <limits.h>
8397 #else
8398 # include <assert.h>
8399 #endif
8401 #undef remove
8403 /* Override any gcc2 internal prototype to avoid an error. */
8404 #ifdef __cplusplus
8405 extern "C"
8407 #endif
8408 /* We use char because int might match the return type of a gcc2
8409 builtin and then its argument prototype would still apply. */
8410 char remove ();
8411 /* The GNU C library defines this for functions which it implements
8412 to always fail with ENOSYS. Some functions are actually named
8413 something starting with __ and the normal name is an alias. */
8414 #if defined (__stub_remove) || defined (__stub___remove)
8415 choke me
8416 #else
8417 char (*f) () = remove;
8418 #endif
8419 #ifdef __cplusplus
8421 #endif
8424 main ()
8426 return f != remove;
8428 return 0;
8430 _ACEOF
8431 rm -f conftest.$ac_objext conftest$ac_exeext
8432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8433 (eval $ac_link) 2>conftest.er1
8434 ac_status=$?
8435 grep -v '^ *+' conftest.er1 >conftest.err
8436 rm -f conftest.er1
8437 cat conftest.err >&5
8438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8439 (exit $ac_status); } &&
8440 { ac_try='test -z "$ac_c_werror_flag"
8441 || test ! -s conftest.err'
8442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8443 (eval $ac_try) 2>&5
8444 ac_status=$?
8445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446 (exit $ac_status); }; } &&
8447 { ac_try='test -s conftest$ac_exeext'
8448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8449 (eval $ac_try) 2>&5
8450 ac_status=$?
8451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 (exit $ac_status); }; }; then
8453 ac_cv_func_remove=yes
8454 else
8455 echo "$as_me: failed program was:" >&5
8456 sed 's/^/| /' conftest.$ac_ext >&5
8458 ac_cv_func_remove=no
8460 rm -f conftest.err conftest.$ac_objext \
8461 conftest$ac_exeext conftest.$ac_ext
8463 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8464 echo "${ECHO_T}$ac_cv_func_remove" >&6
8466 if test $ac_cv_func_remove = no; then
8467 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8468 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8469 if test "${ac_cv_lib_posix_remove+set}" = set; then
8470 echo $ECHO_N "(cached) $ECHO_C" >&6
8471 else
8472 ac_check_lib_save_LIBS=$LIBS
8473 LIBS="-lposix $LIBS"
8474 if test x$gcc_no_link = xyes; then
8475 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8476 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8477 { (exit 1); exit 1; }; }
8479 cat >conftest.$ac_ext <<_ACEOF
8480 /* confdefs.h. */
8481 _ACEOF
8482 cat confdefs.h >>conftest.$ac_ext
8483 cat >>conftest.$ac_ext <<_ACEOF
8484 /* end confdefs.h. */
8486 /* Override any gcc2 internal prototype to avoid an error. */
8487 #ifdef __cplusplus
8488 extern "C"
8489 #endif
8490 /* We use char because int might match the return type of a gcc2
8491 builtin and then its argument prototype would still apply. */
8492 char remove ();
8494 main ()
8496 remove ();
8498 return 0;
8500 _ACEOF
8501 rm -f conftest.$ac_objext conftest$ac_exeext
8502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8503 (eval $ac_link) 2>conftest.er1
8504 ac_status=$?
8505 grep -v '^ *+' conftest.er1 >conftest.err
8506 rm -f conftest.er1
8507 cat conftest.err >&5
8508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509 (exit $ac_status); } &&
8510 { ac_try='test -z "$ac_c_werror_flag"
8511 || test ! -s conftest.err'
8512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8513 (eval $ac_try) 2>&5
8514 ac_status=$?
8515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516 (exit $ac_status); }; } &&
8517 { ac_try='test -s conftest$ac_exeext'
8518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8519 (eval $ac_try) 2>&5
8520 ac_status=$?
8521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522 (exit $ac_status); }; }; then
8523 ac_cv_lib_posix_remove=yes
8524 else
8525 echo "$as_me: failed program was:" >&5
8526 sed 's/^/| /' conftest.$ac_ext >&5
8528 ac_cv_lib_posix_remove=no
8530 rm -f conftest.err conftest.$ac_objext \
8531 conftest$ac_exeext conftest.$ac_ext
8532 LIBS=$ac_check_lib_save_LIBS
8534 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8535 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8536 if test $ac_cv_lib_posix_remove = yes; then
8537 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8542 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8543 echo "$as_me:$LINENO: checking for shmat" >&5
8544 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8545 if test "${ac_cv_func_shmat+set}" = set; then
8546 echo $ECHO_N "(cached) $ECHO_C" >&6
8547 else
8548 if test x$gcc_no_link = xyes; then
8549 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8550 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8551 { (exit 1); exit 1; }; }
8553 cat >conftest.$ac_ext <<_ACEOF
8554 /* confdefs.h. */
8555 _ACEOF
8556 cat confdefs.h >>conftest.$ac_ext
8557 cat >>conftest.$ac_ext <<_ACEOF
8558 /* end confdefs.h. */
8559 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
8560 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8561 #define shmat innocuous_shmat
8563 /* System header to define __stub macros and hopefully few prototypes,
8564 which can conflict with char shmat (); below.
8565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8566 <limits.h> exists even on freestanding compilers. */
8568 #ifdef __STDC__
8569 # include <limits.h>
8570 #else
8571 # include <assert.h>
8572 #endif
8574 #undef shmat
8576 /* Override any gcc2 internal prototype to avoid an error. */
8577 #ifdef __cplusplus
8578 extern "C"
8580 #endif
8581 /* We use char because int might match the return type of a gcc2
8582 builtin and then its argument prototype would still apply. */
8583 char shmat ();
8584 /* The GNU C library defines this for functions which it implements
8585 to always fail with ENOSYS. Some functions are actually named
8586 something starting with __ and the normal name is an alias. */
8587 #if defined (__stub_shmat) || defined (__stub___shmat)
8588 choke me
8589 #else
8590 char (*f) () = shmat;
8591 #endif
8592 #ifdef __cplusplus
8594 #endif
8597 main ()
8599 return f != shmat;
8601 return 0;
8603 _ACEOF
8604 rm -f conftest.$ac_objext conftest$ac_exeext
8605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8606 (eval $ac_link) 2>conftest.er1
8607 ac_status=$?
8608 grep -v '^ *+' conftest.er1 >conftest.err
8609 rm -f conftest.er1
8610 cat conftest.err >&5
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); } &&
8613 { ac_try='test -z "$ac_c_werror_flag"
8614 || test ! -s conftest.err'
8615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8616 (eval $ac_try) 2>&5
8617 ac_status=$?
8618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619 (exit $ac_status); }; } &&
8620 { ac_try='test -s conftest$ac_exeext'
8621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8622 (eval $ac_try) 2>&5
8623 ac_status=$?
8624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625 (exit $ac_status); }; }; then
8626 ac_cv_func_shmat=yes
8627 else
8628 echo "$as_me: failed program was:" >&5
8629 sed 's/^/| /' conftest.$ac_ext >&5
8631 ac_cv_func_shmat=no
8633 rm -f conftest.err conftest.$ac_objext \
8634 conftest$ac_exeext conftest.$ac_ext
8636 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8637 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8639 if test $ac_cv_func_shmat = no; then
8640 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8641 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8642 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8643 echo $ECHO_N "(cached) $ECHO_C" >&6
8644 else
8645 ac_check_lib_save_LIBS=$LIBS
8646 LIBS="-lipc $LIBS"
8647 if test x$gcc_no_link = xyes; then
8648 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8649 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8650 { (exit 1); exit 1; }; }
8652 cat >conftest.$ac_ext <<_ACEOF
8653 /* confdefs.h. */
8654 _ACEOF
8655 cat confdefs.h >>conftest.$ac_ext
8656 cat >>conftest.$ac_ext <<_ACEOF
8657 /* end confdefs.h. */
8659 /* Override any gcc2 internal prototype to avoid an error. */
8660 #ifdef __cplusplus
8661 extern "C"
8662 #endif
8663 /* We use char because int might match the return type of a gcc2
8664 builtin and then its argument prototype would still apply. */
8665 char shmat ();
8667 main ()
8669 shmat ();
8671 return 0;
8673 _ACEOF
8674 rm -f conftest.$ac_objext conftest$ac_exeext
8675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8676 (eval $ac_link) 2>conftest.er1
8677 ac_status=$?
8678 grep -v '^ *+' conftest.er1 >conftest.err
8679 rm -f conftest.er1
8680 cat conftest.err >&5
8681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682 (exit $ac_status); } &&
8683 { ac_try='test -z "$ac_c_werror_flag"
8684 || test ! -s conftest.err'
8685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8686 (eval $ac_try) 2>&5
8687 ac_status=$?
8688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689 (exit $ac_status); }; } &&
8690 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
8696 ac_cv_lib_ipc_shmat=yes
8697 else
8698 echo "$as_me: failed program was:" >&5
8699 sed 's/^/| /' conftest.$ac_ext >&5
8701 ac_cv_lib_ipc_shmat=no
8703 rm -f conftest.err conftest.$ac_objext \
8704 conftest$ac_exeext conftest.$ac_ext
8705 LIBS=$ac_check_lib_save_LIBS
8707 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
8708 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8709 if test $ac_cv_lib_ipc_shmat = yes; then
8710 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8716 # Check for libraries that X11R6 Xt/Xaw programs need.
8717 ac_save_LDFLAGS=$LDFLAGS
8718 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8719 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8720 # check for ICE first), but we must link in the order -lSM -lICE or
8721 # we get undefined symbols. So assume we have SM if we have ICE.
8722 # These have to be linked with before -lX11, unlike the other
8723 # libraries we check for below, so use a different variable.
8724 # John Interrante, Karl Berry
8725 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
8726 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
8727 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8728 echo $ECHO_N "(cached) $ECHO_C" >&6
8729 else
8730 ac_check_lib_save_LIBS=$LIBS
8731 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8732 if test x$gcc_no_link = xyes; then
8733 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8734 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8735 { (exit 1); exit 1; }; }
8737 cat >conftest.$ac_ext <<_ACEOF
8738 /* confdefs.h. */
8739 _ACEOF
8740 cat confdefs.h >>conftest.$ac_ext
8741 cat >>conftest.$ac_ext <<_ACEOF
8742 /* end confdefs.h. */
8744 /* Override any gcc2 internal prototype to avoid an error. */
8745 #ifdef __cplusplus
8746 extern "C"
8747 #endif
8748 /* We use char because int might match the return type of a gcc2
8749 builtin and then its argument prototype would still apply. */
8750 char IceConnectionNumber ();
8752 main ()
8754 IceConnectionNumber ();
8756 return 0;
8758 _ACEOF
8759 rm -f conftest.$ac_objext conftest$ac_exeext
8760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8761 (eval $ac_link) 2>conftest.er1
8762 ac_status=$?
8763 grep -v '^ *+' conftest.er1 >conftest.err
8764 rm -f conftest.er1
8765 cat conftest.err >&5
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); } &&
8768 { ac_try='test -z "$ac_c_werror_flag"
8769 || test ! -s conftest.err'
8770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8771 (eval $ac_try) 2>&5
8772 ac_status=$?
8773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774 (exit $ac_status); }; } &&
8775 { ac_try='test -s conftest$ac_exeext'
8776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8777 (eval $ac_try) 2>&5
8778 ac_status=$?
8779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780 (exit $ac_status); }; }; then
8781 ac_cv_lib_ICE_IceConnectionNumber=yes
8782 else
8783 echo "$as_me: failed program was:" >&5
8784 sed 's/^/| /' conftest.$ac_ext >&5
8786 ac_cv_lib_ICE_IceConnectionNumber=no
8788 rm -f conftest.err conftest.$ac_objext \
8789 conftest$ac_exeext conftest.$ac_ext
8790 LIBS=$ac_check_lib_save_LIBS
8792 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8793 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
8794 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
8795 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8798 LDFLAGS=$ac_save_LDFLAGS
8803 # determine whether to enable the cairo GTK Graphics2D backend
8804 # Check whether --enable-gtk-cairo or --disable-gtk-cairo was given.
8805 if test "${enable_gtk_cairo+set}" = set; then
8806 enableval="$enable_gtk_cairo"
8811 if test "x${enable_gtk_cairo}" = xyes; then
8812 GTK_CAIRO_TRUE=
8813 GTK_CAIRO_FALSE='#'
8814 else
8815 GTK_CAIRO_TRUE='#'
8816 GTK_CAIRO_FALSE=
8819 if test "x${enable_gtk_cairo}" = xyes
8820 then
8822 succeeded=no
8824 if test -z "$PKG_CONFIG"; then
8825 # Extract the first word of "pkg-config", so it can be a program name with args.
8826 set dummy pkg-config; ac_word=$2
8827 echo "$as_me:$LINENO: checking for $ac_word" >&5
8828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8829 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8830 echo $ECHO_N "(cached) $ECHO_C" >&6
8831 else
8832 case $PKG_CONFIG in
8833 [\\/]* | ?:[\\/]*)
8834 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8838 for as_dir in $PATH
8840 IFS=$as_save_IFS
8841 test -z "$as_dir" && as_dir=.
8842 for ac_exec_ext in '' $ac_executable_extensions; do
8843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8844 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8846 break 2
8848 done
8849 done
8851 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8853 esac
8855 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8857 if test -n "$PKG_CONFIG"; then
8858 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8859 echo "${ECHO_T}$PKG_CONFIG" >&6
8860 else
8861 echo "$as_me:$LINENO: result: no" >&5
8862 echo "${ECHO_T}no" >&6
8867 if test "$PKG_CONFIG" = "no" ; then
8868 echo "*** The pkg-config script could not be found. Make sure it is"
8869 echo "*** in your path, or set the PKG_CONFIG environment variable"
8870 echo "*** to the full path to pkg-config."
8871 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8872 else
8873 PKG_CONFIG_MIN_VERSION=0.9.0
8874 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8875 echo "$as_me:$LINENO: checking for cairo" >&5
8876 echo $ECHO_N "checking for cairo... $ECHO_C" >&6
8878 if $PKG_CONFIG --exists "cairo" ; then
8879 echo "$as_me:$LINENO: result: yes" >&5
8880 echo "${ECHO_T}yes" >&6
8881 succeeded=yes
8883 echo "$as_me:$LINENO: checking CAIRO_CFLAGS" >&5
8884 echo $ECHO_N "checking CAIRO_CFLAGS... $ECHO_C" >&6
8885 CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo"`
8886 echo "$as_me:$LINENO: result: $CAIRO_CFLAGS" >&5
8887 echo "${ECHO_T}$CAIRO_CFLAGS" >&6
8889 echo "$as_me:$LINENO: checking CAIRO_LIBS" >&5
8890 echo $ECHO_N "checking CAIRO_LIBS... $ECHO_C" >&6
8891 CAIRO_LIBS=`$PKG_CONFIG --libs "cairo"`
8892 echo "$as_me:$LINENO: result: $CAIRO_LIBS" >&5
8893 echo "${ECHO_T}$CAIRO_LIBS" >&6
8894 else
8895 CAIRO_CFLAGS=""
8896 CAIRO_LIBS=""
8897 ## If we have a custom action on failure, don't print errors, but
8898 ## do set a variable so people can do so.
8899 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
8900 echo $CAIRO_PKG_ERRORS
8905 else
8906 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8907 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8911 if test $succeeded = yes; then
8913 else
8914 { { 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
8915 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;}
8916 { (exit 1); exit 1; }; }
8920 succeeded=no
8922 if test -z "$PKG_CONFIG"; then
8923 # Extract the first word of "pkg-config", so it can be a program name with args.
8924 set dummy pkg-config; ac_word=$2
8925 echo "$as_me:$LINENO: checking for $ac_word" >&5
8926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8927 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8928 echo $ECHO_N "(cached) $ECHO_C" >&6
8929 else
8930 case $PKG_CONFIG in
8931 [\\/]* | ?:[\\/]*)
8932 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8936 for as_dir in $PATH
8938 IFS=$as_save_IFS
8939 test -z "$as_dir" && as_dir=.
8940 for ac_exec_ext in '' $ac_executable_extensions; do
8941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8942 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8944 break 2
8946 done
8947 done
8949 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8951 esac
8953 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8955 if test -n "$PKG_CONFIG"; then
8956 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8957 echo "${ECHO_T}$PKG_CONFIG" >&6
8958 else
8959 echo "$as_me:$LINENO: result: no" >&5
8960 echo "${ECHO_T}no" >&6
8965 if test "$PKG_CONFIG" = "no" ; then
8966 echo "*** The pkg-config script could not be found. Make sure it is"
8967 echo "*** in your path, or set the PKG_CONFIG environment variable"
8968 echo "*** to the full path to pkg-config."
8969 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8970 else
8971 PKG_CONFIG_MIN_VERSION=0.9.0
8972 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8973 echo "$as_me:$LINENO: checking for pangoft2" >&5
8974 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
8976 if $PKG_CONFIG --exists "pangoft2" ; then
8977 echo "$as_me:$LINENO: result: yes" >&5
8978 echo "${ECHO_T}yes" >&6
8979 succeeded=yes
8981 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
8982 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
8983 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
8984 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
8985 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
8987 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
8988 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
8989 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
8990 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
8991 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
8992 else
8993 PANGOFT2_CFLAGS=""
8994 PANGOFT2_LIBS=""
8995 ## If we have a custom action on failure, don't print errors, but
8996 ## do set a variable so people can do so.
8997 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
8998 echo $PANGOFT2_PKG_ERRORS
9003 else
9004 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9005 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9009 if test $succeeded = yes; then
9011 else
9012 { { 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
9013 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;}
9014 { (exit 1); exit 1; }; }
9023 # FIXME: this should be _libs on some hosts.
9024 libsubdir=.libs
9026 # extra LD Flags which are required for targets
9027 case "${host}" in
9028 *-*-darwin[0-7].*)
9029 # For now we have to disable it on darwin[8-9] because it slows down
9030 # the linking phase. A possible bug in ld?
9031 # on Darwin -single_module speeds up loading of the dynamic libraries.
9032 extra_ldflags_libjava=-Wl,-single_module
9034 esac
9037 # Allow the GC to be disabled. Can be useful when debugging.
9038 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
9039 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
9040 # Check whether --enable-java-gc or --disable-java-gc was given.
9041 if test "${enable_java_gc+set}" = set; then
9042 enableval="$enable_java_gc"
9043 GC=$enableval
9044 else
9045 GC=boehm
9047 GCLIBS=
9048 GCINCS=
9049 GCDEPS=
9050 GCSPEC=
9051 JC1GCSPEC=
9052 GCTESTSPEC=
9053 case "$GC" in
9054 boehm)
9055 echo "$as_me:$LINENO: result: boehm" >&5
9056 echo "${ECHO_T}boehm" >&6
9057 GCLIBS=../boehm-gc/libgcjgc_convenience.la
9058 JC1GCSPEC='-fuse-boehm-gc'
9059 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
9060 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
9061 GCOBJS=boehm.lo
9062 GCHDR=boehm-gc.h
9063 # The POSIX thread support needs to know this.
9065 cat >>confdefs.h <<\_ACEOF
9066 #define HAVE_BOEHM_GC 1
9067 _ACEOF
9071 echo "$as_me:$LINENO: result: none" >&5
9072 echo "${ECHO_T}none" >&6
9073 GCHDR=no-gc.h
9076 { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
9077 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
9078 { (exit 1); exit 1; }; }
9080 esac
9087 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
9091 if test "$GC" = boehm; then
9092 USING_BOEHMGC_TRUE=
9093 USING_BOEHMGC_FALSE='#'
9094 else
9095 USING_BOEHMGC_TRUE='#'
9096 USING_BOEHMGC_FALSE=
9101 if test "$GC" = no; then
9102 USING_NOGC_TRUE=
9103 USING_NOGC_FALSE='#'
9104 else
9105 USING_NOGC_TRUE='#'
9106 USING_NOGC_FALSE=
9111 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
9112 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
9113 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
9114 echo "$as_me:$LINENO: result: $THREADS" >&5
9115 echo "${ECHO_T}$THREADS" >&6
9117 case "$THREADS" in
9118 no | none | single)
9119 THREADS=none
9121 posix | posix95 | pthreads)
9122 THREADS=posix
9123 case "$host" in
9124 *-*-linux*)
9126 cat >>confdefs.h <<\_ACEOF
9127 #define LINUX_THREADS 1
9128 _ACEOF
9131 esac
9133 win32)
9135 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
9136 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
9137 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
9138 { (exit 1); exit 1; }; }
9141 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
9142 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
9143 { (exit 1); exit 1; }; }
9145 esac
9147 THREADCXXFLAGS=
9148 THREADLDFLAGS=
9149 THREADLIBS=
9150 THREADINCS=
9151 THREADDEPS=
9152 THREADH=
9153 THREADSPEC=
9154 case "$THREADS" in
9155 posix)
9156 case "$host" in
9157 *-*-cygwin*)
9158 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
9160 *-*-freebsd[1234]*)
9161 # Before FreeBSD 5, it didn't have -lpthread (or any library which
9162 # merely adds pthread_* functions) but it does have a -pthread switch
9163 # which is required at link-time to select -lc_r *instead* of -lc.
9164 THREADLDFLAGS=-pthread
9165 # Don't set THREADSPEC here as might be expected since -pthread is
9166 # not processed when found within a spec file, it must come from
9167 # the command line. For now, the user must provide the -pthread
9168 # switch to link code compiled with gcj. In future, consider adding
9169 # support for weak references to pthread_* functions ala gthr.h API.
9170 THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
9172 *-*-freebsd*)
9173 # FreeBSD 5 implements a model much closer to other modern UNIX
9174 # which support threads. However, it still does not support
9175 # -lpthread.
9176 THREADLDFLAGS=-pthread
9177 THREADSPEC=-lc_r
9179 alpha*-dec-osf*)
9180 THREADCXXFLAGS=-pthread
9181 # boehm-gc needs some functions from librt, so link that too.
9182 THREADLIBS='-lpthread -lrt'
9183 THREADSPEC='-lpthread -lrt'
9186 THREADLIBS=-lpthread
9187 THREADSPEC=-lpthread
9189 esac
9190 THREADH=posix-threads.h
9191 # MIT pthreads doesn't seem to have the mutexattr functions.
9192 # But for now we don't check for it. We just assume you aren't
9193 # using MIT pthreads.
9195 cat >>confdefs.h <<\_ACEOF
9196 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
9197 _ACEOF
9200 # If we're using the Boehm GC, then we happen to know that it
9201 # defines _REENTRANT, so we don't bother. Eww.
9202 if test "$GC" != boehm; then
9204 cat >>confdefs.h <<\_ACEOF
9205 #define _REENTRANT 1
9206 _ACEOF
9210 cat >>confdefs.h <<\_ACEOF
9211 #define _POSIX_PTHREAD_SEMANTICS 1
9212 _ACEOF
9216 win32)
9217 THREADH=win32-threads.h
9220 none)
9221 THREADH=no-threads.h
9223 esac
9224 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
9234 if test "$THREADS" = posix; then
9235 USING_POSIX_THREADS_TRUE=
9236 USING_POSIX_THREADS_FALSE='#'
9237 else
9238 USING_POSIX_THREADS_TRUE='#'
9239 USING_POSIX_THREADS_FALSE=
9244 if test "$THREADS" = win32; then
9245 USING_WIN32_THREADS_TRUE=
9246 USING_WIN32_THREADS_FALSE='#'
9247 else
9248 USING_WIN32_THREADS_TRUE='#'
9249 USING_WIN32_THREADS_FALSE=
9254 if test "$THREADS" = none; then
9255 USING_NO_THREADS_TRUE=
9256 USING_NO_THREADS_FALSE='#'
9257 else
9258 USING_NO_THREADS_TRUE='#'
9259 USING_NO_THREADS_FALSE=
9263 if test -d sysdep; then true; else mkdir sysdep; fi
9264 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
9266 ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
9268 ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
9271 HASH_SYNC_SPEC=
9272 # Hash synchronization is only useful with posix threads right now.
9273 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
9274 HASH_SYNC_SPEC=-fhash-synchronization
9276 cat >>confdefs.h <<\_ACEOF
9277 #define JV_HASH_SYNCHRONIZATION 1
9278 _ACEOF
9285 if test "$GCC" = yes; then
9286 USING_GCC_TRUE=
9287 USING_GCC_FALSE='#'
9288 else
9289 USING_GCC_TRUE='#'
9290 USING_GCC_FALSE=
9294 # We're in the tree with gcc, and need to include some of its headers.
9295 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
9297 if test "x${with_newlib}" = "xyes"; then
9298 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
9299 # may not work correctly, because the compiler may not be able to
9300 # link executables.
9302 # We assume newlib. This lets us hard-code the functions we know
9303 # we'll have.
9305 cat >>confdefs.h <<\_ACEOF
9306 #define HAVE_MEMMOVE 1
9307 _ACEOF
9310 cat >>confdefs.h <<\_ACEOF
9311 #define HAVE_MEMCPY 1
9312 _ACEOF
9315 cat >>confdefs.h <<\_ACEOF
9316 #define HAVE_STRERROR 1
9317 _ACEOF
9320 cat >>confdefs.h <<\_ACEOF
9321 #define HAVE_TIME 1
9322 _ACEOF
9325 cat >>confdefs.h <<\_ACEOF
9326 #define HAVE_GMTIME_R 1
9327 _ACEOF
9330 cat >>confdefs.h <<\_ACEOF
9331 #define HAVE_LOCALTIME_R 1
9332 _ACEOF
9335 cat >>confdefs.h <<\_ACEOF
9336 #define HAVE_USLEEP_DECL 1
9337 _ACEOF
9339 # This is only for POSIX threads.
9341 cat >>confdefs.h <<\_ACEOF
9342 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
9343 _ACEOF
9345 # We also assume we are using gcc, which provides alloca.
9346 cat >>confdefs.h <<\_ACEOF
9347 #define HAVE_ALLOCA 1
9348 _ACEOF
9351 # Assume we do not have getuid and friends.
9353 cat >>confdefs.h <<\_ACEOF
9354 #define NO_GETUID 1
9355 _ACEOF
9357 PLATFORMNET=NoNet
9358 else
9391 for ac_func in strerror ioctl select fstat open fsync sleep opendir \
9392 gmtime_r localtime_r readdir_r getpwuid_r getcwd \
9393 access stat mkdir rename rmdir unlink realpath utime chmod \
9394 nl_langinfo setlocale \
9395 inet_pton uname inet_ntoa \
9396 fork execvp pipe sigaction ftruncate
9398 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9399 echo "$as_me:$LINENO: checking for $ac_func" >&5
9400 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9401 if eval "test \"\${$as_ac_var+set}\" = set"; then
9402 echo $ECHO_N "(cached) $ECHO_C" >&6
9403 else
9404 if test x$gcc_no_link = xyes; then
9405 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9406 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9407 { (exit 1); exit 1; }; }
9409 cat >conftest.$ac_ext <<_ACEOF
9410 /* confdefs.h. */
9411 _ACEOF
9412 cat confdefs.h >>conftest.$ac_ext
9413 cat >>conftest.$ac_ext <<_ACEOF
9414 /* end confdefs.h. */
9415 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9416 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9417 #define $ac_func innocuous_$ac_func
9419 /* System header to define __stub macros and hopefully few prototypes,
9420 which can conflict with char $ac_func (); below.
9421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9422 <limits.h> exists even on freestanding compilers. */
9424 #ifdef __STDC__
9425 # include <limits.h>
9426 #else
9427 # include <assert.h>
9428 #endif
9430 #undef $ac_func
9432 /* Override any gcc2 internal prototype to avoid an error. */
9433 #ifdef __cplusplus
9434 extern "C"
9436 #endif
9437 /* We use char because int might match the return type of a gcc2
9438 builtin and then its argument prototype would still apply. */
9439 char $ac_func ();
9440 /* The GNU C library defines this for functions which it implements
9441 to always fail with ENOSYS. Some functions are actually named
9442 something starting with __ and the normal name is an alias. */
9443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9444 choke me
9445 #else
9446 char (*f) () = $ac_func;
9447 #endif
9448 #ifdef __cplusplus
9450 #endif
9453 main ()
9455 return f != $ac_func;
9457 return 0;
9459 _ACEOF
9460 rm -f conftest.$ac_objext conftest$ac_exeext
9461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9462 (eval $ac_link) 2>conftest.er1
9463 ac_status=$?
9464 grep -v '^ *+' conftest.er1 >conftest.err
9465 rm -f conftest.er1
9466 cat conftest.err >&5
9467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468 (exit $ac_status); } &&
9469 { ac_try='test -z "$ac_c_werror_flag"
9470 || test ! -s conftest.err'
9471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9472 (eval $ac_try) 2>&5
9473 ac_status=$?
9474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475 (exit $ac_status); }; } &&
9476 { ac_try='test -s conftest$ac_exeext'
9477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9478 (eval $ac_try) 2>&5
9479 ac_status=$?
9480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481 (exit $ac_status); }; }; then
9482 eval "$as_ac_var=yes"
9483 else
9484 echo "$as_me: failed program was:" >&5
9485 sed 's/^/| /' conftest.$ac_ext >&5
9487 eval "$as_ac_var=no"
9489 rm -f conftest.err conftest.$ac_objext \
9490 conftest$ac_exeext conftest.$ac_ext
9492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9493 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9494 if test `eval echo '${'$as_ac_var'}'` = yes; then
9495 cat >>confdefs.h <<_ACEOF
9496 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9497 _ACEOF
9500 done
9504 for ac_func in inet_aton inet_addr
9506 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9507 echo "$as_me:$LINENO: checking for $ac_func" >&5
9508 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9509 if eval "test \"\${$as_ac_var+set}\" = set"; then
9510 echo $ECHO_N "(cached) $ECHO_C" >&6
9511 else
9512 if test x$gcc_no_link = xyes; then
9513 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9514 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9515 { (exit 1); exit 1; }; }
9517 cat >conftest.$ac_ext <<_ACEOF
9518 /* confdefs.h. */
9519 _ACEOF
9520 cat confdefs.h >>conftest.$ac_ext
9521 cat >>conftest.$ac_ext <<_ACEOF
9522 /* end confdefs.h. */
9523 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9524 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9525 #define $ac_func innocuous_$ac_func
9527 /* System header to define __stub macros and hopefully few prototypes,
9528 which can conflict with char $ac_func (); below.
9529 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9530 <limits.h> exists even on freestanding compilers. */
9532 #ifdef __STDC__
9533 # include <limits.h>
9534 #else
9535 # include <assert.h>
9536 #endif
9538 #undef $ac_func
9540 /* Override any gcc2 internal prototype to avoid an error. */
9541 #ifdef __cplusplus
9542 extern "C"
9544 #endif
9545 /* We use char because int might match the return type of a gcc2
9546 builtin and then its argument prototype would still apply. */
9547 char $ac_func ();
9548 /* The GNU C library defines this for functions which it implements
9549 to always fail with ENOSYS. Some functions are actually named
9550 something starting with __ and the normal name is an alias. */
9551 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9552 choke me
9553 #else
9554 char (*f) () = $ac_func;
9555 #endif
9556 #ifdef __cplusplus
9558 #endif
9561 main ()
9563 return f != $ac_func;
9565 return 0;
9567 _ACEOF
9568 rm -f conftest.$ac_objext conftest$ac_exeext
9569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9570 (eval $ac_link) 2>conftest.er1
9571 ac_status=$?
9572 grep -v '^ *+' conftest.er1 >conftest.err
9573 rm -f conftest.er1
9574 cat conftest.err >&5
9575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576 (exit $ac_status); } &&
9577 { ac_try='test -z "$ac_c_werror_flag"
9578 || test ! -s conftest.err'
9579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9580 (eval $ac_try) 2>&5
9581 ac_status=$?
9582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583 (exit $ac_status); }; } &&
9584 { ac_try='test -s conftest$ac_exeext'
9585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9586 (eval $ac_try) 2>&5
9587 ac_status=$?
9588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9589 (exit $ac_status); }; }; then
9590 eval "$as_ac_var=yes"
9591 else
9592 echo "$as_me: failed program was:" >&5
9593 sed 's/^/| /' conftest.$ac_ext >&5
9595 eval "$as_ac_var=no"
9597 rm -f conftest.err conftest.$ac_objext \
9598 conftest$ac_exeext conftest.$ac_ext
9600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9601 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9602 if test `eval echo '${'$as_ac_var'}'` = yes; then
9603 cat >>confdefs.h <<_ACEOF
9604 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9605 _ACEOF
9606 break
9608 done
9610 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9611 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9612 if test "${ac_cv_header_stdc+set}" = set; then
9613 echo $ECHO_N "(cached) $ECHO_C" >&6
9614 else
9615 cat >conftest.$ac_ext <<_ACEOF
9616 /* confdefs.h. */
9617 _ACEOF
9618 cat confdefs.h >>conftest.$ac_ext
9619 cat >>conftest.$ac_ext <<_ACEOF
9620 /* end confdefs.h. */
9621 #include <stdlib.h>
9622 #include <stdarg.h>
9623 #include <string.h>
9624 #include <float.h>
9627 main ()
9631 return 0;
9633 _ACEOF
9634 rm -f conftest.$ac_objext
9635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9636 (eval $ac_compile) 2>conftest.er1
9637 ac_status=$?
9638 grep -v '^ *+' conftest.er1 >conftest.err
9639 rm -f conftest.er1
9640 cat conftest.err >&5
9641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642 (exit $ac_status); } &&
9643 { ac_try='test -z "$ac_c_werror_flag"
9644 || test ! -s conftest.err'
9645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9646 (eval $ac_try) 2>&5
9647 ac_status=$?
9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649 (exit $ac_status); }; } &&
9650 { ac_try='test -s conftest.$ac_objext'
9651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9652 (eval $ac_try) 2>&5
9653 ac_status=$?
9654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655 (exit $ac_status); }; }; then
9656 ac_cv_header_stdc=yes
9657 else
9658 echo "$as_me: failed program was:" >&5
9659 sed 's/^/| /' conftest.$ac_ext >&5
9661 ac_cv_header_stdc=no
9663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9665 if test $ac_cv_header_stdc = yes; then
9666 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9667 cat >conftest.$ac_ext <<_ACEOF
9668 /* confdefs.h. */
9669 _ACEOF
9670 cat confdefs.h >>conftest.$ac_ext
9671 cat >>conftest.$ac_ext <<_ACEOF
9672 /* end confdefs.h. */
9673 #include <string.h>
9675 _ACEOF
9676 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9677 $EGREP "memchr" >/dev/null 2>&1; then
9679 else
9680 ac_cv_header_stdc=no
9682 rm -f conftest*
9686 if test $ac_cv_header_stdc = yes; then
9687 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9688 cat >conftest.$ac_ext <<_ACEOF
9689 /* confdefs.h. */
9690 _ACEOF
9691 cat confdefs.h >>conftest.$ac_ext
9692 cat >>conftest.$ac_ext <<_ACEOF
9693 /* end confdefs.h. */
9694 #include <stdlib.h>
9696 _ACEOF
9697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9698 $EGREP "free" >/dev/null 2>&1; then
9700 else
9701 ac_cv_header_stdc=no
9703 rm -f conftest*
9707 if test $ac_cv_header_stdc = yes; then
9708 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9709 if test "$cross_compiling" = yes; then
9711 else
9712 cat >conftest.$ac_ext <<_ACEOF
9713 /* confdefs.h. */
9714 _ACEOF
9715 cat confdefs.h >>conftest.$ac_ext
9716 cat >>conftest.$ac_ext <<_ACEOF
9717 /* end confdefs.h. */
9718 #include <ctype.h>
9719 #if ((' ' & 0x0FF) == 0x020)
9720 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9721 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9722 #else
9723 # define ISLOWER(c) \
9724 (('a' <= (c) && (c) <= 'i') \
9725 || ('j' <= (c) && (c) <= 'r') \
9726 || ('s' <= (c) && (c) <= 'z'))
9727 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9728 #endif
9730 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9732 main ()
9734 int i;
9735 for (i = 0; i < 256; i++)
9736 if (XOR (islower (i), ISLOWER (i))
9737 || toupper (i) != TOUPPER (i))
9738 exit(2);
9739 exit (0);
9741 _ACEOF
9742 rm -f conftest$ac_exeext
9743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9744 (eval $ac_link) 2>&5
9745 ac_status=$?
9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9749 (eval $ac_try) 2>&5
9750 ac_status=$?
9751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752 (exit $ac_status); }; }; then
9754 else
9755 echo "$as_me: program exited with status $ac_status" >&5
9756 echo "$as_me: failed program was:" >&5
9757 sed 's/^/| /' conftest.$ac_ext >&5
9759 ( exit $ac_status )
9760 ac_cv_header_stdc=no
9762 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9766 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9767 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9768 if test $ac_cv_header_stdc = yes; then
9770 cat >>confdefs.h <<\_ACEOF
9771 #define STDC_HEADERS 1
9772 _ACEOF
9776 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9786 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9787 inttypes.h stdint.h unistd.h
9789 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9790 echo "$as_me:$LINENO: checking for $ac_header" >&5
9791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9792 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9793 echo $ECHO_N "(cached) $ECHO_C" >&6
9794 else
9795 cat >conftest.$ac_ext <<_ACEOF
9796 /* confdefs.h. */
9797 _ACEOF
9798 cat confdefs.h >>conftest.$ac_ext
9799 cat >>conftest.$ac_ext <<_ACEOF
9800 /* end confdefs.h. */
9801 $ac_includes_default
9803 #include <$ac_header>
9804 _ACEOF
9805 rm -f conftest.$ac_objext
9806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9807 (eval $ac_compile) 2>conftest.er1
9808 ac_status=$?
9809 grep -v '^ *+' conftest.er1 >conftest.err
9810 rm -f conftest.er1
9811 cat conftest.err >&5
9812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813 (exit $ac_status); } &&
9814 { ac_try='test -z "$ac_c_werror_flag"
9815 || test ! -s conftest.err'
9816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9817 (eval $ac_try) 2>&5
9818 ac_status=$?
9819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9820 (exit $ac_status); }; } &&
9821 { ac_try='test -s conftest.$ac_objext'
9822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9823 (eval $ac_try) 2>&5
9824 ac_status=$?
9825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826 (exit $ac_status); }; }; then
9827 eval "$as_ac_Header=yes"
9828 else
9829 echo "$as_me: failed program was:" >&5
9830 sed 's/^/| /' conftest.$ac_ext >&5
9832 eval "$as_ac_Header=no"
9834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9837 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9838 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9839 cat >>confdefs.h <<_ACEOF
9840 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9841 _ACEOF
9845 done
9851 for ac_header in execinfo.h unistd.h dlfcn.h
9853 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9854 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9855 echo "$as_me:$LINENO: checking for $ac_header" >&5
9856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9857 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9858 echo $ECHO_N "(cached) $ECHO_C" >&6
9860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9861 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9862 else
9863 # Is the header compilable?
9864 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9865 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9866 cat >conftest.$ac_ext <<_ACEOF
9867 /* confdefs.h. */
9868 _ACEOF
9869 cat confdefs.h >>conftest.$ac_ext
9870 cat >>conftest.$ac_ext <<_ACEOF
9871 /* end confdefs.h. */
9872 $ac_includes_default
9873 #include <$ac_header>
9874 _ACEOF
9875 rm -f conftest.$ac_objext
9876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9877 (eval $ac_compile) 2>conftest.er1
9878 ac_status=$?
9879 grep -v '^ *+' conftest.er1 >conftest.err
9880 rm -f conftest.er1
9881 cat conftest.err >&5
9882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883 (exit $ac_status); } &&
9884 { ac_try='test -z "$ac_c_werror_flag"
9885 || test ! -s conftest.err'
9886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9887 (eval $ac_try) 2>&5
9888 ac_status=$?
9889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890 (exit $ac_status); }; } &&
9891 { ac_try='test -s conftest.$ac_objext'
9892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9893 (eval $ac_try) 2>&5
9894 ac_status=$?
9895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896 (exit $ac_status); }; }; then
9897 ac_header_compiler=yes
9898 else
9899 echo "$as_me: failed program was:" >&5
9900 sed 's/^/| /' conftest.$ac_ext >&5
9902 ac_header_compiler=no
9904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9905 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9906 echo "${ECHO_T}$ac_header_compiler" >&6
9908 # Is the header present?
9909 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9910 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9911 cat >conftest.$ac_ext <<_ACEOF
9912 /* confdefs.h. */
9913 _ACEOF
9914 cat confdefs.h >>conftest.$ac_ext
9915 cat >>conftest.$ac_ext <<_ACEOF
9916 /* end confdefs.h. */
9917 #include <$ac_header>
9918 _ACEOF
9919 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9920 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9921 ac_status=$?
9922 grep -v '^ *+' conftest.er1 >conftest.err
9923 rm -f conftest.er1
9924 cat conftest.err >&5
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); } >/dev/null; then
9927 if test -s conftest.err; then
9928 ac_cpp_err=$ac_c_preproc_warn_flag
9929 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9930 else
9931 ac_cpp_err=
9933 else
9934 ac_cpp_err=yes
9936 if test -z "$ac_cpp_err"; then
9937 ac_header_preproc=yes
9938 else
9939 echo "$as_me: failed program was:" >&5
9940 sed 's/^/| /' conftest.$ac_ext >&5
9942 ac_header_preproc=no
9944 rm -f conftest.err conftest.$ac_ext
9945 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9946 echo "${ECHO_T}$ac_header_preproc" >&6
9948 # So? What about this header?
9949 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9950 yes:no: )
9951 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9952 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9953 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9954 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9955 ac_header_preproc=yes
9957 no:yes:* )
9958 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9959 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9960 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9961 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9962 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9963 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9964 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9965 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9967 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9968 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9969 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9971 cat <<\_ASBOX
9972 ## ---------------------------------- ##
9973 ## Report this to the libjava lists. ##
9974 ## ---------------------------------- ##
9975 _ASBOX
9977 sed "s/^/$as_me: WARNING: /" >&2
9979 esac
9980 echo "$as_me:$LINENO: checking for $ac_header" >&5
9981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9983 echo $ECHO_N "(cached) $ECHO_C" >&6
9984 else
9985 eval "$as_ac_Header=\$ac_header_preproc"
9987 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9988 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9991 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9992 cat >>confdefs.h <<_ACEOF
9993 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9994 _ACEOF
9998 done
10000 echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
10001 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
10002 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
10003 echo $ECHO_N "(cached) $ECHO_C" >&6
10004 else
10005 ac_check_lib_save_LIBS=$LIBS
10006 LIBS="-ldl $LIBS"
10007 if test x$gcc_no_link = xyes; then
10008 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10009 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10010 { (exit 1); exit 1; }; }
10012 cat >conftest.$ac_ext <<_ACEOF
10013 /* confdefs.h. */
10014 _ACEOF
10015 cat confdefs.h >>conftest.$ac_ext
10016 cat >>conftest.$ac_ext <<_ACEOF
10017 /* end confdefs.h. */
10019 /* Override any gcc2 internal prototype to avoid an error. */
10020 #ifdef __cplusplus
10021 extern "C"
10022 #endif
10023 /* We use char because int might match the return type of a gcc2
10024 builtin and then its argument prototype would still apply. */
10025 char dladdr ();
10027 main ()
10029 dladdr ();
10031 return 0;
10033 _ACEOF
10034 rm -f conftest.$ac_objext conftest$ac_exeext
10035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10036 (eval $ac_link) 2>conftest.er1
10037 ac_status=$?
10038 grep -v '^ *+' conftest.er1 >conftest.err
10039 rm -f conftest.er1
10040 cat conftest.err >&5
10041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042 (exit $ac_status); } &&
10043 { ac_try='test -z "$ac_c_werror_flag"
10044 || test ! -s conftest.err'
10045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10046 (eval $ac_try) 2>&5
10047 ac_status=$?
10048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049 (exit $ac_status); }; } &&
10050 { ac_try='test -s conftest$ac_exeext'
10051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10052 (eval $ac_try) 2>&5
10053 ac_status=$?
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); }; }; then
10056 ac_cv_lib_dl_dladdr=yes
10057 else
10058 echo "$as_me: failed program was:" >&5
10059 sed 's/^/| /' conftest.$ac_ext >&5
10061 ac_cv_lib_dl_dladdr=no
10063 rm -f conftest.err conftest.$ac_objext \
10064 conftest$ac_exeext conftest.$ac_ext
10065 LIBS=$ac_check_lib_save_LIBS
10067 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
10068 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
10069 if test $ac_cv_lib_dl_dladdr = yes; then
10072 cat >>confdefs.h <<\_ACEOF
10073 #define HAVE_DLADDR 1
10074 _ACEOF
10079 if test x"$build" = x"$host"; then
10080 echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
10081 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
10082 if test "${ac_cv_file__proc_self_exe+set}" = set; then
10083 echo $ECHO_N "(cached) $ECHO_C" >&6
10084 else
10085 test "$cross_compiling" = yes &&
10086 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
10087 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
10088 { (exit 1); exit 1; }; }
10089 if test -r "/proc/self/exe"; then
10090 ac_cv_file__proc_self_exe=yes
10091 else
10092 ac_cv_file__proc_self_exe=no
10095 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
10096 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
10097 if test $ac_cv_file__proc_self_exe = yes; then
10099 cat >>confdefs.h <<_ACEOF
10100 #define HAVE__PROC_SELF_EXE 1
10101 _ACEOF
10105 cat >>confdefs.h <<\_ACEOF
10106 #define HAVE_PROC_SELF_EXE 1
10107 _ACEOF
10111 else
10112 case $host in
10113 *-linux*)
10115 cat >>confdefs.h <<\_ACEOF
10116 #define HAVE_PROC_SELF_EXE 1
10117 _ACEOF
10120 esac
10124 if test "X$prefix" = "XNONE"; then
10125 acl_final_prefix="$ac_default_prefix"
10126 else
10127 acl_final_prefix="$prefix"
10129 if test "X$exec_prefix" = "XNONE"; then
10130 acl_final_exec_prefix='${prefix}'
10131 else
10132 acl_final_exec_prefix="$exec_prefix"
10134 acl_save_prefix="$prefix"
10135 prefix="$acl_final_prefix"
10136 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10137 prefix="$acl_save_prefix"
10140 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10141 if test "${with_gnu_ld+set}" = set; then
10142 withval="$with_gnu_ld"
10143 test "$withval" = no || with_gnu_ld=yes
10144 else
10145 with_gnu_ld=no
10147 # Prepare PATH_SEPARATOR.
10148 # The user is always right.
10149 if test "${PATH_SEPARATOR+set}" != set; then
10150 echo "#! /bin/sh" >conf$$.sh
10151 echo "exit 0" >>conf$$.sh
10152 chmod +x conf$$.sh
10153 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10154 PATH_SEPARATOR=';'
10155 else
10156 PATH_SEPARATOR=:
10158 rm -f conf$$.sh
10160 ac_prog=ld
10161 if test "$GCC" = yes; then
10162 # Check if gcc -print-prog-name=ld gives a path.
10163 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10164 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10165 case $host in
10166 *-*-mingw*)
10167 # gcc leaves a trailing carriage return which upsets mingw
10168 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10170 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10171 esac
10172 case $ac_prog in
10173 # Accept absolute paths.
10174 [\\/]* | [A-Za-z]:[\\/]*)
10175 re_direlt='/[^/][^/]*/\.\./'
10176 # Canonicalize the path of ld
10177 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10178 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10179 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10180 done
10181 test -z "$LD" && LD="$ac_prog"
10184 # If it fails, then pretend we aren't using GCC.
10185 ac_prog=ld
10188 # If it is relative, then search for the first ld in PATH.
10189 with_gnu_ld=unknown
10191 esac
10192 elif test "$with_gnu_ld" = yes; then
10193 echo "$as_me:$LINENO: checking for GNU ld" >&5
10194 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10195 else
10196 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10197 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10199 if test "${acl_cv_path_LD+set}" = set; then
10200 echo $ECHO_N "(cached) $ECHO_C" >&6
10201 else
10202 if test -z "$LD"; then
10203 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10204 for ac_dir in $PATH; do
10205 test -z "$ac_dir" && ac_dir=.
10206 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10207 acl_cv_path_LD="$ac_dir/$ac_prog"
10208 # Check to see if the program is GNU ld. I'd rather use --version,
10209 # but apparently some GNU ld's only accept -v.
10210 # Break only if it was the GNU/non-GNU ld that we prefer.
10211 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10212 test "$with_gnu_ld" != no && break
10213 else
10214 test "$with_gnu_ld" != yes && break
10217 done
10218 IFS="$ac_save_ifs"
10219 else
10220 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10224 LD="$acl_cv_path_LD"
10225 if test -n "$LD"; then
10226 echo "$as_me:$LINENO: result: $LD" >&5
10227 echo "${ECHO_T}$LD" >&6
10228 else
10229 echo "$as_me:$LINENO: result: no" >&5
10230 echo "${ECHO_T}no" >&6
10232 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10233 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10234 { (exit 1); exit 1; }; }
10235 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10236 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10237 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10238 echo $ECHO_N "(cached) $ECHO_C" >&6
10239 else
10240 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10241 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10242 acl_cv_prog_gnu_ld=yes
10243 else
10244 acl_cv_prog_gnu_ld=no
10247 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10248 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10249 with_gnu_ld=$acl_cv_prog_gnu_ld
10253 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10254 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10255 if test "${acl_cv_rpath+set}" = set; then
10256 echo $ECHO_N "(cached) $ECHO_C" >&6
10257 else
10259 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10260 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10261 . ./conftest.sh
10262 rm -f ./conftest.sh
10263 acl_cv_rpath=done
10266 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10267 echo "${ECHO_T}$acl_cv_rpath" >&6
10268 wl="$acl_cv_wl"
10269 libext="$acl_cv_libext"
10270 shlibext="$acl_cv_shlibext"
10271 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10272 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10273 hardcode_direct="$acl_cv_hardcode_direct"
10274 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10275 # Check whether --enable-rpath or --disable-rpath was given.
10276 if test "${enable_rpath+set}" = set; then
10277 enableval="$enable_rpath"
10279 else
10280 enable_rpath=yes
10289 use_additional=yes
10291 acl_save_prefix="$prefix"
10292 prefix="$acl_final_prefix"
10293 acl_save_exec_prefix="$exec_prefix"
10294 exec_prefix="$acl_final_exec_prefix"
10296 eval additional_includedir=\"$includedir\"
10297 eval additional_libdir=\"$libdir\"
10299 exec_prefix="$acl_save_exec_prefix"
10300 prefix="$acl_save_prefix"
10303 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10304 if test "${with_libiconv_prefix+set}" = set; then
10305 withval="$with_libiconv_prefix"
10307 if test "X$withval" = "Xno"; then
10308 use_additional=no
10309 else
10310 if test "X$withval" = "X"; then
10312 acl_save_prefix="$prefix"
10313 prefix="$acl_final_prefix"
10314 acl_save_exec_prefix="$exec_prefix"
10315 exec_prefix="$acl_final_exec_prefix"
10317 eval additional_includedir=\"$includedir\"
10318 eval additional_libdir=\"$libdir\"
10320 exec_prefix="$acl_save_exec_prefix"
10321 prefix="$acl_save_prefix"
10323 else
10324 additional_includedir="$withval/include"
10325 additional_libdir="$withval/lib"
10330 LIBICONV=
10331 LTLIBICONV=
10332 INCICONV=
10333 rpathdirs=
10334 ltrpathdirs=
10335 names_already_handled=
10336 names_next_round='iconv '
10337 while test -n "$names_next_round"; do
10338 names_this_round="$names_next_round"
10339 names_next_round=
10340 for name in $names_this_round; do
10341 already_handled=
10342 for n in $names_already_handled; do
10343 if test "$n" = "$name"; then
10344 already_handled=yes
10345 break
10347 done
10348 if test -z "$already_handled"; then
10349 names_already_handled="$names_already_handled $name"
10350 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10351 eval value=\"\$HAVE_LIB$uppername\"
10352 if test -n "$value"; then
10353 if test "$value" = yes; then
10354 eval value=\"\$LIB$uppername\"
10355 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10356 eval value=\"\$LTLIB$uppername\"
10357 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10358 else
10361 else
10362 found_dir=
10363 found_la=
10364 found_so=
10365 found_a=
10366 if test $use_additional = yes; then
10367 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10368 found_dir="$additional_libdir"
10369 found_so="$additional_libdir/lib$name.$shlibext"
10370 if test -f "$additional_libdir/lib$name.la"; then
10371 found_la="$additional_libdir/lib$name.la"
10373 else
10374 if test -f "$additional_libdir/lib$name.$libext"; then
10375 found_dir="$additional_libdir"
10376 found_a="$additional_libdir/lib$name.$libext"
10377 if test -f "$additional_libdir/lib$name.la"; then
10378 found_la="$additional_libdir/lib$name.la"
10383 if test "X$found_dir" = "X"; then
10384 for x in $LDFLAGS $LTLIBICONV; do
10386 acl_save_prefix="$prefix"
10387 prefix="$acl_final_prefix"
10388 acl_save_exec_prefix="$exec_prefix"
10389 exec_prefix="$acl_final_exec_prefix"
10390 eval x=\"$x\"
10391 exec_prefix="$acl_save_exec_prefix"
10392 prefix="$acl_save_prefix"
10394 case "$x" in
10395 -L*)
10396 dir=`echo "X$x" | sed -e 's/^X-L//'`
10397 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10398 found_dir="$dir"
10399 found_so="$dir/lib$name.$shlibext"
10400 if test -f "$dir/lib$name.la"; then
10401 found_la="$dir/lib$name.la"
10403 else
10404 if test -f "$dir/lib$name.$libext"; then
10405 found_dir="$dir"
10406 found_a="$dir/lib$name.$libext"
10407 if test -f "$dir/lib$name.la"; then
10408 found_la="$dir/lib$name.la"
10413 esac
10414 if test "X$found_dir" != "X"; then
10415 break
10417 done
10419 if test "X$found_dir" != "X"; then
10420 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10421 if test "X$found_so" != "X"; then
10422 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10423 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10424 else
10425 haveit=
10426 for x in $ltrpathdirs; do
10427 if test "X$x" = "X$found_dir"; then
10428 haveit=yes
10429 break
10431 done
10432 if test -z "$haveit"; then
10433 ltrpathdirs="$ltrpathdirs $found_dir"
10435 if test "$hardcode_direct" = yes; then
10436 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10437 else
10438 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10439 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10440 haveit=
10441 for x in $rpathdirs; do
10442 if test "X$x" = "X$found_dir"; then
10443 haveit=yes
10444 break
10446 done
10447 if test -z "$haveit"; then
10448 rpathdirs="$rpathdirs $found_dir"
10450 else
10451 haveit=
10452 for x in $LDFLAGS $LIBICONV; do
10454 acl_save_prefix="$prefix"
10455 prefix="$acl_final_prefix"
10456 acl_save_exec_prefix="$exec_prefix"
10457 exec_prefix="$acl_final_exec_prefix"
10458 eval x=\"$x\"
10459 exec_prefix="$acl_save_exec_prefix"
10460 prefix="$acl_save_prefix"
10462 if test "X$x" = "X-L$found_dir"; then
10463 haveit=yes
10464 break
10466 done
10467 if test -z "$haveit"; then
10468 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10470 if test "$hardcode_minus_L" != no; then
10471 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10472 else
10473 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10478 else
10479 if test "X$found_a" != "X"; then
10480 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10481 else
10482 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10485 additional_includedir=
10486 case "$found_dir" in
10487 */lib | */lib/)
10488 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10489 additional_includedir="$basedir/include"
10491 esac
10492 if test "X$additional_includedir" != "X"; then
10493 if test "X$additional_includedir" != "X/usr/include"; then
10494 haveit=
10495 if test "X$additional_includedir" = "X/usr/local/include"; then
10496 if test -n "$GCC"; then
10497 case $host_os in
10498 linux*) haveit=yes;;
10499 esac
10502 if test -z "$haveit"; then
10503 for x in $CPPFLAGS $INCICONV; do
10505 acl_save_prefix="$prefix"
10506 prefix="$acl_final_prefix"
10507 acl_save_exec_prefix="$exec_prefix"
10508 exec_prefix="$acl_final_exec_prefix"
10509 eval x=\"$x\"
10510 exec_prefix="$acl_save_exec_prefix"
10511 prefix="$acl_save_prefix"
10513 if test "X$x" = "X-I$additional_includedir"; then
10514 haveit=yes
10515 break
10517 done
10518 if test -z "$haveit"; then
10519 if test -d "$additional_includedir"; then
10520 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10526 if test -n "$found_la"; then
10527 save_libdir="$libdir"
10528 case "$found_la" in
10529 */* | *\\*) . "$found_la" ;;
10530 *) . "./$found_la" ;;
10531 esac
10532 libdir="$save_libdir"
10533 for dep in $dependency_libs; do
10534 case "$dep" in
10535 -L*)
10536 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10537 if test "X$additional_libdir" != "X/usr/lib"; then
10538 haveit=
10539 if test "X$additional_libdir" = "X/usr/local/lib"; then
10540 if test -n "$GCC"; then
10541 case $host_os in
10542 linux*) haveit=yes;;
10543 esac
10546 if test -z "$haveit"; then
10547 haveit=
10548 for x in $LDFLAGS $LIBICONV; do
10550 acl_save_prefix="$prefix"
10551 prefix="$acl_final_prefix"
10552 acl_save_exec_prefix="$exec_prefix"
10553 exec_prefix="$acl_final_exec_prefix"
10554 eval x=\"$x\"
10555 exec_prefix="$acl_save_exec_prefix"
10556 prefix="$acl_save_prefix"
10558 if test "X$x" = "X-L$additional_libdir"; then
10559 haveit=yes
10560 break
10562 done
10563 if test -z "$haveit"; then
10564 if test -d "$additional_libdir"; then
10565 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10568 haveit=
10569 for x in $LDFLAGS $LTLIBICONV; do
10571 acl_save_prefix="$prefix"
10572 prefix="$acl_final_prefix"
10573 acl_save_exec_prefix="$exec_prefix"
10574 exec_prefix="$acl_final_exec_prefix"
10575 eval x=\"$x\"
10576 exec_prefix="$acl_save_exec_prefix"
10577 prefix="$acl_save_prefix"
10579 if test "X$x" = "X-L$additional_libdir"; then
10580 haveit=yes
10581 break
10583 done
10584 if test -z "$haveit"; then
10585 if test -d "$additional_libdir"; then
10586 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10592 -R*)
10593 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10594 if test "$enable_rpath" != no; then
10595 haveit=
10596 for x in $rpathdirs; do
10597 if test "X$x" = "X$dir"; then
10598 haveit=yes
10599 break
10601 done
10602 if test -z "$haveit"; then
10603 rpathdirs="$rpathdirs $dir"
10605 haveit=
10606 for x in $ltrpathdirs; do
10607 if test "X$x" = "X$dir"; then
10608 haveit=yes
10609 break
10611 done
10612 if test -z "$haveit"; then
10613 ltrpathdirs="$ltrpathdirs $dir"
10617 -l*)
10618 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10620 *.la)
10621 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10624 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10625 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10627 esac
10628 done
10630 else
10631 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10632 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10636 done
10637 done
10638 if test "X$rpathdirs" != "X"; then
10639 if test -n "$hardcode_libdir_separator"; then
10640 alldirs=
10641 for found_dir in $rpathdirs; do
10642 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10643 done
10644 acl_save_libdir="$libdir"
10645 libdir="$alldirs"
10646 eval flag=\"$hardcode_libdir_flag_spec\"
10647 libdir="$acl_save_libdir"
10648 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10649 else
10650 for found_dir in $rpathdirs; do
10651 acl_save_libdir="$libdir"
10652 libdir="$found_dir"
10653 eval flag=\"$hardcode_libdir_flag_spec\"
10654 libdir="$acl_save_libdir"
10655 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10656 done
10659 if test "X$ltrpathdirs" != "X"; then
10660 for found_dir in $ltrpathdirs; do
10661 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10662 done
10671 am_save_CPPFLAGS="$CPPFLAGS"
10673 for element in $INCICONV; do
10674 haveit=
10675 for x in $CPPFLAGS; do
10677 acl_save_prefix="$prefix"
10678 prefix="$acl_final_prefix"
10679 acl_save_exec_prefix="$exec_prefix"
10680 exec_prefix="$acl_final_exec_prefix"
10681 eval x=\"$x\"
10682 exec_prefix="$acl_save_exec_prefix"
10683 prefix="$acl_save_prefix"
10685 if test "X$x" = "X$element"; then
10686 haveit=yes
10687 break
10689 done
10690 if test -z "$haveit"; then
10691 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10693 done
10696 echo "$as_me:$LINENO: checking for iconv" >&5
10697 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10698 if test "${am_cv_func_iconv+set}" = set; then
10699 echo $ECHO_N "(cached) $ECHO_C" >&6
10700 else
10702 am_cv_func_iconv="no, consider installing GNU libiconv"
10703 am_cv_lib_iconv=no
10704 if test x$gcc_no_link = xyes; then
10705 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10706 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10707 { (exit 1); exit 1; }; }
10709 cat >conftest.$ac_ext <<_ACEOF
10710 /* confdefs.h. */
10711 _ACEOF
10712 cat confdefs.h >>conftest.$ac_ext
10713 cat >>conftest.$ac_ext <<_ACEOF
10714 /* end confdefs.h. */
10715 #include <stdlib.h>
10716 #include <iconv.h>
10718 main ()
10720 iconv_t cd = iconv_open("","");
10721 iconv(cd,NULL,NULL,NULL,NULL);
10722 iconv_close(cd);
10724 return 0;
10726 _ACEOF
10727 rm -f conftest.$ac_objext conftest$ac_exeext
10728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10729 (eval $ac_link) 2>conftest.er1
10730 ac_status=$?
10731 grep -v '^ *+' conftest.er1 >conftest.err
10732 rm -f conftest.er1
10733 cat conftest.err >&5
10734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); } &&
10736 { ac_try='test -z "$ac_c_werror_flag"
10737 || test ! -s conftest.err'
10738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10739 (eval $ac_try) 2>&5
10740 ac_status=$?
10741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742 (exit $ac_status); }; } &&
10743 { ac_try='test -s conftest$ac_exeext'
10744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10745 (eval $ac_try) 2>&5
10746 ac_status=$?
10747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10748 (exit $ac_status); }; }; then
10749 am_cv_func_iconv=yes
10750 else
10751 echo "$as_me: failed program was:" >&5
10752 sed 's/^/| /' conftest.$ac_ext >&5
10755 rm -f conftest.err conftest.$ac_objext \
10756 conftest$ac_exeext conftest.$ac_ext
10757 if test "$am_cv_func_iconv" != yes; then
10758 am_save_LIBS="$LIBS"
10759 LIBS="$LIBS $LIBICONV"
10760 if test x$gcc_no_link = xyes; then
10761 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10762 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10763 { (exit 1); exit 1; }; }
10765 cat >conftest.$ac_ext <<_ACEOF
10766 /* confdefs.h. */
10767 _ACEOF
10768 cat confdefs.h >>conftest.$ac_ext
10769 cat >>conftest.$ac_ext <<_ACEOF
10770 /* end confdefs.h. */
10771 #include <stdlib.h>
10772 #include <iconv.h>
10774 main ()
10776 iconv_t cd = iconv_open("","");
10777 iconv(cd,NULL,NULL,NULL,NULL);
10778 iconv_close(cd);
10780 return 0;
10782 _ACEOF
10783 rm -f conftest.$ac_objext conftest$ac_exeext
10784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10785 (eval $ac_link) 2>conftest.er1
10786 ac_status=$?
10787 grep -v '^ *+' conftest.er1 >conftest.err
10788 rm -f conftest.er1
10789 cat conftest.err >&5
10790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791 (exit $ac_status); } &&
10792 { ac_try='test -z "$ac_c_werror_flag"
10793 || test ! -s conftest.err'
10794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10795 (eval $ac_try) 2>&5
10796 ac_status=$?
10797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798 (exit $ac_status); }; } &&
10799 { ac_try='test -s conftest$ac_exeext'
10800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10801 (eval $ac_try) 2>&5
10802 ac_status=$?
10803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804 (exit $ac_status); }; }; then
10805 am_cv_lib_iconv=yes
10806 am_cv_func_iconv=yes
10807 else
10808 echo "$as_me: failed program was:" >&5
10809 sed 's/^/| /' conftest.$ac_ext >&5
10812 rm -f conftest.err conftest.$ac_objext \
10813 conftest$ac_exeext conftest.$ac_ext
10814 LIBS="$am_save_LIBS"
10818 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10819 echo "${ECHO_T}$am_cv_func_iconv" >&6
10820 if test "$am_cv_func_iconv" = yes; then
10822 cat >>confdefs.h <<\_ACEOF
10823 #define HAVE_ICONV 1
10824 _ACEOF
10827 if test "$am_cv_lib_iconv" = yes; then
10828 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10829 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10830 echo "$as_me:$LINENO: result: $LIBICONV" >&5
10831 echo "${ECHO_T}$LIBICONV" >&6
10832 else
10833 CPPFLAGS="$am_save_CPPFLAGS"
10834 LIBICONV=
10835 LTLIBICONV=
10840 if test "$am_cv_func_iconv" = yes; then
10841 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10842 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10843 if test "${am_cv_proto_iconv+set}" = set; then
10844 echo $ECHO_N "(cached) $ECHO_C" >&6
10845 else
10847 cat >conftest.$ac_ext <<_ACEOF
10848 /* confdefs.h. */
10849 _ACEOF
10850 cat confdefs.h >>conftest.$ac_ext
10851 cat >>conftest.$ac_ext <<_ACEOF
10852 /* end confdefs.h. */
10854 #include <stdlib.h>
10855 #include <iconv.h>
10856 extern
10857 #ifdef __cplusplus
10859 #endif
10860 #if defined(__STDC__) || defined(__cplusplus)
10861 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10862 #else
10863 size_t iconv();
10864 #endif
10867 main ()
10871 return 0;
10873 _ACEOF
10874 rm -f conftest.$ac_objext
10875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10876 (eval $ac_compile) 2>conftest.er1
10877 ac_status=$?
10878 grep -v '^ *+' conftest.er1 >conftest.err
10879 rm -f conftest.er1
10880 cat conftest.err >&5
10881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882 (exit $ac_status); } &&
10883 { ac_try='test -z "$ac_c_werror_flag"
10884 || test ! -s conftest.err'
10885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10886 (eval $ac_try) 2>&5
10887 ac_status=$?
10888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889 (exit $ac_status); }; } &&
10890 { ac_try='test -s conftest.$ac_objext'
10891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10892 (eval $ac_try) 2>&5
10893 ac_status=$?
10894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895 (exit $ac_status); }; }; then
10896 am_cv_proto_iconv_arg1=""
10897 else
10898 echo "$as_me: failed program was:" >&5
10899 sed 's/^/| /' conftest.$ac_ext >&5
10901 am_cv_proto_iconv_arg1="const"
10903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10904 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);"
10907 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10908 echo "$as_me:$LINENO: result: ${ac_t:-
10909 }$am_cv_proto_iconv" >&5
10910 echo "${ECHO_T}${ac_t:-
10911 }$am_cv_proto_iconv" >&6
10913 cat >>confdefs.h <<_ACEOF
10914 #define ICONV_CONST $am_cv_proto_iconv_arg1
10915 _ACEOF
10920 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10921 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10922 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10923 echo $ECHO_N "(cached) $ECHO_C" >&6
10924 else
10925 if test x$gcc_no_link = xyes; then
10926 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10927 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10928 { (exit 1); exit 1; }; }
10930 cat >conftest.$ac_ext <<_ACEOF
10931 /* confdefs.h. */
10932 _ACEOF
10933 cat confdefs.h >>conftest.$ac_ext
10934 cat >>conftest.$ac_ext <<_ACEOF
10935 /* end confdefs.h. */
10936 #include <locale.h>
10938 main ()
10940 return LC_MESSAGES
10942 return 0;
10944 _ACEOF
10945 rm -f conftest.$ac_objext conftest$ac_exeext
10946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10947 (eval $ac_link) 2>conftest.er1
10948 ac_status=$?
10949 grep -v '^ *+' conftest.er1 >conftest.err
10950 rm -f conftest.er1
10951 cat conftest.err >&5
10952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953 (exit $ac_status); } &&
10954 { ac_try='test -z "$ac_c_werror_flag"
10955 || test ! -s conftest.err'
10956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10957 (eval $ac_try) 2>&5
10958 ac_status=$?
10959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960 (exit $ac_status); }; } &&
10961 { ac_try='test -s conftest$ac_exeext'
10962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10963 (eval $ac_try) 2>&5
10964 ac_status=$?
10965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966 (exit $ac_status); }; }; then
10967 am_cv_val_LC_MESSAGES=yes
10968 else
10969 echo "$as_me: failed program was:" >&5
10970 sed 's/^/| /' conftest.$ac_ext >&5
10972 am_cv_val_LC_MESSAGES=no
10974 rm -f conftest.err conftest.$ac_objext \
10975 conftest$ac_exeext conftest.$ac_ext
10977 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10978 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
10979 if test $am_cv_val_LC_MESSAGES = yes; then
10981 cat >>confdefs.h <<\_ACEOF
10982 #define HAVE_LC_MESSAGES 1
10983 _ACEOF
10987 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10988 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10989 if test "${ac_cv_struct_tm+set}" = set; then
10990 echo $ECHO_N "(cached) $ECHO_C" >&6
10991 else
10992 cat >conftest.$ac_ext <<_ACEOF
10993 /* confdefs.h. */
10994 _ACEOF
10995 cat confdefs.h >>conftest.$ac_ext
10996 cat >>conftest.$ac_ext <<_ACEOF
10997 /* end confdefs.h. */
10998 #include <sys/types.h>
10999 #include <time.h>
11002 main ()
11004 struct tm *tp; tp->tm_sec;
11006 return 0;
11008 _ACEOF
11009 rm -f conftest.$ac_objext
11010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11011 (eval $ac_compile) 2>conftest.er1
11012 ac_status=$?
11013 grep -v '^ *+' conftest.er1 >conftest.err
11014 rm -f conftest.er1
11015 cat conftest.err >&5
11016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017 (exit $ac_status); } &&
11018 { ac_try='test -z "$ac_c_werror_flag"
11019 || test ! -s conftest.err'
11020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11021 (eval $ac_try) 2>&5
11022 ac_status=$?
11023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024 (exit $ac_status); }; } &&
11025 { ac_try='test -s conftest.$ac_objext'
11026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11027 (eval $ac_try) 2>&5
11028 ac_status=$?
11029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030 (exit $ac_status); }; }; then
11031 ac_cv_struct_tm=time.h
11032 else
11033 echo "$as_me: failed program was:" >&5
11034 sed 's/^/| /' conftest.$ac_ext >&5
11036 ac_cv_struct_tm=sys/time.h
11038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11040 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11041 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11042 if test $ac_cv_struct_tm = sys/time.h; then
11044 cat >>confdefs.h <<\_ACEOF
11045 #define TM_IN_SYS_TIME 1
11046 _ACEOF
11050 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
11051 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
11052 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
11053 echo $ECHO_N "(cached) $ECHO_C" >&6
11054 else
11055 cat >conftest.$ac_ext <<_ACEOF
11056 /* confdefs.h. */
11057 _ACEOF
11058 cat confdefs.h >>conftest.$ac_ext
11059 cat >>conftest.$ac_ext <<_ACEOF
11060 /* end confdefs.h. */
11061 #include <sys/types.h>
11062 #include <$ac_cv_struct_tm>
11066 main ()
11068 static struct tm ac_aggr;
11069 if (ac_aggr.tm_zone)
11070 return 0;
11072 return 0;
11074 _ACEOF
11075 rm -f conftest.$ac_objext
11076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11077 (eval $ac_compile) 2>conftest.er1
11078 ac_status=$?
11079 grep -v '^ *+' conftest.er1 >conftest.err
11080 rm -f conftest.er1
11081 cat conftest.err >&5
11082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083 (exit $ac_status); } &&
11084 { ac_try='test -z "$ac_c_werror_flag"
11085 || test ! -s conftest.err'
11086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11087 (eval $ac_try) 2>&5
11088 ac_status=$?
11089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090 (exit $ac_status); }; } &&
11091 { ac_try='test -s conftest.$ac_objext'
11092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11093 (eval $ac_try) 2>&5
11094 ac_status=$?
11095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096 (exit $ac_status); }; }; then
11097 ac_cv_member_struct_tm_tm_zone=yes
11098 else
11099 echo "$as_me: failed program was:" >&5
11100 sed 's/^/| /' conftest.$ac_ext >&5
11102 cat >conftest.$ac_ext <<_ACEOF
11103 /* confdefs.h. */
11104 _ACEOF
11105 cat confdefs.h >>conftest.$ac_ext
11106 cat >>conftest.$ac_ext <<_ACEOF
11107 /* end confdefs.h. */
11108 #include <sys/types.h>
11109 #include <$ac_cv_struct_tm>
11113 main ()
11115 static struct tm ac_aggr;
11116 if (sizeof ac_aggr.tm_zone)
11117 return 0;
11119 return 0;
11121 _ACEOF
11122 rm -f conftest.$ac_objext
11123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11124 (eval $ac_compile) 2>conftest.er1
11125 ac_status=$?
11126 grep -v '^ *+' conftest.er1 >conftest.err
11127 rm -f conftest.er1
11128 cat conftest.err >&5
11129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130 (exit $ac_status); } &&
11131 { ac_try='test -z "$ac_c_werror_flag"
11132 || test ! -s conftest.err'
11133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11134 (eval $ac_try) 2>&5
11135 ac_status=$?
11136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137 (exit $ac_status); }; } &&
11138 { ac_try='test -s conftest.$ac_objext'
11139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11140 (eval $ac_try) 2>&5
11141 ac_status=$?
11142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143 (exit $ac_status); }; }; then
11144 ac_cv_member_struct_tm_tm_zone=yes
11145 else
11146 echo "$as_me: failed program was:" >&5
11147 sed 's/^/| /' conftest.$ac_ext >&5
11149 ac_cv_member_struct_tm_tm_zone=no
11151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11155 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11156 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
11157 if test $ac_cv_member_struct_tm_tm_zone = yes; then
11159 cat >>confdefs.h <<_ACEOF
11160 #define HAVE_STRUCT_TM_TM_ZONE 1
11161 _ACEOF
11166 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11168 cat >>confdefs.h <<\_ACEOF
11169 #define HAVE_TM_ZONE 1
11170 _ACEOF
11172 else
11173 echo "$as_me:$LINENO: checking for tzname" >&5
11174 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11175 if test "${ac_cv_var_tzname+set}" = set; then
11176 echo $ECHO_N "(cached) $ECHO_C" >&6
11177 else
11178 if test x$gcc_no_link = xyes; then
11179 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11180 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11181 { (exit 1); exit 1; }; }
11183 cat >conftest.$ac_ext <<_ACEOF
11184 /* confdefs.h. */
11185 _ACEOF
11186 cat confdefs.h >>conftest.$ac_ext
11187 cat >>conftest.$ac_ext <<_ACEOF
11188 /* end confdefs.h. */
11189 #include <time.h>
11190 #ifndef tzname /* For SGI. */
11191 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
11192 #endif
11195 main ()
11197 atoi(*tzname);
11199 return 0;
11201 _ACEOF
11202 rm -f conftest.$ac_objext conftest$ac_exeext
11203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11204 (eval $ac_link) 2>conftest.er1
11205 ac_status=$?
11206 grep -v '^ *+' conftest.er1 >conftest.err
11207 rm -f conftest.er1
11208 cat conftest.err >&5
11209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11210 (exit $ac_status); } &&
11211 { ac_try='test -z "$ac_c_werror_flag"
11212 || test ! -s conftest.err'
11213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11214 (eval $ac_try) 2>&5
11215 ac_status=$?
11216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11217 (exit $ac_status); }; } &&
11218 { ac_try='test -s conftest$ac_exeext'
11219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11220 (eval $ac_try) 2>&5
11221 ac_status=$?
11222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223 (exit $ac_status); }; }; then
11224 ac_cv_var_tzname=yes
11225 else
11226 echo "$as_me: failed program was:" >&5
11227 sed 's/^/| /' conftest.$ac_ext >&5
11229 ac_cv_var_tzname=no
11231 rm -f conftest.err conftest.$ac_objext \
11232 conftest$ac_exeext conftest.$ac_ext
11234 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11235 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11236 if test $ac_cv_var_tzname = yes; then
11238 cat >>confdefs.h <<\_ACEOF
11239 #define HAVE_TZNAME 1
11240 _ACEOF
11248 for ac_func in gethostbyname_r
11250 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11251 echo "$as_me:$LINENO: checking for $ac_func" >&5
11252 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11253 if eval "test \"\${$as_ac_var+set}\" = set"; then
11254 echo $ECHO_N "(cached) $ECHO_C" >&6
11255 else
11256 if test x$gcc_no_link = xyes; then
11257 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11258 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11259 { (exit 1); exit 1; }; }
11261 cat >conftest.$ac_ext <<_ACEOF
11262 /* confdefs.h. */
11263 _ACEOF
11264 cat confdefs.h >>conftest.$ac_ext
11265 cat >>conftest.$ac_ext <<_ACEOF
11266 /* end confdefs.h. */
11267 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11268 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11269 #define $ac_func innocuous_$ac_func
11271 /* System header to define __stub macros and hopefully few prototypes,
11272 which can conflict with char $ac_func (); below.
11273 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11274 <limits.h> exists even on freestanding compilers. */
11276 #ifdef __STDC__
11277 # include <limits.h>
11278 #else
11279 # include <assert.h>
11280 #endif
11282 #undef $ac_func
11284 /* Override any gcc2 internal prototype to avoid an error. */
11285 #ifdef __cplusplus
11286 extern "C"
11288 #endif
11289 /* We use char because int might match the return type of a gcc2
11290 builtin and then its argument prototype would still apply. */
11291 char $ac_func ();
11292 /* The GNU C library defines this for functions which it implements
11293 to always fail with ENOSYS. Some functions are actually named
11294 something starting with __ and the normal name is an alias. */
11295 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11296 choke me
11297 #else
11298 char (*f) () = $ac_func;
11299 #endif
11300 #ifdef __cplusplus
11302 #endif
11305 main ()
11307 return f != $ac_func;
11309 return 0;
11311 _ACEOF
11312 rm -f conftest.$ac_objext conftest$ac_exeext
11313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11314 (eval $ac_link) 2>conftest.er1
11315 ac_status=$?
11316 grep -v '^ *+' conftest.er1 >conftest.err
11317 rm -f conftest.er1
11318 cat conftest.err >&5
11319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320 (exit $ac_status); } &&
11321 { ac_try='test -z "$ac_c_werror_flag"
11322 || test ! -s conftest.err'
11323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11324 (eval $ac_try) 2>&5
11325 ac_status=$?
11326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 (exit $ac_status); }; } &&
11328 { ac_try='test -s conftest$ac_exeext'
11329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11330 (eval $ac_try) 2>&5
11331 ac_status=$?
11332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11333 (exit $ac_status); }; }; then
11334 eval "$as_ac_var=yes"
11335 else
11336 echo "$as_me: failed program was:" >&5
11337 sed 's/^/| /' conftest.$ac_ext >&5
11339 eval "$as_ac_var=no"
11341 rm -f conftest.err conftest.$ac_objext \
11342 conftest$ac_exeext conftest.$ac_ext
11344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11345 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11346 if test `eval echo '${'$as_ac_var'}'` = yes; then
11347 cat >>confdefs.h <<_ACEOF
11348 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11349 _ACEOF
11352 cat >>confdefs.h <<\_ACEOF
11353 #define HAVE_GETHOSTBYNAME_R 1
11354 _ACEOF
11356 # There are two different kinds of gethostbyname_r.
11357 # We look for the one that returns `int'.
11358 # Hopefully this check is robust enough.
11359 cat >conftest.$ac_ext <<_ACEOF
11360 /* confdefs.h. */
11361 _ACEOF
11362 cat confdefs.h >>conftest.$ac_ext
11363 cat >>conftest.$ac_ext <<_ACEOF
11364 /* end confdefs.h. */
11365 #include <netdb.h>
11367 _ACEOF
11368 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11369 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
11372 cat >>confdefs.h <<\_ACEOF
11373 #define GETHOSTBYNAME_R_RETURNS_INT 1
11374 _ACEOF
11377 rm -f conftest*
11380 case " $GCINCS " in
11381 *" -D_REENTRANT "*) ;;
11383 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
11384 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
11385 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
11386 echo $ECHO_N "(cached) $ECHO_C" >&6
11387 else
11388 ac_ext=cc
11389 ac_cpp='$CXXCPP $CPPFLAGS'
11390 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11391 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11392 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11394 cat >conftest.$ac_ext <<_ACEOF
11395 /* confdefs.h. */
11396 _ACEOF
11397 cat confdefs.h >>conftest.$ac_ext
11398 cat >>conftest.$ac_ext <<_ACEOF
11399 /* end confdefs.h. */
11400 #include <netdb.h>
11402 main ()
11404 gethostbyname_r("", 0, 0);
11406 return 0;
11408 _ACEOF
11409 rm -f conftest.$ac_objext
11410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11411 (eval $ac_compile) 2>conftest.er1
11412 ac_status=$?
11413 grep -v '^ *+' conftest.er1 >conftest.err
11414 rm -f conftest.er1
11415 cat conftest.err >&5
11416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417 (exit $ac_status); } &&
11418 { ac_try='test -z "$ac_cxx_werror_flag"
11419 || test ! -s conftest.err'
11420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11421 (eval $ac_try) 2>&5
11422 ac_status=$?
11423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424 (exit $ac_status); }; } &&
11425 { ac_try='test -s conftest.$ac_objext'
11426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11427 (eval $ac_try) 2>&5
11428 ac_status=$?
11429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11430 (exit $ac_status); }; }; then
11431 libjava_cv_gethostbyname_r_needs_reentrant=no
11432 else
11433 echo "$as_me: failed program was:" >&5
11434 sed 's/^/| /' conftest.$ac_ext >&5
11436 CPPFLAGS_SAVE="$CPPFLAGS"
11437 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
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. */
11444 #include <netdb.h>
11446 main ()
11448 gethostbyname_r("", 0, 0);
11450 return 0;
11452 _ACEOF
11453 rm -f conftest.$ac_objext
11454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11455 (eval $ac_compile) 2>conftest.er1
11456 ac_status=$?
11457 grep -v '^ *+' conftest.er1 >conftest.err
11458 rm -f conftest.er1
11459 cat conftest.err >&5
11460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11461 (exit $ac_status); } &&
11462 { ac_try='test -z "$ac_cxx_werror_flag"
11463 || test ! -s conftest.err'
11464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11465 (eval $ac_try) 2>&5
11466 ac_status=$?
11467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11468 (exit $ac_status); }; } &&
11469 { ac_try='test -s conftest.$ac_objext'
11470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11471 (eval $ac_try) 2>&5
11472 ac_status=$?
11473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474 (exit $ac_status); }; }; then
11475 libjava_cv_gethostbyname_r_needs_reentrant=yes
11476 else
11477 echo "$as_me: failed program was:" >&5
11478 sed 's/^/| /' conftest.$ac_ext >&5
11480 libjava_cv_gethostbyname_r_needs_reentrant=fail
11482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11483 CPPFLAGS="$CPPFLAGS_SAVE"
11486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11487 ac_ext=c
11488 ac_cpp='$CPP $CPPFLAGS'
11489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11495 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
11496 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
11497 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
11499 cat >>confdefs.h <<\_ACEOF
11500 #define _REENTRANT 1
11501 _ACEOF
11505 esac
11507 echo "$as_me:$LINENO: checking for struct hostent_data" >&5
11508 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
11509 if test "${libjava_cv_struct_hostent_data+set}" = set; then
11510 echo $ECHO_N "(cached) $ECHO_C" >&6
11511 else
11512 cat >conftest.$ac_ext <<_ACEOF
11513 /* confdefs.h. */
11514 _ACEOF
11515 cat confdefs.h >>conftest.$ac_ext
11516 cat >>conftest.$ac_ext <<_ACEOF
11517 /* end confdefs.h. */
11519 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
11520 # define _REENTRANT 1
11521 #endif
11522 #include <netdb.h>
11524 main ()
11526 struct hostent_data data;
11528 return 0;
11530 _ACEOF
11531 rm -f conftest.$ac_objext
11532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11533 (eval $ac_compile) 2>conftest.er1
11534 ac_status=$?
11535 grep -v '^ *+' conftest.er1 >conftest.err
11536 rm -f conftest.er1
11537 cat conftest.err >&5
11538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539 (exit $ac_status); } &&
11540 { ac_try='test -z "$ac_c_werror_flag"
11541 || test ! -s conftest.err'
11542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11543 (eval $ac_try) 2>&5
11544 ac_status=$?
11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); }; } &&
11547 { ac_try='test -s conftest.$ac_objext'
11548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11549 (eval $ac_try) 2>&5
11550 ac_status=$?
11551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11552 (exit $ac_status); }; }; then
11553 libjava_cv_struct_hostent_data=yes
11554 else
11555 echo "$as_me: failed program was:" >&5
11556 sed 's/^/| /' conftest.$ac_ext >&5
11558 libjava_cv_struct_hostent_data=no
11560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11562 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
11563 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
11564 if test "x$libjava_cv_struct_hostent_data" = xyes; then
11566 cat >>confdefs.h <<\_ACEOF
11567 #define HAVE_STRUCT_HOSTENT_DATA 1
11568 _ACEOF
11573 done
11576 # FIXME: libjava source code expects to find a prototype for
11577 # gethostbyaddr_r in netdb.h. The outer check ensures that
11578 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
11579 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
11580 # linkage check is enough, yet C++ code requires proper prototypes.)
11581 cat >conftest.$ac_ext <<_ACEOF
11582 /* confdefs.h. */
11583 _ACEOF
11584 cat confdefs.h >>conftest.$ac_ext
11585 cat >>conftest.$ac_ext <<_ACEOF
11586 /* end confdefs.h. */
11587 #include <netdb.h>
11589 _ACEOF
11590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11591 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
11594 for ac_func in gethostbyaddr_r
11596 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11597 echo "$as_me:$LINENO: checking for $ac_func" >&5
11598 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11599 if eval "test \"\${$as_ac_var+set}\" = set"; then
11600 echo $ECHO_N "(cached) $ECHO_C" >&6
11601 else
11602 if test x$gcc_no_link = xyes; then
11603 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11604 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11605 { (exit 1); exit 1; }; }
11607 cat >conftest.$ac_ext <<_ACEOF
11608 /* confdefs.h. */
11609 _ACEOF
11610 cat confdefs.h >>conftest.$ac_ext
11611 cat >>conftest.$ac_ext <<_ACEOF
11612 /* end confdefs.h. */
11613 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11614 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11615 #define $ac_func innocuous_$ac_func
11617 /* System header to define __stub macros and hopefully few prototypes,
11618 which can conflict with char $ac_func (); below.
11619 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11620 <limits.h> exists even on freestanding compilers. */
11622 #ifdef __STDC__
11623 # include <limits.h>
11624 #else
11625 # include <assert.h>
11626 #endif
11628 #undef $ac_func
11630 /* Override any gcc2 internal prototype to avoid an error. */
11631 #ifdef __cplusplus
11632 extern "C"
11634 #endif
11635 /* We use char because int might match the return type of a gcc2
11636 builtin and then its argument prototype would still apply. */
11637 char $ac_func ();
11638 /* The GNU C library defines this for functions which it implements
11639 to always fail with ENOSYS. Some functions are actually named
11640 something starting with __ and the normal name is an alias. */
11641 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11642 choke me
11643 #else
11644 char (*f) () = $ac_func;
11645 #endif
11646 #ifdef __cplusplus
11648 #endif
11651 main ()
11653 return f != $ac_func;
11655 return 0;
11657 _ACEOF
11658 rm -f conftest.$ac_objext conftest$ac_exeext
11659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11660 (eval $ac_link) 2>conftest.er1
11661 ac_status=$?
11662 grep -v '^ *+' conftest.er1 >conftest.err
11663 rm -f conftest.er1
11664 cat conftest.err >&5
11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 (exit $ac_status); } &&
11667 { ac_try='test -z "$ac_c_werror_flag"
11668 || test ! -s conftest.err'
11669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11670 (eval $ac_try) 2>&5
11671 ac_status=$?
11672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673 (exit $ac_status); }; } &&
11674 { ac_try='test -s conftest$ac_exeext'
11675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11676 (eval $ac_try) 2>&5
11677 ac_status=$?
11678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679 (exit $ac_status); }; }; then
11680 eval "$as_ac_var=yes"
11681 else
11682 echo "$as_me: failed program was:" >&5
11683 sed 's/^/| /' conftest.$ac_ext >&5
11685 eval "$as_ac_var=no"
11687 rm -f conftest.err conftest.$ac_objext \
11688 conftest$ac_exeext conftest.$ac_ext
11690 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11691 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11692 if test `eval echo '${'$as_ac_var'}'` = yes; then
11693 cat >>confdefs.h <<_ACEOF
11694 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11695 _ACEOF
11698 cat >>confdefs.h <<\_ACEOF
11699 #define HAVE_GETHOSTBYADDR_R 1
11700 _ACEOF
11702 # There are two different kinds of gethostbyaddr_r.
11703 # We look for the one that returns `int'.
11704 # Hopefully this check is robust enough.
11705 cat >conftest.$ac_ext <<_ACEOF
11706 /* confdefs.h. */
11707 _ACEOF
11708 cat confdefs.h >>conftest.$ac_ext
11709 cat >>conftest.$ac_ext <<_ACEOF
11710 /* end confdefs.h. */
11711 #include <netdb.h>
11713 _ACEOF
11714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11715 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
11718 cat >>confdefs.h <<\_ACEOF
11719 #define GETHOSTBYADDR_R_RETURNS_INT 1
11720 _ACEOF
11723 rm -f conftest*
11726 done
11729 rm -f conftest*
11733 for ac_func in gethostname
11735 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11736 echo "$as_me:$LINENO: checking for $ac_func" >&5
11737 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11738 if eval "test \"\${$as_ac_var+set}\" = set"; then
11739 echo $ECHO_N "(cached) $ECHO_C" >&6
11740 else
11741 if test x$gcc_no_link = xyes; then
11742 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11743 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11744 { (exit 1); exit 1; }; }
11746 cat >conftest.$ac_ext <<_ACEOF
11747 /* confdefs.h. */
11748 _ACEOF
11749 cat confdefs.h >>conftest.$ac_ext
11750 cat >>conftest.$ac_ext <<_ACEOF
11751 /* end confdefs.h. */
11752 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11753 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11754 #define $ac_func innocuous_$ac_func
11756 /* System header to define __stub macros and hopefully few prototypes,
11757 which can conflict with char $ac_func (); below.
11758 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11759 <limits.h> exists even on freestanding compilers. */
11761 #ifdef __STDC__
11762 # include <limits.h>
11763 #else
11764 # include <assert.h>
11765 #endif
11767 #undef $ac_func
11769 /* Override any gcc2 internal prototype to avoid an error. */
11770 #ifdef __cplusplus
11771 extern "C"
11773 #endif
11774 /* We use char because int might match the return type of a gcc2
11775 builtin and then its argument prototype would still apply. */
11776 char $ac_func ();
11777 /* The GNU C library defines this for functions which it implements
11778 to always fail with ENOSYS. Some functions are actually named
11779 something starting with __ and the normal name is an alias. */
11780 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11781 choke me
11782 #else
11783 char (*f) () = $ac_func;
11784 #endif
11785 #ifdef __cplusplus
11787 #endif
11790 main ()
11792 return f != $ac_func;
11794 return 0;
11796 _ACEOF
11797 rm -f conftest.$ac_objext conftest$ac_exeext
11798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11799 (eval $ac_link) 2>conftest.er1
11800 ac_status=$?
11801 grep -v '^ *+' conftest.er1 >conftest.err
11802 rm -f conftest.er1
11803 cat conftest.err >&5
11804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805 (exit $ac_status); } &&
11806 { ac_try='test -z "$ac_c_werror_flag"
11807 || test ! -s conftest.err'
11808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11809 (eval $ac_try) 2>&5
11810 ac_status=$?
11811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812 (exit $ac_status); }; } &&
11813 { ac_try='test -s conftest$ac_exeext'
11814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11815 (eval $ac_try) 2>&5
11816 ac_status=$?
11817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818 (exit $ac_status); }; }; then
11819 eval "$as_ac_var=yes"
11820 else
11821 echo "$as_me: failed program was:" >&5
11822 sed 's/^/| /' conftest.$ac_ext >&5
11824 eval "$as_ac_var=no"
11826 rm -f conftest.err conftest.$ac_objext \
11827 conftest$ac_exeext conftest.$ac_ext
11829 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11830 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11831 if test `eval echo '${'$as_ac_var'}'` = yes; then
11832 cat >>confdefs.h <<_ACEOF
11833 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11834 _ACEOF
11837 cat >>confdefs.h <<\_ACEOF
11838 #define HAVE_GETHOSTNAME 1
11839 _ACEOF
11841 cat >conftest.$ac_ext <<_ACEOF
11842 /* confdefs.h. */
11843 _ACEOF
11844 cat confdefs.h >>conftest.$ac_ext
11845 cat >>conftest.$ac_ext <<_ACEOF
11846 /* end confdefs.h. */
11847 #include <unistd.h>
11849 _ACEOF
11850 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11851 $EGREP "gethostname" >/dev/null 2>&1; then
11854 cat >>confdefs.h <<\_ACEOF
11855 #define HAVE_GETHOSTNAME_DECL 1
11856 _ACEOF
11859 rm -f conftest*
11862 done
11866 for ac_func in usleep
11868 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11869 echo "$as_me:$LINENO: checking for $ac_func" >&5
11870 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11871 if eval "test \"\${$as_ac_var+set}\" = set"; then
11872 echo $ECHO_N "(cached) $ECHO_C" >&6
11873 else
11874 if test x$gcc_no_link = xyes; then
11875 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11876 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11877 { (exit 1); exit 1; }; }
11879 cat >conftest.$ac_ext <<_ACEOF
11880 /* confdefs.h. */
11881 _ACEOF
11882 cat confdefs.h >>conftest.$ac_ext
11883 cat >>conftest.$ac_ext <<_ACEOF
11884 /* end confdefs.h. */
11885 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11887 #define $ac_func innocuous_$ac_func
11889 /* System header to define __stub macros and hopefully few prototypes,
11890 which can conflict with char $ac_func (); below.
11891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11892 <limits.h> exists even on freestanding compilers. */
11894 #ifdef __STDC__
11895 # include <limits.h>
11896 #else
11897 # include <assert.h>
11898 #endif
11900 #undef $ac_func
11902 /* Override any gcc2 internal prototype to avoid an error. */
11903 #ifdef __cplusplus
11904 extern "C"
11906 #endif
11907 /* We use char because int might match the return type of a gcc2
11908 builtin and then its argument prototype would still apply. */
11909 char $ac_func ();
11910 /* The GNU C library defines this for functions which it implements
11911 to always fail with ENOSYS. Some functions are actually named
11912 something starting with __ and the normal name is an alias. */
11913 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11914 choke me
11915 #else
11916 char (*f) () = $ac_func;
11917 #endif
11918 #ifdef __cplusplus
11920 #endif
11923 main ()
11925 return f != $ac_func;
11927 return 0;
11929 _ACEOF
11930 rm -f conftest.$ac_objext conftest$ac_exeext
11931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11932 (eval $ac_link) 2>conftest.er1
11933 ac_status=$?
11934 grep -v '^ *+' conftest.er1 >conftest.err
11935 rm -f conftest.er1
11936 cat conftest.err >&5
11937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938 (exit $ac_status); } &&
11939 { ac_try='test -z "$ac_c_werror_flag"
11940 || test ! -s conftest.err'
11941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11942 (eval $ac_try) 2>&5
11943 ac_status=$?
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); }; } &&
11946 { ac_try='test -s conftest$ac_exeext'
11947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11948 (eval $ac_try) 2>&5
11949 ac_status=$?
11950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951 (exit $ac_status); }; }; then
11952 eval "$as_ac_var=yes"
11953 else
11954 echo "$as_me: failed program was:" >&5
11955 sed 's/^/| /' conftest.$ac_ext >&5
11957 eval "$as_ac_var=no"
11959 rm -f conftest.err conftest.$ac_objext \
11960 conftest$ac_exeext conftest.$ac_ext
11962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11963 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11964 if test `eval echo '${'$as_ac_var'}'` = yes; then
11965 cat >>confdefs.h <<_ACEOF
11966 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11967 _ACEOF
11969 cat >conftest.$ac_ext <<_ACEOF
11970 /* confdefs.h. */
11971 _ACEOF
11972 cat confdefs.h >>conftest.$ac_ext
11973 cat >>conftest.$ac_ext <<_ACEOF
11974 /* end confdefs.h. */
11975 #include <unistd.h>
11977 _ACEOF
11978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11979 $EGREP "usleep" >/dev/null 2>&1; then
11982 cat >>confdefs.h <<\_ACEOF
11983 #define HAVE_USLEEP_DECL 1
11984 _ACEOF
11987 rm -f conftest*
11990 done
11993 # Look for these functions in the thread library, but only bother
11994 # if using POSIX threads.
11995 if test "$THREADS" = posix; then
11996 save_LIBS="$LIBS"
11997 LIBS="$LIBS $THREADLIBS"
11998 # Some POSIX thread systems don't have pthread_mutexattr_settype.
11999 # E.g., Solaris.
12002 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
12004 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12005 echo "$as_me:$LINENO: checking for $ac_func" >&5
12006 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12007 if eval "test \"\${$as_ac_var+set}\" = set"; then
12008 echo $ECHO_N "(cached) $ECHO_C" >&6
12009 else
12010 if test x$gcc_no_link = xyes; then
12011 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12012 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12013 { (exit 1); exit 1; }; }
12015 cat >conftest.$ac_ext <<_ACEOF
12016 /* confdefs.h. */
12017 _ACEOF
12018 cat confdefs.h >>conftest.$ac_ext
12019 cat >>conftest.$ac_ext <<_ACEOF
12020 /* end confdefs.h. */
12021 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12022 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12023 #define $ac_func innocuous_$ac_func
12025 /* System header to define __stub macros and hopefully few prototypes,
12026 which can conflict with char $ac_func (); below.
12027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12028 <limits.h> exists even on freestanding compilers. */
12030 #ifdef __STDC__
12031 # include <limits.h>
12032 #else
12033 # include <assert.h>
12034 #endif
12036 #undef $ac_func
12038 /* Override any gcc2 internal prototype to avoid an error. */
12039 #ifdef __cplusplus
12040 extern "C"
12042 #endif
12043 /* We use char because int might match the return type of a gcc2
12044 builtin and then its argument prototype would still apply. */
12045 char $ac_func ();
12046 /* The GNU C library defines this for functions which it implements
12047 to always fail with ENOSYS. Some functions are actually named
12048 something starting with __ and the normal name is an alias. */
12049 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12050 choke me
12051 #else
12052 char (*f) () = $ac_func;
12053 #endif
12054 #ifdef __cplusplus
12056 #endif
12059 main ()
12061 return f != $ac_func;
12063 return 0;
12065 _ACEOF
12066 rm -f conftest.$ac_objext conftest$ac_exeext
12067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12068 (eval $ac_link) 2>conftest.er1
12069 ac_status=$?
12070 grep -v '^ *+' conftest.er1 >conftest.err
12071 rm -f conftest.er1
12072 cat conftest.err >&5
12073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074 (exit $ac_status); } &&
12075 { ac_try='test -z "$ac_c_werror_flag"
12076 || test ! -s conftest.err'
12077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12078 (eval $ac_try) 2>&5
12079 ac_status=$?
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); }; } &&
12082 { ac_try='test -s conftest$ac_exeext'
12083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12084 (eval $ac_try) 2>&5
12085 ac_status=$?
12086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087 (exit $ac_status); }; }; then
12088 eval "$as_ac_var=yes"
12089 else
12090 echo "$as_me: failed program was:" >&5
12091 sed 's/^/| /' conftest.$ac_ext >&5
12093 eval "$as_ac_var=no"
12095 rm -f conftest.err conftest.$ac_objext \
12096 conftest$ac_exeext conftest.$ac_ext
12098 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12099 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12100 if test `eval echo '${'$as_ac_var'}'` = yes; then
12101 cat >>confdefs.h <<_ACEOF
12102 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12103 _ACEOF
12106 done
12109 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
12110 # Solaris 7 the name librt is preferred.
12112 for ac_func in sched_yield
12114 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12115 echo "$as_me:$LINENO: checking for $ac_func" >&5
12116 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12117 if eval "test \"\${$as_ac_var+set}\" = set"; then
12118 echo $ECHO_N "(cached) $ECHO_C" >&6
12119 else
12120 if test x$gcc_no_link = xyes; then
12121 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12122 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12123 { (exit 1); exit 1; }; }
12125 cat >conftest.$ac_ext <<_ACEOF
12126 /* confdefs.h. */
12127 _ACEOF
12128 cat confdefs.h >>conftest.$ac_ext
12129 cat >>conftest.$ac_ext <<_ACEOF
12130 /* end confdefs.h. */
12131 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12132 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12133 #define $ac_func innocuous_$ac_func
12135 /* System header to define __stub macros and hopefully few prototypes,
12136 which can conflict with char $ac_func (); below.
12137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12138 <limits.h> exists even on freestanding compilers. */
12140 #ifdef __STDC__
12141 # include <limits.h>
12142 #else
12143 # include <assert.h>
12144 #endif
12146 #undef $ac_func
12148 /* Override any gcc2 internal prototype to avoid an error. */
12149 #ifdef __cplusplus
12150 extern "C"
12152 #endif
12153 /* We use char because int might match the return type of a gcc2
12154 builtin and then its argument prototype would still apply. */
12155 char $ac_func ();
12156 /* The GNU C library defines this for functions which it implements
12157 to always fail with ENOSYS. Some functions are actually named
12158 something starting with __ and the normal name is an alias. */
12159 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12160 choke me
12161 #else
12162 char (*f) () = $ac_func;
12163 #endif
12164 #ifdef __cplusplus
12166 #endif
12169 main ()
12171 return f != $ac_func;
12173 return 0;
12175 _ACEOF
12176 rm -f conftest.$ac_objext conftest$ac_exeext
12177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12178 (eval $ac_link) 2>conftest.er1
12179 ac_status=$?
12180 grep -v '^ *+' conftest.er1 >conftest.err
12181 rm -f conftest.er1
12182 cat conftest.err >&5
12183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184 (exit $ac_status); } &&
12185 { ac_try='test -z "$ac_c_werror_flag"
12186 || test ! -s conftest.err'
12187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12188 (eval $ac_try) 2>&5
12189 ac_status=$?
12190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191 (exit $ac_status); }; } &&
12192 { ac_try='test -s conftest$ac_exeext'
12193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12194 (eval $ac_try) 2>&5
12195 ac_status=$?
12196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197 (exit $ac_status); }; }; then
12198 eval "$as_ac_var=yes"
12199 else
12200 echo "$as_me: failed program was:" >&5
12201 sed 's/^/| /' conftest.$ac_ext >&5
12203 eval "$as_ac_var=no"
12205 rm -f conftest.err conftest.$ac_objext \
12206 conftest$ac_exeext conftest.$ac_ext
12208 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12209 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12210 if test `eval echo '${'$as_ac_var'}'` = yes; then
12211 cat >>confdefs.h <<_ACEOF
12212 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12213 _ACEOF
12215 else
12217 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
12218 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
12219 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
12220 echo $ECHO_N "(cached) $ECHO_C" >&6
12221 else
12222 ac_check_lib_save_LIBS=$LIBS
12223 LIBS="-lrt $LIBS"
12224 if test x$gcc_no_link = xyes; then
12225 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12226 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12227 { (exit 1); exit 1; }; }
12229 cat >conftest.$ac_ext <<_ACEOF
12230 /* confdefs.h. */
12231 _ACEOF
12232 cat confdefs.h >>conftest.$ac_ext
12233 cat >>conftest.$ac_ext <<_ACEOF
12234 /* end confdefs.h. */
12236 /* Override any gcc2 internal prototype to avoid an error. */
12237 #ifdef __cplusplus
12238 extern "C"
12239 #endif
12240 /* We use char because int might match the return type of a gcc2
12241 builtin and then its argument prototype would still apply. */
12242 char sched_yield ();
12244 main ()
12246 sched_yield ();
12248 return 0;
12250 _ACEOF
12251 rm -f conftest.$ac_objext conftest$ac_exeext
12252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12253 (eval $ac_link) 2>conftest.er1
12254 ac_status=$?
12255 grep -v '^ *+' conftest.er1 >conftest.err
12256 rm -f conftest.er1
12257 cat conftest.err >&5
12258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259 (exit $ac_status); } &&
12260 { ac_try='test -z "$ac_c_werror_flag"
12261 || test ! -s conftest.err'
12262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12263 (eval $ac_try) 2>&5
12264 ac_status=$?
12265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266 (exit $ac_status); }; } &&
12267 { ac_try='test -s conftest$ac_exeext'
12268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12269 (eval $ac_try) 2>&5
12270 ac_status=$?
12271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272 (exit $ac_status); }; }; then
12273 ac_cv_lib_rt_sched_yield=yes
12274 else
12275 echo "$as_me: failed program was:" >&5
12276 sed 's/^/| /' conftest.$ac_ext >&5
12278 ac_cv_lib_rt_sched_yield=no
12280 rm -f conftest.err conftest.$ac_objext \
12281 conftest$ac_exeext conftest.$ac_ext
12282 LIBS=$ac_check_lib_save_LIBS
12284 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
12285 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
12286 if test $ac_cv_lib_rt_sched_yield = yes; then
12288 cat >>confdefs.h <<\_ACEOF
12289 #define HAVE_SCHED_YIELD 1
12290 _ACEOF
12292 THREADLIBS="$THREADLIBS -lrt"
12293 THREADSPEC="$THREADSPEC -lrt"
12294 else
12296 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
12297 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
12298 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
12299 echo $ECHO_N "(cached) $ECHO_C" >&6
12300 else
12301 ac_check_lib_save_LIBS=$LIBS
12302 LIBS="-lposix4 $LIBS"
12303 if test x$gcc_no_link = xyes; then
12304 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12305 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12306 { (exit 1); exit 1; }; }
12308 cat >conftest.$ac_ext <<_ACEOF
12309 /* confdefs.h. */
12310 _ACEOF
12311 cat confdefs.h >>conftest.$ac_ext
12312 cat >>conftest.$ac_ext <<_ACEOF
12313 /* end confdefs.h. */
12315 /* Override any gcc2 internal prototype to avoid an error. */
12316 #ifdef __cplusplus
12317 extern "C"
12318 #endif
12319 /* We use char because int might match the return type of a gcc2
12320 builtin and then its argument prototype would still apply. */
12321 char sched_yield ();
12323 main ()
12325 sched_yield ();
12327 return 0;
12329 _ACEOF
12330 rm -f conftest.$ac_objext conftest$ac_exeext
12331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12332 (eval $ac_link) 2>conftest.er1
12333 ac_status=$?
12334 grep -v '^ *+' conftest.er1 >conftest.err
12335 rm -f conftest.er1
12336 cat conftest.err >&5
12337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338 (exit $ac_status); } &&
12339 { ac_try='test -z "$ac_c_werror_flag"
12340 || test ! -s conftest.err'
12341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12342 (eval $ac_try) 2>&5
12343 ac_status=$?
12344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345 (exit $ac_status); }; } &&
12346 { ac_try='test -s conftest$ac_exeext'
12347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12348 (eval $ac_try) 2>&5
12349 ac_status=$?
12350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351 (exit $ac_status); }; }; then
12352 ac_cv_lib_posix4_sched_yield=yes
12353 else
12354 echo "$as_me: failed program was:" >&5
12355 sed 's/^/| /' conftest.$ac_ext >&5
12357 ac_cv_lib_posix4_sched_yield=no
12359 rm -f conftest.err conftest.$ac_objext \
12360 conftest$ac_exeext conftest.$ac_ext
12361 LIBS=$ac_check_lib_save_LIBS
12363 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
12364 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
12365 if test $ac_cv_lib_posix4_sched_yield = yes; then
12367 cat >>confdefs.h <<\_ACEOF
12368 #define HAVE_SCHED_YIELD 1
12369 _ACEOF
12371 THREADLIBS="$THREADLIBS -lposix4"
12372 THREADSPEC="$THREADSPEC -lposix4"
12378 done
12381 echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
12382 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
12383 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
12384 echo $ECHO_N "(cached) $ECHO_C" >&6
12385 else
12386 ac_check_lib_save_LIBS=$LIBS
12387 LIBS="-lrt $LIBS"
12388 if test x$gcc_no_link = xyes; then
12389 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12390 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12391 { (exit 1); exit 1; }; }
12393 cat >conftest.$ac_ext <<_ACEOF
12394 /* confdefs.h. */
12395 _ACEOF
12396 cat confdefs.h >>conftest.$ac_ext
12397 cat >>conftest.$ac_ext <<_ACEOF
12398 /* end confdefs.h. */
12400 /* Override any gcc2 internal prototype to avoid an error. */
12401 #ifdef __cplusplus
12402 extern "C"
12403 #endif
12404 /* We use char because int might match the return type of a gcc2
12405 builtin and then its argument prototype would still apply. */
12406 char clock_gettime ();
12408 main ()
12410 clock_gettime ();
12412 return 0;
12414 _ACEOF
12415 rm -f conftest.$ac_objext conftest$ac_exeext
12416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12417 (eval $ac_link) 2>conftest.er1
12418 ac_status=$?
12419 grep -v '^ *+' conftest.er1 >conftest.err
12420 rm -f conftest.er1
12421 cat conftest.err >&5
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); } &&
12424 { ac_try='test -z "$ac_c_werror_flag"
12425 || test ! -s conftest.err'
12426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12427 (eval $ac_try) 2>&5
12428 ac_status=$?
12429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430 (exit $ac_status); }; } &&
12431 { ac_try='test -s conftest$ac_exeext'
12432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12433 (eval $ac_try) 2>&5
12434 ac_status=$?
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); }; }; then
12437 ac_cv_lib_rt_clock_gettime=yes
12438 else
12439 echo "$as_me: failed program was:" >&5
12440 sed 's/^/| /' conftest.$ac_ext >&5
12442 ac_cv_lib_rt_clock_gettime=no
12444 rm -f conftest.err conftest.$ac_objext \
12445 conftest$ac_exeext conftest.$ac_ext
12446 LIBS=$ac_check_lib_save_LIBS
12448 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
12449 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
12450 if test $ac_cv_lib_rt_clock_gettime = yes; then
12453 cat >>confdefs.h <<\_ACEOF
12454 #define HAVE_CLOCK_GETTIME 1
12455 _ACEOF
12457 case "$THREADSPEC" in
12458 *-lrt*) ;;
12460 THREADSPEC="$THREADSPEC -lrt"
12461 THREADLIBS="$THREADLIBS -lrt"
12463 esac
12467 LIBS="$save_LIBS"
12469 # We can save a little space at runtime if the mutex has m_count
12470 # or __m_count. This is a nice hack for Linux.
12471 cat >conftest.$ac_ext <<_ACEOF
12472 /* confdefs.h. */
12473 _ACEOF
12474 cat confdefs.h >>conftest.$ac_ext
12475 cat >>conftest.$ac_ext <<_ACEOF
12476 /* end confdefs.h. */
12477 #include <pthread.h>
12479 main ()
12482 extern pthread_mutex_t *mutex; int q = mutex->m_count;
12485 return 0;
12487 _ACEOF
12488 rm -f conftest.$ac_objext
12489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12490 (eval $ac_compile) 2>conftest.er1
12491 ac_status=$?
12492 grep -v '^ *+' conftest.er1 >conftest.err
12493 rm -f conftest.er1
12494 cat conftest.err >&5
12495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496 (exit $ac_status); } &&
12497 { ac_try='test -z "$ac_c_werror_flag"
12498 || test ! -s conftest.err'
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); }; } &&
12504 { ac_try='test -s conftest.$ac_objext'
12505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12506 (eval $ac_try) 2>&5
12507 ac_status=$?
12508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509 (exit $ac_status); }; }; then
12511 cat >>confdefs.h <<\_ACEOF
12512 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
12513 _ACEOF
12515 else
12516 echo "$as_me: failed program was:" >&5
12517 sed 's/^/| /' conftest.$ac_ext >&5
12520 cat >conftest.$ac_ext <<_ACEOF
12521 /* confdefs.h. */
12522 _ACEOF
12523 cat confdefs.h >>conftest.$ac_ext
12524 cat >>conftest.$ac_ext <<_ACEOF
12525 /* end confdefs.h. */
12526 #include <pthread.h>
12528 main ()
12531 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
12534 return 0;
12536 _ACEOF
12537 rm -f conftest.$ac_objext
12538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12539 (eval $ac_compile) 2>conftest.er1
12540 ac_status=$?
12541 grep -v '^ *+' conftest.er1 >conftest.err
12542 rm -f conftest.er1
12543 cat conftest.err >&5
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); } &&
12546 { ac_try='test -z "$ac_c_werror_flag"
12547 || test ! -s conftest.err'
12548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12549 (eval $ac_try) 2>&5
12550 ac_status=$?
12551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552 (exit $ac_status); }; } &&
12553 { ac_try='test -s conftest.$ac_objext'
12554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12555 (eval $ac_try) 2>&5
12556 ac_status=$?
12557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558 (exit $ac_status); }; }; then
12560 cat >>confdefs.h <<\_ACEOF
12561 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
12562 _ACEOF
12564 else
12565 echo "$as_me: failed program was:" >&5
12566 sed 's/^/| /' conftest.$ac_ext >&5
12569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12574 # We require a way to get the time.
12575 time_found=no
12579 for ac_func in gettimeofday time ftime
12581 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12582 echo "$as_me:$LINENO: checking for $ac_func" >&5
12583 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12584 if eval "test \"\${$as_ac_var+set}\" = set"; then
12585 echo $ECHO_N "(cached) $ECHO_C" >&6
12586 else
12587 if test x$gcc_no_link = xyes; then
12588 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12589 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12590 { (exit 1); exit 1; }; }
12592 cat >conftest.$ac_ext <<_ACEOF
12593 /* confdefs.h. */
12594 _ACEOF
12595 cat confdefs.h >>conftest.$ac_ext
12596 cat >>conftest.$ac_ext <<_ACEOF
12597 /* end confdefs.h. */
12598 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12600 #define $ac_func innocuous_$ac_func
12602 /* System header to define __stub macros and hopefully few prototypes,
12603 which can conflict with char $ac_func (); below.
12604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12605 <limits.h> exists even on freestanding compilers. */
12607 #ifdef __STDC__
12608 # include <limits.h>
12609 #else
12610 # include <assert.h>
12611 #endif
12613 #undef $ac_func
12615 /* Override any gcc2 internal prototype to avoid an error. */
12616 #ifdef __cplusplus
12617 extern "C"
12619 #endif
12620 /* We use char because int might match the return type of a gcc2
12621 builtin and then its argument prototype would still apply. */
12622 char $ac_func ();
12623 /* The GNU C library defines this for functions which it implements
12624 to always fail with ENOSYS. Some functions are actually named
12625 something starting with __ and the normal name is an alias. */
12626 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12627 choke me
12628 #else
12629 char (*f) () = $ac_func;
12630 #endif
12631 #ifdef __cplusplus
12633 #endif
12636 main ()
12638 return f != $ac_func;
12640 return 0;
12642 _ACEOF
12643 rm -f conftest.$ac_objext conftest$ac_exeext
12644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12645 (eval $ac_link) 2>conftest.er1
12646 ac_status=$?
12647 grep -v '^ *+' conftest.er1 >conftest.err
12648 rm -f conftest.er1
12649 cat conftest.err >&5
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); } &&
12652 { ac_try='test -z "$ac_c_werror_flag"
12653 || test ! -s conftest.err'
12654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12655 (eval $ac_try) 2>&5
12656 ac_status=$?
12657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 (exit $ac_status); }; } &&
12659 { ac_try='test -s conftest$ac_exeext'
12660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12661 (eval $ac_try) 2>&5
12662 ac_status=$?
12663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664 (exit $ac_status); }; }; then
12665 eval "$as_ac_var=yes"
12666 else
12667 echo "$as_me: failed program was:" >&5
12668 sed 's/^/| /' conftest.$ac_ext >&5
12670 eval "$as_ac_var=no"
12672 rm -f conftest.err conftest.$ac_objext \
12673 conftest$ac_exeext conftest.$ac_ext
12675 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12676 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12677 if test `eval echo '${'$as_ac_var'}'` = yes; then
12678 cat >>confdefs.h <<_ACEOF
12679 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12680 _ACEOF
12681 time_found=yes
12683 done
12685 if test "$time_found" = no; then
12686 { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
12687 echo "$as_me: error: no function found to get the time" >&2;}
12688 { (exit 1); exit 1; }; }
12692 for ac_func in memmove
12694 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12695 echo "$as_me:$LINENO: checking for $ac_func" >&5
12696 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12697 if eval "test \"\${$as_ac_var+set}\" = set"; then
12698 echo $ECHO_N "(cached) $ECHO_C" >&6
12699 else
12700 if test x$gcc_no_link = xyes; then
12701 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12702 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12703 { (exit 1); exit 1; }; }
12705 cat >conftest.$ac_ext <<_ACEOF
12706 /* confdefs.h. */
12707 _ACEOF
12708 cat confdefs.h >>conftest.$ac_ext
12709 cat >>conftest.$ac_ext <<_ACEOF
12710 /* end confdefs.h. */
12711 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12713 #define $ac_func innocuous_$ac_func
12715 /* System header to define __stub macros and hopefully few prototypes,
12716 which can conflict with char $ac_func (); below.
12717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12718 <limits.h> exists even on freestanding compilers. */
12720 #ifdef __STDC__
12721 # include <limits.h>
12722 #else
12723 # include <assert.h>
12724 #endif
12726 #undef $ac_func
12728 /* Override any gcc2 internal prototype to avoid an error. */
12729 #ifdef __cplusplus
12730 extern "C"
12732 #endif
12733 /* We use char because int might match the return type of a gcc2
12734 builtin and then its argument prototype would still apply. */
12735 char $ac_func ();
12736 /* The GNU C library defines this for functions which it implements
12737 to always fail with ENOSYS. Some functions are actually named
12738 something starting with __ and the normal name is an alias. */
12739 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12740 choke me
12741 #else
12742 char (*f) () = $ac_func;
12743 #endif
12744 #ifdef __cplusplus
12746 #endif
12749 main ()
12751 return f != $ac_func;
12753 return 0;
12755 _ACEOF
12756 rm -f conftest.$ac_objext conftest$ac_exeext
12757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12758 (eval $ac_link) 2>conftest.er1
12759 ac_status=$?
12760 grep -v '^ *+' conftest.er1 >conftest.err
12761 rm -f conftest.er1
12762 cat conftest.err >&5
12763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764 (exit $ac_status); } &&
12765 { ac_try='test -z "$ac_c_werror_flag"
12766 || test ! -s conftest.err'
12767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12768 (eval $ac_try) 2>&5
12769 ac_status=$?
12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771 (exit $ac_status); }; } &&
12772 { ac_try='test -s conftest$ac_exeext'
12773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12774 (eval $ac_try) 2>&5
12775 ac_status=$?
12776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12777 (exit $ac_status); }; }; then
12778 eval "$as_ac_var=yes"
12779 else
12780 echo "$as_me: failed program was:" >&5
12781 sed 's/^/| /' conftest.$ac_ext >&5
12783 eval "$as_ac_var=no"
12785 rm -f conftest.err conftest.$ac_objext \
12786 conftest$ac_exeext conftest.$ac_ext
12788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12789 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12790 if test `eval echo '${'$as_ac_var'}'` = yes; then
12791 cat >>confdefs.h <<_ACEOF
12792 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12793 _ACEOF
12796 done
12799 # We require memcpy.
12800 memcpy_found=no
12802 for ac_func in memcpy
12804 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12805 echo "$as_me:$LINENO: checking for $ac_func" >&5
12806 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12807 if eval "test \"\${$as_ac_var+set}\" = set"; then
12808 echo $ECHO_N "(cached) $ECHO_C" >&6
12809 else
12810 if test x$gcc_no_link = xyes; then
12811 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12812 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12813 { (exit 1); exit 1; }; }
12815 cat >conftest.$ac_ext <<_ACEOF
12816 /* confdefs.h. */
12817 _ACEOF
12818 cat confdefs.h >>conftest.$ac_ext
12819 cat >>conftest.$ac_ext <<_ACEOF
12820 /* end confdefs.h. */
12821 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12822 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12823 #define $ac_func innocuous_$ac_func
12825 /* System header to define __stub macros and hopefully few prototypes,
12826 which can conflict with char $ac_func (); below.
12827 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12828 <limits.h> exists even on freestanding compilers. */
12830 #ifdef __STDC__
12831 # include <limits.h>
12832 #else
12833 # include <assert.h>
12834 #endif
12836 #undef $ac_func
12838 /* Override any gcc2 internal prototype to avoid an error. */
12839 #ifdef __cplusplus
12840 extern "C"
12842 #endif
12843 /* We use char because int might match the return type of a gcc2
12844 builtin and then its argument prototype would still apply. */
12845 char $ac_func ();
12846 /* The GNU C library defines this for functions which it implements
12847 to always fail with ENOSYS. Some functions are actually named
12848 something starting with __ and the normal name is an alias. */
12849 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12850 choke me
12851 #else
12852 char (*f) () = $ac_func;
12853 #endif
12854 #ifdef __cplusplus
12856 #endif
12859 main ()
12861 return f != $ac_func;
12863 return 0;
12865 _ACEOF
12866 rm -f conftest.$ac_objext conftest$ac_exeext
12867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12868 (eval $ac_link) 2>conftest.er1
12869 ac_status=$?
12870 grep -v '^ *+' conftest.er1 >conftest.err
12871 rm -f conftest.er1
12872 cat conftest.err >&5
12873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12874 (exit $ac_status); } &&
12875 { ac_try='test -z "$ac_c_werror_flag"
12876 || test ! -s conftest.err'
12877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12878 (eval $ac_try) 2>&5
12879 ac_status=$?
12880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12881 (exit $ac_status); }; } &&
12882 { ac_try='test -s conftest$ac_exeext'
12883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12884 (eval $ac_try) 2>&5
12885 ac_status=$?
12886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887 (exit $ac_status); }; }; then
12888 eval "$as_ac_var=yes"
12889 else
12890 echo "$as_me: failed program was:" >&5
12891 sed 's/^/| /' conftest.$ac_ext >&5
12893 eval "$as_ac_var=no"
12895 rm -f conftest.err conftest.$ac_objext \
12896 conftest$ac_exeext conftest.$ac_ext
12898 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12899 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12900 if test `eval echo '${'$as_ac_var'}'` = yes; then
12901 cat >>confdefs.h <<_ACEOF
12902 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12903 _ACEOF
12904 memcpy_found=yes
12906 done
12908 if test "$memcpy_found" = no; then
12909 { { echo "$as_me:$LINENO: error: memcpy is required" >&5
12910 echo "$as_me: error: memcpy is required" >&2;}
12911 { (exit 1); exit 1; }; }
12914 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12915 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12916 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12917 echo $ECHO_N "(cached) $ECHO_C" >&6
12918 else
12919 ac_check_lib_save_LIBS=$LIBS
12920 LIBS="-ldl $LIBS"
12921 if test x$gcc_no_link = xyes; then
12922 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12923 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12924 { (exit 1); exit 1; }; }
12926 cat >conftest.$ac_ext <<_ACEOF
12927 /* confdefs.h. */
12928 _ACEOF
12929 cat confdefs.h >>conftest.$ac_ext
12930 cat >>conftest.$ac_ext <<_ACEOF
12931 /* end confdefs.h. */
12933 /* Override any gcc2 internal prototype to avoid an error. */
12934 #ifdef __cplusplus
12935 extern "C"
12936 #endif
12937 /* We use char because int might match the return type of a gcc2
12938 builtin and then its argument prototype would still apply. */
12939 char dlopen ();
12941 main ()
12943 dlopen ();
12945 return 0;
12947 _ACEOF
12948 rm -f conftest.$ac_objext conftest$ac_exeext
12949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12950 (eval $ac_link) 2>conftest.er1
12951 ac_status=$?
12952 grep -v '^ *+' conftest.er1 >conftest.err
12953 rm -f conftest.er1
12954 cat conftest.err >&5
12955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956 (exit $ac_status); } &&
12957 { ac_try='test -z "$ac_c_werror_flag"
12958 || test ! -s conftest.err'
12959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12960 (eval $ac_try) 2>&5
12961 ac_status=$?
12962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12963 (exit $ac_status); }; } &&
12964 { ac_try='test -s conftest$ac_exeext'
12965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12966 (eval $ac_try) 2>&5
12967 ac_status=$?
12968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12969 (exit $ac_status); }; }; then
12970 ac_cv_lib_dl_dlopen=yes
12971 else
12972 echo "$as_me: failed program was:" >&5
12973 sed 's/^/| /' conftest.$ac_ext >&5
12975 ac_cv_lib_dl_dlopen=no
12977 rm -f conftest.err conftest.$ac_objext \
12978 conftest$ac_exeext conftest.$ac_ext
12979 LIBS=$ac_check_lib_save_LIBS
12981 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12982 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12983 if test $ac_cv_lib_dl_dlopen = yes; then
12986 cat >>confdefs.h <<\_ACEOF
12987 #define HAVE_DLOPEN 1
12988 _ACEOF
12993 # Some library-finding code we stole from Tcl.
12994 #--------------------------------------------------------------------
12995 # Check for the existence of the -lsocket and -lnsl libraries.
12996 # The order here is important, so that they end up in the right
12997 # order in the command line generated by make. Here are some
12998 # special considerations:
12999 # 1. Use "connect" and "accept" to check for -lsocket, and
13000 # "gethostbyname" to check for -lnsl.
13001 # 2. Use each function name only once: can't redo a check because
13002 # autoconf caches the results of the last check and won't redo it.
13003 # 3. Use -lnsl and -lsocket only if they supply procedures that
13004 # aren't already present in the normal libraries. This is because
13005 # IRIX 5.2 has libraries, but they aren't needed and they're
13006 # bogus: they goof up name resolution if used.
13007 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
13008 # To get around this problem, check for both libraries together
13009 # if -lsocket doesn't work by itself.
13010 #--------------------------------------------------------------------
13012 echo "$as_me:$LINENO: checking for socket libraries" >&5
13013 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
13014 if test "${gcj_cv_lib_sockets+set}" = set; then
13015 echo $ECHO_N "(cached) $ECHO_C" >&6
13016 else
13017 gcj_cv_lib_sockets=
13018 gcj_checkBoth=0
13019 unset ac_cv_func_connect
13020 echo "$as_me:$LINENO: checking for connect" >&5
13021 echo $ECHO_N "checking for connect... $ECHO_C" >&6
13022 if test "${ac_cv_func_connect+set}" = set; then
13023 echo $ECHO_N "(cached) $ECHO_C" >&6
13024 else
13025 if test x$gcc_no_link = xyes; then
13026 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13027 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13028 { (exit 1); exit 1; }; }
13030 cat >conftest.$ac_ext <<_ACEOF
13031 /* confdefs.h. */
13032 _ACEOF
13033 cat confdefs.h >>conftest.$ac_ext
13034 cat >>conftest.$ac_ext <<_ACEOF
13035 /* end confdefs.h. */
13036 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
13037 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13038 #define connect innocuous_connect
13040 /* System header to define __stub macros and hopefully few prototypes,
13041 which can conflict with char connect (); below.
13042 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13043 <limits.h> exists even on freestanding compilers. */
13045 #ifdef __STDC__
13046 # include <limits.h>
13047 #else
13048 # include <assert.h>
13049 #endif
13051 #undef connect
13053 /* Override any gcc2 internal prototype to avoid an error. */
13054 #ifdef __cplusplus
13055 extern "C"
13057 #endif
13058 /* We use char because int might match the return type of a gcc2
13059 builtin and then its argument prototype would still apply. */
13060 char connect ();
13061 /* The GNU C library defines this for functions which it implements
13062 to always fail with ENOSYS. Some functions are actually named
13063 something starting with __ and the normal name is an alias. */
13064 #if defined (__stub_connect) || defined (__stub___connect)
13065 choke me
13066 #else
13067 char (*f) () = connect;
13068 #endif
13069 #ifdef __cplusplus
13071 #endif
13074 main ()
13076 return f != connect;
13078 return 0;
13080 _ACEOF
13081 rm -f conftest.$ac_objext conftest$ac_exeext
13082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13083 (eval $ac_link) 2>conftest.er1
13084 ac_status=$?
13085 grep -v '^ *+' conftest.er1 >conftest.err
13086 rm -f conftest.er1
13087 cat conftest.err >&5
13088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13089 (exit $ac_status); } &&
13090 { ac_try='test -z "$ac_c_werror_flag"
13091 || test ! -s conftest.err'
13092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13093 (eval $ac_try) 2>&5
13094 ac_status=$?
13095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096 (exit $ac_status); }; } &&
13097 { ac_try='test -s conftest$ac_exeext'
13098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13099 (eval $ac_try) 2>&5
13100 ac_status=$?
13101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102 (exit $ac_status); }; }; then
13103 ac_cv_func_connect=yes
13104 else
13105 echo "$as_me: failed program was:" >&5
13106 sed 's/^/| /' conftest.$ac_ext >&5
13108 ac_cv_func_connect=no
13110 rm -f conftest.err conftest.$ac_objext \
13111 conftest$ac_exeext conftest.$ac_ext
13113 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
13114 echo "${ECHO_T}$ac_cv_func_connect" >&6
13115 if test $ac_cv_func_connect = yes; then
13116 gcj_checkSocket=0
13117 else
13118 gcj_checkSocket=1
13121 if test "$gcj_checkSocket" = 1; then
13122 unset ac_cv_func_connect
13123 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
13124 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
13125 if test "${ac_cv_lib_socket_main+set}" = set; then
13126 echo $ECHO_N "(cached) $ECHO_C" >&6
13127 else
13128 ac_check_lib_save_LIBS=$LIBS
13129 LIBS="-lsocket $LIBS"
13130 if test x$gcc_no_link = xyes; then
13131 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13132 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13133 { (exit 1); exit 1; }; }
13135 cat >conftest.$ac_ext <<_ACEOF
13136 /* confdefs.h. */
13137 _ACEOF
13138 cat confdefs.h >>conftest.$ac_ext
13139 cat >>conftest.$ac_ext <<_ACEOF
13140 /* end confdefs.h. */
13144 main ()
13146 main ();
13148 return 0;
13150 _ACEOF
13151 rm -f conftest.$ac_objext conftest$ac_exeext
13152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13153 (eval $ac_link) 2>conftest.er1
13154 ac_status=$?
13155 grep -v '^ *+' conftest.er1 >conftest.err
13156 rm -f conftest.er1
13157 cat conftest.err >&5
13158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159 (exit $ac_status); } &&
13160 { ac_try='test -z "$ac_c_werror_flag"
13161 || test ! -s conftest.err'
13162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13163 (eval $ac_try) 2>&5
13164 ac_status=$?
13165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166 (exit $ac_status); }; } &&
13167 { ac_try='test -s conftest$ac_exeext'
13168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13169 (eval $ac_try) 2>&5
13170 ac_status=$?
13171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13172 (exit $ac_status); }; }; then
13173 ac_cv_lib_socket_main=yes
13174 else
13175 echo "$as_me: failed program was:" >&5
13176 sed 's/^/| /' conftest.$ac_ext >&5
13178 ac_cv_lib_socket_main=no
13180 rm -f conftest.err conftest.$ac_objext \
13181 conftest$ac_exeext conftest.$ac_ext
13182 LIBS=$ac_check_lib_save_LIBS
13184 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
13185 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
13186 if test $ac_cv_lib_socket_main = yes; then
13187 gcj_cv_lib_sockets="-lsocket"
13188 else
13189 gcj_checkBoth=1
13193 if test "$gcj_checkBoth" = 1; then
13194 gcj_oldLibs=$LIBS
13195 LIBS="$LIBS -lsocket -lnsl"
13196 unset ac_cv_func_accept
13197 echo "$as_me:$LINENO: checking for accept" >&5
13198 echo $ECHO_N "checking for accept... $ECHO_C" >&6
13199 if test "${ac_cv_func_accept+set}" = set; then
13200 echo $ECHO_N "(cached) $ECHO_C" >&6
13201 else
13202 if test x$gcc_no_link = xyes; then
13203 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13204 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13205 { (exit 1); exit 1; }; }
13207 cat >conftest.$ac_ext <<_ACEOF
13208 /* confdefs.h. */
13209 _ACEOF
13210 cat confdefs.h >>conftest.$ac_ext
13211 cat >>conftest.$ac_ext <<_ACEOF
13212 /* end confdefs.h. */
13213 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
13214 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13215 #define accept innocuous_accept
13217 /* System header to define __stub macros and hopefully few prototypes,
13218 which can conflict with char accept (); below.
13219 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13220 <limits.h> exists even on freestanding compilers. */
13222 #ifdef __STDC__
13223 # include <limits.h>
13224 #else
13225 # include <assert.h>
13226 #endif
13228 #undef accept
13230 /* Override any gcc2 internal prototype to avoid an error. */
13231 #ifdef __cplusplus
13232 extern "C"
13234 #endif
13235 /* We use char because int might match the return type of a gcc2
13236 builtin and then its argument prototype would still apply. */
13237 char accept ();
13238 /* The GNU C library defines this for functions which it implements
13239 to always fail with ENOSYS. Some functions are actually named
13240 something starting with __ and the normal name is an alias. */
13241 #if defined (__stub_accept) || defined (__stub___accept)
13242 choke me
13243 #else
13244 char (*f) () = accept;
13245 #endif
13246 #ifdef __cplusplus
13248 #endif
13251 main ()
13253 return f != accept;
13255 return 0;
13257 _ACEOF
13258 rm -f conftest.$ac_objext conftest$ac_exeext
13259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13260 (eval $ac_link) 2>conftest.er1
13261 ac_status=$?
13262 grep -v '^ *+' conftest.er1 >conftest.err
13263 rm -f conftest.er1
13264 cat conftest.err >&5
13265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266 (exit $ac_status); } &&
13267 { ac_try='test -z "$ac_c_werror_flag"
13268 || test ! -s conftest.err'
13269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13270 (eval $ac_try) 2>&5
13271 ac_status=$?
13272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273 (exit $ac_status); }; } &&
13274 { ac_try='test -s conftest$ac_exeext'
13275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13276 (eval $ac_try) 2>&5
13277 ac_status=$?
13278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279 (exit $ac_status); }; }; then
13280 ac_cv_func_accept=yes
13281 else
13282 echo "$as_me: failed program was:" >&5
13283 sed 's/^/| /' conftest.$ac_ext >&5
13285 ac_cv_func_accept=no
13287 rm -f conftest.err conftest.$ac_objext \
13288 conftest$ac_exeext conftest.$ac_ext
13290 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
13291 echo "${ECHO_T}$ac_cv_func_accept" >&6
13292 if test $ac_cv_func_accept = yes; then
13293 gcj_checkNsl=0
13294 gcj_cv_lib_sockets="-lsocket -lnsl"
13297 unset ac_cv_func_accept
13298 LIBS=$gcj_oldLibs
13300 unset ac_cv_func_gethostbyname
13301 gcj_oldLibs=$LIBS
13302 LIBS="$LIBS $gcj_cv_lib_sockets"
13303 echo "$as_me:$LINENO: checking for gethostbyname" >&5
13304 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
13305 if test "${ac_cv_func_gethostbyname+set}" = set; then
13306 echo $ECHO_N "(cached) $ECHO_C" >&6
13307 else
13308 if test x$gcc_no_link = xyes; then
13309 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13310 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13311 { (exit 1); exit 1; }; }
13313 cat >conftest.$ac_ext <<_ACEOF
13314 /* confdefs.h. */
13315 _ACEOF
13316 cat confdefs.h >>conftest.$ac_ext
13317 cat >>conftest.$ac_ext <<_ACEOF
13318 /* end confdefs.h. */
13319 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
13320 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13321 #define gethostbyname innocuous_gethostbyname
13323 /* System header to define __stub macros and hopefully few prototypes,
13324 which can conflict with char gethostbyname (); below.
13325 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13326 <limits.h> exists even on freestanding compilers. */
13328 #ifdef __STDC__
13329 # include <limits.h>
13330 #else
13331 # include <assert.h>
13332 #endif
13334 #undef gethostbyname
13336 /* Override any gcc2 internal prototype to avoid an error. */
13337 #ifdef __cplusplus
13338 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 gethostbyname ();
13344 /* The GNU C library defines this for functions which it implements
13345 to always fail with ENOSYS. Some functions are actually named
13346 something starting with __ and the normal name is an alias. */
13347 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13348 choke me
13349 #else
13350 char (*f) () = gethostbyname;
13351 #endif
13352 #ifdef __cplusplus
13354 #endif
13357 main ()
13359 return f != gethostbyname;
13361 return 0;
13363 _ACEOF
13364 rm -f conftest.$ac_objext conftest$ac_exeext
13365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13366 (eval $ac_link) 2>conftest.er1
13367 ac_status=$?
13368 grep -v '^ *+' conftest.er1 >conftest.err
13369 rm -f conftest.er1
13370 cat conftest.err >&5
13371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13372 (exit $ac_status); } &&
13373 { ac_try='test -z "$ac_c_werror_flag"
13374 || test ! -s conftest.err'
13375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13376 (eval $ac_try) 2>&5
13377 ac_status=$?
13378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379 (exit $ac_status); }; } &&
13380 { ac_try='test -s conftest$ac_exeext'
13381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13382 (eval $ac_try) 2>&5
13383 ac_status=$?
13384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385 (exit $ac_status); }; }; then
13386 ac_cv_func_gethostbyname=yes
13387 else
13388 echo "$as_me: failed program was:" >&5
13389 sed 's/^/| /' conftest.$ac_ext >&5
13391 ac_cv_func_gethostbyname=no
13393 rm -f conftest.err conftest.$ac_objext \
13394 conftest$ac_exeext conftest.$ac_ext
13396 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
13397 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
13398 if test $ac_cv_func_gethostbyname = yes; then
13400 else
13401 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
13402 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
13403 if test "${ac_cv_lib_nsl_main+set}" = set; then
13404 echo $ECHO_N "(cached) $ECHO_C" >&6
13405 else
13406 ac_check_lib_save_LIBS=$LIBS
13407 LIBS="-lnsl $LIBS"
13408 if test x$gcc_no_link = xyes; then
13409 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13410 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13411 { (exit 1); exit 1; }; }
13413 cat >conftest.$ac_ext <<_ACEOF
13414 /* confdefs.h. */
13415 _ACEOF
13416 cat confdefs.h >>conftest.$ac_ext
13417 cat >>conftest.$ac_ext <<_ACEOF
13418 /* end confdefs.h. */
13422 main ()
13424 main ();
13426 return 0;
13428 _ACEOF
13429 rm -f conftest.$ac_objext conftest$ac_exeext
13430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13431 (eval $ac_link) 2>conftest.er1
13432 ac_status=$?
13433 grep -v '^ *+' conftest.er1 >conftest.err
13434 rm -f conftest.er1
13435 cat conftest.err >&5
13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 (exit $ac_status); } &&
13438 { ac_try='test -z "$ac_c_werror_flag"
13439 || test ! -s conftest.err'
13440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13441 (eval $ac_try) 2>&5
13442 ac_status=$?
13443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444 (exit $ac_status); }; } &&
13445 { ac_try='test -s conftest$ac_exeext'
13446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13447 (eval $ac_try) 2>&5
13448 ac_status=$?
13449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13450 (exit $ac_status); }; }; then
13451 ac_cv_lib_nsl_main=yes
13452 else
13453 echo "$as_me: failed program was:" >&5
13454 sed 's/^/| /' conftest.$ac_ext >&5
13456 ac_cv_lib_nsl_main=no
13458 rm -f conftest.err conftest.$ac_objext \
13459 conftest$ac_exeext conftest.$ac_ext
13460 LIBS=$ac_check_lib_save_LIBS
13462 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
13463 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
13464 if test $ac_cv_lib_nsl_main = yes; then
13465 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
13470 unset ac_cv_func_gethostbyname
13471 LIBS=$gcj_oldLIBS
13474 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
13475 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
13476 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
13478 if test "$with_system_zlib" = yes; then
13479 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
13480 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
13481 if test "${ac_cv_lib_z_deflate+set}" = set; then
13482 echo $ECHO_N "(cached) $ECHO_C" >&6
13483 else
13484 ac_check_lib_save_LIBS=$LIBS
13485 LIBS="-lz $LIBS"
13486 if test x$gcc_no_link = xyes; then
13487 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13488 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13489 { (exit 1); exit 1; }; }
13491 cat >conftest.$ac_ext <<_ACEOF
13492 /* confdefs.h. */
13493 _ACEOF
13494 cat confdefs.h >>conftest.$ac_ext
13495 cat >>conftest.$ac_ext <<_ACEOF
13496 /* end confdefs.h. */
13498 /* Override any gcc2 internal prototype to avoid an error. */
13499 #ifdef __cplusplus
13500 extern "C"
13501 #endif
13502 /* We use char because int might match the return type of a gcc2
13503 builtin and then its argument prototype would still apply. */
13504 char deflate ();
13506 main ()
13508 deflate ();
13510 return 0;
13512 _ACEOF
13513 rm -f conftest.$ac_objext conftest$ac_exeext
13514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13515 (eval $ac_link) 2>conftest.er1
13516 ac_status=$?
13517 grep -v '^ *+' conftest.er1 >conftest.err
13518 rm -f conftest.er1
13519 cat conftest.err >&5
13520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13521 (exit $ac_status); } &&
13522 { ac_try='test -z "$ac_c_werror_flag"
13523 || test ! -s conftest.err'
13524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13525 (eval $ac_try) 2>&5
13526 ac_status=$?
13527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528 (exit $ac_status); }; } &&
13529 { ac_try='test -s conftest$ac_exeext'
13530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13531 (eval $ac_try) 2>&5
13532 ac_status=$?
13533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534 (exit $ac_status); }; }; then
13535 ac_cv_lib_z_deflate=yes
13536 else
13537 echo "$as_me: failed program was:" >&5
13538 sed 's/^/| /' conftest.$ac_ext >&5
13540 ac_cv_lib_z_deflate=no
13542 rm -f conftest.err conftest.$ac_objext \
13543 conftest$ac_exeext conftest.$ac_ext
13544 LIBS=$ac_check_lib_save_LIBS
13546 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
13547 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
13548 if test $ac_cv_lib_z_deflate = yes; then
13549 ZLIBSPEC=-lz
13550 else
13551 ZLIBSPEC=
13556 # Test for Gtk stuff, if asked for.
13557 if test "$use_gtk_awt" = yes; then
13559 succeeded=no
13561 if test -z "$PKG_CONFIG"; then
13562 # Extract the first word of "pkg-config", so it can be a program name with args.
13563 set dummy pkg-config; ac_word=$2
13564 echo "$as_me:$LINENO: checking for $ac_word" >&5
13565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13566 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13567 echo $ECHO_N "(cached) $ECHO_C" >&6
13568 else
13569 case $PKG_CONFIG in
13570 [\\/]* | ?:[\\/]*)
13571 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13575 for as_dir in $PATH
13577 IFS=$as_save_IFS
13578 test -z "$as_dir" && as_dir=.
13579 for ac_exec_ext in '' $ac_executable_extensions; do
13580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13581 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13583 break 2
13585 done
13586 done
13588 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13590 esac
13592 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13594 if test -n "$PKG_CONFIG"; then
13595 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13596 echo "${ECHO_T}$PKG_CONFIG" >&6
13597 else
13598 echo "$as_me:$LINENO: result: no" >&5
13599 echo "${ECHO_T}no" >&6
13604 if test "$PKG_CONFIG" = "no" ; then
13605 echo "*** The pkg-config script could not be found. Make sure it is"
13606 echo "*** in your path, or set the PKG_CONFIG environment variable"
13607 echo "*** to the full path to pkg-config."
13608 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13609 else
13610 PKG_CONFIG_MIN_VERSION=0.9.0
13611 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13612 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
13613 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
13615 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
13616 echo "$as_me:$LINENO: result: yes" >&5
13617 echo "${ECHO_T}yes" >&6
13618 succeeded=yes
13620 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
13621 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
13622 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
13623 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
13624 echo "${ECHO_T}$GTK_CFLAGS" >&6
13626 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
13627 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
13628 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
13629 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
13630 echo "${ECHO_T}$GTK_LIBS" >&6
13631 else
13632 GTK_CFLAGS=""
13633 GTK_LIBS=""
13634 ## If we have a custom action on failure, don't print errors, but
13635 ## do set a variable so people can do so.
13636 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
13637 echo $GTK_PKG_ERRORS
13642 else
13643 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13644 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13648 if test $succeeded = yes; then
13650 else
13651 { { 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
13652 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;}
13653 { (exit 1); exit 1; }; }
13660 succeeded=no
13662 if test -z "$PKG_CONFIG"; then
13663 # Extract the first word of "pkg-config", so it can be a program name with args.
13664 set dummy pkg-config; ac_word=$2
13665 echo "$as_me:$LINENO: checking for $ac_word" >&5
13666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13667 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13668 echo $ECHO_N "(cached) $ECHO_C" >&6
13669 else
13670 case $PKG_CONFIG in
13671 [\\/]* | ?:[\\/]*)
13672 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13676 for as_dir in $PATH
13678 IFS=$as_save_IFS
13679 test -z "$as_dir" && as_dir=.
13680 for ac_exec_ext in '' $ac_executable_extensions; do
13681 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13682 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13684 break 2
13686 done
13687 done
13689 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13691 esac
13693 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13695 if test -n "$PKG_CONFIG"; then
13696 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13697 echo "${ECHO_T}$PKG_CONFIG" >&6
13698 else
13699 echo "$as_me:$LINENO: result: no" >&5
13700 echo "${ECHO_T}no" >&6
13705 if test "$PKG_CONFIG" = "no" ; then
13706 echo "*** The pkg-config script could not be found. Make sure it is"
13707 echo "*** in your path, or set the PKG_CONFIG environment variable"
13708 echo "*** to the full path to pkg-config."
13709 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13710 else
13711 PKG_CONFIG_MIN_VERSION=0.9.0
13712 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13713 echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
13714 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
13716 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
13717 echo "$as_me:$LINENO: result: yes" >&5
13718 echo "${ECHO_T}yes" >&6
13719 succeeded=yes
13721 echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
13722 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
13723 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13724 echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
13725 echo "${ECHO_T}$GLIB_CFLAGS" >&6
13727 echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
13728 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
13729 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13730 echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
13731 echo "${ECHO_T}$GLIB_LIBS" >&6
13732 else
13733 GLIB_CFLAGS=""
13734 GLIB_LIBS=""
13735 ## If we have a custom action on failure, don't print errors, but
13736 ## do set a variable so people can do so.
13737 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13738 echo $GLIB_PKG_ERRORS
13743 else
13744 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13745 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13749 if test $succeeded = yes; then
13751 else
13752 { { 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
13753 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;}
13754 { (exit 1); exit 1; }; }
13761 succeeded=no
13763 if test -z "$PKG_CONFIG"; then
13764 # Extract the first word of "pkg-config", so it can be a program name with args.
13765 set dummy pkg-config; ac_word=$2
13766 echo "$as_me:$LINENO: checking for $ac_word" >&5
13767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13768 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13769 echo $ECHO_N "(cached) $ECHO_C" >&6
13770 else
13771 case $PKG_CONFIG in
13772 [\\/]* | ?:[\\/]*)
13773 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13777 for as_dir in $PATH
13779 IFS=$as_save_IFS
13780 test -z "$as_dir" && as_dir=.
13781 for ac_exec_ext in '' $ac_executable_extensions; do
13782 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13783 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13785 break 2
13787 done
13788 done
13790 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13792 esac
13794 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13796 if test -n "$PKG_CONFIG"; then
13797 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13798 echo "${ECHO_T}$PKG_CONFIG" >&6
13799 else
13800 echo "$as_me:$LINENO: result: no" >&5
13801 echo "${ECHO_T}no" >&6
13806 if test "$PKG_CONFIG" = "no" ; then
13807 echo "*** The pkg-config script could not be found. Make sure it is"
13808 echo "*** in your path, or set the PKG_CONFIG environment variable"
13809 echo "*** to the full path to pkg-config."
13810 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13811 else
13812 PKG_CONFIG_MIN_VERSION=0.9.0
13813 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13814 echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
13815 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
13817 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
13818 echo "$as_me:$LINENO: result: yes" >&5
13819 echo "${ECHO_T}yes" >&6
13820 succeeded=yes
13822 echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
13823 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
13824 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
13825 echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
13826 echo "${ECHO_T}$LIBART_CFLAGS" >&6
13828 echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
13829 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
13830 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
13831 echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
13832 echo "${ECHO_T}$LIBART_LIBS" >&6
13833 else
13834 LIBART_CFLAGS=""
13835 LIBART_LIBS=""
13836 ## If we have a custom action on failure, don't print errors, but
13837 ## do set a variable so people can do so.
13838 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
13839 echo $LIBART_PKG_ERRORS
13844 else
13845 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13846 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13850 if test $succeeded = yes; then
13852 else
13853 { { 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
13854 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;}
13855 { (exit 1); exit 1; }; }
13861 # We require the XTest Extension to support java.awt.Robot.
13862 echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
13863 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
13864 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
13865 echo $ECHO_N "(cached) $ECHO_C" >&6
13866 else
13867 ac_check_lib_save_LIBS=$LIBS
13868 LIBS="-lXtst ${X_LIBS} $LIBS"
13869 if test x$gcc_no_link = xyes; then
13870 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13871 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13872 { (exit 1); exit 1; }; }
13874 cat >conftest.$ac_ext <<_ACEOF
13875 /* confdefs.h. */
13876 _ACEOF
13877 cat confdefs.h >>conftest.$ac_ext
13878 cat >>conftest.$ac_ext <<_ACEOF
13879 /* end confdefs.h. */
13881 /* Override any gcc2 internal prototype to avoid an error. */
13882 #ifdef __cplusplus
13883 extern "C"
13884 #endif
13885 /* We use char because int might match the return type of a gcc2
13886 builtin and then its argument prototype would still apply. */
13887 char XTestQueryExtension ();
13889 main ()
13891 XTestQueryExtension ();
13893 return 0;
13895 _ACEOF
13896 rm -f conftest.$ac_objext conftest$ac_exeext
13897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13898 (eval $ac_link) 2>conftest.er1
13899 ac_status=$?
13900 grep -v '^ *+' conftest.er1 >conftest.err
13901 rm -f conftest.er1
13902 cat conftest.err >&5
13903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904 (exit $ac_status); } &&
13905 { ac_try='test -z "$ac_c_werror_flag"
13906 || test ! -s conftest.err'
13907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13908 (eval $ac_try) 2>&5
13909 ac_status=$?
13910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911 (exit $ac_status); }; } &&
13912 { ac_try='test -s conftest$ac_exeext'
13913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13914 (eval $ac_try) 2>&5
13915 ac_status=$?
13916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917 (exit $ac_status); }; }; then
13918 ac_cv_lib_Xtst_XTestQueryExtension=yes
13919 else
13920 echo "$as_me: failed program was:" >&5
13921 sed 's/^/| /' conftest.$ac_ext >&5
13923 ac_cv_lib_Xtst_XTestQueryExtension=no
13925 rm -f conftest.err conftest.$ac_objext \
13926 conftest$ac_exeext conftest.$ac_ext
13927 LIBS=$ac_check_lib_save_LIBS
13929 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
13930 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
13931 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
13932 true
13933 else
13934 { { echo "$as_me:$LINENO: error: libXtst not found, required by java.awt.Robot" >&5
13935 echo "$as_me: error: libXtst not found, required by java.awt.Robot" >&2;}
13936 { (exit 1); exit 1; }; }
13941 # On Solaris, and maybe other architectures, the Boehm collector
13942 # requires -ldl.
13943 if test "$GC" = boehm; then
13944 echo "$as_me:$LINENO: checking for main in -ldl" >&5
13945 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
13946 if test "${ac_cv_lib_dl_main+set}" = set; then
13947 echo $ECHO_N "(cached) $ECHO_C" >&6
13948 else
13949 ac_check_lib_save_LIBS=$LIBS
13950 LIBS="-ldl $LIBS"
13951 if test x$gcc_no_link = xyes; then
13952 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13953 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13954 { (exit 1); exit 1; }; }
13956 cat >conftest.$ac_ext <<_ACEOF
13957 /* confdefs.h. */
13958 _ACEOF
13959 cat confdefs.h >>conftest.$ac_ext
13960 cat >>conftest.$ac_ext <<_ACEOF
13961 /* end confdefs.h. */
13965 main ()
13967 main ();
13969 return 0;
13971 _ACEOF
13972 rm -f conftest.$ac_objext conftest$ac_exeext
13973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13974 (eval $ac_link) 2>conftest.er1
13975 ac_status=$?
13976 grep -v '^ *+' conftest.er1 >conftest.err
13977 rm -f conftest.er1
13978 cat conftest.err >&5
13979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13980 (exit $ac_status); } &&
13981 { ac_try='test -z "$ac_c_werror_flag"
13982 || test ! -s conftest.err'
13983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13984 (eval $ac_try) 2>&5
13985 ac_status=$?
13986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13987 (exit $ac_status); }; } &&
13988 { ac_try='test -s conftest$ac_exeext'
13989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13990 (eval $ac_try) 2>&5
13991 ac_status=$?
13992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993 (exit $ac_status); }; }; then
13994 ac_cv_lib_dl_main=yes
13995 else
13996 echo "$as_me: failed program was:" >&5
13997 sed 's/^/| /' conftest.$ac_ext >&5
13999 ac_cv_lib_dl_main=no
14001 rm -f conftest.err conftest.$ac_objext \
14002 conftest$ac_exeext conftest.$ac_ext
14003 LIBS=$ac_check_lib_save_LIBS
14005 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
14006 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
14007 if test $ac_cv_lib_dl_main = yes; then
14008 SYSTEMSPEC="$SYSTEMSPEC -ldl"
14014 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
14015 case $build in
14016 *-mingw32) CLASSPATH_SEPARATOR=';' ;;
14017 *) CLASSPATH_SEPARATOR=':' ;;
14018 esac
14021 # We must search the source tree for java.lang, since we still don't
14022 # have libgcj.jar nor java/lang/*.class
14023 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
14024 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
14026 # Since some classes depend on this one, we need its source available
14027 # before we can do any GCJ compilation test :-(
14028 if test ! -f gnu/classpath/Configuration.java; then
14029 test -d gnu || mkdir gnu
14030 test -d gnu/classpath || mkdir gnu/classpath
14031 # Note that it is not crucial that all the values here be correct.
14032 sed -e "s,@prefix@,$prefix," \
14033 -e "s,@VERSION@,$VERSION," \
14034 -e "s,@LIBDEBUG@,false," \
14035 -e "s,@INIT_LOAD_LIBRARY@,false," \
14036 -e "s,@@,$LIBGCJDEBUG," \
14037 -e "s,@default_toolkit@,$TOOLKIT," \
14038 -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
14039 -e "s,@GTK_CAIRO_ENABLED@,false," \
14040 < $srcdir/classpath/gnu/classpath/Configuration.java.in \
14041 > gnu/classpath/Configuration.java
14042 # We do not want to redirect the output of the grep below to /dev/null,
14043 # but we add /dev/null to the input list so that grep will print the
14044 # filename of Configuration.java in case it finds any matches.
14045 if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
14046 { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
14047 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
14048 { (exit 1); exit 1; }; }
14052 if test -n "$ac_tool_prefix"; then
14053 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
14054 set dummy ${ac_tool_prefix}gcj; ac_word=$2
14055 echo "$as_me:$LINENO: checking for $ac_word" >&5
14056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14057 if test "${ac_cv_prog_GCJ+set}" = set; then
14058 echo $ECHO_N "(cached) $ECHO_C" >&6
14059 else
14060 if test -n "$GCJ"; then
14061 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
14062 else
14063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14064 for as_dir in $PATH
14066 IFS=$as_save_IFS
14067 test -z "$as_dir" && as_dir=.
14068 for ac_exec_ext in '' $ac_executable_extensions; do
14069 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14070 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
14071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14072 break 2
14074 done
14075 done
14079 GCJ=$ac_cv_prog_GCJ
14080 if test -n "$GCJ"; then
14081 echo "$as_me:$LINENO: result: $GCJ" >&5
14082 echo "${ECHO_T}$GCJ" >&6
14083 else
14084 echo "$as_me:$LINENO: result: no" >&5
14085 echo "${ECHO_T}no" >&6
14089 if test -z "$ac_cv_prog_GCJ"; then
14090 ac_ct_GCJ=$GCJ
14091 # Extract the first word of "gcj", so it can be a program name with args.
14092 set dummy gcj; ac_word=$2
14093 echo "$as_me:$LINENO: checking for $ac_word" >&5
14094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14095 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
14096 echo $ECHO_N "(cached) $ECHO_C" >&6
14097 else
14098 if test -n "$ac_ct_GCJ"; then
14099 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
14100 else
14101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14102 for as_dir in $PATH
14104 IFS=$as_save_IFS
14105 test -z "$as_dir" && as_dir=.
14106 for ac_exec_ext in '' $ac_executable_extensions; do
14107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14108 ac_cv_prog_ac_ct_GCJ="gcj"
14109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14110 break 2
14112 done
14113 done
14115 test -z "$ac_cv_prog_ac_ct_GCJ" && ac_cv_prog_ac_ct_GCJ="no"
14118 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
14119 if test -n "$ac_ct_GCJ"; then
14120 echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5
14121 echo "${ECHO_T}$ac_ct_GCJ" >&6
14122 else
14123 echo "$as_me:$LINENO: result: no" >&5
14124 echo "${ECHO_T}no" >&6
14127 GCJ=$ac_ct_GCJ
14128 else
14129 GCJ="$ac_cv_prog_GCJ"
14132 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
14137 # Now remove it.
14138 rm -f gnu/classpath/Configuration.java
14140 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
14142 echo "$as_me:$LINENO: checking for void *" >&5
14143 echo $ECHO_N "checking for void *... $ECHO_C" >&6
14144 if test "${ac_cv_type_void_p+set}" = set; then
14145 echo $ECHO_N "(cached) $ECHO_C" >&6
14146 else
14147 cat >conftest.$ac_ext <<_ACEOF
14148 /* confdefs.h. */
14149 _ACEOF
14150 cat confdefs.h >>conftest.$ac_ext
14151 cat >>conftest.$ac_ext <<_ACEOF
14152 /* end confdefs.h. */
14153 $ac_includes_default
14155 main ()
14157 if ((void * *) 0)
14158 return 0;
14159 if (sizeof (void *))
14160 return 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_cv_type_void_p=yes
14188 else
14189 echo "$as_me: failed program was:" >&5
14190 sed 's/^/| /' conftest.$ac_ext >&5
14192 ac_cv_type_void_p=no
14194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14196 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14197 echo "${ECHO_T}$ac_cv_type_void_p" >&6
14199 echo "$as_me:$LINENO: checking size of void *" >&5
14200 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14201 if test "${ac_cv_sizeof_void_p+set}" = set; then
14202 echo $ECHO_N "(cached) $ECHO_C" >&6
14203 else
14204 if test "$ac_cv_type_void_p" = yes; then
14205 # The cast to unsigned long works around a bug in the HP C Compiler
14206 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14207 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14208 # This bug is HP SR number 8606223364.
14209 if test "$cross_compiling" = yes; then
14210 # Depending upon the size, compute the lo and hi bounds.
14211 cat >conftest.$ac_ext <<_ACEOF
14212 /* confdefs.h. */
14213 _ACEOF
14214 cat confdefs.h >>conftest.$ac_ext
14215 cat >>conftest.$ac_ext <<_ACEOF
14216 /* end confdefs.h. */
14217 $ac_includes_default
14219 main ()
14221 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14222 test_array [0] = 0
14225 return 0;
14227 _ACEOF
14228 rm -f conftest.$ac_objext
14229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14230 (eval $ac_compile) 2>conftest.er1
14231 ac_status=$?
14232 grep -v '^ *+' conftest.er1 >conftest.err
14233 rm -f conftest.er1
14234 cat conftest.err >&5
14235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236 (exit $ac_status); } &&
14237 { ac_try='test -z "$ac_c_werror_flag"
14238 || test ! -s conftest.err'
14239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14240 (eval $ac_try) 2>&5
14241 ac_status=$?
14242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243 (exit $ac_status); }; } &&
14244 { ac_try='test -s conftest.$ac_objext'
14245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14246 (eval $ac_try) 2>&5
14247 ac_status=$?
14248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14249 (exit $ac_status); }; }; then
14250 ac_lo=0 ac_mid=0
14251 while :; do
14252 cat >conftest.$ac_ext <<_ACEOF
14253 /* confdefs.h. */
14254 _ACEOF
14255 cat confdefs.h >>conftest.$ac_ext
14256 cat >>conftest.$ac_ext <<_ACEOF
14257 /* end confdefs.h. */
14258 $ac_includes_default
14260 main ()
14262 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14263 test_array [0] = 0
14266 return 0;
14268 _ACEOF
14269 rm -f conftest.$ac_objext
14270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14271 (eval $ac_compile) 2>conftest.er1
14272 ac_status=$?
14273 grep -v '^ *+' conftest.er1 >conftest.err
14274 rm -f conftest.er1
14275 cat conftest.err >&5
14276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277 (exit $ac_status); } &&
14278 { ac_try='test -z "$ac_c_werror_flag"
14279 || test ! -s conftest.err'
14280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14281 (eval $ac_try) 2>&5
14282 ac_status=$?
14283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14284 (exit $ac_status); }; } &&
14285 { ac_try='test -s conftest.$ac_objext'
14286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14287 (eval $ac_try) 2>&5
14288 ac_status=$?
14289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290 (exit $ac_status); }; }; then
14291 ac_hi=$ac_mid; break
14292 else
14293 echo "$as_me: failed program was:" >&5
14294 sed 's/^/| /' conftest.$ac_ext >&5
14296 ac_lo=`expr $ac_mid + 1`
14297 if test $ac_lo -le $ac_mid; then
14298 ac_lo= ac_hi=
14299 break
14301 ac_mid=`expr 2 '*' $ac_mid + 1`
14303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14304 done
14305 else
14306 echo "$as_me: failed program was:" >&5
14307 sed 's/^/| /' conftest.$ac_ext >&5
14309 cat >conftest.$ac_ext <<_ACEOF
14310 /* confdefs.h. */
14311 _ACEOF
14312 cat confdefs.h >>conftest.$ac_ext
14313 cat >>conftest.$ac_ext <<_ACEOF
14314 /* end confdefs.h. */
14315 $ac_includes_default
14317 main ()
14319 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14320 test_array [0] = 0
14323 return 0;
14325 _ACEOF
14326 rm -f conftest.$ac_objext
14327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14328 (eval $ac_compile) 2>conftest.er1
14329 ac_status=$?
14330 grep -v '^ *+' conftest.er1 >conftest.err
14331 rm -f conftest.er1
14332 cat conftest.err >&5
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 (exit $ac_status); } &&
14335 { ac_try='test -z "$ac_c_werror_flag"
14336 || test ! -s conftest.err'
14337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14338 (eval $ac_try) 2>&5
14339 ac_status=$?
14340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341 (exit $ac_status); }; } &&
14342 { ac_try='test -s conftest.$ac_objext'
14343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14344 (eval $ac_try) 2>&5
14345 ac_status=$?
14346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347 (exit $ac_status); }; }; then
14348 ac_hi=-1 ac_mid=-1
14349 while :; do
14350 cat >conftest.$ac_ext <<_ACEOF
14351 /* confdefs.h. */
14352 _ACEOF
14353 cat confdefs.h >>conftest.$ac_ext
14354 cat >>conftest.$ac_ext <<_ACEOF
14355 /* end confdefs.h. */
14356 $ac_includes_default
14358 main ()
14360 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14361 test_array [0] = 0
14364 return 0;
14366 _ACEOF
14367 rm -f conftest.$ac_objext
14368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14369 (eval $ac_compile) 2>conftest.er1
14370 ac_status=$?
14371 grep -v '^ *+' conftest.er1 >conftest.err
14372 rm -f conftest.er1
14373 cat conftest.err >&5
14374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14375 (exit $ac_status); } &&
14376 { ac_try='test -z "$ac_c_werror_flag"
14377 || test ! -s conftest.err'
14378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14379 (eval $ac_try) 2>&5
14380 ac_status=$?
14381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382 (exit $ac_status); }; } &&
14383 { ac_try='test -s conftest.$ac_objext'
14384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14385 (eval $ac_try) 2>&5
14386 ac_status=$?
14387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388 (exit $ac_status); }; }; then
14389 ac_lo=$ac_mid; break
14390 else
14391 echo "$as_me: failed program was:" >&5
14392 sed 's/^/| /' conftest.$ac_ext >&5
14394 ac_hi=`expr '(' $ac_mid ')' - 1`
14395 if test $ac_mid -le $ac_hi; then
14396 ac_lo= ac_hi=
14397 break
14399 ac_mid=`expr 2 '*' $ac_mid`
14401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14402 done
14403 else
14404 echo "$as_me: failed program was:" >&5
14405 sed 's/^/| /' conftest.$ac_ext >&5
14407 ac_lo= ac_hi=
14409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14412 # Binary search between lo and hi bounds.
14413 while test "x$ac_lo" != "x$ac_hi"; do
14414 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14415 cat >conftest.$ac_ext <<_ACEOF
14416 /* confdefs.h. */
14417 _ACEOF
14418 cat confdefs.h >>conftest.$ac_ext
14419 cat >>conftest.$ac_ext <<_ACEOF
14420 /* end confdefs.h. */
14421 $ac_includes_default
14423 main ()
14425 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14426 test_array [0] = 0
14429 return 0;
14431 _ACEOF
14432 rm -f conftest.$ac_objext
14433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14434 (eval $ac_compile) 2>conftest.er1
14435 ac_status=$?
14436 grep -v '^ *+' conftest.er1 >conftest.err
14437 rm -f conftest.er1
14438 cat conftest.err >&5
14439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440 (exit $ac_status); } &&
14441 { ac_try='test -z "$ac_c_werror_flag"
14442 || test ! -s conftest.err'
14443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14444 (eval $ac_try) 2>&5
14445 ac_status=$?
14446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447 (exit $ac_status); }; } &&
14448 { ac_try='test -s conftest.$ac_objext'
14449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14450 (eval $ac_try) 2>&5
14451 ac_status=$?
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); }; }; then
14454 ac_hi=$ac_mid
14455 else
14456 echo "$as_me: failed program was:" >&5
14457 sed 's/^/| /' conftest.$ac_ext >&5
14459 ac_lo=`expr '(' $ac_mid ')' + 1`
14461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14462 done
14463 case $ac_lo in
14464 ?*) ac_cv_sizeof_void_p=$ac_lo;;
14465 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14466 See \`config.log' for more details." >&5
14467 echo "$as_me: error: cannot compute sizeof (void *), 77
14468 See \`config.log' for more details." >&2;}
14469 { (exit 1); exit 1; }; } ;;
14470 esac
14471 else
14472 if test "$cross_compiling" = yes; then
14473 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14474 See \`config.log' for more details." >&5
14475 echo "$as_me: error: cannot run test program while cross compiling
14476 See \`config.log' for more details." >&2;}
14477 { (exit 1); exit 1; }; }
14478 else
14479 cat >conftest.$ac_ext <<_ACEOF
14480 /* confdefs.h. */
14481 _ACEOF
14482 cat confdefs.h >>conftest.$ac_ext
14483 cat >>conftest.$ac_ext <<_ACEOF
14484 /* end confdefs.h. */
14485 $ac_includes_default
14486 long longval () { return (long) (sizeof (void *)); }
14487 unsigned long ulongval () { return (long) (sizeof (void *)); }
14488 #include <stdio.h>
14489 #include <stdlib.h>
14491 main ()
14494 FILE *f = fopen ("conftest.val", "w");
14495 if (! f)
14496 exit (1);
14497 if (((long) (sizeof (void *))) < 0)
14499 long i = longval ();
14500 if (i != ((long) (sizeof (void *))))
14501 exit (1);
14502 fprintf (f, "%ld\n", i);
14504 else
14506 unsigned long i = ulongval ();
14507 if (i != ((long) (sizeof (void *))))
14508 exit (1);
14509 fprintf (f, "%lu\n", i);
14511 exit (ferror (f) || fclose (f) != 0);
14514 return 0;
14516 _ACEOF
14517 rm -f conftest$ac_exeext
14518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14519 (eval $ac_link) 2>&5
14520 ac_status=$?
14521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14524 (eval $ac_try) 2>&5
14525 ac_status=$?
14526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527 (exit $ac_status); }; }; then
14528 ac_cv_sizeof_void_p=`cat conftest.val`
14529 else
14530 echo "$as_me: program exited with status $ac_status" >&5
14531 echo "$as_me: failed program was:" >&5
14532 sed 's/^/| /' conftest.$ac_ext >&5
14534 ( exit $ac_status )
14535 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14536 See \`config.log' for more details." >&5
14537 echo "$as_me: error: cannot compute sizeof (void *), 77
14538 See \`config.log' for more details." >&2;}
14539 { (exit 1); exit 1; }; }
14541 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14544 rm -f conftest.val
14545 else
14546 ac_cv_sizeof_void_p=0
14549 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14550 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14551 cat >>confdefs.h <<_ACEOF
14552 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14553 _ACEOF
14557 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14558 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
14559 if test "${ac_cv_c_bigendian+set}" = set; then
14560 echo $ECHO_N "(cached) $ECHO_C" >&6
14561 else
14562 # See if sys/param.h defines the BYTE_ORDER macro.
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. */
14569 #include <sys/types.h>
14570 #include <sys/param.h>
14573 main ()
14575 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14576 bogus endian macros
14577 #endif
14580 return 0;
14582 _ACEOF
14583 rm -f conftest.$ac_objext
14584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14585 (eval $ac_compile) 2>conftest.er1
14586 ac_status=$?
14587 grep -v '^ *+' conftest.er1 >conftest.err
14588 rm -f conftest.er1
14589 cat conftest.err >&5
14590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591 (exit $ac_status); } &&
14592 { ac_try='test -z "$ac_c_werror_flag"
14593 || test ! -s conftest.err'
14594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14595 (eval $ac_try) 2>&5
14596 ac_status=$?
14597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14598 (exit $ac_status); }; } &&
14599 { ac_try='test -s conftest.$ac_objext'
14600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14601 (eval $ac_try) 2>&5
14602 ac_status=$?
14603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14604 (exit $ac_status); }; }; then
14605 # It does; now see whether it defined to BIG_ENDIAN or not.
14606 cat >conftest.$ac_ext <<_ACEOF
14607 /* confdefs.h. */
14608 _ACEOF
14609 cat confdefs.h >>conftest.$ac_ext
14610 cat >>conftest.$ac_ext <<_ACEOF
14611 /* end confdefs.h. */
14612 #include <sys/types.h>
14613 #include <sys/param.h>
14616 main ()
14618 #if BYTE_ORDER != BIG_ENDIAN
14619 not big endian
14620 #endif
14623 return 0;
14625 _ACEOF
14626 rm -f conftest.$ac_objext
14627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14628 (eval $ac_compile) 2>conftest.er1
14629 ac_status=$?
14630 grep -v '^ *+' conftest.er1 >conftest.err
14631 rm -f conftest.er1
14632 cat conftest.err >&5
14633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14634 (exit $ac_status); } &&
14635 { ac_try='test -z "$ac_c_werror_flag"
14636 || test ! -s conftest.err'
14637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14638 (eval $ac_try) 2>&5
14639 ac_status=$?
14640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14641 (exit $ac_status); }; } &&
14642 { ac_try='test -s conftest.$ac_objext'
14643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14644 (eval $ac_try) 2>&5
14645 ac_status=$?
14646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647 (exit $ac_status); }; }; then
14648 ac_cv_c_bigendian=yes
14649 else
14650 echo "$as_me: failed program was:" >&5
14651 sed 's/^/| /' conftest.$ac_ext >&5
14653 ac_cv_c_bigendian=no
14655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14656 else
14657 echo "$as_me: failed program was:" >&5
14658 sed 's/^/| /' conftest.$ac_ext >&5
14660 # It does not; compile a test program.
14661 if test "$cross_compiling" = yes; then
14662 # try to guess the endianness by grepping values into an object file
14663 ac_cv_c_bigendian=unknown
14664 cat >conftest.$ac_ext <<_ACEOF
14665 /* confdefs.h. */
14666 _ACEOF
14667 cat confdefs.h >>conftest.$ac_ext
14668 cat >>conftest.$ac_ext <<_ACEOF
14669 /* end confdefs.h. */
14670 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14671 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14672 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
14673 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14674 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14675 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14677 main ()
14679 _ascii (); _ebcdic ();
14681 return 0;
14683 _ACEOF
14684 rm -f conftest.$ac_objext
14685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14686 (eval $ac_compile) 2>conftest.er1
14687 ac_status=$?
14688 grep -v '^ *+' conftest.er1 >conftest.err
14689 rm -f conftest.er1
14690 cat conftest.err >&5
14691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692 (exit $ac_status); } &&
14693 { ac_try='test -z "$ac_c_werror_flag"
14694 || test ! -s conftest.err'
14695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14696 (eval $ac_try) 2>&5
14697 ac_status=$?
14698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699 (exit $ac_status); }; } &&
14700 { ac_try='test -s conftest.$ac_objext'
14701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14702 (eval $ac_try) 2>&5
14703 ac_status=$?
14704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705 (exit $ac_status); }; }; then
14706 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14707 ac_cv_c_bigendian=yes
14709 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14710 if test "$ac_cv_c_bigendian" = unknown; then
14711 ac_cv_c_bigendian=no
14712 else
14713 # finding both strings is unlikely to happen, but who knows?
14714 ac_cv_c_bigendian=unknown
14717 else
14718 echo "$as_me: failed program was:" >&5
14719 sed 's/^/| /' conftest.$ac_ext >&5
14722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14723 else
14724 cat >conftest.$ac_ext <<_ACEOF
14725 /* confdefs.h. */
14726 _ACEOF
14727 cat confdefs.h >>conftest.$ac_ext
14728 cat >>conftest.$ac_ext <<_ACEOF
14729 /* end confdefs.h. */
14731 main ()
14733 /* Are we little or big endian? From Harbison&Steele. */
14734 union
14736 long l;
14737 char c[sizeof (long)];
14738 } u;
14739 u.l = 1;
14740 exit (u.c[sizeof (long) - 1] == 1);
14742 _ACEOF
14743 rm -f conftest$ac_exeext
14744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14745 (eval $ac_link) 2>&5
14746 ac_status=$?
14747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14748 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14750 (eval $ac_try) 2>&5
14751 ac_status=$?
14752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14753 (exit $ac_status); }; }; then
14754 ac_cv_c_bigendian=no
14755 else
14756 echo "$as_me: program exited with status $ac_status" >&5
14757 echo "$as_me: failed program was:" >&5
14758 sed 's/^/| /' conftest.$ac_ext >&5
14760 ( exit $ac_status )
14761 ac_cv_c_bigendian=yes
14763 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14768 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14769 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
14770 case $ac_cv_c_bigendian in
14771 yes)
14773 cat >>confdefs.h <<\_ACEOF
14774 #define WORDS_BIGENDIAN 1
14775 _ACEOF
14780 { { echo "$as_me:$LINENO: error: unknown endianness
14781 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14782 echo "$as_me: error: unknown endianness
14783 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14784 { (exit 1); exit 1; }; } ;;
14785 esac
14788 ZLIBS=
14789 SYS_ZLIBS=
14790 ZINCS=
14792 if test -z "$ZLIBSPEC"; then
14793 # Use zlib from the GCC tree.
14794 ZINCS='-I$(top_srcdir)/../zlib'
14795 ZLIBS=../zlib/libzgcj_convenience.la
14796 else
14797 # System's zlib.
14798 SYS_ZLIBS="$ZLIBSPEC"
14811 if test "$NATIVE" = yes; then
14812 NATIVE_TRUE=
14813 NATIVE_FALSE='#'
14814 else
14815 NATIVE_TRUE='#'
14816 NATIVE_FALSE=
14821 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
14822 NEEDS_DATA_START_TRUE=
14823 NEEDS_DATA_START_FALSE='#'
14824 else
14825 NEEDS_DATA_START_TRUE='#'
14826 NEEDS_DATA_START_FALSE=
14831 # Process the option "--enable-version-specific-runtime-libs"
14832 # Calculate toolexeclibdir
14833 case ${version_specific_libs} in
14834 yes)
14835 # Need the gcc compiler version to know where to install libraries
14836 # and header files if --enable-version-specific-runtime-libs option
14837 # is selected.
14838 includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
14839 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
14840 toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
14841 toolexeclibdir=$toolexecmainlibdir
14844 if test -n "$with_cross_host" &&
14845 test x"$with_cross_host" != x"no"; then
14846 # Install a library built with a cross compiler in tooldir, not libdir.
14847 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
14848 toolexecmainlibdir='$(toolexecdir)/lib'
14849 else
14850 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
14851 toolexecmainlibdir='$(libdir)'
14853 multi_os_directory=`$CC -print-multi-os-directory`
14854 case $multi_os_directory in
14855 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
14856 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
14857 esac
14859 esac
14864 # Determine where the standard .db file is found.
14865 multi_os_directory=`$CC -print-multi-os-directory`
14866 case $multi_os_directory in
14867 .) dbexecdir='$(libdir)/gcj-$(gcc_version)' ;; # Avoid /.
14868 *) dbexecdir='$(libdir)/'$multi_os_directory'/gcj-$(gcc_version)' ;;
14869 esac
14872 # Determine gcj version number.
14873 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
14874 GCJVERSION=$gcjversion
14877 cat >>confdefs.h <<_ACEOF
14878 #define GCJVERSION "$GCJVERSION"
14879 _ACEOF
14883 cat >>confdefs.h <<\_ACEOF
14884 #define JV_VERSION "1.4.2"
14885 _ACEOF
14888 cat >>confdefs.h <<\_ACEOF
14889 #define JV_API_VERSION "1.4"
14890 _ACEOF
14894 case "${with_gxx_include_dir}" in
14895 yes)
14896 { { echo "$as_me:$LINENO: error: --with-gxx-include-dir=[dir] requires a directory" >&5
14897 echo "$as_me: error: --with-gxx-include-dir=[dir] requires a directory" >&2;}
14898 { (exit 1); exit 1; }; }
14900 no | "")
14901 case "${enable_version_specific_runtime_libs}" in
14902 yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
14904 libstdcxx_incdir='c++/$(gcc_version)'
14905 gxx_include_dir='$(prefix)/include/$(libstdcxx_incdir)' ;;
14906 esac ;;
14907 *) gxx_include_dir=${with_gxx_include_dir} ;;
14908 esac
14913 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
14914 # On that system, sys/ioctl.h will not include sys/filio.h unless
14915 # BSD_COMP is defined; just including sys/filio.h is simpler.
14916 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
14917 # for now. If you change this, you also must update natFile.cc.
14938 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
14939 sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
14940 sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
14941 pwd.h sys/config.h stdint.h langinfo.h locale.h \
14942 dirent.h
14944 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14945 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14946 echo "$as_me:$LINENO: checking for $ac_header" >&5
14947 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14948 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14949 echo $ECHO_N "(cached) $ECHO_C" >&6
14951 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14952 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14953 else
14954 # Is the header compilable?
14955 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14956 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14957 cat >conftest.$ac_ext <<_ACEOF
14958 /* confdefs.h. */
14959 _ACEOF
14960 cat confdefs.h >>conftest.$ac_ext
14961 cat >>conftest.$ac_ext <<_ACEOF
14962 /* end confdefs.h. */
14963 $ac_includes_default
14964 #include <$ac_header>
14965 _ACEOF
14966 rm -f conftest.$ac_objext
14967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14968 (eval $ac_compile) 2>conftest.er1
14969 ac_status=$?
14970 grep -v '^ *+' conftest.er1 >conftest.err
14971 rm -f conftest.er1
14972 cat conftest.err >&5
14973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974 (exit $ac_status); } &&
14975 { ac_try='test -z "$ac_c_werror_flag"
14976 || test ! -s conftest.err'
14977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14978 (eval $ac_try) 2>&5
14979 ac_status=$?
14980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981 (exit $ac_status); }; } &&
14982 { ac_try='test -s conftest.$ac_objext'
14983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14984 (eval $ac_try) 2>&5
14985 ac_status=$?
14986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14987 (exit $ac_status); }; }; then
14988 ac_header_compiler=yes
14989 else
14990 echo "$as_me: failed program was:" >&5
14991 sed 's/^/| /' conftest.$ac_ext >&5
14993 ac_header_compiler=no
14995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14996 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14997 echo "${ECHO_T}$ac_header_compiler" >&6
14999 # Is the header present?
15000 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15001 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15002 cat >conftest.$ac_ext <<_ACEOF
15003 /* confdefs.h. */
15004 _ACEOF
15005 cat confdefs.h >>conftest.$ac_ext
15006 cat >>conftest.$ac_ext <<_ACEOF
15007 /* end confdefs.h. */
15008 #include <$ac_header>
15009 _ACEOF
15010 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15011 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15012 ac_status=$?
15013 grep -v '^ *+' conftest.er1 >conftest.err
15014 rm -f conftest.er1
15015 cat conftest.err >&5
15016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15017 (exit $ac_status); } >/dev/null; then
15018 if test -s conftest.err; then
15019 ac_cpp_err=$ac_c_preproc_warn_flag
15020 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15021 else
15022 ac_cpp_err=
15024 else
15025 ac_cpp_err=yes
15027 if test -z "$ac_cpp_err"; then
15028 ac_header_preproc=yes
15029 else
15030 echo "$as_me: failed program was:" >&5
15031 sed 's/^/| /' conftest.$ac_ext >&5
15033 ac_header_preproc=no
15035 rm -f conftest.err conftest.$ac_ext
15036 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15037 echo "${ECHO_T}$ac_header_preproc" >&6
15039 # So? What about this header?
15040 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15041 yes:no: )
15042 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15043 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15044 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15045 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15046 ac_header_preproc=yes
15048 no:yes:* )
15049 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15050 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15051 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15052 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15053 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15054 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15055 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15056 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15057 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15058 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15059 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15060 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15062 cat <<\_ASBOX
15063 ## ---------------------------------- ##
15064 ## Report this to the libjava lists. ##
15065 ## ---------------------------------- ##
15066 _ASBOX
15068 sed "s/^/$as_me: WARNING: /" >&2
15070 esac
15071 echo "$as_me:$LINENO: checking for $ac_header" >&5
15072 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15073 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15074 echo $ECHO_N "(cached) $ECHO_C" >&6
15075 else
15076 eval "$as_ac_Header=\$ac_header_preproc"
15078 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15079 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15082 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15083 cat >>confdefs.h <<_ACEOF
15084 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15085 _ACEOF
15089 done
15092 for ac_header in inttypes.h
15094 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15095 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15096 echo "$as_me:$LINENO: checking for $ac_header" >&5
15097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15098 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15099 echo $ECHO_N "(cached) $ECHO_C" >&6
15101 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15102 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15103 else
15104 # Is the header compilable?
15105 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15106 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15107 cat >conftest.$ac_ext <<_ACEOF
15108 /* confdefs.h. */
15109 _ACEOF
15110 cat confdefs.h >>conftest.$ac_ext
15111 cat >>conftest.$ac_ext <<_ACEOF
15112 /* end confdefs.h. */
15113 $ac_includes_default
15114 #include <$ac_header>
15115 _ACEOF
15116 rm -f conftest.$ac_objext
15117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15118 (eval $ac_compile) 2>conftest.er1
15119 ac_status=$?
15120 grep -v '^ *+' conftest.er1 >conftest.err
15121 rm -f conftest.er1
15122 cat conftest.err >&5
15123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124 (exit $ac_status); } &&
15125 { ac_try='test -z "$ac_c_werror_flag"
15126 || test ! -s conftest.err'
15127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15128 (eval $ac_try) 2>&5
15129 ac_status=$?
15130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131 (exit $ac_status); }; } &&
15132 { ac_try='test -s conftest.$ac_objext'
15133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15134 (eval $ac_try) 2>&5
15135 ac_status=$?
15136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137 (exit $ac_status); }; }; then
15138 ac_header_compiler=yes
15139 else
15140 echo "$as_me: failed program was:" >&5
15141 sed 's/^/| /' conftest.$ac_ext >&5
15143 ac_header_compiler=no
15145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15146 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15147 echo "${ECHO_T}$ac_header_compiler" >&6
15149 # Is the header present?
15150 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15151 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15152 cat >conftest.$ac_ext <<_ACEOF
15153 /* confdefs.h. */
15154 _ACEOF
15155 cat confdefs.h >>conftest.$ac_ext
15156 cat >>conftest.$ac_ext <<_ACEOF
15157 /* end confdefs.h. */
15158 #include <$ac_header>
15159 _ACEOF
15160 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15161 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15162 ac_status=$?
15163 grep -v '^ *+' conftest.er1 >conftest.err
15164 rm -f conftest.er1
15165 cat conftest.err >&5
15166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167 (exit $ac_status); } >/dev/null; then
15168 if test -s conftest.err; then
15169 ac_cpp_err=$ac_c_preproc_warn_flag
15170 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15171 else
15172 ac_cpp_err=
15174 else
15175 ac_cpp_err=yes
15177 if test -z "$ac_cpp_err"; then
15178 ac_header_preproc=yes
15179 else
15180 echo "$as_me: failed program was:" >&5
15181 sed 's/^/| /' conftest.$ac_ext >&5
15183 ac_header_preproc=no
15185 rm -f conftest.err conftest.$ac_ext
15186 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15187 echo "${ECHO_T}$ac_header_preproc" >&6
15189 # So? What about this header?
15190 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15191 yes:no: )
15192 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15193 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15194 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15195 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15196 ac_header_preproc=yes
15198 no:yes:* )
15199 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15200 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15201 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15202 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15203 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15204 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15205 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15206 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15207 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15208 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15209 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15210 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15212 cat <<\_ASBOX
15213 ## ---------------------------------- ##
15214 ## Report this to the libjava lists. ##
15215 ## ---------------------------------- ##
15216 _ASBOX
15218 sed "s/^/$as_me: WARNING: /" >&2
15220 esac
15221 echo "$as_me:$LINENO: checking for $ac_header" >&5
15222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15224 echo $ECHO_N "(cached) $ECHO_C" >&6
15225 else
15226 eval "$as_ac_Header=\$ac_header_preproc"
15228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15229 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15232 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15233 cat >>confdefs.h <<_ACEOF
15234 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15235 _ACEOF
15238 cat >>confdefs.h <<\_ACEOF
15239 #define HAVE_INTTYPES_H 1
15240 _ACEOF
15243 cat >>confdefs.h <<\_ACEOF
15244 #define JV_HAVE_INTTYPES_H 1
15245 _ACEOF
15250 done
15252 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15253 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
15254 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15255 echo $ECHO_N "(cached) $ECHO_C" >&6
15256 else
15257 cat >conftest.$ac_ext <<_ACEOF
15258 /* confdefs.h. */
15259 _ACEOF
15260 cat confdefs.h >>conftest.$ac_ext
15261 cat >>conftest.$ac_ext <<_ACEOF
15262 /* end confdefs.h. */
15263 #include <sys/types.h>
15264 #include <sys/wait.h>
15265 #ifndef WEXITSTATUS
15266 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
15267 #endif
15268 #ifndef WIFEXITED
15269 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15270 #endif
15273 main ()
15275 int s;
15276 wait (&s);
15277 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15279 return 0;
15281 _ACEOF
15282 rm -f conftest.$ac_objext
15283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15284 (eval $ac_compile) 2>conftest.er1
15285 ac_status=$?
15286 grep -v '^ *+' conftest.er1 >conftest.err
15287 rm -f conftest.er1
15288 cat conftest.err >&5
15289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15290 (exit $ac_status); } &&
15291 { ac_try='test -z "$ac_c_werror_flag"
15292 || test ! -s conftest.err'
15293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15294 (eval $ac_try) 2>&5
15295 ac_status=$?
15296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15297 (exit $ac_status); }; } &&
15298 { ac_try='test -s conftest.$ac_objext'
15299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15300 (eval $ac_try) 2>&5
15301 ac_status=$?
15302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15303 (exit $ac_status); }; }; then
15304 ac_cv_header_sys_wait_h=yes
15305 else
15306 echo "$as_me: failed program was:" >&5
15307 sed 's/^/| /' conftest.$ac_ext >&5
15309 ac_cv_header_sys_wait_h=no
15311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15313 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15314 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
15315 if test $ac_cv_header_sys_wait_h = yes; then
15317 cat >>confdefs.h <<\_ACEOF
15318 #define HAVE_SYS_WAIT_H 1
15319 _ACEOF
15324 echo "$as_me:$LINENO: checking for ssize_t" >&5
15325 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
15326 if test "${ac_cv_type_ssize_t+set}" = set; then
15327 echo $ECHO_N "(cached) $ECHO_C" >&6
15328 else
15329 cat >conftest.$ac_ext <<_ACEOF
15330 /* confdefs.h. */
15331 _ACEOF
15332 cat confdefs.h >>conftest.$ac_ext
15333 cat >>conftest.$ac_ext <<_ACEOF
15334 /* end confdefs.h. */
15335 $ac_includes_default
15337 main ()
15339 if ((ssize_t *) 0)
15340 return 0;
15341 if (sizeof (ssize_t))
15342 return 0;
15344 return 0;
15346 _ACEOF
15347 rm -f conftest.$ac_objext
15348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15349 (eval $ac_compile) 2>conftest.er1
15350 ac_status=$?
15351 grep -v '^ *+' conftest.er1 >conftest.err
15352 rm -f conftest.er1
15353 cat conftest.err >&5
15354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15355 (exit $ac_status); } &&
15356 { ac_try='test -z "$ac_c_werror_flag"
15357 || test ! -s conftest.err'
15358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15359 (eval $ac_try) 2>&5
15360 ac_status=$?
15361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15362 (exit $ac_status); }; } &&
15363 { ac_try='test -s conftest.$ac_objext'
15364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15365 (eval $ac_try) 2>&5
15366 ac_status=$?
15367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368 (exit $ac_status); }; }; then
15369 ac_cv_type_ssize_t=yes
15370 else
15371 echo "$as_me: failed program was:" >&5
15372 sed 's/^/| /' conftest.$ac_ext >&5
15374 ac_cv_type_ssize_t=no
15376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15378 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
15379 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
15380 if test $ac_cv_type_ssize_t = yes; then
15382 else
15384 cat >>confdefs.h <<_ACEOF
15385 #define ssize_t int
15386 _ACEOF
15391 echo "$as_me:$LINENO: checking for in_addr_t" >&5
15392 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
15393 cat >conftest.$ac_ext <<_ACEOF
15394 /* confdefs.h. */
15395 _ACEOF
15396 cat confdefs.h >>conftest.$ac_ext
15397 cat >>conftest.$ac_ext <<_ACEOF
15398 /* end confdefs.h. */
15399 #include <sys/types.h>
15400 #if STDC_HEADERS
15401 #include <stdlib.h>
15402 #include <stddef.h>
15403 #endif
15404 #if HAVE_NETINET_IN_H
15405 #include <netinet/in.h>
15406 #endif
15408 main ()
15410 in_addr_t foo;
15412 return 0;
15414 _ACEOF
15415 rm -f conftest.$ac_objext
15416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15417 (eval $ac_compile) 2>conftest.er1
15418 ac_status=$?
15419 grep -v '^ *+' conftest.er1 >conftest.err
15420 rm -f conftest.er1
15421 cat conftest.err >&5
15422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423 (exit $ac_status); } &&
15424 { ac_try='test -z "$ac_c_werror_flag"
15425 || test ! -s conftest.err'
15426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15427 (eval $ac_try) 2>&5
15428 ac_status=$?
15429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15430 (exit $ac_status); }; } &&
15431 { ac_try='test -s conftest.$ac_objext'
15432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15433 (eval $ac_try) 2>&5
15434 ac_status=$?
15435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436 (exit $ac_status); }; }; then
15438 cat >>confdefs.h <<\_ACEOF
15439 #define HAVE_IN_ADDR_T 1
15440 _ACEOF
15442 echo "$as_me:$LINENO: result: yes" >&5
15443 echo "${ECHO_T}yes" >&6
15444 else
15445 echo "$as_me: failed program was:" >&5
15446 sed 's/^/| /' conftest.$ac_ext >&5
15448 echo "$as_me:$LINENO: result: no" >&5
15449 echo "${ECHO_T}no" >&6
15451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15453 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
15454 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
15455 cat >conftest.$ac_ext <<_ACEOF
15456 /* confdefs.h. */
15457 _ACEOF
15458 cat confdefs.h >>conftest.$ac_ext
15459 cat >>conftest.$ac_ext <<_ACEOF
15460 /* end confdefs.h. */
15461 #include <netinet/in.h>
15463 main ()
15465 struct ip_mreq mreq;
15467 return 0;
15469 _ACEOF
15470 rm -f conftest.$ac_objext
15471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15472 (eval $ac_compile) 2>conftest.er1
15473 ac_status=$?
15474 grep -v '^ *+' conftest.er1 >conftest.err
15475 rm -f conftest.er1
15476 cat conftest.err >&5
15477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478 (exit $ac_status); } &&
15479 { ac_try='test -z "$ac_c_werror_flag"
15480 || test ! -s conftest.err'
15481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15482 (eval $ac_try) 2>&5
15483 ac_status=$?
15484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15485 (exit $ac_status); }; } &&
15486 { ac_try='test -s conftest.$ac_objext'
15487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15488 (eval $ac_try) 2>&5
15489 ac_status=$?
15490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15491 (exit $ac_status); }; }; then
15493 cat >>confdefs.h <<\_ACEOF
15494 #define HAVE_STRUCT_IP_MREQ 1
15495 _ACEOF
15497 echo "$as_me:$LINENO: result: yes" >&5
15498 echo "${ECHO_T}yes" >&6
15499 else
15500 echo "$as_me: failed program was:" >&5
15501 sed 's/^/| /' conftest.$ac_ext >&5
15503 echo "$as_me:$LINENO: result: no" >&5
15504 echo "${ECHO_T}no" >&6
15506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15508 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
15509 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
15510 cat >conftest.$ac_ext <<_ACEOF
15511 /* confdefs.h. */
15512 _ACEOF
15513 cat confdefs.h >>conftest.$ac_ext
15514 cat >>conftest.$ac_ext <<_ACEOF
15515 /* end confdefs.h. */
15516 #include <netinet/in.h>
15518 main ()
15520 struct ipv6_mreq mreq6;
15522 return 0;
15524 _ACEOF
15525 rm -f conftest.$ac_objext
15526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15527 (eval $ac_compile) 2>conftest.er1
15528 ac_status=$?
15529 grep -v '^ *+' conftest.er1 >conftest.err
15530 rm -f conftest.er1
15531 cat conftest.err >&5
15532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533 (exit $ac_status); } &&
15534 { ac_try='test -z "$ac_c_werror_flag"
15535 || test ! -s conftest.err'
15536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15537 (eval $ac_try) 2>&5
15538 ac_status=$?
15539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15540 (exit $ac_status); }; } &&
15541 { ac_try='test -s conftest.$ac_objext'
15542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15543 (eval $ac_try) 2>&5
15544 ac_status=$?
15545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15546 (exit $ac_status); }; }; then
15548 cat >>confdefs.h <<\_ACEOF
15549 #define HAVE_STRUCT_IPV6_MREQ 1
15550 _ACEOF
15552 echo "$as_me:$LINENO: result: yes" >&5
15553 echo "${ECHO_T}yes" >&6
15554 else
15555 echo "$as_me: failed program was:" >&5
15556 sed 's/^/| /' conftest.$ac_ext >&5
15558 echo "$as_me:$LINENO: result: no" >&5
15559 echo "${ECHO_T}no" >&6
15561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15563 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
15564 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
15565 cat >conftest.$ac_ext <<_ACEOF
15566 /* confdefs.h. */
15567 _ACEOF
15568 cat confdefs.h >>conftest.$ac_ext
15569 cat >>conftest.$ac_ext <<_ACEOF
15570 /* end confdefs.h. */
15571 #include <netinet/in.h>
15573 main ()
15575 struct sockaddr_in6 addr6;
15577 return 0;
15579 _ACEOF
15580 rm -f conftest.$ac_objext
15581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15582 (eval $ac_compile) 2>conftest.er1
15583 ac_status=$?
15584 grep -v '^ *+' conftest.er1 >conftest.err
15585 rm -f conftest.er1
15586 cat conftest.err >&5
15587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588 (exit $ac_status); } &&
15589 { ac_try='test -z "$ac_c_werror_flag"
15590 || test ! -s conftest.err'
15591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15592 (eval $ac_try) 2>&5
15593 ac_status=$?
15594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595 (exit $ac_status); }; } &&
15596 { ac_try='test -s conftest.$ac_objext'
15597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15598 (eval $ac_try) 2>&5
15599 ac_status=$?
15600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601 (exit $ac_status); }; }; then
15603 cat >>confdefs.h <<\_ACEOF
15604 #define HAVE_INET6 1
15605 _ACEOF
15607 echo "$as_me:$LINENO: result: yes" >&5
15608 echo "${ECHO_T}yes" >&6
15609 else
15610 echo "$as_me: failed program was:" >&5
15611 sed 's/^/| /' conftest.$ac_ext >&5
15613 echo "$as_me:$LINENO: result: no" >&5
15614 echo "${ECHO_T}no" >&6
15616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15618 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
15619 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
15620 cat >conftest.$ac_ext <<_ACEOF
15621 /* confdefs.h. */
15622 _ACEOF
15623 cat confdefs.h >>conftest.$ac_ext
15624 cat >>conftest.$ac_ext <<_ACEOF
15625 /* end confdefs.h. */
15626 #define _POSIX_PII_SOCKET
15627 #include <sys/types.h>
15628 #include <sys/socket.h>
15630 main ()
15632 socklen_t x = 5;
15634 return 0;
15636 _ACEOF
15637 rm -f conftest.$ac_objext
15638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15639 (eval $ac_compile) 2>conftest.er1
15640 ac_status=$?
15641 grep -v '^ *+' conftest.er1 >conftest.err
15642 rm -f conftest.er1
15643 cat conftest.err >&5
15644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645 (exit $ac_status); } &&
15646 { ac_try='test -z "$ac_c_werror_flag"
15647 || test ! -s conftest.err'
15648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15649 (eval $ac_try) 2>&5
15650 ac_status=$?
15651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15652 (exit $ac_status); }; } &&
15653 { ac_try='test -s conftest.$ac_objext'
15654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15655 (eval $ac_try) 2>&5
15656 ac_status=$?
15657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15658 (exit $ac_status); }; }; then
15660 cat >>confdefs.h <<\_ACEOF
15661 #define HAVE_SOCKLEN_T 1
15662 _ACEOF
15664 echo "$as_me:$LINENO: result: yes" >&5
15665 echo "${ECHO_T}yes" >&6
15666 else
15667 echo "$as_me: failed program was:" >&5
15668 sed 's/^/| /' conftest.$ac_ext >&5
15670 echo "$as_me:$LINENO: result: no" >&5
15671 echo "${ECHO_T}no" >&6
15673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15675 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
15676 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
15677 cat >conftest.$ac_ext <<_ACEOF
15678 /* confdefs.h. */
15679 _ACEOF
15680 cat confdefs.h >>conftest.$ac_ext
15681 cat >>conftest.$ac_ext <<_ACEOF
15682 /* end confdefs.h. */
15683 #include <time.h>
15685 main ()
15687 struct tm tim; tim.tm_gmtoff = 0;
15689 return 0;
15691 _ACEOF
15692 rm -f conftest.$ac_objext
15693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15694 (eval $ac_compile) 2>conftest.er1
15695 ac_status=$?
15696 grep -v '^ *+' conftest.er1 >conftest.err
15697 rm -f conftest.er1
15698 cat conftest.err >&5
15699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700 (exit $ac_status); } &&
15701 { ac_try='test -z "$ac_c_werror_flag"
15702 || test ! -s conftest.err'
15703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15704 (eval $ac_try) 2>&5
15705 ac_status=$?
15706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707 (exit $ac_status); }; } &&
15708 { ac_try='test -s conftest.$ac_objext'
15709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15710 (eval $ac_try) 2>&5
15711 ac_status=$?
15712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15713 (exit $ac_status); }; }; then
15715 cat >>confdefs.h <<\_ACEOF
15716 #define STRUCT_TM_HAS_GMTOFF 1
15717 _ACEOF
15719 echo "$as_me:$LINENO: result: yes" >&5
15720 echo "${ECHO_T}yes" >&6
15721 else
15722 echo "$as_me: failed program was:" >&5
15723 sed 's/^/| /' conftest.$ac_ext >&5
15725 echo "$as_me:$LINENO: result: no" >&5
15726 echo "${ECHO_T}no" >&6
15727 echo "$as_me:$LINENO: checking for global timezone variable" >&5
15728 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
15729 cat >conftest.$ac_ext <<_ACEOF
15730 /* confdefs.h. */
15731 _ACEOF
15732 cat confdefs.h >>conftest.$ac_ext
15733 cat >>conftest.$ac_ext <<_ACEOF
15734 /* end confdefs.h. */
15735 #include <time.h>
15737 main ()
15739 void i(){long z2 = 2*timezone;}
15741 return 0;
15743 _ACEOF
15744 rm -f conftest.$ac_objext
15745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15746 (eval $ac_compile) 2>conftest.er1
15747 ac_status=$?
15748 grep -v '^ *+' conftest.er1 >conftest.err
15749 rm -f conftest.er1
15750 cat conftest.err >&5
15751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15752 (exit $ac_status); } &&
15753 { ac_try='test -z "$ac_c_werror_flag"
15754 || test ! -s conftest.err'
15755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15756 (eval $ac_try) 2>&5
15757 ac_status=$?
15758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15759 (exit $ac_status); }; } &&
15760 { ac_try='test -s conftest.$ac_objext'
15761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15762 (eval $ac_try) 2>&5
15763 ac_status=$?
15764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765 (exit $ac_status); }; }; then
15767 cat >>confdefs.h <<\_ACEOF
15768 #define HAVE_TIMEZONE 1
15769 _ACEOF
15771 echo "$as_me:$LINENO: result: yes" >&5
15772 echo "${ECHO_T}yes" >&6
15773 else
15774 echo "$as_me: failed program was:" >&5
15775 sed 's/^/| /' conftest.$ac_ext >&5
15777 echo "$as_me:$LINENO: result: no" >&5
15778 echo "${ECHO_T}no" >&6
15779 echo "$as_me:$LINENO: checking for global _timezone variable" >&5
15780 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
15781 cat >conftest.$ac_ext <<_ACEOF
15782 /* confdefs.h. */
15783 _ACEOF
15784 cat confdefs.h >>conftest.$ac_ext
15785 cat >>conftest.$ac_ext <<_ACEOF
15786 /* end confdefs.h. */
15787 #include <time.h>
15789 main ()
15791 long z2 = _timezone;
15793 return 0;
15795 _ACEOF
15796 rm -f conftest.$ac_objext
15797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15798 (eval $ac_compile) 2>conftest.er1
15799 ac_status=$?
15800 grep -v '^ *+' conftest.er1 >conftest.err
15801 rm -f conftest.er1
15802 cat conftest.err >&5
15803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804 (exit $ac_status); } &&
15805 { ac_try='test -z "$ac_c_werror_flag"
15806 || test ! -s conftest.err'
15807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15808 (eval $ac_try) 2>&5
15809 ac_status=$?
15810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811 (exit $ac_status); }; } &&
15812 { ac_try='test -s conftest.$ac_objext'
15813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15814 (eval $ac_try) 2>&5
15815 ac_status=$?
15816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817 (exit $ac_status); }; }; then
15819 cat >>confdefs.h <<\_ACEOF
15820 #define HAVE_UNDERSCORE_TIMEZONE 1
15821 _ACEOF
15823 echo "$as_me:$LINENO: result: yes" >&5
15824 echo "${ECHO_T}yes" >&6
15825 else
15826 echo "$as_me: failed program was:" >&5
15827 sed 's/^/| /' conftest.$ac_ext >&5
15829 echo "$as_me:$LINENO: result: no" >&5
15830 echo "${ECHO_T}no" >&6
15832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15838 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15839 # for constant arguments. Useless!
15840 echo "$as_me:$LINENO: checking for working alloca.h" >&5
15841 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15842 if test "${ac_cv_working_alloca_h+set}" = set; then
15843 echo $ECHO_N "(cached) $ECHO_C" >&6
15844 else
15845 if test x$gcc_no_link = xyes; then
15846 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15847 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15848 { (exit 1); exit 1; }; }
15850 cat >conftest.$ac_ext <<_ACEOF
15851 /* confdefs.h. */
15852 _ACEOF
15853 cat confdefs.h >>conftest.$ac_ext
15854 cat >>conftest.$ac_ext <<_ACEOF
15855 /* end confdefs.h. */
15856 #include <alloca.h>
15858 main ()
15860 char *p = (char *) alloca (2 * sizeof (int));
15862 return 0;
15864 _ACEOF
15865 rm -f conftest.$ac_objext conftest$ac_exeext
15866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15867 (eval $ac_link) 2>conftest.er1
15868 ac_status=$?
15869 grep -v '^ *+' conftest.er1 >conftest.err
15870 rm -f conftest.er1
15871 cat conftest.err >&5
15872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873 (exit $ac_status); } &&
15874 { ac_try='test -z "$ac_c_werror_flag"
15875 || test ! -s conftest.err'
15876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15877 (eval $ac_try) 2>&5
15878 ac_status=$?
15879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15880 (exit $ac_status); }; } &&
15881 { ac_try='test -s conftest$ac_exeext'
15882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15883 (eval $ac_try) 2>&5
15884 ac_status=$?
15885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15886 (exit $ac_status); }; }; then
15887 ac_cv_working_alloca_h=yes
15888 else
15889 echo "$as_me: failed program was:" >&5
15890 sed 's/^/| /' conftest.$ac_ext >&5
15892 ac_cv_working_alloca_h=no
15894 rm -f conftest.err conftest.$ac_objext \
15895 conftest$ac_exeext conftest.$ac_ext
15897 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15898 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
15899 if test $ac_cv_working_alloca_h = yes; then
15901 cat >>confdefs.h <<\_ACEOF
15902 #define HAVE_ALLOCA_H 1
15903 _ACEOF
15907 echo "$as_me:$LINENO: checking for alloca" >&5
15908 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
15909 if test "${ac_cv_func_alloca_works+set}" = set; then
15910 echo $ECHO_N "(cached) $ECHO_C" >&6
15911 else
15912 if test x$gcc_no_link = xyes; then
15913 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15914 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15915 { (exit 1); exit 1; }; }
15917 cat >conftest.$ac_ext <<_ACEOF
15918 /* confdefs.h. */
15919 _ACEOF
15920 cat confdefs.h >>conftest.$ac_ext
15921 cat >>conftest.$ac_ext <<_ACEOF
15922 /* end confdefs.h. */
15923 #ifdef __GNUC__
15924 # define alloca __builtin_alloca
15925 #else
15926 # ifdef _MSC_VER
15927 # include <malloc.h>
15928 # define alloca _alloca
15929 # else
15930 # if HAVE_ALLOCA_H
15931 # include <alloca.h>
15932 # else
15933 # ifdef _AIX
15934 #pragma alloca
15935 # else
15936 # ifndef alloca /* predefined by HP cc +Olibcalls */
15937 char *alloca ();
15938 # endif
15939 # endif
15940 # endif
15941 # endif
15942 #endif
15945 main ()
15947 char *p = (char *) alloca (1);
15949 return 0;
15951 _ACEOF
15952 rm -f conftest.$ac_objext conftest$ac_exeext
15953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15954 (eval $ac_link) 2>conftest.er1
15955 ac_status=$?
15956 grep -v '^ *+' conftest.er1 >conftest.err
15957 rm -f conftest.er1
15958 cat conftest.err >&5
15959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15960 (exit $ac_status); } &&
15961 { ac_try='test -z "$ac_c_werror_flag"
15962 || test ! -s conftest.err'
15963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15964 (eval $ac_try) 2>&5
15965 ac_status=$?
15966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967 (exit $ac_status); }; } &&
15968 { ac_try='test -s conftest$ac_exeext'
15969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15970 (eval $ac_try) 2>&5
15971 ac_status=$?
15972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15973 (exit $ac_status); }; }; then
15974 ac_cv_func_alloca_works=yes
15975 else
15976 echo "$as_me: failed program was:" >&5
15977 sed 's/^/| /' conftest.$ac_ext >&5
15979 ac_cv_func_alloca_works=no
15981 rm -f conftest.err conftest.$ac_objext \
15982 conftest$ac_exeext conftest.$ac_ext
15984 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15985 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
15987 if test $ac_cv_func_alloca_works = yes; then
15989 cat >>confdefs.h <<\_ACEOF
15990 #define HAVE_ALLOCA 1
15991 _ACEOF
15993 else
15994 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15995 # that cause trouble. Some versions do not even contain alloca or
15996 # contain a buggy version. If you still want to use their alloca,
15997 # use ar to extract alloca.o from them instead of compiling alloca.c.
15999 ALLOCA=alloca.$ac_objext
16001 cat >>confdefs.h <<\_ACEOF
16002 #define C_ALLOCA 1
16003 _ACEOF
16006 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16007 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16008 if test "${ac_cv_os_cray+set}" = set; then
16009 echo $ECHO_N "(cached) $ECHO_C" >&6
16010 else
16011 cat >conftest.$ac_ext <<_ACEOF
16012 /* confdefs.h. */
16013 _ACEOF
16014 cat confdefs.h >>conftest.$ac_ext
16015 cat >>conftest.$ac_ext <<_ACEOF
16016 /* end confdefs.h. */
16017 #if defined(CRAY) && ! defined(CRAY2)
16018 webecray
16019 #else
16020 wenotbecray
16021 #endif
16023 _ACEOF
16024 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16025 $EGREP "webecray" >/dev/null 2>&1; then
16026 ac_cv_os_cray=yes
16027 else
16028 ac_cv_os_cray=no
16030 rm -f conftest*
16033 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16034 echo "${ECHO_T}$ac_cv_os_cray" >&6
16035 if test $ac_cv_os_cray = yes; then
16036 for ac_func in _getb67 GETB67 getb67; do
16037 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16038 echo "$as_me:$LINENO: checking for $ac_func" >&5
16039 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16040 if eval "test \"\${$as_ac_var+set}\" = set"; then
16041 echo $ECHO_N "(cached) $ECHO_C" >&6
16042 else
16043 if test x$gcc_no_link = xyes; then
16044 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16045 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16046 { (exit 1); exit 1; }; }
16048 cat >conftest.$ac_ext <<_ACEOF
16049 /* confdefs.h. */
16050 _ACEOF
16051 cat confdefs.h >>conftest.$ac_ext
16052 cat >>conftest.$ac_ext <<_ACEOF
16053 /* end confdefs.h. */
16054 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16055 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16056 #define $ac_func innocuous_$ac_func
16058 /* System header to define __stub macros and hopefully few prototypes,
16059 which can conflict with char $ac_func (); below.
16060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16061 <limits.h> exists even on freestanding compilers. */
16063 #ifdef __STDC__
16064 # include <limits.h>
16065 #else
16066 # include <assert.h>
16067 #endif
16069 #undef $ac_func
16071 /* Override any gcc2 internal prototype to avoid an error. */
16072 #ifdef __cplusplus
16073 extern "C"
16075 #endif
16076 /* We use char because int might match the return type of a gcc2
16077 builtin and then its argument prototype would still apply. */
16078 char $ac_func ();
16079 /* The GNU C library defines this for functions which it implements
16080 to always fail with ENOSYS. Some functions are actually named
16081 something starting with __ and the normal name is an alias. */
16082 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16083 choke me
16084 #else
16085 char (*f) () = $ac_func;
16086 #endif
16087 #ifdef __cplusplus
16089 #endif
16092 main ()
16094 return f != $ac_func;
16096 return 0;
16098 _ACEOF
16099 rm -f conftest.$ac_objext conftest$ac_exeext
16100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16101 (eval $ac_link) 2>conftest.er1
16102 ac_status=$?
16103 grep -v '^ *+' conftest.er1 >conftest.err
16104 rm -f conftest.er1
16105 cat conftest.err >&5
16106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16107 (exit $ac_status); } &&
16108 { ac_try='test -z "$ac_c_werror_flag"
16109 || test ! -s conftest.err'
16110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16111 (eval $ac_try) 2>&5
16112 ac_status=$?
16113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16114 (exit $ac_status); }; } &&
16115 { ac_try='test -s conftest$ac_exeext'
16116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16117 (eval $ac_try) 2>&5
16118 ac_status=$?
16119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16120 (exit $ac_status); }; }; then
16121 eval "$as_ac_var=yes"
16122 else
16123 echo "$as_me: failed program was:" >&5
16124 sed 's/^/| /' conftest.$ac_ext >&5
16126 eval "$as_ac_var=no"
16128 rm -f conftest.err conftest.$ac_objext \
16129 conftest$ac_exeext conftest.$ac_ext
16131 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16132 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16133 if test `eval echo '${'$as_ac_var'}'` = yes; then
16135 cat >>confdefs.h <<_ACEOF
16136 #define CRAY_STACKSEG_END $ac_func
16137 _ACEOF
16139 break
16142 done
16145 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16146 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16147 if test "${ac_cv_c_stack_direction+set}" = set; then
16148 echo $ECHO_N "(cached) $ECHO_C" >&6
16149 else
16150 if test "$cross_compiling" = yes; then
16151 ac_cv_c_stack_direction=0
16152 else
16153 cat >conftest.$ac_ext <<_ACEOF
16154 /* confdefs.h. */
16155 _ACEOF
16156 cat confdefs.h >>conftest.$ac_ext
16157 cat >>conftest.$ac_ext <<_ACEOF
16158 /* end confdefs.h. */
16160 find_stack_direction ()
16162 static char *addr = 0;
16163 auto char dummy;
16164 if (addr == 0)
16166 addr = &dummy;
16167 return find_stack_direction ();
16169 else
16170 return (&dummy > addr) ? 1 : -1;
16174 main ()
16176 exit (find_stack_direction () < 0);
16178 _ACEOF
16179 rm -f conftest$ac_exeext
16180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16181 (eval $ac_link) 2>&5
16182 ac_status=$?
16183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16186 (eval $ac_try) 2>&5
16187 ac_status=$?
16188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16189 (exit $ac_status); }; }; then
16190 ac_cv_c_stack_direction=1
16191 else
16192 echo "$as_me: program exited with status $ac_status" >&5
16193 echo "$as_me: failed program was:" >&5
16194 sed 's/^/| /' conftest.$ac_ext >&5
16196 ( exit $ac_status )
16197 ac_cv_c_stack_direction=-1
16199 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16202 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16203 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16205 cat >>confdefs.h <<_ACEOF
16206 #define STACK_DIRECTION $ac_cv_c_stack_direction
16207 _ACEOF
16212 if test x$gcc_no_link = xyes; then
16213 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
16214 ac_cv_func_mmap_fixed_mapped=no
16217 if test "x${ac_cv_func_mmap_fixed_mapped}" != xno; then
16220 for ac_header in stdlib.h unistd.h
16222 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16224 echo "$as_me:$LINENO: checking for $ac_header" >&5
16225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16226 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16227 echo $ECHO_N "(cached) $ECHO_C" >&6
16229 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16230 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16231 else
16232 # Is the header compilable?
16233 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16234 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16235 cat >conftest.$ac_ext <<_ACEOF
16236 /* confdefs.h. */
16237 _ACEOF
16238 cat confdefs.h >>conftest.$ac_ext
16239 cat >>conftest.$ac_ext <<_ACEOF
16240 /* end confdefs.h. */
16241 $ac_includes_default
16242 #include <$ac_header>
16243 _ACEOF
16244 rm -f conftest.$ac_objext
16245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16246 (eval $ac_compile) 2>conftest.er1
16247 ac_status=$?
16248 grep -v '^ *+' conftest.er1 >conftest.err
16249 rm -f conftest.er1
16250 cat conftest.err >&5
16251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16252 (exit $ac_status); } &&
16253 { ac_try='test -z "$ac_c_werror_flag"
16254 || test ! -s conftest.err'
16255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16256 (eval $ac_try) 2>&5
16257 ac_status=$?
16258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16259 (exit $ac_status); }; } &&
16260 { ac_try='test -s conftest.$ac_objext'
16261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16262 (eval $ac_try) 2>&5
16263 ac_status=$?
16264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16265 (exit $ac_status); }; }; then
16266 ac_header_compiler=yes
16267 else
16268 echo "$as_me: failed program was:" >&5
16269 sed 's/^/| /' conftest.$ac_ext >&5
16271 ac_header_compiler=no
16273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16274 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16275 echo "${ECHO_T}$ac_header_compiler" >&6
16277 # Is the header present?
16278 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16279 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16280 cat >conftest.$ac_ext <<_ACEOF
16281 /* confdefs.h. */
16282 _ACEOF
16283 cat confdefs.h >>conftest.$ac_ext
16284 cat >>conftest.$ac_ext <<_ACEOF
16285 /* end confdefs.h. */
16286 #include <$ac_header>
16287 _ACEOF
16288 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16289 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16290 ac_status=$?
16291 grep -v '^ *+' conftest.er1 >conftest.err
16292 rm -f conftest.er1
16293 cat conftest.err >&5
16294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16295 (exit $ac_status); } >/dev/null; then
16296 if test -s conftest.err; then
16297 ac_cpp_err=$ac_c_preproc_warn_flag
16298 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16299 else
16300 ac_cpp_err=
16302 else
16303 ac_cpp_err=yes
16305 if test -z "$ac_cpp_err"; then
16306 ac_header_preproc=yes
16307 else
16308 echo "$as_me: failed program was:" >&5
16309 sed 's/^/| /' conftest.$ac_ext >&5
16311 ac_header_preproc=no
16313 rm -f conftest.err conftest.$ac_ext
16314 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16315 echo "${ECHO_T}$ac_header_preproc" >&6
16317 # So? What about this header?
16318 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16319 yes:no: )
16320 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16321 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16322 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16323 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16324 ac_header_preproc=yes
16326 no:yes:* )
16327 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16328 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16329 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16330 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16331 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16332 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16333 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16334 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16336 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16337 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16338 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16340 cat <<\_ASBOX
16341 ## ---------------------------------- ##
16342 ## Report this to the libjava lists. ##
16343 ## ---------------------------------- ##
16344 _ASBOX
16346 sed "s/^/$as_me: WARNING: /" >&2
16348 esac
16349 echo "$as_me:$LINENO: checking for $ac_header" >&5
16350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16352 echo $ECHO_N "(cached) $ECHO_C" >&6
16353 else
16354 eval "$as_ac_Header=\$ac_header_preproc"
16356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16357 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16360 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16361 cat >>confdefs.h <<_ACEOF
16362 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16363 _ACEOF
16367 done
16370 for ac_func in getpagesize
16372 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16373 echo "$as_me:$LINENO: checking for $ac_func" >&5
16374 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16375 if eval "test \"\${$as_ac_var+set}\" = set"; then
16376 echo $ECHO_N "(cached) $ECHO_C" >&6
16377 else
16378 if test x$gcc_no_link = xyes; then
16379 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16380 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16381 { (exit 1); exit 1; }; }
16383 cat >conftest.$ac_ext <<_ACEOF
16384 /* confdefs.h. */
16385 _ACEOF
16386 cat confdefs.h >>conftest.$ac_ext
16387 cat >>conftest.$ac_ext <<_ACEOF
16388 /* end confdefs.h. */
16389 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16390 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16391 #define $ac_func innocuous_$ac_func
16393 /* System header to define __stub macros and hopefully few prototypes,
16394 which can conflict with char $ac_func (); below.
16395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16396 <limits.h> exists even on freestanding compilers. */
16398 #ifdef __STDC__
16399 # include <limits.h>
16400 #else
16401 # include <assert.h>
16402 #endif
16404 #undef $ac_func
16406 /* Override any gcc2 internal prototype to avoid an error. */
16407 #ifdef __cplusplus
16408 extern "C"
16410 #endif
16411 /* We use char because int might match the return type of a gcc2
16412 builtin and then its argument prototype would still apply. */
16413 char $ac_func ();
16414 /* The GNU C library defines this for functions which it implements
16415 to always fail with ENOSYS. Some functions are actually named
16416 something starting with __ and the normal name is an alias. */
16417 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16418 choke me
16419 #else
16420 char (*f) () = $ac_func;
16421 #endif
16422 #ifdef __cplusplus
16424 #endif
16427 main ()
16429 return f != $ac_func;
16431 return 0;
16433 _ACEOF
16434 rm -f conftest.$ac_objext conftest$ac_exeext
16435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16436 (eval $ac_link) 2>conftest.er1
16437 ac_status=$?
16438 grep -v '^ *+' conftest.er1 >conftest.err
16439 rm -f conftest.er1
16440 cat conftest.err >&5
16441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16442 (exit $ac_status); } &&
16443 { ac_try='test -z "$ac_c_werror_flag"
16444 || test ! -s conftest.err'
16445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16446 (eval $ac_try) 2>&5
16447 ac_status=$?
16448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16449 (exit $ac_status); }; } &&
16450 { ac_try='test -s conftest$ac_exeext'
16451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16452 (eval $ac_try) 2>&5
16453 ac_status=$?
16454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16455 (exit $ac_status); }; }; then
16456 eval "$as_ac_var=yes"
16457 else
16458 echo "$as_me: failed program was:" >&5
16459 sed 's/^/| /' conftest.$ac_ext >&5
16461 eval "$as_ac_var=no"
16463 rm -f conftest.err conftest.$ac_objext \
16464 conftest$ac_exeext conftest.$ac_ext
16466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16467 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16468 if test `eval echo '${'$as_ac_var'}'` = yes; then
16469 cat >>confdefs.h <<_ACEOF
16470 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16471 _ACEOF
16474 done
16476 echo "$as_me:$LINENO: checking for working mmap" >&5
16477 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
16478 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
16479 echo $ECHO_N "(cached) $ECHO_C" >&6
16480 else
16481 if test "$cross_compiling" = yes; then
16482 ac_cv_func_mmap_fixed_mapped=no
16483 else
16484 cat >conftest.$ac_ext <<_ACEOF
16485 /* confdefs.h. */
16486 _ACEOF
16487 cat confdefs.h >>conftest.$ac_ext
16488 cat >>conftest.$ac_ext <<_ACEOF
16489 /* end confdefs.h. */
16490 $ac_includes_default
16491 /* malloc might have been renamed as rpl_malloc. */
16492 #undef malloc
16494 /* Thanks to Mike Haertel and Jim Avera for this test.
16495 Here is a matrix of mmap possibilities:
16496 mmap private not fixed
16497 mmap private fixed at somewhere currently unmapped
16498 mmap private fixed at somewhere already mapped
16499 mmap shared not fixed
16500 mmap shared fixed at somewhere currently unmapped
16501 mmap shared fixed at somewhere already mapped
16502 For private mappings, we should verify that changes cannot be read()
16503 back from the file, nor mmap's back from the file at a different
16504 address. (There have been systems where private was not correctly
16505 implemented like the infamous i386 svr4.0, and systems where the
16506 VM page cache was not coherent with the file system buffer cache
16507 like early versions of FreeBSD and possibly contemporary NetBSD.)
16508 For shared mappings, we should conversely verify that changes get
16509 propagated back to all the places they're supposed to be.
16511 Grep wants private fixed already mapped.
16512 The main things grep needs to know about mmap are:
16513 * does it exist and is it safe to write into the mmap'd area
16514 * how to use it (BSD variants) */
16516 #include <fcntl.h>
16517 #include <sys/mman.h>
16519 #if !STDC_HEADERS && !HAVE_STDLIB_H
16520 char *malloc ();
16521 #endif
16523 /* This mess was copied from the GNU getpagesize.h. */
16524 #if !HAVE_GETPAGESIZE
16525 /* Assume that all systems that can run configure have sys/param.h. */
16526 # if !HAVE_SYS_PARAM_H
16527 # define HAVE_SYS_PARAM_H 1
16528 # endif
16530 # ifdef _SC_PAGESIZE
16531 # define getpagesize() sysconf(_SC_PAGESIZE)
16532 # else /* no _SC_PAGESIZE */
16533 # if HAVE_SYS_PARAM_H
16534 # include <sys/param.h>
16535 # ifdef EXEC_PAGESIZE
16536 # define getpagesize() EXEC_PAGESIZE
16537 # else /* no EXEC_PAGESIZE */
16538 # ifdef NBPG
16539 # define getpagesize() NBPG * CLSIZE
16540 # ifndef CLSIZE
16541 # define CLSIZE 1
16542 # endif /* no CLSIZE */
16543 # else /* no NBPG */
16544 # ifdef NBPC
16545 # define getpagesize() NBPC
16546 # else /* no NBPC */
16547 # ifdef PAGESIZE
16548 # define getpagesize() PAGESIZE
16549 # endif /* PAGESIZE */
16550 # endif /* no NBPC */
16551 # endif /* no NBPG */
16552 # endif /* no EXEC_PAGESIZE */
16553 # else /* no HAVE_SYS_PARAM_H */
16554 # define getpagesize() 8192 /* punt totally */
16555 # endif /* no HAVE_SYS_PARAM_H */
16556 # endif /* no _SC_PAGESIZE */
16558 #endif /* no HAVE_GETPAGESIZE */
16561 main ()
16563 char *data, *data2, *data3;
16564 int i, pagesize;
16565 int fd;
16567 pagesize = getpagesize ();
16569 /* First, make a file with some known garbage in it. */
16570 data = (char *) malloc (pagesize);
16571 if (!data)
16572 exit (1);
16573 for (i = 0; i < pagesize; ++i)
16574 *(data + i) = rand ();
16575 umask (0);
16576 fd = creat ("conftest.mmap", 0600);
16577 if (fd < 0)
16578 exit (1);
16579 if (write (fd, data, pagesize) != pagesize)
16580 exit (1);
16581 close (fd);
16583 /* Next, try to mmap the file at a fixed address which already has
16584 something else allocated at it. If we can, also make sure that
16585 we see the same garbage. */
16586 fd = open ("conftest.mmap", O_RDWR);
16587 if (fd < 0)
16588 exit (1);
16589 data2 = (char *) malloc (2 * pagesize);
16590 if (!data2)
16591 exit (1);
16592 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
16593 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16594 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16595 exit (1);
16596 for (i = 0; i < pagesize; ++i)
16597 if (*(data + i) != *(data2 + i))
16598 exit (1);
16600 /* Finally, make sure that changes to the mapped area do not
16601 percolate back to the file as seen by read(). (This is a bug on
16602 some variants of i386 svr4.0.) */
16603 for (i = 0; i < pagesize; ++i)
16604 *(data2 + i) = *(data2 + i) + 1;
16605 data3 = (char *) malloc (pagesize);
16606 if (!data3)
16607 exit (1);
16608 if (read (fd, data3, pagesize) != pagesize)
16609 exit (1);
16610 for (i = 0; i < pagesize; ++i)
16611 if (*(data + i) != *(data3 + i))
16612 exit (1);
16613 close (fd);
16614 exit (0);
16616 _ACEOF
16617 rm -f conftest$ac_exeext
16618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16619 (eval $ac_link) 2>&5
16620 ac_status=$?
16621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16622 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16624 (eval $ac_try) 2>&5
16625 ac_status=$?
16626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627 (exit $ac_status); }; }; then
16628 ac_cv_func_mmap_fixed_mapped=yes
16629 else
16630 echo "$as_me: program exited with status $ac_status" >&5
16631 echo "$as_me: failed program was:" >&5
16632 sed 's/^/| /' conftest.$ac_ext >&5
16634 ( exit $ac_status )
16635 ac_cv_func_mmap_fixed_mapped=no
16637 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16640 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
16641 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
16642 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16644 cat >>confdefs.h <<\_ACEOF
16645 #define HAVE_MMAP 1
16646 _ACEOF
16649 rm -f conftest.mmap
16653 for ac_prog in perl
16655 # Extract the first word of "$ac_prog", so it can be a program name with args.
16656 set dummy $ac_prog; ac_word=$2
16657 echo "$as_me:$LINENO: checking for $ac_word" >&5
16658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16659 if test "${ac_cv_prog_PERL+set}" = set; then
16660 echo $ECHO_N "(cached) $ECHO_C" >&6
16661 else
16662 if test -n "$PERL"; then
16663 ac_cv_prog_PERL="$PERL" # Let the user override the test.
16664 else
16665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16666 for as_dir in $PATH
16668 IFS=$as_save_IFS
16669 test -z "$as_dir" && as_dir=.
16670 for ac_exec_ext in '' $ac_executable_extensions; do
16671 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16672 ac_cv_prog_PERL="$ac_prog"
16673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16674 break 2
16676 done
16677 done
16681 PERL=$ac_cv_prog_PERL
16682 if test -n "$PERL"; then
16683 echo "$as_me:$LINENO: result: $PERL" >&5
16684 echo "${ECHO_T}$PERL" >&6
16685 else
16686 echo "$as_me:$LINENO: result: no" >&5
16687 echo "${ECHO_T}no" >&6
16690 test -n "$PERL" && break
16691 done
16692 test -n "$PERL" || PERL="false"
16695 SYSDEP_SOURCES=
16696 SIGNAL_HANDLER_AUX=
16698 case "${host}" in
16699 i?86-*-linux*)
16700 SIGNAL_HANDLER=include/i386-signal.h
16702 sparc*-sun-solaris*)
16703 SIGNAL_HANDLER=include/sparc-signal.h
16705 # ia64-*)
16706 # SYSDEP_SOURCES=sysdep/ia64.c
16707 # test -d sysdep || mkdir sysdep
16708 # ;;
16709 hppa*-*-linux*)
16710 SIGNAL_HANDLER=include/pa-signal.h
16712 ia64-*-linux*)
16713 SIGNAL_HANDLER=include/dwarf2-signal.h
16715 powerpc*-*-linux*)
16716 SIGNAL_HANDLER=include/powerpc-signal.h
16718 alpha*-*-linux*)
16719 SIGNAL_HANDLER=include/dwarf2-signal.h
16721 s390*-*-linux*)
16722 SIGNAL_HANDLER=include/s390-signal.h
16724 x86_64*-*-linux*)
16725 SIGNAL_HANDLER=include/x86_64-signal.h
16726 SIGNAL_HANDLER_AUX=include/i386-signal.h
16728 sparc*-*-linux*)
16729 SIGNAL_HANDLER=include/dwarf2-signal.h
16731 sh*-*-linux*)
16732 SIGNAL_HANDLER=include/sh-signal.h
16734 *mingw*)
16735 SIGNAL_HANDLER=include/win32-signal.h
16737 mips*-*-linux*)
16738 SIGNAL_HANDLER=include/mips-signal.h
16740 *-*-darwin*)
16741 SIGNAL_HANDLER=include/darwin-signal.h
16744 SIGNAL_HANDLER=include/default-signal.h
16746 esac
16748 # If we're using sjlj exceptions, forget what we just learned.
16749 if test "$enable_sjlj_exceptions" = yes; then
16750 SIGNAL_HANDLER=include/default-signal.h
16751 SIGNAL_HANDLER_AUX=
16756 if test -z "$SIGNAL_HANDLER_AUX"; then
16757 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
16760 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
16763 if test "${multilib}" = "yes"; then
16764 multilib_arg="--enable-multilib"
16765 else
16766 multilib_arg=
16769 # See if we support thread-local storage.
16771 # Check whether --enable-tls or --disable-tls was given.
16772 if test "${enable_tls+set}" = set; then
16773 enableval="$enable_tls"
16775 case "$enableval" in
16776 yes|no) ;;
16777 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
16778 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
16779 { (exit 1); exit 1; }; } ;;
16780 esac
16782 else
16783 enable_tls=yes
16786 echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
16787 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
16788 if test "${have_tls+set}" = set; then
16789 echo $ECHO_N "(cached) $ECHO_C" >&6
16790 else
16792 if test "$cross_compiling" = yes; then
16793 cat >conftest.$ac_ext <<_ACEOF
16794 __thread int foo;
16795 _ACEOF
16796 rm -f conftest.$ac_objext
16797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16798 (eval $ac_compile) 2>conftest.er1
16799 ac_status=$?
16800 grep -v '^ *+' conftest.er1 >conftest.err
16801 rm -f conftest.er1
16802 cat conftest.err >&5
16803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804 (exit $ac_status); } &&
16805 { ac_try='test -z "$ac_c_werror_flag"
16806 || test ! -s conftest.err'
16807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16808 (eval $ac_try) 2>&5
16809 ac_status=$?
16810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811 (exit $ac_status); }; } &&
16812 { ac_try='test -s conftest.$ac_objext'
16813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16814 (eval $ac_try) 2>&5
16815 ac_status=$?
16816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16817 (exit $ac_status); }; }; then
16818 have_tls=yes
16819 else
16820 echo "$as_me: failed program was:" >&5
16821 sed 's/^/| /' conftest.$ac_ext >&5
16823 have_tls=no
16825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16827 else
16828 cat >conftest.$ac_ext <<_ACEOF
16829 __thread int a; int b; int main() { return a = b; }
16830 _ACEOF
16831 rm -f conftest$ac_exeext
16832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16833 (eval $ac_link) 2>&5
16834 ac_status=$?
16835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16838 (eval $ac_try) 2>&5
16839 ac_status=$?
16840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841 (exit $ac_status); }; }; then
16842 save_LDFLAGS="$LDFLAGS"
16843 LDFLAGS="-static $LDFLAGS"
16844 if test "$cross_compiling" = yes; then
16845 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16846 See \`config.log' for more details." >&5
16847 echo "$as_me: error: cannot run test program while cross compiling
16848 See \`config.log' for more details." >&2;}
16849 { (exit 1); exit 1; }; }
16850 else
16851 cat >conftest.$ac_ext <<_ACEOF
16852 __thread int a; int b; int main() { return a = b; }
16853 _ACEOF
16854 rm -f conftest$ac_exeext
16855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16856 (eval $ac_link) 2>&5
16857 ac_status=$?
16858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16859 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16861 (eval $ac_try) 2>&5
16862 ac_status=$?
16863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864 (exit $ac_status); }; }; then
16865 have_tls=yes
16866 else
16867 echo "$as_me: program exited with status $ac_status" >&5
16868 echo "$as_me: failed program was:" >&5
16869 sed 's/^/| /' conftest.$ac_ext >&5
16871 ( exit $ac_status )
16872 have_tls=no
16874 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16876 LDFLAGS="$save_LDFLAGS"
16877 else
16878 echo "$as_me: program exited with status $ac_status" >&5
16879 echo "$as_me: failed program was:" >&5
16880 sed 's/^/| /' conftest.$ac_ext >&5
16882 ( exit $ac_status )
16883 have_tls=no
16885 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16888 echo "$as_me:$LINENO: result: $have_tls" >&5
16889 echo "${ECHO_T}$have_tls" >&6
16890 if test "$enable_tls $have_tls" = "yes yes"; then
16892 cat >>confdefs.h <<\_ACEOF
16893 #define HAVE_TLS 1
16894 _ACEOF
16898 # Check if linker supports static linking on a per library basis
16899 LD_START_STATIC_SPEC=
16900 LD_FINISH_STATIC_SPEC=
16901 if $LD --help 2>&1 | grep -q -e -call_shared ; then
16902 if $LD --help 2>&1 | grep -q -e -non_shared ; then
16903 LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
16904 LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
16910 here=`${PWDCMD-pwd}`
16913 # We get this from the environment.
16916 ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile"
16919 ac_config_commands="$ac_config_commands default"
16922 cat >confcache <<\_ACEOF
16923 # This file is a shell script that caches the results of configure
16924 # tests run on this system so they can be shared between configure
16925 # scripts and configure runs, see configure's option --config-cache.
16926 # It is not useful on other systems. If it contains results you don't
16927 # want to keep, you may remove or edit it.
16929 # config.status only pays attention to the cache file if you give it
16930 # the --recheck option to rerun configure.
16932 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16933 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16934 # following values.
16936 _ACEOF
16938 # The following way of writing the cache mishandles newlines in values,
16939 # but we know of no workaround that is simple, portable, and efficient.
16940 # So, don't put newlines in cache variables' values.
16941 # Ultrix sh set writes to stderr and can't be redirected directly,
16942 # and sets the high bit in the cache file unless we assign to the vars.
16944 (set) 2>&1 |
16945 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16946 *ac_space=\ *)
16947 # `set' does not quote correctly, so add quotes (double-quote
16948 # substitution turns \\\\ into \\, and sed turns \\ into \).
16949 sed -n \
16950 "s/'/'\\\\''/g;
16951 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16954 # `set' quotes correctly as required by POSIX, so do not add quotes.
16955 sed -n \
16956 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16958 esac;
16960 sed '
16961 t clear
16962 : clear
16963 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16964 t end
16965 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16966 : end' >>confcache
16967 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16968 if test -w $cache_file; then
16969 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16970 cat confcache >$cache_file
16971 else
16972 echo "not updating unwritable cache $cache_file"
16975 rm -f confcache
16977 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16978 # Let make expand exec_prefix.
16979 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16981 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16982 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16983 # trailing colons and then remove the whole line if VPATH becomes empty
16984 # (actually we leave an empty line to preserve line numbers).
16985 if test "x$srcdir" = x.; then
16986 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16987 s/:*\$(srcdir):*/:/;
16988 s/:*\${srcdir}:*/:/;
16989 s/:*@srcdir@:*/:/;
16990 s/^\([^=]*=[ ]*\):*/\1/;
16991 s/:*$//;
16992 s/^[^=]*=[ ]*$//;
16996 DEFS=-DHAVE_CONFIG_H
16998 ac_libobjs=
16999 ac_ltlibobjs=
17000 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17001 # 1. Remove the extension, and $U if already installed.
17002 ac_i=`echo "$ac_i" |
17003 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17004 # 2. Add them.
17005 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17006 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
17007 done
17008 LIBOBJS=$ac_libobjs
17010 LTLIBOBJS=$ac_ltlibobjs
17013 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17014 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
17015 Usually this means the macro was only invoked conditionally." >&5
17016 echo "$as_me: error: conditional \"AMDEP\" was never defined.
17017 Usually this means the macro was only invoked conditionally." >&2;}
17018 { (exit 1); exit 1; }; }
17020 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17021 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17022 Usually this means the macro was only invoked conditionally." >&5
17023 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17024 Usually this means the macro was only invoked conditionally." >&2;}
17025 { (exit 1); exit 1; }; }
17027 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17028 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
17029 Usually this means the macro was only invoked conditionally." >&5
17030 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
17031 Usually this means the macro was only invoked conditionally." >&2;}
17032 { (exit 1); exit 1; }; }
17034 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17035 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
17036 Usually this means the macro was only invoked conditionally." >&5
17037 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
17038 Usually this means the macro was only invoked conditionally." >&2;}
17039 { (exit 1); exit 1; }; }
17041 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
17042 { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
17043 Usually this means the macro was only invoked conditionally." >&5
17044 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
17045 Usually this means the macro was only invoked conditionally." >&2;}
17046 { (exit 1); exit 1; }; }
17048 if test -z "${GTK_AWT_TRUE}" && test -z "${GTK_AWT_FALSE}"; then
17049 { { echo "$as_me:$LINENO: error: conditional \"GTK_AWT\" was never defined.
17050 Usually this means the macro was only invoked conditionally." >&5
17051 echo "$as_me: error: conditional \"GTK_AWT\" was never defined.
17052 Usually this means the macro was only invoked conditionally." >&2;}
17053 { (exit 1); exit 1; }; }
17055 if test -z "${QT_AWT_TRUE}" && test -z "${QT_AWT_FALSE}"; then
17056 { { echo "$as_me:$LINENO: error: conditional \"QT_AWT\" was never defined.
17057 Usually this means the macro was only invoked conditionally." >&5
17058 echo "$as_me: error: conditional \"QT_AWT\" was never defined.
17059 Usually this means the macro was only invoked conditionally." >&2;}
17060 { (exit 1); exit 1; }; }
17062 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
17063 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
17064 Usually this means the macro was only invoked conditionally." >&5
17065 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
17066 Usually this means the macro was only invoked conditionally." >&2;}
17067 { (exit 1); exit 1; }; }
17069 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
17070 { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
17071 Usually this means the macro was only invoked conditionally." >&5
17072 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
17073 Usually this means the macro was only invoked conditionally." >&2;}
17074 { (exit 1); exit 1; }; }
17076 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
17077 { { echo "$as_me:$LINENO: error: conditional \"JAVA_HOME_SET\" was never defined.
17078 Usually this means the macro was only invoked conditionally." >&5
17079 echo "$as_me: error: conditional \"JAVA_HOME_SET\" was never defined.
17080 Usually this means the macro was only invoked conditionally." >&2;}
17081 { (exit 1); exit 1; }; }
17083 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
17084 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
17085 Usually this means the macro was only invoked conditionally." >&5
17086 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
17087 Usually this means the macro was only invoked conditionally." >&2;}
17088 { (exit 1); exit 1; }; }
17090 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
17091 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
17092 Usually this means the macro was only invoked conditionally." >&5
17093 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
17094 Usually this means the macro was only invoked conditionally." >&2;}
17095 { (exit 1); exit 1; }; }
17097 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
17098 { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
17099 Usually this means the macro was only invoked conditionally." >&5
17100 echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
17101 Usually this means the macro was only invoked conditionally." >&2;}
17102 { (exit 1); exit 1; }; }
17104 if test -z "${GTK_CAIRO_TRUE}" && test -z "${GTK_CAIRO_FALSE}"; then
17105 { { echo "$as_me:$LINENO: error: conditional \"GTK_CAIRO\" was never defined.
17106 Usually this means the macro was only invoked conditionally." >&5
17107 echo "$as_me: error: conditional \"GTK_CAIRO\" was never defined.
17108 Usually this means the macro was only invoked conditionally." >&2;}
17109 { (exit 1); exit 1; }; }
17111 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
17112 { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
17113 Usually this means the macro was only invoked conditionally." >&5
17114 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
17115 Usually this means the macro was only invoked conditionally." >&2;}
17116 { (exit 1); exit 1; }; }
17118 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
17119 { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
17120 Usually this means the macro was only invoked conditionally." >&5
17121 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
17122 Usually this means the macro was only invoked conditionally." >&2;}
17123 { (exit 1); exit 1; }; }
17125 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
17126 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
17127 Usually this means the macro was only invoked conditionally." >&5
17128 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
17129 Usually this means the macro was only invoked conditionally." >&2;}
17130 { (exit 1); exit 1; }; }
17132 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
17133 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
17134 Usually this means the macro was only invoked conditionally." >&5
17135 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
17136 Usually this means the macro was only invoked conditionally." >&2;}
17137 { (exit 1); exit 1; }; }
17139 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
17140 { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
17141 Usually this means the macro was only invoked conditionally." >&5
17142 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
17143 Usually this means the macro was only invoked conditionally." >&2;}
17144 { (exit 1); exit 1; }; }
17146 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
17147 { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
17148 Usually this means the macro was only invoked conditionally." >&5
17149 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
17150 Usually this means the macro was only invoked conditionally." >&2;}
17151 { (exit 1); exit 1; }; }
17153 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
17154 { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
17155 Usually this means the macro was only invoked conditionally." >&5
17156 echo "$as_me: error: conditional \"NATIVE\" was never defined.
17157 Usually this means the macro was only invoked conditionally." >&2;}
17158 { (exit 1); exit 1; }; }
17160 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
17161 { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
17162 Usually this means the macro was only invoked conditionally." >&5
17163 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
17164 Usually this means the macro was only invoked conditionally." >&2;}
17165 { (exit 1); exit 1; }; }
17168 : ${CONFIG_STATUS=./config.status}
17169 ac_clean_files_save=$ac_clean_files
17170 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17171 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17172 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17173 cat >$CONFIG_STATUS <<_ACEOF
17174 #! $SHELL
17175 # Generated by $as_me.
17176 # Run this file to recreate the current configuration.
17177 # Compiler output produced by configure, useful for debugging
17178 # configure, is in config.log if it exists.
17180 debug=false
17181 ac_cs_recheck=false
17182 ac_cs_silent=false
17183 SHELL=\${CONFIG_SHELL-$SHELL}
17184 _ACEOF
17186 cat >>$CONFIG_STATUS <<\_ACEOF
17187 ## --------------------- ##
17188 ## M4sh Initialization. ##
17189 ## --------------------- ##
17191 # Be Bourne compatible
17192 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17193 emulate sh
17194 NULLCMD=:
17195 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17196 # is contrary to our usage. Disable this feature.
17197 alias -g '${1+"$@"}'='"$@"'
17198 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17199 set -o posix
17201 DUALCASE=1; export DUALCASE # for MKS sh
17203 # Support unset when possible.
17204 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17205 as_unset=unset
17206 else
17207 as_unset=false
17211 # Work around bugs in pre-3.0 UWIN ksh.
17212 $as_unset ENV MAIL MAILPATH
17213 PS1='$ '
17214 PS2='> '
17215 PS4='+ '
17217 # NLS nuisances.
17218 for as_var in \
17219 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17220 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17221 LC_TELEPHONE LC_TIME
17223 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17224 eval $as_var=C; export $as_var
17225 else
17226 $as_unset $as_var
17228 done
17230 # Required to use basename.
17231 if expr a : '\(a\)' >/dev/null 2>&1; then
17232 as_expr=expr
17233 else
17234 as_expr=false
17237 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17238 as_basename=basename
17239 else
17240 as_basename=false
17244 # Name of the executable.
17245 as_me=`$as_basename "$0" ||
17246 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17247 X"$0" : 'X\(//\)$' \| \
17248 X"$0" : 'X\(/\)$' \| \
17249 . : '\(.\)' 2>/dev/null ||
17250 echo X/"$0" |
17251 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17252 /^X\/\(\/\/\)$/{ s//\1/; q; }
17253 /^X\/\(\/\).*/{ s//\1/; q; }
17254 s/.*/./; q'`
17257 # PATH needs CR, and LINENO needs CR and PATH.
17258 # Avoid depending upon Character Ranges.
17259 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17260 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17261 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17262 as_cr_digits='0123456789'
17263 as_cr_alnum=$as_cr_Letters$as_cr_digits
17265 # The user is always right.
17266 if test "${PATH_SEPARATOR+set}" != set; then
17267 echo "#! /bin/sh" >conf$$.sh
17268 echo "exit 0" >>conf$$.sh
17269 chmod +x conf$$.sh
17270 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17271 PATH_SEPARATOR=';'
17272 else
17273 PATH_SEPARATOR=:
17275 rm -f conf$$.sh
17279 as_lineno_1=$LINENO
17280 as_lineno_2=$LINENO
17281 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17282 test "x$as_lineno_1" != "x$as_lineno_2" &&
17283 test "x$as_lineno_3" = "x$as_lineno_2" || {
17284 # Find who we are. Look in the path if we contain no path at all
17285 # relative or not.
17286 case $0 in
17287 *[\\/]* ) as_myself=$0 ;;
17288 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17289 for as_dir in $PATH
17291 IFS=$as_save_IFS
17292 test -z "$as_dir" && as_dir=.
17293 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17294 done
17297 esac
17298 # We did not find ourselves, most probably we were run as `sh COMMAND'
17299 # in which case we are not to be found in the path.
17300 if test "x$as_myself" = x; then
17301 as_myself=$0
17303 if test ! -f "$as_myself"; then
17304 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17305 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17306 { (exit 1); exit 1; }; }
17308 case $CONFIG_SHELL in
17310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17311 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17313 IFS=$as_save_IFS
17314 test -z "$as_dir" && as_dir=.
17315 for as_base in sh bash ksh sh5; do
17316 case $as_dir in
17318 if ("$as_dir/$as_base" -c '
17319 as_lineno_1=$LINENO
17320 as_lineno_2=$LINENO
17321 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17322 test "x$as_lineno_1" != "x$as_lineno_2" &&
17323 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17324 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17325 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17326 CONFIG_SHELL=$as_dir/$as_base
17327 export CONFIG_SHELL
17328 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17329 fi;;
17330 esac
17331 done
17332 done
17334 esac
17336 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17337 # uniformly replaced by the line number. The first 'sed' inserts a
17338 # line-number line before each line; the second 'sed' does the real
17339 # work. The second script uses 'N' to pair each line-number line
17340 # with the numbered line, and appends trailing '-' during
17341 # substitution so that $LINENO is not a special case at line end.
17342 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17343 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17344 sed '=' <$as_myself |
17345 sed '
17347 s,$,-,
17348 : loop
17349 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17350 t loop
17351 s,-$,,
17352 s,^['$as_cr_digits']*\n,,
17353 ' >$as_me.lineno &&
17354 chmod +x $as_me.lineno ||
17355 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17356 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17357 { (exit 1); exit 1; }; }
17359 # Don't try to exec as it changes $[0], causing all sort of problems
17360 # (the dirname of $[0] is not the place where we might find the
17361 # original and so on. Autoconf is especially sensible to this).
17362 . ./$as_me.lineno
17363 # Exit status is that of the last command.
17364 exit
17368 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17369 *c*,-n*) ECHO_N= ECHO_C='
17370 ' ECHO_T=' ' ;;
17371 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17372 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17373 esac
17375 if expr a : '\(a\)' >/dev/null 2>&1; then
17376 as_expr=expr
17377 else
17378 as_expr=false
17381 rm -f conf$$ conf$$.exe conf$$.file
17382 echo >conf$$.file
17383 if ln -s conf$$.file conf$$ 2>/dev/null; then
17384 # We could just check for DJGPP; but this test a) works b) is more generic
17385 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17386 if test -f conf$$.exe; then
17387 # Don't use ln at all; we don't have any links
17388 as_ln_s='cp -p'
17389 else
17390 as_ln_s='ln -s'
17392 elif ln conf$$.file conf$$ 2>/dev/null; then
17393 as_ln_s=ln
17394 else
17395 as_ln_s='cp -p'
17397 rm -f conf$$ conf$$.exe conf$$.file
17399 if mkdir -p . 2>/dev/null; then
17400 as_mkdir_p=:
17401 else
17402 test -d ./-p && rmdir ./-p
17403 as_mkdir_p=false
17406 as_executable_p="test -f"
17408 # Sed expression to map a string onto a valid CPP name.
17409 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17411 # Sed expression to map a string onto a valid variable name.
17412 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17415 # IFS
17416 # We need space, tab and new line, in precisely that order.
17417 as_nl='
17419 IFS=" $as_nl"
17421 # CDPATH.
17422 $as_unset CDPATH
17424 exec 6>&1
17426 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17427 # report actual input values of CONFIG_FILES etc. instead of their
17428 # values after options handling. Logging --version etc. is OK.
17429 exec 5>>config.log
17431 echo
17432 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17433 ## Running $as_me. ##
17434 _ASBOX
17435 } >&5
17436 cat >&5 <<_CSEOF
17438 This file was extended by libjava $as_me version-unused, which was
17439 generated by GNU Autoconf 2.59. Invocation command line was
17441 CONFIG_FILES = $CONFIG_FILES
17442 CONFIG_HEADERS = $CONFIG_HEADERS
17443 CONFIG_LINKS = $CONFIG_LINKS
17444 CONFIG_COMMANDS = $CONFIG_COMMANDS
17445 $ $0 $@
17447 _CSEOF
17448 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17449 echo >&5
17450 _ACEOF
17452 # Files that config.status was made for.
17453 if test -n "$ac_config_files"; then
17454 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17457 if test -n "$ac_config_headers"; then
17458 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17461 if test -n "$ac_config_links"; then
17462 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17465 if test -n "$ac_config_commands"; then
17466 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17469 cat >>$CONFIG_STATUS <<\_ACEOF
17471 ac_cs_usage="\
17472 \`$as_me' instantiates files from templates according to the
17473 current configuration.
17475 Usage: $0 [OPTIONS] [FILE]...
17477 -h, --help print this help, then exit
17478 -V, --version print version number, then exit
17479 -q, --quiet do not print progress messages
17480 -d, --debug don't remove temporary files
17481 --recheck update $as_me by reconfiguring in the same conditions
17482 --file=FILE[:TEMPLATE]
17483 instantiate the configuration file FILE
17484 --header=FILE[:TEMPLATE]
17485 instantiate the configuration header FILE
17487 Configuration files:
17488 $config_files
17490 Configuration headers:
17491 $config_headers
17493 Configuration links:
17494 $config_links
17496 Configuration commands:
17497 $config_commands
17499 Report bugs to <bug-autoconf@gnu.org>."
17500 _ACEOF
17502 cat >>$CONFIG_STATUS <<_ACEOF
17503 ac_cs_version="\\
17504 libjava config.status version-unused
17505 configured by $0, generated by GNU Autoconf 2.59,
17506 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17508 Copyright (C) 2003 Free Software Foundation, Inc.
17509 This config.status script is free software; the Free Software Foundation
17510 gives unlimited permission to copy, distribute and modify it."
17511 srcdir=$srcdir
17512 INSTALL="$INSTALL"
17513 _ACEOF
17515 cat >>$CONFIG_STATUS <<\_ACEOF
17516 # If no file are specified by the user, then we need to provide default
17517 # value. By we need to know if files were specified by the user.
17518 ac_need_defaults=:
17519 while test $# != 0
17521 case $1 in
17522 --*=*)
17523 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17524 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17525 ac_shift=:
17528 ac_option=$1
17529 ac_optarg=$2
17530 ac_shift=shift
17532 *) # This is not an option, so the user has probably given explicit
17533 # arguments.
17534 ac_option=$1
17535 ac_need_defaults=false;;
17536 esac
17538 case $ac_option in
17539 # Handling of the options.
17540 _ACEOF
17541 cat >>$CONFIG_STATUS <<\_ACEOF
17542 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17543 ac_cs_recheck=: ;;
17544 --version | --vers* | -V )
17545 echo "$ac_cs_version"; exit 0 ;;
17546 --he | --h)
17547 # Conflict between --help and --header
17548 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17549 Try \`$0 --help' for more information." >&5
17550 echo "$as_me: error: ambiguous option: $1
17551 Try \`$0 --help' for more information." >&2;}
17552 { (exit 1); exit 1; }; };;
17553 --help | --hel | -h )
17554 echo "$ac_cs_usage"; exit 0 ;;
17555 --debug | --d* | -d )
17556 debug=: ;;
17557 --file | --fil | --fi | --f )
17558 $ac_shift
17559 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17560 ac_need_defaults=false;;
17561 --header | --heade | --head | --hea )
17562 $ac_shift
17563 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17564 ac_need_defaults=false;;
17565 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17566 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17567 ac_cs_silent=: ;;
17569 # This is an error.
17570 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17571 Try \`$0 --help' for more information." >&5
17572 echo "$as_me: error: unrecognized option: $1
17573 Try \`$0 --help' for more information." >&2;}
17574 { (exit 1); exit 1; }; } ;;
17576 *) ac_config_targets="$ac_config_targets $1" ;;
17578 esac
17579 shift
17580 done
17582 ac_configure_extra_args=
17584 if $ac_cs_silent; then
17585 exec 6>/dev/null
17586 ac_configure_extra_args="$ac_configure_extra_args --silent"
17589 _ACEOF
17590 cat >>$CONFIG_STATUS <<_ACEOF
17591 if \$ac_cs_recheck; then
17592 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17593 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17596 _ACEOF
17598 cat >>$CONFIG_STATUS <<_ACEOF
17600 # INIT-COMMANDS section.
17603 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17604 srcdir=${srcdir}
17605 host=${host}
17606 target=${target}
17607 with_multisubdir=${with_multisubdir}
17608 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17609 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17610 libgcj_basedir=${libgcj_basedir}
17611 CC="${CC}"
17612 CXX="${CXX}"
17613 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
17616 _ACEOF
17620 cat >>$CONFIG_STATUS <<\_ACEOF
17621 for ac_config_target in $ac_config_targets
17623 case "$ac_config_target" in
17624 # Handling of arguments.
17625 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17626 "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
17627 "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
17628 "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
17629 "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
17630 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17631 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17632 "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
17633 "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
17634 "java/lang/ConcreteProcess.java" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java" ;;
17635 "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
17636 "java/net/natInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc" ;;
17637 "java/net/natVMNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
17638 "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
17639 "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
17640 "gnu/java/nio/natPipeImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc" ;;
17641 "gnu/java/nio/natSelectorImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc" ;;
17642 "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
17643 "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
17644 "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
17645 "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
17646 "sysdep/backtrace.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
17647 "sysdep/descriptor.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
17648 "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
17649 "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
17650 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17651 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17652 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
17653 "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
17654 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17655 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17656 { (exit 1); exit 1; }; };;
17657 esac
17658 done
17660 # If the user did not use the arguments to specify the items to instantiate,
17661 # then the envvar interface is used. Set only those that are not.
17662 # We use the long form for the default assignment because of an extremely
17663 # bizarre bug on SunOS 4.1.3.
17664 if $ac_need_defaults; then
17665 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17666 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17667 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17668 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17671 # Have a temporary directory for convenience. Make it in the build tree
17672 # simply because there is no reason to put it here, and in addition,
17673 # creating and moving files from /tmp can sometimes cause problems.
17674 # Create a temporary directory, and hook for its removal unless debugging.
17675 $debug ||
17677 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17678 trap '{ (exit 1); exit 1; }' 1 2 13 15
17681 # Create a (secure) tmp directory for tmp files.
17684 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17685 test -n "$tmp" && test -d "$tmp"
17686 } ||
17688 tmp=./confstat$$-$RANDOM
17689 (umask 077 && mkdir $tmp)
17690 } ||
17692 echo "$me: cannot create a temporary directory in ." >&2
17693 { (exit 1); exit 1; }
17696 _ACEOF
17698 cat >>$CONFIG_STATUS <<_ACEOF
17701 # CONFIG_FILES section.
17704 # No need to generate the scripts if there are no CONFIG_FILES.
17705 # This happens for instance when ./config.status config.h
17706 if test -n "\$CONFIG_FILES"; then
17707 # Protect against being on the right side of a sed subst in config.status.
17708 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17709 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17710 s,@SHELL@,$SHELL,;t t
17711 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17712 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17713 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17714 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17715 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17716 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17717 s,@exec_prefix@,$exec_prefix,;t t
17718 s,@prefix@,$prefix,;t t
17719 s,@program_transform_name@,$program_transform_name,;t t
17720 s,@bindir@,$bindir,;t t
17721 s,@sbindir@,$sbindir,;t t
17722 s,@libexecdir@,$libexecdir,;t t
17723 s,@datadir@,$datadir,;t t
17724 s,@sysconfdir@,$sysconfdir,;t t
17725 s,@sharedstatedir@,$sharedstatedir,;t t
17726 s,@localstatedir@,$localstatedir,;t t
17727 s,@libdir@,$libdir,;t t
17728 s,@includedir@,$includedir,;t t
17729 s,@oldincludedir@,$oldincludedir,;t t
17730 s,@infodir@,$infodir,;t t
17731 s,@mandir@,$mandir,;t t
17732 s,@build_alias@,$build_alias,;t t
17733 s,@host_alias@,$host_alias,;t t
17734 s,@target_alias@,$target_alias,;t t
17735 s,@DEFS@,$DEFS,;t t
17736 s,@ECHO_C@,$ECHO_C,;t t
17737 s,@ECHO_N@,$ECHO_N,;t t
17738 s,@ECHO_T@,$ECHO_T,;t t
17739 s,@LIBS@,$LIBS,;t t
17740 s,@build@,$build,;t t
17741 s,@build_cpu@,$build_cpu,;t t
17742 s,@build_vendor@,$build_vendor,;t t
17743 s,@build_os@,$build_os,;t t
17744 s,@build_subdir@,$build_subdir,;t t
17745 s,@host_subdir@,$host_subdir,;t t
17746 s,@target_subdir@,$target_subdir,;t t
17747 s,@libgcj_basedir@,$libgcj_basedir,;t t
17748 s,@host@,$host,;t t
17749 s,@host_cpu@,$host_cpu,;t t
17750 s,@host_vendor@,$host_vendor,;t t
17751 s,@host_os@,$host_os,;t t
17752 s,@target@,$target,;t t
17753 s,@target_cpu@,$target_cpu,;t t
17754 s,@target_vendor@,$target_vendor,;t t
17755 s,@target_os@,$target_os,;t t
17756 s,@target_noncanonical@,$target_noncanonical,;t t
17757 s,@LN_S@,$LN_S,;t t
17758 s,@mkinstalldirs@,$mkinstalldirs,;t t
17759 s,@CC@,$CC,;t t
17760 s,@ac_ct_CC@,$ac_ct_CC,;t t
17761 s,@EXEEXT@,$EXEEXT,;t t
17762 s,@OBJEXT@,$OBJEXT,;t t
17763 s,@CXX@,$CXX,;t t
17764 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17765 s,@CFLAGS@,$CFLAGS,;t t
17766 s,@CXXFLAGS@,$CXXFLAGS,;t t
17767 s,@LDFLAGS@,$LDFLAGS,;t t
17768 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17769 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17770 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17771 s,@CYGPATH_W@,$CYGPATH_W,;t t
17772 s,@PACKAGE@,$PACKAGE,;t t
17773 s,@VERSION@,$VERSION,;t t
17774 s,@ACLOCAL@,$ACLOCAL,;t t
17775 s,@AUTOCONF@,$AUTOCONF,;t t
17776 s,@AUTOMAKE@,$AUTOMAKE,;t t
17777 s,@AUTOHEADER@,$AUTOHEADER,;t t
17778 s,@MAKEINFO@,$MAKEINFO,;t t
17779 s,@install_sh@,$install_sh,;t t
17780 s,@STRIP@,$STRIP,;t t
17781 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17782 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17783 s,@mkdir_p@,$mkdir_p,;t t
17784 s,@AWK@,$AWK,;t t
17785 s,@SET_MAKE@,$SET_MAKE,;t t
17786 s,@am__leading_dot@,$am__leading_dot,;t t
17787 s,@AMTAR@,$AMTAR,;t t
17788 s,@am__tar@,$am__tar,;t t
17789 s,@am__untar@,$am__untar,;t t
17790 s,@DEPDIR@,$DEPDIR,;t t
17791 s,@am__include@,$am__include,;t t
17792 s,@am__quote@,$am__quote,;t t
17793 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17794 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17795 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17796 s,@CCDEPMODE@,$CCDEPMODE,;t t
17797 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17798 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17799 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
17800 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
17801 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
17802 s,@AS@,$AS,;t t
17803 s,@ac_ct_AS@,$ac_ct_AS,;t t
17804 s,@LD@,$LD,;t t
17805 s,@ac_ct_LD@,$ac_ct_LD,;t t
17806 s,@AR@,$AR,;t t
17807 s,@ac_ct_AR@,$ac_ct_AR,;t t
17808 s,@RANLIB@,$RANLIB,;t t
17809 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17810 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
17811 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
17812 s,@MAINT@,$MAINT,;t t
17813 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
17814 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
17815 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
17816 s,@LIBGCJ_LD_SYMBOLIC@,$LIBGCJ_LD_SYMBOLIC,;t t
17817 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
17818 s,@TOOLKIT@,$TOOLKIT,;t t
17819 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
17820 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
17821 s,@GTK_AWT_TRUE@,$GTK_AWT_TRUE,;t t
17822 s,@GTK_AWT_FALSE@,$GTK_AWT_FALSE,;t t
17823 s,@QT_AWT_TRUE@,$QT_AWT_TRUE,;t t
17824 s,@QT_AWT_FALSE@,$QT_AWT_FALSE,;t t
17825 s,@GCJH@,$GCJH,;t t
17826 s,@ZIP@,$ZIP,;t t
17827 s,@INCLTDL@,$INCLTDL,;t t
17828 s,@LIBLTDL@,$LIBLTDL,;t t
17829 s,@DIRLTDL@,$DIRLTDL,;t t
17830 s,@LIBTOOL@,$LIBTOOL,;t t
17831 s,@CXXCPP@,$CXXCPP,;t t
17832 s,@CPPFLAGS@,$CPPFLAGS,;t t
17833 s,@GCJ@,$GCJ,;t t
17834 s,@GCJFLAGS@,$GCJFLAGS,;t t
17835 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
17836 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
17837 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
17838 s,@subdirs@,$subdirs,;t t
17839 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
17840 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
17841 s,@JAVA_HOME_SET_TRUE@,$JAVA_HOME_SET_TRUE,;t t
17842 s,@JAVA_HOME_SET_FALSE@,$JAVA_HOME_SET_FALSE,;t t
17843 s,@JAVA_HOME@,$JAVA_HOME,;t t
17844 s,@INTERPRETER@,$INTERPRETER,;t t
17845 s,@LIBFFI@,$LIBFFI,;t t
17846 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
17847 s,@PLATFORM_INNER_NAT_HDRS@,$PLATFORM_INNER_NAT_HDRS,;t t
17848 s,@CPP@,$CPP,;t t
17849 s,@EGREP@,$EGREP,;t t
17850 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
17851 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
17852 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
17853 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
17854 s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
17855 s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
17856 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
17857 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
17858 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
17859 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
17860 s,@X_CFLAGS@,$X_CFLAGS,;t t
17861 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17862 s,@X_LIBS@,$X_LIBS,;t t
17863 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17864 s,@GTK_CAIRO_TRUE@,$GTK_CAIRO_TRUE,;t t
17865 s,@GTK_CAIRO_FALSE@,$GTK_CAIRO_FALSE,;t t
17866 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
17867 s,@CAIRO_CFLAGS@,$CAIRO_CFLAGS,;t t
17868 s,@CAIRO_LIBS@,$CAIRO_LIBS,;t t
17869 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
17870 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
17871 s,@extra_ldflags_libjava@,$extra_ldflags_libjava,;t t
17872 s,@GCLIBS@,$GCLIBS,;t t
17873 s,@GCINCS@,$GCINCS,;t t
17874 s,@GCDEPS@,$GCDEPS,;t t
17875 s,@GCSPEC@,$GCSPEC,;t t
17876 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
17877 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
17878 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
17879 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
17880 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
17881 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
17882 s,@THREADLIBS@,$THREADLIBS,;t t
17883 s,@THREADINCS@,$THREADINCS,;t t
17884 s,@THREADDEPS@,$THREADDEPS,;t t
17885 s,@THREADSPEC@,$THREADSPEC,;t t
17886 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
17887 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
17888 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
17889 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
17890 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
17891 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
17892 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
17893 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
17894 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
17895 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
17896 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
17897 s,@LIBICONV@,$LIBICONV,;t t
17898 s,@LTLIBICONV@,$LTLIBICONV,;t t
17899 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
17900 s,@GTK_LIBS@,$GTK_LIBS,;t t
17901 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
17902 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
17903 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
17904 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
17905 s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
17906 s,@ac_ct_GCJ@,$ac_ct_GCJ,;t t
17907 s,@ZLIBS@,$ZLIBS,;t t
17908 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
17909 s,@ZINCS@,$ZINCS,;t t
17910 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
17911 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
17912 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
17913 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
17914 s,@IEEESPEC@,$IEEESPEC,;t t
17915 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
17916 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
17917 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
17918 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
17919 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
17920 s,@toolexecdir@,$toolexecdir,;t t
17921 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
17922 s,@toolexeclibdir@,$toolexeclibdir,;t t
17923 s,@dbexecdir@,$dbexecdir,;t t
17924 s,@GCJVERSION@,$GCJVERSION,;t t
17925 s,@gxx_include_dir@,$gxx_include_dir,;t t
17926 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
17927 s,@ALLOCA@,$ALLOCA,;t t
17928 s,@PERL@,$PERL,;t t
17929 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
17930 s,@LD_START_STATIC_SPEC@,$LD_START_STATIC_SPEC,;t t
17931 s,@LD_FINISH_STATIC_SPEC@,$LD_FINISH_STATIC_SPEC,;t t
17932 s,@here@,$here,;t t
17933 s,@LIBOBJS@,$LIBOBJS,;t t
17934 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17935 CEOF
17937 _ACEOF
17939 cat >>$CONFIG_STATUS <<\_ACEOF
17940 # Split the substitutions into bite-sized pieces for seds with
17941 # small command number limits, like on Digital OSF/1 and HP-UX.
17942 ac_max_sed_lines=48
17943 ac_sed_frag=1 # Number of current file.
17944 ac_beg=1 # First line for current file.
17945 ac_end=$ac_max_sed_lines # Line after last line for current file.
17946 ac_more_lines=:
17947 ac_sed_cmds=
17948 while $ac_more_lines; do
17949 if test $ac_beg -gt 1; then
17950 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17951 else
17952 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17954 if test ! -s $tmp/subs.frag; then
17955 ac_more_lines=false
17956 else
17957 # The purpose of the label and of the branching condition is to
17958 # speed up the sed processing (if there are no `@' at all, there
17959 # is no need to browse any of the substitutions).
17960 # These are the two extra sed commands mentioned above.
17961 (echo ':t
17962 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17963 if test -z "$ac_sed_cmds"; then
17964 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17965 else
17966 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17968 ac_sed_frag=`expr $ac_sed_frag + 1`
17969 ac_beg=$ac_end
17970 ac_end=`expr $ac_end + $ac_max_sed_lines`
17972 done
17973 if test -z "$ac_sed_cmds"; then
17974 ac_sed_cmds=cat
17976 fi # test -n "$CONFIG_FILES"
17978 _ACEOF
17979 cat >>$CONFIG_STATUS <<\_ACEOF
17980 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17981 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17982 case $ac_file in
17983 - | *:- | *:-:* ) # input from stdin
17984 cat >$tmp/stdin
17985 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17986 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17987 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17988 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17989 * ) ac_file_in=$ac_file.in ;;
17990 esac
17992 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17993 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17994 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17995 X"$ac_file" : 'X\(//\)[^/]' \| \
17996 X"$ac_file" : 'X\(//\)$' \| \
17997 X"$ac_file" : 'X\(/\)' \| \
17998 . : '\(.\)' 2>/dev/null ||
17999 echo X"$ac_file" |
18000 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18001 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18002 /^X\(\/\/\)$/{ s//\1/; q; }
18003 /^X\(\/\).*/{ s//\1/; q; }
18004 s/.*/./; q'`
18005 { if $as_mkdir_p; then
18006 mkdir -p "$ac_dir"
18007 else
18008 as_dir="$ac_dir"
18009 as_dirs=
18010 while test ! -d "$as_dir"; do
18011 as_dirs="$as_dir $as_dirs"
18012 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18013 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18014 X"$as_dir" : 'X\(//\)[^/]' \| \
18015 X"$as_dir" : 'X\(//\)$' \| \
18016 X"$as_dir" : 'X\(/\)' \| \
18017 . : '\(.\)' 2>/dev/null ||
18018 echo X"$as_dir" |
18019 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18020 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18021 /^X\(\/\/\)$/{ s//\1/; q; }
18022 /^X\(\/\).*/{ s//\1/; q; }
18023 s/.*/./; q'`
18024 done
18025 test ! -n "$as_dirs" || mkdir $as_dirs
18026 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18027 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18028 { (exit 1); exit 1; }; }; }
18030 ac_builddir=.
18032 if test "$ac_dir" != .; then
18033 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18034 # A "../" for each directory in $ac_dir_suffix.
18035 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18036 else
18037 ac_dir_suffix= ac_top_builddir=
18040 case $srcdir in
18041 .) # No --srcdir option. We are building in place.
18042 ac_srcdir=.
18043 if test -z "$ac_top_builddir"; then
18044 ac_top_srcdir=.
18045 else
18046 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18047 fi ;;
18048 [\\/]* | ?:[\\/]* ) # Absolute path.
18049 ac_srcdir=$srcdir$ac_dir_suffix;
18050 ac_top_srcdir=$srcdir ;;
18051 *) # Relative path.
18052 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18053 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18054 esac
18056 # Do not use `cd foo && pwd` to compute absolute paths, because
18057 # the directories may not exist.
18058 case `pwd` in
18059 .) ac_abs_builddir="$ac_dir";;
18061 case "$ac_dir" in
18062 .) ac_abs_builddir=`pwd`;;
18063 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18064 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18065 esac;;
18066 esac
18067 case $ac_abs_builddir in
18068 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18070 case ${ac_top_builddir}. in
18071 .) ac_abs_top_builddir=$ac_abs_builddir;;
18072 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18073 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18074 esac;;
18075 esac
18076 case $ac_abs_builddir in
18077 .) ac_abs_srcdir=$ac_srcdir;;
18079 case $ac_srcdir in
18080 .) ac_abs_srcdir=$ac_abs_builddir;;
18081 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18082 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18083 esac;;
18084 esac
18085 case $ac_abs_builddir in
18086 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18088 case $ac_top_srcdir in
18089 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18090 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18091 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18092 esac;;
18093 esac
18096 case $INSTALL in
18097 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18098 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18099 esac
18101 if test x"$ac_file" != x-; then
18102 { echo "$as_me:$LINENO: creating $ac_file" >&5
18103 echo "$as_me: creating $ac_file" >&6;}
18104 rm -f "$ac_file"
18106 # Let's still pretend it is `configure' which instantiates (i.e., don't
18107 # use $as_me), people would be surprised to read:
18108 # /* config.h. Generated by config.status. */
18109 if test x"$ac_file" = x-; then
18110 configure_input=
18111 else
18112 configure_input="$ac_file. "
18114 configure_input=$configure_input"Generated from `echo $ac_file_in |
18115 sed 's,.*/,,'` by configure."
18117 # First look for the input files in the build tree, otherwise in the
18118 # src tree.
18119 ac_file_inputs=`IFS=:
18120 for f in $ac_file_in; do
18121 case $f in
18122 -) echo $tmp/stdin ;;
18123 [\\/$]*)
18124 # Absolute (can't be DOS-style, as IFS=:)
18125 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18126 echo "$as_me: error: cannot find input file: $f" >&2;}
18127 { (exit 1); exit 1; }; }
18128 echo "$f";;
18129 *) # Relative
18130 if test -f "$f"; then
18131 # Build tree
18132 echo "$f"
18133 elif test -f "$srcdir/$f"; then
18134 # Source tree
18135 echo "$srcdir/$f"
18136 else
18137 # /dev/null tree
18138 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18139 echo "$as_me: error: cannot find input file: $f" >&2;}
18140 { (exit 1); exit 1; }; }
18141 fi;;
18142 esac
18143 done` || { (exit 1); exit 1; }
18144 _ACEOF
18145 cat >>$CONFIG_STATUS <<_ACEOF
18146 sed "$ac_vpsub
18147 $extrasub
18148 _ACEOF
18149 cat >>$CONFIG_STATUS <<\_ACEOF
18151 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18152 s,@configure_input@,$configure_input,;t t
18153 s,@srcdir@,$ac_srcdir,;t t
18154 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18155 s,@top_srcdir@,$ac_top_srcdir,;t t
18156 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18157 s,@builddir@,$ac_builddir,;t t
18158 s,@abs_builddir@,$ac_abs_builddir,;t t
18159 s,@top_builddir@,$ac_top_builddir,;t t
18160 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18161 s,@INSTALL@,$ac_INSTALL,;t t
18162 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18163 rm -f $tmp/stdin
18164 if test x"$ac_file" != x-; then
18165 mv $tmp/out $ac_file
18166 else
18167 cat $tmp/out
18168 rm -f $tmp/out
18171 done
18172 _ACEOF
18173 cat >>$CONFIG_STATUS <<\_ACEOF
18176 # CONFIG_HEADER section.
18179 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18180 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18182 # ac_d sets the value in "#define NAME VALUE" lines.
18183 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18184 ac_dB='[ ].*$,\1#\2'
18185 ac_dC=' '
18186 ac_dD=',;t'
18187 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18188 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18189 ac_uB='$,\1#\2define\3'
18190 ac_uC=' '
18191 ac_uD=',;t'
18193 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18194 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18195 case $ac_file in
18196 - | *:- | *:-:* ) # input from stdin
18197 cat >$tmp/stdin
18198 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18199 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18200 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18201 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18202 * ) ac_file_in=$ac_file.in ;;
18203 esac
18205 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18206 echo "$as_me: creating $ac_file" >&6;}
18208 # First look for the input files in the build tree, otherwise in the
18209 # src tree.
18210 ac_file_inputs=`IFS=:
18211 for f in $ac_file_in; do
18212 case $f in
18213 -) echo $tmp/stdin ;;
18214 [\\/$]*)
18215 # Absolute (can't be DOS-style, as IFS=:)
18216 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18217 echo "$as_me: error: cannot find input file: $f" >&2;}
18218 { (exit 1); exit 1; }; }
18219 # Do quote $f, to prevent DOS paths from being IFS'd.
18220 echo "$f";;
18221 *) # Relative
18222 if test -f "$f"; then
18223 # Build tree
18224 echo "$f"
18225 elif test -f "$srcdir/$f"; then
18226 # Source tree
18227 echo "$srcdir/$f"
18228 else
18229 # /dev/null tree
18230 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18231 echo "$as_me: error: cannot find input file: $f" >&2;}
18232 { (exit 1); exit 1; }; }
18233 fi;;
18234 esac
18235 done` || { (exit 1); exit 1; }
18236 # Remove the trailing spaces.
18237 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18239 _ACEOF
18241 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18242 # `conftest.undefs', that substitutes the proper values into
18243 # config.h.in to produce config.h. The first handles `#define'
18244 # templates, and the second `#undef' templates.
18245 # And first: Protect against being on the right side of a sed subst in
18246 # config.status. Protect against being in an unquoted here document
18247 # in config.status.
18248 rm -f conftest.defines conftest.undefs
18249 # Using a here document instead of a string reduces the quoting nightmare.
18250 # Putting comments in sed scripts is not portable.
18252 # `end' is used to avoid that the second main sed command (meant for
18253 # 0-ary CPP macros) applies to n-ary macro definitions.
18254 # See the Autoconf documentation for `clear'.
18255 cat >confdef2sed.sed <<\_ACEOF
18256 s/[\\&,]/\\&/g
18257 s,[\\$`],\\&,g
18258 t clear
18259 : clear
18260 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18261 t end
18262 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18263 : end
18264 _ACEOF
18265 # If some macros were called several times there might be several times
18266 # the same #defines, which is useless. Nevertheless, we may not want to
18267 # sort them, since we want the *last* AC-DEFINE to be honored.
18268 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18269 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18270 rm -f confdef2sed.sed
18272 # This sed command replaces #undef with comments. This is necessary, for
18273 # example, in the case of _POSIX_SOURCE, which is predefined and required
18274 # on some systems where configure will not decide to define it.
18275 cat >>conftest.undefs <<\_ACEOF
18276 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18277 _ACEOF
18279 # Break up conftest.defines because some shells have a limit on the size
18280 # of here documents, and old seds have small limits too (100 cmds).
18281 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18282 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18283 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18284 echo ' :' >>$CONFIG_STATUS
18285 rm -f conftest.tail
18286 while grep . conftest.defines >/dev/null
18288 # Write a limited-size here document to $tmp/defines.sed.
18289 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18290 # Speed up: don't consider the non `#define' lines.
18291 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18292 # Work around the forget-to-reset-the-flag bug.
18293 echo 't clr' >>$CONFIG_STATUS
18294 echo ': clr' >>$CONFIG_STATUS
18295 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18296 echo 'CEOF
18297 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18298 rm -f $tmp/in
18299 mv $tmp/out $tmp/in
18300 ' >>$CONFIG_STATUS
18301 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18302 rm -f conftest.defines
18303 mv conftest.tail conftest.defines
18304 done
18305 rm -f conftest.defines
18306 echo ' fi # grep' >>$CONFIG_STATUS
18307 echo >>$CONFIG_STATUS
18309 # Break up conftest.undefs because some shells have a limit on the size
18310 # of here documents, and old seds have small limits too (100 cmds).
18311 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18312 rm -f conftest.tail
18313 while grep . conftest.undefs >/dev/null
18315 # Write a limited-size here document to $tmp/undefs.sed.
18316 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18317 # Speed up: don't consider the non `#undef'
18318 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18319 # Work around the forget-to-reset-the-flag bug.
18320 echo 't clr' >>$CONFIG_STATUS
18321 echo ': clr' >>$CONFIG_STATUS
18322 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18323 echo 'CEOF
18324 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18325 rm -f $tmp/in
18326 mv $tmp/out $tmp/in
18327 ' >>$CONFIG_STATUS
18328 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18329 rm -f conftest.undefs
18330 mv conftest.tail conftest.undefs
18331 done
18332 rm -f conftest.undefs
18334 cat >>$CONFIG_STATUS <<\_ACEOF
18335 # Let's still pretend it is `configure' which instantiates (i.e., don't
18336 # use $as_me), people would be surprised to read:
18337 # /* config.h. Generated by config.status. */
18338 if test x"$ac_file" = x-; then
18339 echo "/* Generated by configure. */" >$tmp/config.h
18340 else
18341 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18343 cat $tmp/in >>$tmp/config.h
18344 rm -f $tmp/in
18345 if test x"$ac_file" != x-; then
18346 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18347 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18348 echo "$as_me: $ac_file is unchanged" >&6;}
18349 else
18350 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18351 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18352 X"$ac_file" : 'X\(//\)[^/]' \| \
18353 X"$ac_file" : 'X\(//\)$' \| \
18354 X"$ac_file" : 'X\(/\)' \| \
18355 . : '\(.\)' 2>/dev/null ||
18356 echo X"$ac_file" |
18357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18358 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18359 /^X\(\/\/\)$/{ s//\1/; q; }
18360 /^X\(\/\).*/{ s//\1/; q; }
18361 s/.*/./; q'`
18362 { if $as_mkdir_p; then
18363 mkdir -p "$ac_dir"
18364 else
18365 as_dir="$ac_dir"
18366 as_dirs=
18367 while test ! -d "$as_dir"; do
18368 as_dirs="$as_dir $as_dirs"
18369 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18370 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18371 X"$as_dir" : 'X\(//\)[^/]' \| \
18372 X"$as_dir" : 'X\(//\)$' \| \
18373 X"$as_dir" : 'X\(/\)' \| \
18374 . : '\(.\)' 2>/dev/null ||
18375 echo X"$as_dir" |
18376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18377 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18378 /^X\(\/\/\)$/{ s//\1/; q; }
18379 /^X\(\/\).*/{ s//\1/; q; }
18380 s/.*/./; q'`
18381 done
18382 test ! -n "$as_dirs" || mkdir $as_dirs
18383 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18384 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18385 { (exit 1); exit 1; }; }; }
18387 rm -f $ac_file
18388 mv $tmp/config.h $ac_file
18390 else
18391 cat $tmp/config.h
18392 rm -f $tmp/config.h
18394 # Compute $ac_file's index in $config_headers.
18395 _am_stamp_count=1
18396 for _am_header in $config_headers :; do
18397 case $_am_header in
18398 $ac_file | $ac_file:* )
18399 break ;;
18401 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18402 esac
18403 done
18404 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
18405 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18406 X$ac_file : 'X\(//\)[^/]' \| \
18407 X$ac_file : 'X\(//\)$' \| \
18408 X$ac_file : 'X\(/\)' \| \
18409 . : '\(.\)' 2>/dev/null ||
18410 echo X$ac_file |
18411 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18412 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18413 /^X\(\/\/\)$/{ s//\1/; q; }
18414 /^X\(\/\).*/{ s//\1/; q; }
18415 s/.*/./; q'`/stamp-h$_am_stamp_count
18416 done
18417 _ACEOF
18418 cat >>$CONFIG_STATUS <<\_ACEOF
18421 # CONFIG_LINKS section.
18424 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
18425 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18426 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18428 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
18429 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
18431 if test ! -r $srcdir/$ac_source; then
18432 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
18433 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
18434 { (exit 1); exit 1; }; }
18436 rm -f $ac_dest
18438 # Make relative symlinks.
18439 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
18440 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18441 X"$ac_dest" : 'X\(//\)[^/]' \| \
18442 X"$ac_dest" : 'X\(//\)$' \| \
18443 X"$ac_dest" : 'X\(/\)' \| \
18444 . : '\(.\)' 2>/dev/null ||
18445 echo X"$ac_dest" |
18446 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18447 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18448 /^X\(\/\/\)$/{ s//\1/; q; }
18449 /^X\(\/\).*/{ s//\1/; q; }
18450 s/.*/./; q'`
18451 { if $as_mkdir_p; then
18452 mkdir -p "$ac_dest_dir"
18453 else
18454 as_dir="$ac_dest_dir"
18455 as_dirs=
18456 while test ! -d "$as_dir"; do
18457 as_dirs="$as_dir $as_dirs"
18458 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18459 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18460 X"$as_dir" : 'X\(//\)[^/]' \| \
18461 X"$as_dir" : 'X\(//\)$' \| \
18462 X"$as_dir" : 'X\(/\)' \| \
18463 . : '\(.\)' 2>/dev/null ||
18464 echo X"$as_dir" |
18465 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18466 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18467 /^X\(\/\/\)$/{ s//\1/; q; }
18468 /^X\(\/\).*/{ s//\1/; q; }
18469 s/.*/./; q'`
18470 done
18471 test ! -n "$as_dirs" || mkdir $as_dirs
18472 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
18473 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
18474 { (exit 1); exit 1; }; }; }
18476 ac_builddir=.
18478 if test "$ac_dest_dir" != .; then
18479 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
18480 # A "../" for each directory in $ac_dir_suffix.
18481 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18482 else
18483 ac_dir_suffix= ac_top_builddir=
18486 case $srcdir in
18487 .) # No --srcdir option. We are building in place.
18488 ac_srcdir=.
18489 if test -z "$ac_top_builddir"; then
18490 ac_top_srcdir=.
18491 else
18492 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18493 fi ;;
18494 [\\/]* | ?:[\\/]* ) # Absolute path.
18495 ac_srcdir=$srcdir$ac_dir_suffix;
18496 ac_top_srcdir=$srcdir ;;
18497 *) # Relative path.
18498 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18499 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18500 esac
18502 # Do not use `cd foo && pwd` to compute absolute paths, because
18503 # the directories may not exist.
18504 case `pwd` in
18505 .) ac_abs_builddir="$ac_dest_dir";;
18507 case "$ac_dest_dir" in
18508 .) ac_abs_builddir=`pwd`;;
18509 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
18510 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
18511 esac;;
18512 esac
18513 case $ac_abs_builddir in
18514 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18516 case ${ac_top_builddir}. in
18517 .) ac_abs_top_builddir=$ac_abs_builddir;;
18518 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18519 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18520 esac;;
18521 esac
18522 case $ac_abs_builddir in
18523 .) ac_abs_srcdir=$ac_srcdir;;
18525 case $ac_srcdir in
18526 .) ac_abs_srcdir=$ac_abs_builddir;;
18527 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18528 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18529 esac;;
18530 esac
18531 case $ac_abs_builddir in
18532 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18534 case $ac_top_srcdir in
18535 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18536 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18537 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18538 esac;;
18539 esac
18542 case $srcdir in
18543 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
18544 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
18545 esac
18547 # Try a symlink, then a hard link, then a copy.
18548 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
18549 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
18550 cp -p $srcdir/$ac_source $ac_dest ||
18551 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
18552 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
18553 { (exit 1); exit 1; }; }
18554 done
18555 _ACEOF
18556 cat >>$CONFIG_STATUS <<\_ACEOF
18559 # CONFIG_COMMANDS section.
18561 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18562 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18563 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18564 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18565 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18566 X"$ac_dest" : 'X\(//\)[^/]' \| \
18567 X"$ac_dest" : 'X\(//\)$' \| \
18568 X"$ac_dest" : 'X\(/\)' \| \
18569 . : '\(.\)' 2>/dev/null ||
18570 echo X"$ac_dest" |
18571 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18572 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18573 /^X\(\/\/\)$/{ s//\1/; q; }
18574 /^X\(\/\).*/{ s//\1/; q; }
18575 s/.*/./; q'`
18576 { if $as_mkdir_p; then
18577 mkdir -p "$ac_dir"
18578 else
18579 as_dir="$ac_dir"
18580 as_dirs=
18581 while test ! -d "$as_dir"; do
18582 as_dirs="$as_dir $as_dirs"
18583 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18584 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18585 X"$as_dir" : 'X\(//\)[^/]' \| \
18586 X"$as_dir" : 'X\(//\)$' \| \
18587 X"$as_dir" : 'X\(/\)' \| \
18588 . : '\(.\)' 2>/dev/null ||
18589 echo X"$as_dir" |
18590 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18591 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18592 /^X\(\/\/\)$/{ s//\1/; q; }
18593 /^X\(\/\).*/{ s//\1/; q; }
18594 s/.*/./; q'`
18595 done
18596 test ! -n "$as_dirs" || mkdir $as_dirs
18597 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18598 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18599 { (exit 1); exit 1; }; }; }
18601 ac_builddir=.
18603 if test "$ac_dir" != .; then
18604 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18605 # A "../" for each directory in $ac_dir_suffix.
18606 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18607 else
18608 ac_dir_suffix= ac_top_builddir=
18611 case $srcdir in
18612 .) # No --srcdir option. We are building in place.
18613 ac_srcdir=.
18614 if test -z "$ac_top_builddir"; then
18615 ac_top_srcdir=.
18616 else
18617 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18618 fi ;;
18619 [\\/]* | ?:[\\/]* ) # Absolute path.
18620 ac_srcdir=$srcdir$ac_dir_suffix;
18621 ac_top_srcdir=$srcdir ;;
18622 *) # Relative path.
18623 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18624 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18625 esac
18627 # Do not use `cd foo && pwd` to compute absolute paths, because
18628 # the directories may not exist.
18629 case `pwd` in
18630 .) ac_abs_builddir="$ac_dir";;
18632 case "$ac_dir" in
18633 .) ac_abs_builddir=`pwd`;;
18634 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18635 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18636 esac;;
18637 esac
18638 case $ac_abs_builddir in
18639 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18641 case ${ac_top_builddir}. in
18642 .) ac_abs_top_builddir=$ac_abs_builddir;;
18643 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18644 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18645 esac;;
18646 esac
18647 case $ac_abs_builddir in
18648 .) ac_abs_srcdir=$ac_srcdir;;
18650 case $ac_srcdir in
18651 .) ac_abs_srcdir=$ac_abs_builddir;;
18652 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18653 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18654 esac;;
18655 esac
18656 case $ac_abs_builddir in
18657 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18659 case $ac_top_srcdir in
18660 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18661 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18662 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18663 esac;;
18664 esac
18667 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18668 echo "$as_me: executing $ac_dest commands" >&6;}
18669 case $ac_dest in
18670 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
18671 # Strip MF so we end up with the name of the file.
18672 mf=`echo "$mf" | sed -e 's/:.*$//'`
18673 # Check whether this is an Automake generated Makefile or not.
18674 # We used to match only the files named `Makefile.in', but
18675 # some people rename them; so instead we look at the file content.
18676 # Grep'ing the first line is not enough: some people post-process
18677 # each Makefile.in and add a new line on top of each file to say so.
18678 # So let's grep whole file.
18679 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
18680 dirpart=`(dirname "$mf") 2>/dev/null ||
18681 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18682 X"$mf" : 'X\(//\)[^/]' \| \
18683 X"$mf" : 'X\(//\)$' \| \
18684 X"$mf" : 'X\(/\)' \| \
18685 . : '\(.\)' 2>/dev/null ||
18686 echo X"$mf" |
18687 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18688 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18689 /^X\(\/\/\)$/{ s//\1/; q; }
18690 /^X\(\/\).*/{ s//\1/; q; }
18691 s/.*/./; q'`
18692 else
18693 continue
18695 # Extract the definition of DEPDIR, am__include, and am__quote
18696 # from the Makefile without running `make'.
18697 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18698 test -z "$DEPDIR" && continue
18699 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18700 test -z "am__include" && continue
18701 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18702 # When using ansi2knr, U may be empty or an underscore; expand it
18703 U=`sed -n 's/^U = //p' < "$mf"`
18704 # Find all dependency output files, they are included files with
18705 # $(DEPDIR) in their names. We invoke sed twice because it is the
18706 # simplest approach to changing $(DEPDIR) to its actual value in the
18707 # expansion.
18708 for file in `sed -n "
18709 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18710 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18711 # Make sure the directory exists.
18712 test -f "$dirpart/$file" && continue
18713 fdir=`(dirname "$file") 2>/dev/null ||
18714 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18715 X"$file" : 'X\(//\)[^/]' \| \
18716 X"$file" : 'X\(//\)$' \| \
18717 X"$file" : 'X\(/\)' \| \
18718 . : '\(.\)' 2>/dev/null ||
18719 echo X"$file" |
18720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18722 /^X\(\/\/\)$/{ s//\1/; q; }
18723 /^X\(\/\).*/{ s//\1/; q; }
18724 s/.*/./; q'`
18725 { if $as_mkdir_p; then
18726 mkdir -p $dirpart/$fdir
18727 else
18728 as_dir=$dirpart/$fdir
18729 as_dirs=
18730 while test ! -d "$as_dir"; do
18731 as_dirs="$as_dir $as_dirs"
18732 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18733 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18734 X"$as_dir" : 'X\(//\)[^/]' \| \
18735 X"$as_dir" : 'X\(//\)$' \| \
18736 X"$as_dir" : 'X\(/\)' \| \
18737 . : '\(.\)' 2>/dev/null ||
18738 echo X"$as_dir" |
18739 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18740 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18741 /^X\(\/\/\)$/{ s//\1/; q; }
18742 /^X\(\/\).*/{ s//\1/; q; }
18743 s/.*/./; q'`
18744 done
18745 test ! -n "$as_dirs" || mkdir $as_dirs
18746 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
18747 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
18748 { (exit 1); exit 1; }; }; }
18750 # echo "creating $dirpart/$file"
18751 echo '# dummy' > "$dirpart/$file"
18752 done
18753 done
18755 default ) # Only add multilib support code if we just rebuilt top-level Makefile.
18756 case " $CONFIG_FILES " in
18757 *" Makefile "*)
18758 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
18759 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
18761 esac
18762 for ac_multi_file in $CONFIG_FILES; do
18763 case $ac_multi_file in
18764 */Makefile)
18765 grep "^MULTI[^ ]* =" Makefile >> "$ac_multi_file" ;;
18766 esac
18767 done
18769 esac
18770 done
18771 _ACEOF
18773 cat >>$CONFIG_STATUS <<\_ACEOF
18775 { (exit 0); exit 0; }
18776 _ACEOF
18777 chmod +x $CONFIG_STATUS
18778 ac_clean_files=$ac_clean_files_save
18781 # configure is writing to config.log, and then calls config.status.
18782 # config.status does its own redirection, appending to config.log.
18783 # Unfortunately, on DOS this fails, as config.log is still kept open
18784 # by configure, so config.status won't be able to write to it; its
18785 # output is simply discarded. So we exec the FD to /dev/null,
18786 # effectively closing config.log, so it can be properly (re)opened and
18787 # appended to by config.status. When coming back to configure, we
18788 # need to make the FD available again.
18789 if test "$no_create" != yes; then
18790 ac_cs_success=:
18791 ac_config_status_args=
18792 test "$silent" = yes &&
18793 ac_config_status_args="$ac_config_status_args --quiet"
18794 exec 5>/dev/null
18795 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18796 exec 5>>config.log
18797 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18798 # would make configure fail if this is the last instruction.
18799 $ac_cs_success || { (exit 1); exit 1; }
18803 # CONFIG_SUBDIRS section.
18805 if test "$no_recursion" != yes; then
18807 # Remove --cache-file and --srcdir arguments so they do not pile up.
18808 ac_sub_configure_args=
18809 ac_prev=
18810 for ac_arg in $ac_configure_args; do
18811 if test -n "$ac_prev"; then
18812 ac_prev=
18813 continue
18815 case $ac_arg in
18816 -cache-file | --cache-file | --cache-fil | --cache-fi \
18817 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18818 ac_prev=cache_file ;;
18819 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18820 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
18821 | --c=*)
18823 --config-cache | -C)
18825 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18826 ac_prev=srcdir ;;
18827 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18829 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
18830 ac_prev=prefix ;;
18831 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
18833 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
18834 esac
18835 done
18837 # Always prepend --prefix to ensure using the same prefix
18838 # in subdir configurations.
18839 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
18841 ac_popdir=`pwd`
18842 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
18844 # Do not complain, so a configure script can configure whichever
18845 # parts of a large source tree are present.
18846 test -d $srcdir/$ac_dir || continue
18848 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
18849 echo "$as_me: configuring in $ac_dir" >&6;}
18850 { if $as_mkdir_p; then
18851 mkdir -p "$ac_dir"
18852 else
18853 as_dir="$ac_dir"
18854 as_dirs=
18855 while test ! -d "$as_dir"; do
18856 as_dirs="$as_dir $as_dirs"
18857 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18858 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18859 X"$as_dir" : 'X\(//\)[^/]' \| \
18860 X"$as_dir" : 'X\(//\)$' \| \
18861 X"$as_dir" : 'X\(/\)' \| \
18862 . : '\(.\)' 2>/dev/null ||
18863 echo X"$as_dir" |
18864 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18865 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18866 /^X\(\/\/\)$/{ s//\1/; q; }
18867 /^X\(\/\).*/{ s//\1/; q; }
18868 s/.*/./; q'`
18869 done
18870 test ! -n "$as_dirs" || mkdir $as_dirs
18871 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18872 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18873 { (exit 1); exit 1; }; }; }
18875 ac_builddir=.
18877 if test "$ac_dir" != .; then
18878 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18879 # A "../" for each directory in $ac_dir_suffix.
18880 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18881 else
18882 ac_dir_suffix= ac_top_builddir=
18885 case $srcdir in
18886 .) # No --srcdir option. We are building in place.
18887 ac_srcdir=.
18888 if test -z "$ac_top_builddir"; then
18889 ac_top_srcdir=.
18890 else
18891 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18892 fi ;;
18893 [\\/]* | ?:[\\/]* ) # Absolute path.
18894 ac_srcdir=$srcdir$ac_dir_suffix;
18895 ac_top_srcdir=$srcdir ;;
18896 *) # Relative path.
18897 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18898 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18899 esac
18901 # Do not use `cd foo && pwd` to compute absolute paths, because
18902 # the directories may not exist.
18903 case `pwd` in
18904 .) ac_abs_builddir="$ac_dir";;
18906 case "$ac_dir" in
18907 .) ac_abs_builddir=`pwd`;;
18908 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18909 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18910 esac;;
18911 esac
18912 case $ac_abs_builddir in
18913 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18915 case ${ac_top_builddir}. in
18916 .) ac_abs_top_builddir=$ac_abs_builddir;;
18917 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18918 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18919 esac;;
18920 esac
18921 case $ac_abs_builddir in
18922 .) ac_abs_srcdir=$ac_srcdir;;
18924 case $ac_srcdir in
18925 .) ac_abs_srcdir=$ac_abs_builddir;;
18926 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18927 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18928 esac;;
18929 esac
18930 case $ac_abs_builddir in
18931 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18933 case $ac_top_srcdir in
18934 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18935 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18936 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18937 esac;;
18938 esac
18941 cd $ac_dir
18943 # Check for guested configure; otherwise get Cygnus style configure.
18944 if test -f $ac_srcdir/configure.gnu; then
18945 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
18946 elif test -f $ac_srcdir/configure; then
18947 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
18948 elif test -f $ac_srcdir/configure.in; then
18949 ac_sub_configure=$ac_configure
18950 else
18951 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
18952 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
18953 ac_sub_configure=
18956 # The recursion is here.
18957 if test -n "$ac_sub_configure"; then
18958 # Make the cache file name correct relative to the subdirectory.
18959 case $cache_file in
18960 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
18961 *) # Relative path.
18962 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
18963 esac
18965 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
18966 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
18967 # The eval makes quoting arguments work.
18968 eval $ac_sub_configure $ac_sub_configure_args \
18969 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
18970 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
18971 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
18972 { (exit 1); exit 1; }; }
18975 cd $ac_popdir
18976 done