* MAINTAINERS: Add self as m32c maintainer.
[official-gcc.git] / libjava / configure
blobcf047b143a042ddbf425d8f1a9c1f5f4bffd8631
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libjava version-unused.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME='libjava'
269 PACKAGE_TARNAME='libjava'
270 PACKAGE_VERSION='version-unused'
271 PACKAGE_STRING='libjava version-unused'
272 PACKAGE_BUGREPORT=''
274 ac_unique_file="java/lang/System.java"
275 ac_subdirs_all="$ac_subdirs_all classpath libltdl"
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 # include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 # include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 # include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os build_subdir host_subdir target_subdir libgcj_basedir host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical LN_S mkinstalldirs CC ac_ct_CC EXEEXT OBJEXT CXX ac_ct_CXX CFLAGS CXXFLAGS LDFLAGS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBGCJ_CFLAGS LIBGCJ_CXXFLAGS LIBGCJ_JAVAFLAGS LIBGCJ_LD_SYMBOLIC LIBGCJDEBUG TOOLKIT XLIB_AWT_TRUE XLIB_AWT_FALSE GTK_AWT_TRUE GTK_AWT_FALSE GCJH ZIP INCLTDL LIBLTDL DIRLTDL LIBTOOL CXXCPP CPPFLAGS GCJ GCJFLAGS GCJDEPMODE am__fastdepGCJ_TRUE am__fastdepGCJ_FALSE subdirs TESTSUBDIR_TRUE TESTSUBDIR_FALSE JAVA_HOME_SET_TRUE JAVA_HOME_SET_FALSE JAVA_HOME INTERPRETER LIBFFI LIBFFIINCS PLATFORM_INNER_NAT_HDRS CPP EGREP USING_WIN32_PLATFORM_TRUE USING_WIN32_PLATFORM_FALSE USING_POSIX_PLATFORM_TRUE USING_POSIX_PLATFORM_FALSE USING_DARWIN_CRT_TRUE USING_DARWIN_CRT_FALSE SYSTEMSPEC LIBGCJTESTSPEC ZLIBSPEC ZLIBTESTSPEC X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS GTK_CAIRO_TRUE GTK_CAIRO_FALSE PKG_CONFIG CAIRO_CFLAGS CAIRO_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS GCLIBS GCINCS GCDEPS GCSPEC JC1GCSPEC GCTESTSPEC USING_BOEHMGC_TRUE USING_BOEHMGC_FALSE USING_NOGC_TRUE USING_NOGC_FALSE THREADLIBS THREADINCS THREADDEPS THREADSPEC THREADLDFLAGS THREADCXXFLAGS USING_POSIX_THREADS_TRUE USING_POSIX_THREADS_FALSE USING_WIN32_THREADS_TRUE USING_WIN32_THREADS_FALSE USING_NO_THREADS_TRUE USING_NO_THREADS_FALSE HASH_SYNC_SPEC USING_GCC_TRUE USING_GCC_FALSE LIBICONV LTLIBICONV GTK_CFLAGS GTK_LIBS GLIB_CFLAGS GLIB_LIBS LIBART_CFLAGS LIBART_LIBS SUPPLY_BACKTRACE_TRUE SUPPLY_BACKTRACE_FALSE CLASSPATH_SEPARATOR ac_ct_GCJ ZLIBS SYS_ZLIBS ZINCS DIVIDESPEC CHECKREFSPEC EXCEPTIONSPEC BACKTRACESPEC IEEESPEC NATIVE_TRUE NATIVE_FALSE NEEDS_DATA_START_TRUE NEEDS_DATA_START_FALSE GCC_UNWIND_INCLUDE toolexecdir toolexecmainlibdir toolexeclibdir GCJVERSION gxx_include_dir libstdcxx_incdir ALLOCA PERL SYSDEP_SOURCES here LIBOBJS LTLIBOBJS'
314 ac_subst_files=''
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
354 ac_prev=
355 for ac_option
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
368 case $ac_option in
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 bindir=$ac_optarg ;;
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
387 --config-cache | -C)
388 cache_file=config.cache ;;
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
394 datadir=$ac_optarg ;;
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 case $ac_option in
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 *) ac_optarg=yes ;;
415 esac
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
431 -help | --help | --hel | --he | -h)
432 ac_init_help=long ;;
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 libdir=$ac_optarg ;;
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 mandir=$ac_optarg ;;
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
487 no_create=yes ;;
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 no_recursion=yes ;;
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 prefix=$ac_optarg ;;
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
546 sbindir=$ac_optarg ;;
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
551 | --sha | --sh)
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 | --sha=* | --sh=*)
557 sharedstatedir=$ac_optarg ;;
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
562 site=$ac_optarg ;;
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 srcdir=$ac_optarg ;;
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
587 -with-* | --with-*)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 *) ac_optarg=yes ;;
597 esac
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
632 *=*)
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
640 export $ac_envvar ;;
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650 esac
651 done
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
662 eval ac_val=$`echo $ac_var`
663 case $ac_val in
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
667 esac
668 done
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val=$`echo $ac_var`
675 case $ac_val in
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
679 esac
680 done
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
696 cross_compiling=yes
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703 test "$silent" = yes && exec 6>/dev/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
721 s/.*/./; q'`
722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
726 else
727 ac_srcdir_defaulted=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
733 else
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CXXCPP_set=${CXXCPP+set}
755 ac_env_CXXCPP_value=$CXXCPP
756 ac_cv_env_CXXCPP_set=${CXXCPP+set}
757 ac_cv_env_CXXCPP_value=$CXXCPP
758 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
759 ac_env_CPPFLAGS_value=$CPPFLAGS
760 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
761 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
762 ac_env_CPP_set=${CPP+set}
763 ac_env_CPP_value=$CPP
764 ac_cv_env_CPP_set=${CPP+set}
765 ac_cv_env_CPP_value=$CPP
768 # Report the --help message.
770 if test "$ac_init_help" = "long"; then
771 # Omit some internal or obsolete options to make the list less imposing.
772 # This message is too long to be a string in the A/UX 3.1 sh.
773 cat <<_ACEOF
774 \`configure' configures libjava version-unused to adapt to many kinds of systems.
776 Usage: $0 [OPTION]... [VAR=VALUE]...
778 To assign environment variables (e.g., CC, CFLAGS...), specify them as
779 VAR=VALUE. See below for descriptions of some of the useful variables.
781 Defaults for the options are specified in brackets.
783 Configuration:
784 -h, --help display this help and exit
785 --help=short display options specific to this package
786 --help=recursive display the short help of all the included packages
787 -V, --version display version information and exit
788 -q, --quiet, --silent do not print \`checking...' messages
789 --cache-file=FILE cache test results in FILE [disabled]
790 -C, --config-cache alias for \`--cache-file=config.cache'
791 -n, --no-create do not create output files
792 --srcdir=DIR find the sources in DIR [configure dir or \`..']
794 _ACEOF
796 cat <<_ACEOF
797 Installation directories:
798 --prefix=PREFIX install architecture-independent files in PREFIX
799 [$ac_default_prefix]
800 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
801 [PREFIX]
803 By default, \`make install' will install all the files in
804 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
805 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
806 for instance \`--prefix=\$HOME'.
808 For better control, use the options below.
810 Fine tuning of the installation directories:
811 --bindir=DIR user executables [EPREFIX/bin]
812 --sbindir=DIR system admin executables [EPREFIX/sbin]
813 --libexecdir=DIR program executables [EPREFIX/libexec]
814 --datadir=DIR read-only architecture-independent data [PREFIX/share]
815 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
816 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
817 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
818 --libdir=DIR object code libraries [EPREFIX/lib]
819 --includedir=DIR C header files [PREFIX/include]
820 --oldincludedir=DIR C header files for non-gcc [/usr/include]
821 --infodir=DIR info documentation [PREFIX/info]
822 --mandir=DIR man documentation [PREFIX/man]
823 _ACEOF
825 cat <<\_ACEOF
827 Program names:
828 --program-prefix=PREFIX prepend PREFIX to installed program names
829 --program-suffix=SUFFIX append SUFFIX to installed program names
830 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
832 X features:
833 --x-includes=DIR X include files are in DIR
834 --x-libraries=DIR X library files are in DIR
836 System types:
837 --build=BUILD configure for building on BUILD [guessed]
838 --host=HOST cross-compile to build programs to run on HOST [BUILD]
839 --target=TARGET configure for building compilers for TARGET [HOST]
840 _ACEOF
843 if test -n "$ac_init_help"; then
844 case $ac_init_help in
845 short | recursive ) echo "Configuration of libjava version-unused:";;
846 esac
847 cat <<\_ACEOF
849 Optional Features:
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
852 --enable-version-specific-runtime-libs
853 specify that runtime libraries should be installed
854 in a compiler-specific directory
855 --enable-multilib build many library versions (default)
856 --disable-dependency-tracking speeds up one-time build
857 --enable-dependency-tracking do not reject slow dependency extractors
858 --enable-maintainer-mode enable make rules and dependencies not useful
859 (and sometimes confusing) to the casual installer
860 --enable-libgcj-debug enable runtime debugging code
861 --enable-java-awt list of AWT peer implementations to be built
862 --enable-shared=PKGS build shared libraries default=yes
863 --enable-static=PKGS build static libraries default=yes
864 --enable-fast-install=PKGS optimize for fast installation default=yes
865 --disable-libtool-lock avoid locking (might break parallel builds)
866 --disable-getenv-properties
867 don't set system properties from GCJ_PROPERTIES
868 --enable-hash-synchronization
869 use global hash table for monitor locks
870 --enable-gc-debug include full support for pointer backtracing etc.
871 --enable-interpreter enable interpreter
872 --enable-sjlj-exceptions
873 force use of builtin_setjmp for exceptions
874 --disable-java-net disable java.net
875 --disable-jvmpi disable JVMPI support
876 --enable-gtk-cairo build the cairo Graphics2D implementation on GTK
877 --enable-java-gc=TYPE choose garbage collector (default is boehm)
878 --disable-rpath do not hardcode runtime library paths
880 Optional Packages:
881 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
882 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
883 --with-target-subdir=SUBDIR
884 configure in a subdirectory
885 --with-cross-host=HOST configure with a cross compiler from HOST
886 --with-newlib configure with newlib
887 --with-gnu-ld assume the C compiler uses GNU ld default=no
888 --with-pic try to use only PIC/non-PIC objects default=use both
889 --with-java-home=DIRECTORY
890 value of java.home system property
891 --with-win32-nlsapi=ansi or unicows or unicode
892 native MinGW libgcj Win32 OS API (default is ansi)
893 --without-libffi don't use libffi
894 --with-ecos enable runtime eCos target support
895 --with-system-zlib use installed libz
896 --with-x use the X Window System
897 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
898 --without-libiconv-prefix don't search for libiconv in includedir and libdir
900 Some influential environment variables:
901 CC C compiler command
902 CFLAGS C compiler flags
903 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
904 nonstandard directory <lib dir>
905 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
906 headers in a nonstandard directory <include dir>
907 CXX C++ compiler command
908 CXXFLAGS C++ compiler flags
909 CXXCPP C++ preprocessor
910 CPP C preprocessor
912 Use these variables to override the choices made by `configure' or to help
913 it to find libraries and programs with nonstandard names/locations.
915 _ACEOF
918 if test "$ac_init_help" = "recursive"; then
919 # If there are subdirs, report their specific --help.
920 ac_popdir=`pwd`
921 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
922 test -d $ac_dir || continue
923 ac_builddir=.
925 if test "$ac_dir" != .; then
926 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
927 # A "../" for each directory in $ac_dir_suffix.
928 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
929 else
930 ac_dir_suffix= ac_top_builddir=
933 case $srcdir in
934 .) # No --srcdir option. We are building in place.
935 ac_srcdir=.
936 if test -z "$ac_top_builddir"; then
937 ac_top_srcdir=.
938 else
939 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
940 fi ;;
941 [\\/]* | ?:[\\/]* ) # Absolute path.
942 ac_srcdir=$srcdir$ac_dir_suffix;
943 ac_top_srcdir=$srcdir ;;
944 *) # Relative path.
945 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
946 ac_top_srcdir=$ac_top_builddir$srcdir ;;
947 esac
949 # Do not use `cd foo && pwd` to compute absolute paths, because
950 # the directories may not exist.
951 case `pwd` in
952 .) ac_abs_builddir="$ac_dir";;
954 case "$ac_dir" in
955 .) ac_abs_builddir=`pwd`;;
956 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
957 *) ac_abs_builddir=`pwd`/"$ac_dir";;
958 esac;;
959 esac
960 case $ac_abs_builddir in
961 .) ac_abs_top_builddir=${ac_top_builddir}.;;
963 case ${ac_top_builddir}. in
964 .) ac_abs_top_builddir=$ac_abs_builddir;;
965 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
966 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
967 esac;;
968 esac
969 case $ac_abs_builddir in
970 .) ac_abs_srcdir=$ac_srcdir;;
972 case $ac_srcdir in
973 .) ac_abs_srcdir=$ac_abs_builddir;;
974 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
975 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
976 esac;;
977 esac
978 case $ac_abs_builddir in
979 .) ac_abs_top_srcdir=$ac_top_srcdir;;
981 case $ac_top_srcdir in
982 .) ac_abs_top_srcdir=$ac_abs_builddir;;
983 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
984 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
985 esac;;
986 esac
988 cd $ac_dir
989 # Check for guested configure; otherwise get Cygnus style configure.
990 if test -f $ac_srcdir/configure.gnu; then
991 echo
992 $SHELL $ac_srcdir/configure.gnu --help=recursive
993 elif test -f $ac_srcdir/configure; then
994 echo
995 $SHELL $ac_srcdir/configure --help=recursive
996 elif test -f $ac_srcdir/configure.ac ||
997 test -f $ac_srcdir/configure.in; then
998 echo
999 $ac_configure --help
1000 else
1001 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1003 cd $ac_popdir
1004 done
1007 test -n "$ac_init_help" && exit 0
1008 if $ac_init_version; then
1009 cat <<\_ACEOF
1010 libjava configure version-unused
1011 generated by GNU Autoconf 2.59
1013 Copyright (C) 2003 Free Software Foundation, Inc.
1014 This configure script is free software; the Free Software Foundation
1015 gives unlimited permission to copy, distribute and modify it.
1016 _ACEOF
1017 exit 0
1019 exec 5>config.log
1020 cat >&5 <<_ACEOF
1021 This file contains any messages produced by compilers while
1022 running configure, to aid debugging if configure makes a mistake.
1024 It was created by libjava $as_me version-unused, which was
1025 generated by GNU Autoconf 2.59. Invocation command line was
1027 $ $0 $@
1029 _ACEOF
1031 cat <<_ASUNAME
1032 ## --------- ##
1033 ## Platform. ##
1034 ## --------- ##
1036 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1037 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1038 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1039 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1040 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1042 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1043 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1045 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1046 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1047 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1048 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1049 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1050 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1051 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1053 _ASUNAME
1055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1056 for as_dir in $PATH
1058 IFS=$as_save_IFS
1059 test -z "$as_dir" && as_dir=.
1060 echo "PATH: $as_dir"
1061 done
1063 } >&5
1065 cat >&5 <<_ACEOF
1068 ## ----------- ##
1069 ## Core tests. ##
1070 ## ----------- ##
1072 _ACEOF
1075 # Keep a trace of the command line.
1076 # Strip out --no-create and --no-recursion so they do not pile up.
1077 # Strip out --silent because we don't want to record it for future runs.
1078 # Also quote any args containing shell meta-characters.
1079 # Make two passes to allow for proper duplicate-argument suppression.
1080 ac_configure_args=
1081 ac_configure_args0=
1082 ac_configure_args1=
1083 ac_sep=
1084 ac_must_keep_next=false
1085 for ac_pass in 1 2
1087 for ac_arg
1089 case $ac_arg in
1090 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1091 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1092 | -silent | --silent | --silen | --sile | --sil)
1093 continue ;;
1094 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1095 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1096 esac
1097 case $ac_pass in
1098 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1100 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1101 if test $ac_must_keep_next = true; then
1102 ac_must_keep_next=false # Got value, back to normal.
1103 else
1104 case $ac_arg in
1105 *=* | --config-cache | -C | -disable-* | --disable-* \
1106 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1107 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1108 | -with-* | --with-* | -without-* | --without-* | --x)
1109 case "$ac_configure_args0 " in
1110 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1111 esac
1113 -* ) ac_must_keep_next=true ;;
1114 esac
1116 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1117 # Get rid of the leading space.
1118 ac_sep=" "
1120 esac
1121 done
1122 done
1123 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1124 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1126 # When interrupted or exit'd, cleanup temporary files, and complete
1127 # config.log. We remove comments because anyway the quotes in there
1128 # would cause problems or look ugly.
1129 # WARNING: Be sure not to use single quotes in there, as some shells,
1130 # such as our DU 5.0 friend, will then `close' the trap.
1131 trap 'exit_status=$?
1132 # Save into config.log some information that might help in debugging.
1134 echo
1136 cat <<\_ASBOX
1137 ## ---------------- ##
1138 ## Cache variables. ##
1139 ## ---------------- ##
1140 _ASBOX
1141 echo
1142 # The following way of writing the cache mishandles newlines in values,
1144 (set) 2>&1 |
1145 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1146 *ac_space=\ *)
1147 sed -n \
1148 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1149 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1152 sed -n \
1153 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1155 esac;
1157 echo
1159 cat <<\_ASBOX
1160 ## ----------------- ##
1161 ## Output variables. ##
1162 ## ----------------- ##
1163 _ASBOX
1164 echo
1165 for ac_var in $ac_subst_vars
1167 eval ac_val=$`echo $ac_var`
1168 echo "$ac_var='"'"'$ac_val'"'"'"
1169 done | sort
1170 echo
1172 if test -n "$ac_subst_files"; then
1173 cat <<\_ASBOX
1174 ## ------------- ##
1175 ## Output files. ##
1176 ## ------------- ##
1177 _ASBOX
1178 echo
1179 for ac_var in $ac_subst_files
1181 eval ac_val=$`echo $ac_var`
1182 echo "$ac_var='"'"'$ac_val'"'"'"
1183 done | sort
1184 echo
1187 if test -s confdefs.h; then
1188 cat <<\_ASBOX
1189 ## ----------- ##
1190 ## confdefs.h. ##
1191 ## ----------- ##
1192 _ASBOX
1193 echo
1194 sed "/^$/d" confdefs.h | sort
1195 echo
1197 test "$ac_signal" != 0 &&
1198 echo "$as_me: caught signal $ac_signal"
1199 echo "$as_me: exit $exit_status"
1200 } >&5
1201 rm -f core *.core &&
1202 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1203 exit $exit_status
1205 for ac_signal in 1 2 13 15; do
1206 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1207 done
1208 ac_signal=0
1210 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1211 rm -rf conftest* confdefs.h
1212 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1213 echo >confdefs.h
1215 # Predefined preprocessor variables.
1217 cat >>confdefs.h <<_ACEOF
1218 #define PACKAGE_NAME "$PACKAGE_NAME"
1219 _ACEOF
1222 cat >>confdefs.h <<_ACEOF
1223 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1224 _ACEOF
1227 cat >>confdefs.h <<_ACEOF
1228 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1229 _ACEOF
1232 cat >>confdefs.h <<_ACEOF
1233 #define PACKAGE_STRING "$PACKAGE_STRING"
1234 _ACEOF
1237 cat >>confdefs.h <<_ACEOF
1238 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1239 _ACEOF
1242 # Let the site file select an alternate cache file if it wants to.
1243 # Prefer explicitly selected file to automatically selected ones.
1244 if test -z "$CONFIG_SITE"; then
1245 if test "x$prefix" != xNONE; then
1246 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1247 else
1248 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1251 for ac_site_file in $CONFIG_SITE; do
1252 if test -r "$ac_site_file"; then
1253 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1254 echo "$as_me: loading site script $ac_site_file" >&6;}
1255 sed 's/^/| /' "$ac_site_file" >&5
1256 . "$ac_site_file"
1258 done
1260 if test -r "$cache_file"; then
1261 # Some versions of bash will fail to source /dev/null (special
1262 # files actually), so we avoid doing that.
1263 if test -f "$cache_file"; then
1264 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1265 echo "$as_me: loading cache $cache_file" >&6;}
1266 case $cache_file in
1267 [\\/]* | ?:[\\/]* ) . $cache_file;;
1268 *) . ./$cache_file;;
1269 esac
1271 else
1272 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1273 echo "$as_me: creating cache $cache_file" >&6;}
1274 >$cache_file
1277 # Check that the precious variables saved in the cache have kept the same
1278 # value.
1279 ac_cache_corrupted=false
1280 for ac_var in `(set) 2>&1 |
1281 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1282 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1283 eval ac_new_set=\$ac_env_${ac_var}_set
1284 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1285 eval ac_new_val="\$ac_env_${ac_var}_value"
1286 case $ac_old_set,$ac_new_set in
1287 set,)
1288 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1289 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1290 ac_cache_corrupted=: ;;
1291 ,set)
1292 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1293 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1294 ac_cache_corrupted=: ;;
1295 ,);;
1297 if test "x$ac_old_val" != "x$ac_new_val"; then
1298 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1299 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1300 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1301 echo "$as_me: former value: $ac_old_val" >&2;}
1302 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1303 echo "$as_me: current value: $ac_new_val" >&2;}
1304 ac_cache_corrupted=:
1305 fi;;
1306 esac
1307 # Pass precious variables to config.status.
1308 if test "$ac_new_set" = set; then
1309 case $ac_new_val in
1310 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1311 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1312 *) ac_arg=$ac_var=$ac_new_val ;;
1313 esac
1314 case " $ac_configure_args " in
1315 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1316 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1317 esac
1319 done
1320 if $ac_cache_corrupted; then
1321 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1322 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1323 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1324 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1325 { (exit 1); exit 1; }; }
1328 ac_ext=c
1329 ac_cpp='$CPP $CPPFLAGS'
1330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1363 ac_aux_dir=
1364 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1365 if test -f $ac_dir/install-sh; then
1366 ac_aux_dir=$ac_dir
1367 ac_install_sh="$ac_aux_dir/install-sh -c"
1368 break
1369 elif test -f $ac_dir/install.sh; then
1370 ac_aux_dir=$ac_dir
1371 ac_install_sh="$ac_aux_dir/install.sh -c"
1372 break
1373 elif test -f $ac_dir/shtool; then
1374 ac_aux_dir=$ac_dir
1375 ac_install_sh="$ac_aux_dir/shtool install -c"
1376 break
1378 done
1379 if test -z "$ac_aux_dir"; then
1380 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1381 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1382 { (exit 1); exit 1; }; }
1384 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1385 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1386 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1388 # Make sure we can run config.sub.
1389 $ac_config_sub sun4 >/dev/null 2>&1 ||
1390 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1391 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1392 { (exit 1); exit 1; }; }
1394 echo "$as_me:$LINENO: checking build system type" >&5
1395 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1396 if test "${ac_cv_build+set}" = set; then
1397 echo $ECHO_N "(cached) $ECHO_C" >&6
1398 else
1399 ac_cv_build_alias=$build_alias
1400 test -z "$ac_cv_build_alias" &&
1401 ac_cv_build_alias=`$ac_config_guess`
1402 test -z "$ac_cv_build_alias" &&
1403 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1404 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1405 { (exit 1); exit 1; }; }
1406 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1407 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1408 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1409 { (exit 1); exit 1; }; }
1412 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1413 echo "${ECHO_T}$ac_cv_build" >&6
1414 build=$ac_cv_build
1415 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1416 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1417 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1420 case ${build_alias} in
1421 "") build_noncanonical=${build} ;;
1422 *) build_noncanonical=${build_alias} ;;
1423 esac
1425 case ${host_alias} in
1426 "") host_noncanonical=${build_noncanonical} ;;
1427 *) host_noncanonical=${host_alias} ;;
1428 esac
1430 case ${target_alias} in
1431 "") target_noncanonical=${host_noncanonical} ;;
1432 *) target_noncanonical=${target_alias} ;;
1433 esac
1435 # Prefix 'build-' so this never conflicts with target_subdir.
1436 build_subdir="build-${build_noncanonical}"
1437 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1438 if ( test $srcdir = . && test -d gcc ) \
1439 || test -d $srcdir/../host-${host_noncanonical}; then
1440 host_subdir="host-${host_noncanonical}"
1441 else
1442 host_subdir=.
1444 # No prefix.
1445 target_subdir=${target_noncanonical}
1448 # We use these options to decide which functions to include.
1450 # Check whether --with-target-subdir or --without-target-subdir was given.
1451 if test "${with_target_subdir+set}" = set; then
1452 withval="$with_target_subdir"
1456 # We may get other options which we don't document:
1457 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1459 # When building with srcdir == objdir, links to the source files will
1460 # be created in directories within the target_subdir. We have to
1461 # adjust toplevel_srcdir accordingly, so that configure finds
1462 # install-sh and other auxiliary files that live in the top-level
1463 # source directory.
1464 if test "${srcdir}" = "."; then
1465 if test -z "${with_target_subdir}"; then
1466 toprel=".."
1467 else
1468 if test "${with_target_subdir}" != "."; then
1469 toprel="${with_multisrctop}../.."
1470 else
1471 toprel="${with_multisrctop}.."
1474 else
1475 toprel=".."
1478 libgcj_basedir=$srcdir/$toprel/./libjava
1481 echo "$as_me:$LINENO: checking host system type" >&5
1482 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1483 if test "${ac_cv_host+set}" = set; then
1484 echo $ECHO_N "(cached) $ECHO_C" >&6
1485 else
1486 ac_cv_host_alias=$host_alias
1487 test -z "$ac_cv_host_alias" &&
1488 ac_cv_host_alias=$ac_cv_build_alias
1489 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1490 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1491 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1492 { (exit 1); exit 1; }; }
1495 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1496 echo "${ECHO_T}$ac_cv_host" >&6
1497 host=$ac_cv_host
1498 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1499 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1500 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1503 echo "$as_me:$LINENO: checking target system type" >&5
1504 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1505 if test "${ac_cv_target+set}" = set; then
1506 echo $ECHO_N "(cached) $ECHO_C" >&6
1507 else
1508 ac_cv_target_alias=$target_alias
1509 test "x$ac_cv_target_alias" = "x" &&
1510 ac_cv_target_alias=$ac_cv_host_alias
1511 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1512 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1513 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1514 { (exit 1); exit 1; }; }
1517 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1518 echo "${ECHO_T}$ac_cv_target" >&6
1519 target=$ac_cv_target
1520 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1521 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1522 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1525 # The aliases save the names the user supplied, while $host etc.
1526 # will get canonicalized.
1527 test -n "$target_alias" &&
1528 test "$program_prefix$program_suffix$program_transform_name" = \
1529 NONENONEs,x,x, &&
1530 program_prefix=${target_alias}-
1531 case ${build_alias} in
1532 "") build_noncanonical=${build} ;;
1533 *) build_noncanonical=${build_alias} ;;
1534 esac
1536 case ${target_alias} in
1537 "") target_noncanonical=${host_noncanonical} ;;
1538 *) target_noncanonical=${target_alias} ;;
1539 esac
1544 # This works around the fact that libtool configuration may change LD
1545 # for this particular configuration, but some shells, instead of
1546 # keeping the changes in LD private, export them just because LD is
1547 # exported.
1548 ORIGINAL_LD_FOR_MULTILIBS=$LD
1550 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1551 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1552 LN_S=$as_ln_s
1553 if test "$LN_S" = "ln -s"; then
1554 echo "$as_me:$LINENO: result: yes" >&5
1555 echo "${ECHO_T}yes" >&6
1556 else
1557 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1558 echo "${ECHO_T}no, using $LN_S" >&6
1562 # This works around an automake problem.
1563 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1567 # Check whether --with-cross-host or --without-cross-host was given.
1568 if test "${with_cross_host+set}" = set; then
1569 withval="$with_cross_host"
1574 # Check whether --with-newlib or --without-newlib was given.
1575 if test "${with_newlib+set}" = set; then
1576 withval="$with_newlib"
1580 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1581 if test "${enable_version_specific_runtime_libs+set}" = set; then
1582 enableval="$enable_version_specific_runtime_libs"
1583 case "$enableval" in
1584 yes) version_specific_libs=yes ;;
1585 no) version_specific_libs=no ;;
1586 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1587 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1588 { (exit 1); exit 1; }; };;
1589 esac
1590 else
1591 version_specific_libs=no
1595 # Default to --enable-multilib
1596 # Check whether --enable-multilib or --disable-multilib was given.
1597 if test "${enable_multilib+set}" = set; then
1598 enableval="$enable_multilib"
1599 case "${enableval}" in
1600 yes) multilib=yes ;;
1601 no) multilib=no ;;
1602 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1603 echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1604 { (exit 1); exit 1; }; } ;;
1605 esac
1606 else
1607 multilib=yes
1609 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
1612 # (1) We use an abnormal CXX (without library references), so we
1613 # must cache it under a different name.
1614 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1615 # the non-multilib-adjusted value will be used in multilibs.
1616 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1617 # (4) As another side effect, automake doesn't automatically include them
1618 # in Makefile.in.
1619 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
1620 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1621 # used in later tests. This may not be necessary in libjava; I don't know.
1625 save_CXXFLAGS="$CXXFLAGS"
1626 CXXFLAGS="$CXXFLAGS -fno-builtin"
1627 ac_ext=c
1628 ac_cpp='$CPP $CPPFLAGS'
1629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1632 if test -n "$ac_tool_prefix"; then
1633 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1634 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1635 echo "$as_me:$LINENO: checking for $ac_word" >&5
1636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1637 if test "${ac_cv_prog_CC+set}" = set; then
1638 echo $ECHO_N "(cached) $ECHO_C" >&6
1639 else
1640 if test -n "$CC"; then
1641 ac_cv_prog_CC="$CC" # Let the user override the test.
1642 else
1643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1644 for as_dir in $PATH
1646 IFS=$as_save_IFS
1647 test -z "$as_dir" && as_dir=.
1648 for ac_exec_ext in '' $ac_executable_extensions; do
1649 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1650 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1652 break 2
1654 done
1655 done
1659 CC=$ac_cv_prog_CC
1660 if test -n "$CC"; then
1661 echo "$as_me:$LINENO: result: $CC" >&5
1662 echo "${ECHO_T}$CC" >&6
1663 else
1664 echo "$as_me:$LINENO: result: no" >&5
1665 echo "${ECHO_T}no" >&6
1669 if test -z "$ac_cv_prog_CC"; then
1670 ac_ct_CC=$CC
1671 # Extract the first word of "gcc", so it can be a program name with args.
1672 set dummy gcc; ac_word=$2
1673 echo "$as_me:$LINENO: checking for $ac_word" >&5
1674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1675 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1676 echo $ECHO_N "(cached) $ECHO_C" >&6
1677 else
1678 if test -n "$ac_ct_CC"; then
1679 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1680 else
1681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1682 for as_dir in $PATH
1684 IFS=$as_save_IFS
1685 test -z "$as_dir" && as_dir=.
1686 for ac_exec_ext in '' $ac_executable_extensions; do
1687 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1688 ac_cv_prog_ac_ct_CC="gcc"
1689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1690 break 2
1692 done
1693 done
1697 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1698 if test -n "$ac_ct_CC"; then
1699 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1700 echo "${ECHO_T}$ac_ct_CC" >&6
1701 else
1702 echo "$as_me:$LINENO: result: no" >&5
1703 echo "${ECHO_T}no" >&6
1706 CC=$ac_ct_CC
1707 else
1708 CC="$ac_cv_prog_CC"
1711 if test -z "$CC"; then
1712 if test -n "$ac_tool_prefix"; then
1713 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1714 set dummy ${ac_tool_prefix}cc; ac_word=$2
1715 echo "$as_me:$LINENO: checking for $ac_word" >&5
1716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1717 if test "${ac_cv_prog_CC+set}" = set; then
1718 echo $ECHO_N "(cached) $ECHO_C" >&6
1719 else
1720 if test -n "$CC"; then
1721 ac_cv_prog_CC="$CC" # Let the user override the test.
1722 else
1723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1724 for as_dir in $PATH
1726 IFS=$as_save_IFS
1727 test -z "$as_dir" && as_dir=.
1728 for ac_exec_ext in '' $ac_executable_extensions; do
1729 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1730 ac_cv_prog_CC="${ac_tool_prefix}cc"
1731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1732 break 2
1734 done
1735 done
1739 CC=$ac_cv_prog_CC
1740 if test -n "$CC"; then
1741 echo "$as_me:$LINENO: result: $CC" >&5
1742 echo "${ECHO_T}$CC" >&6
1743 else
1744 echo "$as_me:$LINENO: result: no" >&5
1745 echo "${ECHO_T}no" >&6
1749 if test -z "$ac_cv_prog_CC"; then
1750 ac_ct_CC=$CC
1751 # Extract the first word of "cc", so it can be a program name with args.
1752 set dummy cc; ac_word=$2
1753 echo "$as_me:$LINENO: checking for $ac_word" >&5
1754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1755 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1756 echo $ECHO_N "(cached) $ECHO_C" >&6
1757 else
1758 if test -n "$ac_ct_CC"; then
1759 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1760 else
1761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1762 for as_dir in $PATH
1764 IFS=$as_save_IFS
1765 test -z "$as_dir" && as_dir=.
1766 for ac_exec_ext in '' $ac_executable_extensions; do
1767 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1768 ac_cv_prog_ac_ct_CC="cc"
1769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1770 break 2
1772 done
1773 done
1777 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1778 if test -n "$ac_ct_CC"; then
1779 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1780 echo "${ECHO_T}$ac_ct_CC" >&6
1781 else
1782 echo "$as_me:$LINENO: result: no" >&5
1783 echo "${ECHO_T}no" >&6
1786 CC=$ac_ct_CC
1787 else
1788 CC="$ac_cv_prog_CC"
1792 if test -z "$CC"; then
1793 # Extract the first word of "cc", so it can be a program name with args.
1794 set dummy cc; ac_word=$2
1795 echo "$as_me:$LINENO: checking for $ac_word" >&5
1796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1797 if test "${ac_cv_prog_CC+set}" = set; then
1798 echo $ECHO_N "(cached) $ECHO_C" >&6
1799 else
1800 if test -n "$CC"; then
1801 ac_cv_prog_CC="$CC" # Let the user override the test.
1802 else
1803 ac_prog_rejected=no
1804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1805 for as_dir in $PATH
1807 IFS=$as_save_IFS
1808 test -z "$as_dir" && as_dir=.
1809 for ac_exec_ext in '' $ac_executable_extensions; do
1810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1811 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1812 ac_prog_rejected=yes
1813 continue
1815 ac_cv_prog_CC="cc"
1816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1817 break 2
1819 done
1820 done
1822 if test $ac_prog_rejected = yes; then
1823 # We found a bogon in the path, so make sure we never use it.
1824 set dummy $ac_cv_prog_CC
1825 shift
1826 if test $# != 0; then
1827 # We chose a different compiler from the bogus one.
1828 # However, it has the same basename, so the bogon will be chosen
1829 # first if we set CC to just the basename; use the full file name.
1830 shift
1831 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1836 CC=$ac_cv_prog_CC
1837 if test -n "$CC"; then
1838 echo "$as_me:$LINENO: result: $CC" >&5
1839 echo "${ECHO_T}$CC" >&6
1840 else
1841 echo "$as_me:$LINENO: result: no" >&5
1842 echo "${ECHO_T}no" >&6
1846 if test -z "$CC"; then
1847 if test -n "$ac_tool_prefix"; then
1848 for ac_prog in cl
1850 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1851 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1852 echo "$as_me:$LINENO: checking for $ac_word" >&5
1853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1854 if test "${ac_cv_prog_CC+set}" = set; then
1855 echo $ECHO_N "(cached) $ECHO_C" >&6
1856 else
1857 if test -n "$CC"; then
1858 ac_cv_prog_CC="$CC" # Let the user override the test.
1859 else
1860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1861 for as_dir in $PATH
1863 IFS=$as_save_IFS
1864 test -z "$as_dir" && as_dir=.
1865 for ac_exec_ext in '' $ac_executable_extensions; do
1866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1867 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1869 break 2
1871 done
1872 done
1876 CC=$ac_cv_prog_CC
1877 if test -n "$CC"; then
1878 echo "$as_me:$LINENO: result: $CC" >&5
1879 echo "${ECHO_T}$CC" >&6
1880 else
1881 echo "$as_me:$LINENO: result: no" >&5
1882 echo "${ECHO_T}no" >&6
1885 test -n "$CC" && break
1886 done
1888 if test -z "$CC"; then
1889 ac_ct_CC=$CC
1890 for ac_prog in cl
1892 # Extract the first word of "$ac_prog", so it can be a program name with args.
1893 set dummy $ac_prog; ac_word=$2
1894 echo "$as_me:$LINENO: checking for $ac_word" >&5
1895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1896 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1897 echo $ECHO_N "(cached) $ECHO_C" >&6
1898 else
1899 if test -n "$ac_ct_CC"; then
1900 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1901 else
1902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1903 for as_dir in $PATH
1905 IFS=$as_save_IFS
1906 test -z "$as_dir" && as_dir=.
1907 for ac_exec_ext in '' $ac_executable_extensions; do
1908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1909 ac_cv_prog_ac_ct_CC="$ac_prog"
1910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1911 break 2
1913 done
1914 done
1918 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1919 if test -n "$ac_ct_CC"; then
1920 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1921 echo "${ECHO_T}$ac_ct_CC" >&6
1922 else
1923 echo "$as_me:$LINENO: result: no" >&5
1924 echo "${ECHO_T}no" >&6
1927 test -n "$ac_ct_CC" && break
1928 done
1930 CC=$ac_ct_CC
1936 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1937 See \`config.log' for more details." >&5
1938 echo "$as_me: error: no acceptable C compiler found in \$PATH
1939 See \`config.log' for more details." >&2;}
1940 { (exit 1); exit 1; }; }
1942 # Provide some information about the compiler.
1943 echo "$as_me:$LINENO:" \
1944 "checking for C compiler version" >&5
1945 ac_compiler=`set X $ac_compile; echo $2`
1946 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1947 (eval $ac_compiler --version </dev/null >&5) 2>&5
1948 ac_status=$?
1949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1950 (exit $ac_status); }
1951 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1952 (eval $ac_compiler -v </dev/null >&5) 2>&5
1953 ac_status=$?
1954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1955 (exit $ac_status); }
1956 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1957 (eval $ac_compiler -V </dev/null >&5) 2>&5
1958 ac_status=$?
1959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1960 (exit $ac_status); }
1962 cat >conftest.$ac_ext <<_ACEOF
1963 /* confdefs.h. */
1964 _ACEOF
1965 cat confdefs.h >>conftest.$ac_ext
1966 cat >>conftest.$ac_ext <<_ACEOF
1967 /* end confdefs.h. */
1970 main ()
1974 return 0;
1976 _ACEOF
1977 # FIXME: Cleanup?
1978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1979 (eval $ac_link) 2>&5
1980 ac_status=$?
1981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1982 (exit $ac_status); }; then
1983 gcc_no_link=no
1984 else
1985 gcc_no_link=yes
1988 if test x$gcc_no_link = xyes; then
1989 # Setting cross_compile will disable run tests; it will
1990 # also disable AC_CHECK_FILE but that's generally
1991 # correct if we can't link.
1992 cross_compiling=yes
1993 EXEEXT=
1994 else
1995 cat >conftest.$ac_ext <<_ACEOF
1996 /* confdefs.h. */
1997 _ACEOF
1998 cat confdefs.h >>conftest.$ac_ext
1999 cat >>conftest.$ac_ext <<_ACEOF
2000 /* end confdefs.h. */
2003 main ()
2007 return 0;
2009 _ACEOF
2010 ac_clean_files_save=$ac_clean_files
2011 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2012 # Try to create an executable without -o first, disregard a.out.
2013 # It will help us diagnose broken compilers, and finding out an intuition
2014 # of exeext.
2015 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2016 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2017 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2018 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2019 (eval $ac_link_default) 2>&5
2020 ac_status=$?
2021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2022 (exit $ac_status); }; then
2023 # Find the output, starting from the most likely. This scheme is
2024 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2025 # resort.
2027 # Be careful to initialize this variable, since it used to be cached.
2028 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2029 ac_cv_exeext=
2030 # b.out is created by i960 compilers.
2031 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2033 test -f "$ac_file" || continue
2034 case $ac_file in
2035 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2037 conftest.$ac_ext )
2038 # This is the source file.
2040 [ab].out )
2041 # We found the default executable, but exeext='' is most
2042 # certainly right.
2043 break;;
2044 *.* )
2045 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2046 # FIXME: I believe we export ac_cv_exeext for Libtool,
2047 # but it would be cool to find out if it's true. Does anybody
2048 # maintain Libtool? --akim.
2049 export ac_cv_exeext
2050 break;;
2052 break;;
2053 esac
2054 done
2055 else
2056 echo "$as_me: failed program was:" >&5
2057 sed 's/^/| /' conftest.$ac_ext >&5
2059 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2060 See \`config.log' for more details." >&5
2061 echo "$as_me: error: C compiler cannot create executables
2062 See \`config.log' for more details." >&2;}
2063 { (exit 77); exit 77; }; }
2066 ac_exeext=$ac_cv_exeext
2067 echo "$as_me:$LINENO: result: $ac_file" >&5
2068 echo "${ECHO_T}$ac_file" >&6
2070 # Check the compiler produces executables we can run. If not, either
2071 # the compiler is broken, or we cross compile.
2072 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2073 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2074 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2075 # If not cross compiling, check that we can run a simple program.
2076 if test "$cross_compiling" != yes; then
2077 if { ac_try='./$ac_file'
2078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2079 (eval $ac_try) 2>&5
2080 ac_status=$?
2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2082 (exit $ac_status); }; }; then
2083 cross_compiling=no
2084 else
2085 if test "$cross_compiling" = maybe; then
2086 cross_compiling=yes
2087 else
2088 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2089 If you meant to cross compile, use \`--host'.
2090 See \`config.log' for more details." >&5
2091 echo "$as_me: error: cannot run C compiled programs.
2092 If you meant to cross compile, use \`--host'.
2093 See \`config.log' for more details." >&2;}
2094 { (exit 1); exit 1; }; }
2098 echo "$as_me:$LINENO: result: yes" >&5
2099 echo "${ECHO_T}yes" >&6
2101 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2102 ac_clean_files=$ac_clean_files_save
2103 # Check the compiler produces executables we can run. If not, either
2104 # the compiler is broken, or we cross compile.
2105 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2106 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2107 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2108 echo "${ECHO_T}$cross_compiling" >&6
2110 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2111 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2113 (eval $ac_link) 2>&5
2114 ac_status=$?
2115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2116 (exit $ac_status); }; then
2117 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2118 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2119 # work properly (i.e., refer to `conftest.exe'), while it won't with
2120 # `rm'.
2121 for ac_file in conftest.exe conftest conftest.*; do
2122 test -f "$ac_file" || continue
2123 case $ac_file in
2124 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2125 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2126 export ac_cv_exeext
2127 break;;
2128 * ) break;;
2129 esac
2130 done
2131 else
2132 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2133 See \`config.log' for more details." >&5
2134 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2135 See \`config.log' for more details." >&2;}
2136 { (exit 1); exit 1; }; }
2139 rm -f conftest$ac_cv_exeext
2140 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2141 echo "${ECHO_T}$ac_cv_exeext" >&6
2143 rm -f conftest.$ac_ext
2144 EXEEXT=$ac_cv_exeext
2145 ac_exeext=$EXEEXT
2147 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2148 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2149 if test "${ac_cv_objext+set}" = set; then
2150 echo $ECHO_N "(cached) $ECHO_C" >&6
2151 else
2152 cat >conftest.$ac_ext <<_ACEOF
2153 /* confdefs.h. */
2154 _ACEOF
2155 cat confdefs.h >>conftest.$ac_ext
2156 cat >>conftest.$ac_ext <<_ACEOF
2157 /* end confdefs.h. */
2160 main ()
2164 return 0;
2166 _ACEOF
2167 rm -f conftest.o conftest.obj
2168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2169 (eval $ac_compile) 2>&5
2170 ac_status=$?
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); }; then
2173 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2174 case $ac_file in
2175 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2176 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2177 break;;
2178 esac
2179 done
2180 else
2181 echo "$as_me: failed program was:" >&5
2182 sed 's/^/| /' conftest.$ac_ext >&5
2184 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2185 See \`config.log' for more details." >&5
2186 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2187 See \`config.log' for more details." >&2;}
2188 { (exit 1); exit 1; }; }
2191 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2193 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2194 echo "${ECHO_T}$ac_cv_objext" >&6
2195 OBJEXT=$ac_cv_objext
2196 ac_objext=$OBJEXT
2197 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2198 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2199 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2200 echo $ECHO_N "(cached) $ECHO_C" >&6
2201 else
2202 cat >conftest.$ac_ext <<_ACEOF
2203 /* confdefs.h. */
2204 _ACEOF
2205 cat confdefs.h >>conftest.$ac_ext
2206 cat >>conftest.$ac_ext <<_ACEOF
2207 /* end confdefs.h. */
2210 main ()
2212 #ifndef __GNUC__
2213 choke me
2214 #endif
2217 return 0;
2219 _ACEOF
2220 rm -f conftest.$ac_objext
2221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2222 (eval $ac_compile) 2>conftest.er1
2223 ac_status=$?
2224 grep -v '^ *+' conftest.er1 >conftest.err
2225 rm -f conftest.er1
2226 cat conftest.err >&5
2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228 (exit $ac_status); } &&
2229 { ac_try='test -z "$ac_c_werror_flag"
2230 || test ! -s conftest.err'
2231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2232 (eval $ac_try) 2>&5
2233 ac_status=$?
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); }; } &&
2236 { ac_try='test -s conftest.$ac_objext'
2237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2238 (eval $ac_try) 2>&5
2239 ac_status=$?
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }; }; then
2242 ac_compiler_gnu=yes
2243 else
2244 echo "$as_me: failed program was:" >&5
2245 sed 's/^/| /' conftest.$ac_ext >&5
2247 ac_compiler_gnu=no
2249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2250 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2253 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2254 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2255 GCC=`test $ac_compiler_gnu = yes && echo yes`
2256 ac_test_CFLAGS=${CFLAGS+set}
2257 ac_save_CFLAGS=$CFLAGS
2258 CFLAGS="-g"
2259 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2260 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2261 if test "${ac_cv_prog_cc_g+set}" = set; then
2262 echo $ECHO_N "(cached) $ECHO_C" >&6
2263 else
2264 cat >conftest.$ac_ext <<_ACEOF
2265 /* confdefs.h. */
2266 _ACEOF
2267 cat confdefs.h >>conftest.$ac_ext
2268 cat >>conftest.$ac_ext <<_ACEOF
2269 /* end confdefs.h. */
2272 main ()
2276 return 0;
2278 _ACEOF
2279 rm -f conftest.$ac_objext
2280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2281 (eval $ac_compile) 2>conftest.er1
2282 ac_status=$?
2283 grep -v '^ *+' conftest.er1 >conftest.err
2284 rm -f conftest.er1
2285 cat conftest.err >&5
2286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287 (exit $ac_status); } &&
2288 { ac_try='test -z "$ac_c_werror_flag"
2289 || test ! -s conftest.err'
2290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2291 (eval $ac_try) 2>&5
2292 ac_status=$?
2293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294 (exit $ac_status); }; } &&
2295 { ac_try='test -s conftest.$ac_objext'
2296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2297 (eval $ac_try) 2>&5
2298 ac_status=$?
2299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2300 (exit $ac_status); }; }; then
2301 ac_cv_prog_cc_g=yes
2302 else
2303 echo "$as_me: failed program was:" >&5
2304 sed 's/^/| /' conftest.$ac_ext >&5
2306 ac_cv_prog_cc_g=no
2308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2310 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2311 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2312 if test "$ac_test_CFLAGS" = set; then
2313 CFLAGS=$ac_save_CFLAGS
2314 elif test $ac_cv_prog_cc_g = yes; then
2315 if test "$GCC" = yes; then
2316 CFLAGS="-g -O2"
2317 else
2318 CFLAGS="-g"
2320 else
2321 if test "$GCC" = yes; then
2322 CFLAGS="-O2"
2323 else
2324 CFLAGS=
2327 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2328 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2329 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2330 echo $ECHO_N "(cached) $ECHO_C" >&6
2331 else
2332 ac_cv_prog_cc_stdc=no
2333 ac_save_CC=$CC
2334 cat >conftest.$ac_ext <<_ACEOF
2335 /* confdefs.h. */
2336 _ACEOF
2337 cat confdefs.h >>conftest.$ac_ext
2338 cat >>conftest.$ac_ext <<_ACEOF
2339 /* end confdefs.h. */
2340 #include <stdarg.h>
2341 #include <stdio.h>
2342 #include <sys/types.h>
2343 #include <sys/stat.h>
2344 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2345 struct buf { int x; };
2346 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2347 static char *e (p, i)
2348 char **p;
2349 int i;
2351 return p[i];
2353 static char *f (char * (*g) (char **, int), char **p, ...)
2355 char *s;
2356 va_list v;
2357 va_start (v,p);
2358 s = g (p, va_arg (v,int));
2359 va_end (v);
2360 return s;
2363 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2364 function prototypes and stuff, but not '\xHH' hex character constants.
2365 These don't provoke an error unfortunately, instead are silently treated
2366 as 'x'. The following induces an error, until -std1 is added to get
2367 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2368 array size at least. It's necessary to write '\x00'==0 to get something
2369 that's true only with -std1. */
2370 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2372 int test (int i, double x);
2373 struct s1 {int (*f) (int a);};
2374 struct s2 {int (*f) (double a);};
2375 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2376 int argc;
2377 char **argv;
2379 main ()
2381 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2383 return 0;
2385 _ACEOF
2386 # Don't try gcc -ansi; that turns off useful extensions and
2387 # breaks some systems' header files.
2388 # AIX -qlanglvl=ansi
2389 # Ultrix and OSF/1 -std1
2390 # HP-UX 10.20 and later -Ae
2391 # HP-UX older versions -Aa -D_HPUX_SOURCE
2392 # SVR4 -Xc -D__EXTENSIONS__
2393 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2395 CC="$ac_save_CC $ac_arg"
2396 rm -f conftest.$ac_objext
2397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2398 (eval $ac_compile) 2>conftest.er1
2399 ac_status=$?
2400 grep -v '^ *+' conftest.er1 >conftest.err
2401 rm -f conftest.er1
2402 cat conftest.err >&5
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); } &&
2405 { ac_try='test -z "$ac_c_werror_flag"
2406 || test ! -s conftest.err'
2407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2408 (eval $ac_try) 2>&5
2409 ac_status=$?
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }; } &&
2412 { ac_try='test -s conftest.$ac_objext'
2413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2414 (eval $ac_try) 2>&5
2415 ac_status=$?
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); }; }; then
2418 ac_cv_prog_cc_stdc=$ac_arg
2419 break
2420 else
2421 echo "$as_me: failed program was:" >&5
2422 sed 's/^/| /' conftest.$ac_ext >&5
2425 rm -f conftest.err conftest.$ac_objext
2426 done
2427 rm -f conftest.$ac_ext conftest.$ac_objext
2428 CC=$ac_save_CC
2432 case "x$ac_cv_prog_cc_stdc" in
2433 x|xno)
2434 echo "$as_me:$LINENO: result: none needed" >&5
2435 echo "${ECHO_T}none needed" >&6 ;;
2437 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2438 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2439 CC="$CC $ac_cv_prog_cc_stdc" ;;
2440 esac
2442 # Some people use a C++ compiler to compile C. Since we use `exit',
2443 # in C++ we need to declare it. In case someone uses the same compiler
2444 # for both compiling C and C++ we need to have the C++ compiler decide
2445 # the declaration of exit, since it's the most demanding environment.
2446 cat >conftest.$ac_ext <<_ACEOF
2447 #ifndef __cplusplus
2448 choke me
2449 #endif
2450 _ACEOF
2451 rm -f conftest.$ac_objext
2452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2453 (eval $ac_compile) 2>conftest.er1
2454 ac_status=$?
2455 grep -v '^ *+' conftest.er1 >conftest.err
2456 rm -f conftest.er1
2457 cat conftest.err >&5
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); } &&
2460 { ac_try='test -z "$ac_c_werror_flag"
2461 || test ! -s conftest.err'
2462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2463 (eval $ac_try) 2>&5
2464 ac_status=$?
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); }; } &&
2467 { ac_try='test -s conftest.$ac_objext'
2468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2469 (eval $ac_try) 2>&5
2470 ac_status=$?
2471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472 (exit $ac_status); }; }; then
2473 for ac_declaration in \
2474 '' \
2475 'extern "C" void std::exit (int) throw (); using std::exit;' \
2476 'extern "C" void std::exit (int); using std::exit;' \
2477 'extern "C" void exit (int) throw ();' \
2478 'extern "C" void exit (int);' \
2479 'void exit (int);'
2481 cat >conftest.$ac_ext <<_ACEOF
2482 /* confdefs.h. */
2483 _ACEOF
2484 cat confdefs.h >>conftest.$ac_ext
2485 cat >>conftest.$ac_ext <<_ACEOF
2486 /* end confdefs.h. */
2487 $ac_declaration
2488 #include <stdlib.h>
2490 main ()
2492 exit (42);
2494 return 0;
2496 _ACEOF
2497 rm -f conftest.$ac_objext
2498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2499 (eval $ac_compile) 2>conftest.er1
2500 ac_status=$?
2501 grep -v '^ *+' conftest.er1 >conftest.err
2502 rm -f conftest.er1
2503 cat conftest.err >&5
2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); } &&
2506 { ac_try='test -z "$ac_c_werror_flag"
2507 || test ! -s conftest.err'
2508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2509 (eval $ac_try) 2>&5
2510 ac_status=$?
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); }; } &&
2513 { ac_try='test -s conftest.$ac_objext'
2514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2515 (eval $ac_try) 2>&5
2516 ac_status=$?
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); }; }; then
2520 else
2521 echo "$as_me: failed program was:" >&5
2522 sed 's/^/| /' conftest.$ac_ext >&5
2524 continue
2526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2527 cat >conftest.$ac_ext <<_ACEOF
2528 /* confdefs.h. */
2529 _ACEOF
2530 cat confdefs.h >>conftest.$ac_ext
2531 cat >>conftest.$ac_ext <<_ACEOF
2532 /* end confdefs.h. */
2533 $ac_declaration
2535 main ()
2537 exit (42);
2539 return 0;
2541 _ACEOF
2542 rm -f conftest.$ac_objext
2543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2544 (eval $ac_compile) 2>conftest.er1
2545 ac_status=$?
2546 grep -v '^ *+' conftest.er1 >conftest.err
2547 rm -f conftest.er1
2548 cat conftest.err >&5
2549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550 (exit $ac_status); } &&
2551 { ac_try='test -z "$ac_c_werror_flag"
2552 || test ! -s conftest.err'
2553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2554 (eval $ac_try) 2>&5
2555 ac_status=$?
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); }; } &&
2558 { ac_try='test -s conftest.$ac_objext'
2559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2560 (eval $ac_try) 2>&5
2561 ac_status=$?
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); }; }; then
2564 break
2565 else
2566 echo "$as_me: failed program was:" >&5
2567 sed 's/^/| /' conftest.$ac_ext >&5
2570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2571 done
2572 rm -f conftest*
2573 if test -n "$ac_declaration"; then
2574 echo '#ifdef __cplusplus' >>confdefs.h
2575 echo $ac_declaration >>confdefs.h
2576 echo '#endif' >>confdefs.h
2579 else
2580 echo "$as_me: failed program was:" >&5
2581 sed 's/^/| /' conftest.$ac_ext >&5
2584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2585 ac_ext=c
2586 ac_cpp='$CPP $CPPFLAGS'
2587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2591 ac_ext=cc
2592 ac_cpp='$CXXCPP $CPPFLAGS'
2593 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2594 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2595 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2596 if test -n "$ac_tool_prefix"; then
2597 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2599 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2600 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2601 echo "$as_me:$LINENO: checking for $ac_word" >&5
2602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2603 if test "${glibcxx_cv_prog_CXX+set}" = set; then
2604 echo $ECHO_N "(cached) $ECHO_C" >&6
2605 else
2606 if test -n "$CXX"; then
2607 glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
2608 else
2609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2610 for as_dir in $PATH
2612 IFS=$as_save_IFS
2613 test -z "$as_dir" && as_dir=.
2614 for ac_exec_ext in '' $ac_executable_extensions; do
2615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2616 glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2618 break 2
2620 done
2621 done
2625 CXX=$glibcxx_cv_prog_CXX
2626 if test -n "$CXX"; then
2627 echo "$as_me:$LINENO: result: $CXX" >&5
2628 echo "${ECHO_T}$CXX" >&6
2629 else
2630 echo "$as_me:$LINENO: result: no" >&5
2631 echo "${ECHO_T}no" >&6
2634 test -n "$CXX" && break
2635 done
2637 if test -z "$CXX"; then
2638 ac_ct_CXX=$CXX
2639 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2641 # Extract the first word of "$ac_prog", so it can be a program name with args.
2642 set dummy $ac_prog; ac_word=$2
2643 echo "$as_me:$LINENO: checking for $ac_word" >&5
2644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2645 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2646 echo $ECHO_N "(cached) $ECHO_C" >&6
2647 else
2648 if test -n "$ac_ct_CXX"; then
2649 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2650 else
2651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2652 for as_dir in $PATH
2654 IFS=$as_save_IFS
2655 test -z "$as_dir" && as_dir=.
2656 for ac_exec_ext in '' $ac_executable_extensions; do
2657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2658 ac_cv_prog_ac_ct_CXX="$ac_prog"
2659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2660 break 2
2662 done
2663 done
2667 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2668 if test -n "$ac_ct_CXX"; then
2669 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2670 echo "${ECHO_T}$ac_ct_CXX" >&6
2671 else
2672 echo "$as_me:$LINENO: result: no" >&5
2673 echo "${ECHO_T}no" >&6
2676 test -n "$ac_ct_CXX" && break
2677 done
2678 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2680 CXX=$ac_ct_CXX
2684 # Provide some information about the compiler.
2685 echo "$as_me:$LINENO:" \
2686 "checking for C++ compiler version" >&5
2687 ac_compiler=`set X $ac_compile; echo $2`
2688 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2689 (eval $ac_compiler --version </dev/null >&5) 2>&5
2690 ac_status=$?
2691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692 (exit $ac_status); }
2693 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2694 (eval $ac_compiler -v </dev/null >&5) 2>&5
2695 ac_status=$?
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); }
2698 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2699 (eval $ac_compiler -V </dev/null >&5) 2>&5
2700 ac_status=$?
2701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702 (exit $ac_status); }
2704 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2705 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2706 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2707 echo $ECHO_N "(cached) $ECHO_C" >&6
2708 else
2709 cat >conftest.$ac_ext <<_ACEOF
2710 /* confdefs.h. */
2711 _ACEOF
2712 cat confdefs.h >>conftest.$ac_ext
2713 cat >>conftest.$ac_ext <<_ACEOF
2714 /* end confdefs.h. */
2717 main ()
2719 #ifndef __GNUC__
2720 choke me
2721 #endif
2724 return 0;
2726 _ACEOF
2727 rm -f conftest.$ac_objext
2728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2729 (eval $ac_compile) 2>conftest.er1
2730 ac_status=$?
2731 grep -v '^ *+' conftest.er1 >conftest.err
2732 rm -f conftest.er1
2733 cat conftest.err >&5
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); } &&
2736 { ac_try='test -z "$ac_cxx_werror_flag"
2737 || test ! -s conftest.err'
2738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2739 (eval $ac_try) 2>&5
2740 ac_status=$?
2741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742 (exit $ac_status); }; } &&
2743 { ac_try='test -s conftest.$ac_objext'
2744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2745 (eval $ac_try) 2>&5
2746 ac_status=$?
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); }; }; then
2749 ac_compiler_gnu=yes
2750 else
2751 echo "$as_me: failed program was:" >&5
2752 sed 's/^/| /' conftest.$ac_ext >&5
2754 ac_compiler_gnu=no
2756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2757 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2760 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2761 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2762 GXX=`test $ac_compiler_gnu = yes && echo yes`
2763 ac_test_CXXFLAGS=${CXXFLAGS+set}
2764 ac_save_CXXFLAGS=$CXXFLAGS
2765 CXXFLAGS="-g"
2766 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2767 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2768 if test "${ac_cv_prog_cxx_g+set}" = set; then
2769 echo $ECHO_N "(cached) $ECHO_C" >&6
2770 else
2771 cat >conftest.$ac_ext <<_ACEOF
2772 /* confdefs.h. */
2773 _ACEOF
2774 cat confdefs.h >>conftest.$ac_ext
2775 cat >>conftest.$ac_ext <<_ACEOF
2776 /* end confdefs.h. */
2779 main ()
2783 return 0;
2785 _ACEOF
2786 rm -f conftest.$ac_objext
2787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2788 (eval $ac_compile) 2>conftest.er1
2789 ac_status=$?
2790 grep -v '^ *+' conftest.er1 >conftest.err
2791 rm -f conftest.er1
2792 cat conftest.err >&5
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); } &&
2795 { ac_try='test -z "$ac_cxx_werror_flag"
2796 || test ! -s conftest.err'
2797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2798 (eval $ac_try) 2>&5
2799 ac_status=$?
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); }; } &&
2802 { ac_try='test -s conftest.$ac_objext'
2803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2804 (eval $ac_try) 2>&5
2805 ac_status=$?
2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807 (exit $ac_status); }; }; then
2808 ac_cv_prog_cxx_g=yes
2809 else
2810 echo "$as_me: failed program was:" >&5
2811 sed 's/^/| /' conftest.$ac_ext >&5
2813 ac_cv_prog_cxx_g=no
2815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2817 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2818 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2819 if test "$ac_test_CXXFLAGS" = set; then
2820 CXXFLAGS=$ac_save_CXXFLAGS
2821 elif test $ac_cv_prog_cxx_g = yes; then
2822 if test "$GXX" = yes; then
2823 CXXFLAGS="-g -O2"
2824 else
2825 CXXFLAGS="-g"
2827 else
2828 if test "$GXX" = yes; then
2829 CXXFLAGS="-O2"
2830 else
2831 CXXFLAGS=
2834 for ac_declaration in \
2835 '' \
2836 'extern "C" void std::exit (int) throw (); using std::exit;' \
2837 'extern "C" void std::exit (int); using std::exit;' \
2838 'extern "C" void exit (int) throw ();' \
2839 'extern "C" void exit (int);' \
2840 'void exit (int);'
2842 cat >conftest.$ac_ext <<_ACEOF
2843 /* confdefs.h. */
2844 _ACEOF
2845 cat confdefs.h >>conftest.$ac_ext
2846 cat >>conftest.$ac_ext <<_ACEOF
2847 /* end confdefs.h. */
2848 $ac_declaration
2849 #include <stdlib.h>
2851 main ()
2853 exit (42);
2855 return 0;
2857 _ACEOF
2858 rm -f conftest.$ac_objext
2859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2860 (eval $ac_compile) 2>conftest.er1
2861 ac_status=$?
2862 grep -v '^ *+' conftest.er1 >conftest.err
2863 rm -f conftest.er1
2864 cat conftest.err >&5
2865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866 (exit $ac_status); } &&
2867 { ac_try='test -z "$ac_cxx_werror_flag"
2868 || test ! -s conftest.err'
2869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2870 (eval $ac_try) 2>&5
2871 ac_status=$?
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); }; } &&
2874 { ac_try='test -s conftest.$ac_objext'
2875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2876 (eval $ac_try) 2>&5
2877 ac_status=$?
2878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879 (exit $ac_status); }; }; then
2881 else
2882 echo "$as_me: failed program was:" >&5
2883 sed 's/^/| /' conftest.$ac_ext >&5
2885 continue
2887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2888 cat >conftest.$ac_ext <<_ACEOF
2889 /* confdefs.h. */
2890 _ACEOF
2891 cat confdefs.h >>conftest.$ac_ext
2892 cat >>conftest.$ac_ext <<_ACEOF
2893 /* end confdefs.h. */
2894 $ac_declaration
2896 main ()
2898 exit (42);
2900 return 0;
2902 _ACEOF
2903 rm -f conftest.$ac_objext
2904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2905 (eval $ac_compile) 2>conftest.er1
2906 ac_status=$?
2907 grep -v '^ *+' conftest.er1 >conftest.err
2908 rm -f conftest.er1
2909 cat conftest.err >&5
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); } &&
2912 { ac_try='test -z "$ac_cxx_werror_flag"
2913 || test ! -s conftest.err'
2914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2915 (eval $ac_try) 2>&5
2916 ac_status=$?
2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); }; } &&
2919 { ac_try='test -s conftest.$ac_objext'
2920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2921 (eval $ac_try) 2>&5
2922 ac_status=$?
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); }; }; then
2925 break
2926 else
2927 echo "$as_me: failed program was:" >&5
2928 sed 's/^/| /' conftest.$ac_ext >&5
2931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2932 done
2933 rm -f conftest*
2934 if test -n "$ac_declaration"; then
2935 echo '#ifdef __cplusplus' >>confdefs.h
2936 echo $ac_declaration >>confdefs.h
2937 echo '#endif' >>confdefs.h
2940 ac_ext=c
2941 ac_cpp='$CPP $CPPFLAGS'
2942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2946 CXXFLAGS="$save_CXXFLAGS"
2952 am__api_version="1.9"
2953 # Find a good install program. We prefer a C program (faster),
2954 # so one script is as good as another. But avoid the broken or
2955 # incompatible versions:
2956 # SysV /etc/install, /usr/sbin/install
2957 # SunOS /usr/etc/install
2958 # IRIX /sbin/install
2959 # AIX /bin/install
2960 # AmigaOS /C/install, which installs bootblocks on floppy discs
2961 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2962 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2963 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2964 # OS/2's system install, which has a completely different semantic
2965 # ./install, which can be erroneously created by make from ./install.sh.
2966 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2967 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2968 if test -z "$INSTALL"; then
2969 if test "${ac_cv_path_install+set}" = set; then
2970 echo $ECHO_N "(cached) $ECHO_C" >&6
2971 else
2972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973 for as_dir in $PATH
2975 IFS=$as_save_IFS
2976 test -z "$as_dir" && as_dir=.
2977 # Account for people who put trailing slashes in PATH elements.
2978 case $as_dir/ in
2979 ./ | .// | /cC/* | \
2980 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2981 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2982 /usr/ucb/* ) ;;
2984 # OSF1 and SCO ODT 3.0 have their own names for install.
2985 # Don't use installbsd from OSF since it installs stuff as root
2986 # by default.
2987 for ac_prog in ginstall scoinst install; do
2988 for ac_exec_ext in '' $ac_executable_extensions; do
2989 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2990 if test $ac_prog = install &&
2991 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2992 # AIX install. It has an incompatible calling convention.
2994 elif test $ac_prog = install &&
2995 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2996 # program-specific install script used by HP pwplus--don't use.
2998 else
2999 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3000 break 3
3003 done
3004 done
3006 esac
3007 done
3011 if test "${ac_cv_path_install+set}" = set; then
3012 INSTALL=$ac_cv_path_install
3013 else
3014 # As a last resort, use the slow shell script. We don't cache a
3015 # path for INSTALL within a source directory, because that will
3016 # break other packages using the cache if that directory is
3017 # removed, or if the path is relative.
3018 INSTALL=$ac_install_sh
3021 echo "$as_me:$LINENO: result: $INSTALL" >&5
3022 echo "${ECHO_T}$INSTALL" >&6
3024 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3025 # It thinks the first close brace ends the variable substitution.
3026 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3028 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3030 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3032 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3033 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3034 # Just in case
3035 sleep 1
3036 echo timestamp > conftest.file
3037 # Do `set' in a subshell so we don't clobber the current shell's
3038 # arguments. Must try -L first in case configure is actually a
3039 # symlink; some systems play weird games with the mod time of symlinks
3040 # (eg FreeBSD returns the mod time of the symlink's containing
3041 # directory).
3042 if (
3043 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3044 if test "$*" = "X"; then
3045 # -L didn't work.
3046 set X `ls -t $srcdir/configure conftest.file`
3048 rm -f conftest.file
3049 if test "$*" != "X $srcdir/configure conftest.file" \
3050 && test "$*" != "X conftest.file $srcdir/configure"; then
3052 # If neither matched, then we have a broken ls. This can happen
3053 # if, for instance, CONFIG_SHELL is bash and it inherits a
3054 # broken ls alias from the environment. This has actually
3055 # happened. Such a system could not be considered "sane".
3056 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
3057 alias in your environment" >&5
3058 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
3059 alias in your environment" >&2;}
3060 { (exit 1); exit 1; }; }
3063 test "$2" = conftest.file
3065 then
3066 # Ok.
3068 else
3069 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3070 Check your system clock" >&5
3071 echo "$as_me: error: newly created file is older than distributed files!
3072 Check your system clock" >&2;}
3073 { (exit 1); exit 1; }; }
3075 echo "$as_me:$LINENO: result: yes" >&5
3076 echo "${ECHO_T}yes" >&6
3077 test "$program_prefix" != NONE &&
3078 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3079 # Use a double $ so make ignores it.
3080 test "$program_suffix" != NONE &&
3081 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3082 # Double any \ or $. echo might interpret backslashes.
3083 # By default was `s,x,x', remove it if useless.
3084 cat <<\_ACEOF >conftest.sed
3085 s/[\\$]/&&/g;s/;s,x,x,$//
3086 _ACEOF
3087 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3088 rm conftest.sed
3090 # expand $ac_aux_dir to an absolute path
3091 am_aux_dir=`cd $ac_aux_dir && pwd`
3093 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3094 # Use eval to expand $SHELL
3095 if eval "$MISSING --run true"; then
3096 am_missing_run="$MISSING --run "
3097 else
3098 am_missing_run=
3099 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3100 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3103 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3104 # We used to keeping the `.' as first argument, in order to
3105 # allow $(mkdir_p) to be used without argument. As in
3106 # $(mkdir_p) $(somedir)
3107 # where $(somedir) is conditionally defined. However this is wrong
3108 # for two reasons:
3109 # 1. if the package is installed by a user who cannot write `.'
3110 # make install will fail,
3111 # 2. the above comment should most certainly read
3112 # $(mkdir_p) $(DESTDIR)$(somedir)
3113 # so it does not work when $(somedir) is undefined and
3114 # $(DESTDIR) is not.
3115 # To support the latter case, we have to write
3116 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3117 # so the `.' trick is pointless.
3118 mkdir_p='mkdir -p --'
3119 else
3120 # On NextStep and OpenStep, the `mkdir' command does not
3121 # recognize any option. It will interpret all options as
3122 # directories to create, and then abort because `.' already
3123 # exists.
3124 for d in ./-p ./--version;
3126 test -d $d && rmdir $d
3127 done
3128 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3129 if test -f "$ac_aux_dir/mkinstalldirs"; then
3130 mkdir_p='$(mkinstalldirs)'
3131 else
3132 mkdir_p='$(install_sh) -d'
3136 for ac_prog in gawk mawk nawk awk
3138 # Extract the first word of "$ac_prog", so it can be a program name with args.
3139 set dummy $ac_prog; ac_word=$2
3140 echo "$as_me:$LINENO: checking for $ac_word" >&5
3141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3142 if test "${ac_cv_prog_AWK+set}" = set; then
3143 echo $ECHO_N "(cached) $ECHO_C" >&6
3144 else
3145 if test -n "$AWK"; then
3146 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3147 else
3148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149 for as_dir in $PATH
3151 IFS=$as_save_IFS
3152 test -z "$as_dir" && as_dir=.
3153 for ac_exec_ext in '' $ac_executable_extensions; do
3154 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3155 ac_cv_prog_AWK="$ac_prog"
3156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3157 break 2
3159 done
3160 done
3164 AWK=$ac_cv_prog_AWK
3165 if test -n "$AWK"; then
3166 echo "$as_me:$LINENO: result: $AWK" >&5
3167 echo "${ECHO_T}$AWK" >&6
3168 else
3169 echo "$as_me:$LINENO: result: no" >&5
3170 echo "${ECHO_T}no" >&6
3173 test -n "$AWK" && break
3174 done
3176 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3177 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3178 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3179 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3180 echo $ECHO_N "(cached) $ECHO_C" >&6
3181 else
3182 cat >conftest.make <<\_ACEOF
3183 all:
3184 @echo 'ac_maketemp="$(MAKE)"'
3185 _ACEOF
3186 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3187 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3188 if test -n "$ac_maketemp"; then
3189 eval ac_cv_prog_make_${ac_make}_set=yes
3190 else
3191 eval ac_cv_prog_make_${ac_make}_set=no
3193 rm -f conftest.make
3195 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3196 echo "$as_me:$LINENO: result: yes" >&5
3197 echo "${ECHO_T}yes" >&6
3198 SET_MAKE=
3199 else
3200 echo "$as_me:$LINENO: result: no" >&5
3201 echo "${ECHO_T}no" >&6
3202 SET_MAKE="MAKE=${MAKE-make}"
3205 rm -rf .tst 2>/dev/null
3206 mkdir .tst 2>/dev/null
3207 if test -d .tst; then
3208 am__leading_dot=.
3209 else
3210 am__leading_dot=_
3212 rmdir .tst 2>/dev/null
3214 DEPDIR="${am__leading_dot}deps"
3216 ac_config_commands="$ac_config_commands depfiles"
3219 am_make=${MAKE-make}
3220 cat > confinc << 'END'
3221 am__doit:
3222 @echo done
3223 .PHONY: am__doit
3225 # If we don't find an include directive, just comment out the code.
3226 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3227 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3228 am__include="#"
3229 am__quote=
3230 _am_result=none
3231 # First try GNU make style include.
3232 echo "include confinc" > confmf
3233 # We grep out `Entering directory' and `Leaving directory'
3234 # messages which can occur if `w' ends up in MAKEFLAGS.
3235 # In particular we don't look at `^make:' because GNU make might
3236 # be invoked under some other name (usually "gmake"), in which
3237 # case it prints its new name instead of `make'.
3238 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3239 am__include=include
3240 am__quote=
3241 _am_result=GNU
3243 # Now try BSD make style include.
3244 if test "$am__include" = "#"; then
3245 echo '.include "confinc"' > confmf
3246 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3247 am__include=.include
3248 am__quote="\""
3249 _am_result=BSD
3254 echo "$as_me:$LINENO: result: $_am_result" >&5
3255 echo "${ECHO_T}$_am_result" >&6
3256 rm -f confinc confmf
3258 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3259 if test "${enable_dependency_tracking+set}" = set; then
3260 enableval="$enable_dependency_tracking"
3263 if test "x$enable_dependency_tracking" != xno; then
3264 am_depcomp="$ac_aux_dir/depcomp"
3265 AMDEPBACKSLASH='\'
3269 if test "x$enable_dependency_tracking" != xno; then
3270 AMDEP_TRUE=
3271 AMDEP_FALSE='#'
3272 else
3273 AMDEP_TRUE='#'
3274 AMDEP_FALSE=
3279 # test to see if srcdir already configured
3280 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3281 test -f $srcdir/config.status; then
3282 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3283 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3284 { (exit 1); exit 1; }; }
3287 # test whether we have cygpath
3288 if test -z "$CYGPATH_W"; then
3289 if (cygpath --version) >/dev/null 2>/dev/null; then
3290 CYGPATH_W='cygpath -w'
3291 else
3292 CYGPATH_W=echo
3297 # Define the identity of the package.
3298 PACKAGE='libjava'
3299 VERSION='version-unused'
3302 cat >>confdefs.h <<_ACEOF
3303 #define PACKAGE "$PACKAGE"
3304 _ACEOF
3307 cat >>confdefs.h <<_ACEOF
3308 #define VERSION "$VERSION"
3309 _ACEOF
3311 # Some tools Automake needs.
3313 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3316 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3319 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3322 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3325 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3327 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3329 # Installed binaries are usually stripped using `strip' when the user
3330 # run `make install-strip'. However `strip' might not be the right
3331 # tool to use in cross-compilation environments, therefore Automake
3332 # will honor the `STRIP' environment variable to overrule this program.
3333 if test "$cross_compiling" != no; then
3334 if test -n "$ac_tool_prefix"; then
3335 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3336 set dummy ${ac_tool_prefix}strip; ac_word=$2
3337 echo "$as_me:$LINENO: checking for $ac_word" >&5
3338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3339 if test "${ac_cv_prog_STRIP+set}" = set; then
3340 echo $ECHO_N "(cached) $ECHO_C" >&6
3341 else
3342 if test -n "$STRIP"; then
3343 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3344 else
3345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3346 for as_dir in $PATH
3348 IFS=$as_save_IFS
3349 test -z "$as_dir" && as_dir=.
3350 for ac_exec_ext in '' $ac_executable_extensions; do
3351 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3352 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3354 break 2
3356 done
3357 done
3361 STRIP=$ac_cv_prog_STRIP
3362 if test -n "$STRIP"; then
3363 echo "$as_me:$LINENO: result: $STRIP" >&5
3364 echo "${ECHO_T}$STRIP" >&6
3365 else
3366 echo "$as_me:$LINENO: result: no" >&5
3367 echo "${ECHO_T}no" >&6
3371 if test -z "$ac_cv_prog_STRIP"; then
3372 ac_ct_STRIP=$STRIP
3373 # Extract the first word of "strip", so it can be a program name with args.
3374 set dummy strip; ac_word=$2
3375 echo "$as_me:$LINENO: checking for $ac_word" >&5
3376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3377 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3378 echo $ECHO_N "(cached) $ECHO_C" >&6
3379 else
3380 if test -n "$ac_ct_STRIP"; then
3381 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3382 else
3383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3384 for as_dir in $PATH
3386 IFS=$as_save_IFS
3387 test -z "$as_dir" && as_dir=.
3388 for ac_exec_ext in '' $ac_executable_extensions; do
3389 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3390 ac_cv_prog_ac_ct_STRIP="strip"
3391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3392 break 2
3394 done
3395 done
3397 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3400 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3401 if test -n "$ac_ct_STRIP"; then
3402 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3403 echo "${ECHO_T}$ac_ct_STRIP" >&6
3404 else
3405 echo "$as_me:$LINENO: result: no" >&5
3406 echo "${ECHO_T}no" >&6
3409 STRIP=$ac_ct_STRIP
3410 else
3411 STRIP="$ac_cv_prog_STRIP"
3415 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3417 # We need awk for the "check" target. The system "awk" is bad on
3418 # some platforms.
3419 # Always define AMTAR for backward compatibility.
3421 AMTAR=${AMTAR-"${am_missing_run}tar"}
3423 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3428 depcc="$CC" am_compiler_list=
3430 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3431 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3432 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3433 echo $ECHO_N "(cached) $ECHO_C" >&6
3434 else
3435 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3436 # We make a subdir and do the tests there. Otherwise we can end up
3437 # making bogus files that we don't know about and never remove. For
3438 # instance it was reported that on HP-UX the gcc test will end up
3439 # making a dummy file named `D' -- because `-MD' means `put the output
3440 # in D'.
3441 mkdir conftest.dir
3442 # Copy depcomp to subdir because otherwise we won't find it if we're
3443 # using a relative directory.
3444 cp "$am_depcomp" conftest.dir
3445 cd conftest.dir
3446 # We will build objects and dependencies in a subdirectory because
3447 # it helps to detect inapplicable dependency modes. For instance
3448 # both Tru64's cc and ICC support -MD to output dependencies as a
3449 # side effect of compilation, but ICC will put the dependencies in
3450 # the current directory while Tru64 will put them in the object
3451 # directory.
3452 mkdir sub
3454 am_cv_CC_dependencies_compiler_type=none
3455 if test "$am_compiler_list" = ""; then
3456 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3458 for depmode in $am_compiler_list; do
3459 # Setup a source with many dependencies, because some compilers
3460 # like to wrap large dependency lists on column 80 (with \), and
3461 # we should not choose a depcomp mode which is confused by this.
3463 # We need to recreate these files for each test, as the compiler may
3464 # overwrite some of them when testing with obscure command lines.
3465 # This happens at least with the AIX C compiler.
3466 : > sub/conftest.c
3467 for i in 1 2 3 4 5 6; do
3468 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3469 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3470 # Solaris 8's {/usr,}/bin/sh.
3471 touch sub/conftst$i.h
3472 done
3473 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3475 case $depmode in
3476 nosideeffect)
3477 # after this tag, mechanisms are not by side-effect, so they'll
3478 # only be used when explicitly requested
3479 if test "x$enable_dependency_tracking" = xyes; then
3480 continue
3481 else
3482 break
3485 none) break ;;
3486 esac
3487 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3488 # mode. It turns out that the SunPro C++ compiler does not properly
3489 # handle `-M -o', and we need to detect this.
3490 if depmode=$depmode \
3491 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3492 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3493 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3494 >/dev/null 2>conftest.err &&
3495 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3496 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3497 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3498 # icc doesn't choke on unknown options, it will just issue warnings
3499 # or remarks (even with -Werror). So we grep stderr for any message
3500 # that says an option was ignored or not supported.
3501 # When given -MP, icc 7.0 and 7.1 complain thusly:
3502 # icc: Command line warning: ignoring option '-M'; no argument required
3503 # The diagnosis changed in icc 8.0:
3504 # icc: Command line remark: option '-MP' not supported
3505 if (grep 'ignoring option' conftest.err ||
3506 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3507 am_cv_CC_dependencies_compiler_type=$depmode
3508 break
3511 done
3513 cd ..
3514 rm -rf conftest.dir
3515 else
3516 am_cv_CC_dependencies_compiler_type=none
3520 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3521 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3522 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3527 test "x$enable_dependency_tracking" != xno \
3528 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3529 am__fastdepCC_TRUE=
3530 am__fastdepCC_FALSE='#'
3531 else
3532 am__fastdepCC_TRUE='#'
3533 am__fastdepCC_FALSE=
3537 depcc="$CXX" am_compiler_list=
3539 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3540 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3541 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3542 echo $ECHO_N "(cached) $ECHO_C" >&6
3543 else
3544 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3545 # We make a subdir and do the tests there. Otherwise we can end up
3546 # making bogus files that we don't know about and never remove. For
3547 # instance it was reported that on HP-UX the gcc test will end up
3548 # making a dummy file named `D' -- because `-MD' means `put the output
3549 # in D'.
3550 mkdir conftest.dir
3551 # Copy depcomp to subdir because otherwise we won't find it if we're
3552 # using a relative directory.
3553 cp "$am_depcomp" conftest.dir
3554 cd conftest.dir
3555 # We will build objects and dependencies in a subdirectory because
3556 # it helps to detect inapplicable dependency modes. For instance
3557 # both Tru64's cc and ICC support -MD to output dependencies as a
3558 # side effect of compilation, but ICC will put the dependencies in
3559 # the current directory while Tru64 will put them in the object
3560 # directory.
3561 mkdir sub
3563 am_cv_CXX_dependencies_compiler_type=none
3564 if test "$am_compiler_list" = ""; then
3565 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3567 for depmode in $am_compiler_list; do
3568 # Setup a source with many dependencies, because some compilers
3569 # like to wrap large dependency lists on column 80 (with \), and
3570 # we should not choose a depcomp mode which is confused by this.
3572 # We need to recreate these files for each test, as the compiler may
3573 # overwrite some of them when testing with obscure command lines.
3574 # This happens at least with the AIX C compiler.
3575 : > sub/conftest.c
3576 for i in 1 2 3 4 5 6; do
3577 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3578 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3579 # Solaris 8's {/usr,}/bin/sh.
3580 touch sub/conftst$i.h
3581 done
3582 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3584 case $depmode in
3585 nosideeffect)
3586 # after this tag, mechanisms are not by side-effect, so they'll
3587 # only be used when explicitly requested
3588 if test "x$enable_dependency_tracking" = xyes; then
3589 continue
3590 else
3591 break
3594 none) break ;;
3595 esac
3596 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3597 # mode. It turns out that the SunPro C++ compiler does not properly
3598 # handle `-M -o', and we need to detect this.
3599 if depmode=$depmode \
3600 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3601 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3602 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3603 >/dev/null 2>conftest.err &&
3604 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3605 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3606 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3607 # icc doesn't choke on unknown options, it will just issue warnings
3608 # or remarks (even with -Werror). So we grep stderr for any message
3609 # that says an option was ignored or not supported.
3610 # When given -MP, icc 7.0 and 7.1 complain thusly:
3611 # icc: Command line warning: ignoring option '-M'; no argument required
3612 # The diagnosis changed in icc 8.0:
3613 # icc: Command line remark: option '-MP' not supported
3614 if (grep 'ignoring option' conftest.err ||
3615 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3616 am_cv_CXX_dependencies_compiler_type=$depmode
3617 break
3620 done
3622 cd ..
3623 rm -rf conftest.dir
3624 else
3625 am_cv_CXX_dependencies_compiler_type=none
3629 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3630 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3631 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3636 test "x$enable_dependency_tracking" != xno \
3637 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3638 am__fastdepCXX_TRUE=
3639 am__fastdepCXX_FALSE='#'
3640 else
3641 am__fastdepCXX_TRUE='#'
3642 am__fastdepCXX_FALSE=
3648 if test -n "$ac_tool_prefix"; then
3649 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3650 set dummy ${ac_tool_prefix}as; ac_word=$2
3651 echo "$as_me:$LINENO: checking for $ac_word" >&5
3652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3653 if test "${ac_cv_prog_AS+set}" = set; then
3654 echo $ECHO_N "(cached) $ECHO_C" >&6
3655 else
3656 if test -n "$AS"; then
3657 ac_cv_prog_AS="$AS" # Let the user override the test.
3658 else
3659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660 for as_dir in $PATH
3662 IFS=$as_save_IFS
3663 test -z "$as_dir" && as_dir=.
3664 for ac_exec_ext in '' $ac_executable_extensions; do
3665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3666 ac_cv_prog_AS="${ac_tool_prefix}as"
3667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3668 break 2
3670 done
3671 done
3675 AS=$ac_cv_prog_AS
3676 if test -n "$AS"; then
3677 echo "$as_me:$LINENO: result: $AS" >&5
3678 echo "${ECHO_T}$AS" >&6
3679 else
3680 echo "$as_me:$LINENO: result: no" >&5
3681 echo "${ECHO_T}no" >&6
3685 if test -z "$ac_cv_prog_AS"; then
3686 ac_ct_AS=$AS
3687 # Extract the first word of "as", so it can be a program name with args.
3688 set dummy as; ac_word=$2
3689 echo "$as_me:$LINENO: checking for $ac_word" >&5
3690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3691 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3692 echo $ECHO_N "(cached) $ECHO_C" >&6
3693 else
3694 if test -n "$ac_ct_AS"; then
3695 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3696 else
3697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3698 for as_dir in $PATH
3700 IFS=$as_save_IFS
3701 test -z "$as_dir" && as_dir=.
3702 for ac_exec_ext in '' $ac_executable_extensions; do
3703 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3704 ac_cv_prog_ac_ct_AS="as"
3705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3706 break 2
3708 done
3709 done
3713 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3714 if test -n "$ac_ct_AS"; then
3715 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3716 echo "${ECHO_T}$ac_ct_AS" >&6
3717 else
3718 echo "$as_me:$LINENO: result: no" >&5
3719 echo "${ECHO_T}no" >&6
3722 AS=$ac_ct_AS
3723 else
3724 AS="$ac_cv_prog_AS"
3727 if test -n "$ac_tool_prefix"; then
3728 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3729 set dummy ${ac_tool_prefix}ar; ac_word=$2
3730 echo "$as_me:$LINENO: checking for $ac_word" >&5
3731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3732 if test "${ac_cv_prog_AR+set}" = set; then
3733 echo $ECHO_N "(cached) $ECHO_C" >&6
3734 else
3735 if test -n "$AR"; then
3736 ac_cv_prog_AR="$AR" # Let the user override the test.
3737 else
3738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3739 for as_dir in $PATH
3741 IFS=$as_save_IFS
3742 test -z "$as_dir" && as_dir=.
3743 for ac_exec_ext in '' $ac_executable_extensions; do
3744 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3745 ac_cv_prog_AR="${ac_tool_prefix}ar"
3746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3747 break 2
3749 done
3750 done
3754 AR=$ac_cv_prog_AR
3755 if test -n "$AR"; then
3756 echo "$as_me:$LINENO: result: $AR" >&5
3757 echo "${ECHO_T}$AR" >&6
3758 else
3759 echo "$as_me:$LINENO: result: no" >&5
3760 echo "${ECHO_T}no" >&6
3764 if test -z "$ac_cv_prog_AR"; then
3765 ac_ct_AR=$AR
3766 # Extract the first word of "ar", so it can be a program name with args.
3767 set dummy ar; ac_word=$2
3768 echo "$as_me:$LINENO: checking for $ac_word" >&5
3769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3770 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3771 echo $ECHO_N "(cached) $ECHO_C" >&6
3772 else
3773 if test -n "$ac_ct_AR"; then
3774 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3775 else
3776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3777 for as_dir in $PATH
3779 IFS=$as_save_IFS
3780 test -z "$as_dir" && as_dir=.
3781 for ac_exec_ext in '' $ac_executable_extensions; do
3782 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3783 ac_cv_prog_ac_ct_AR="ar"
3784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3785 break 2
3787 done
3788 done
3792 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3793 if test -n "$ac_ct_AR"; then
3794 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3795 echo "${ECHO_T}$ac_ct_AR" >&6
3796 else
3797 echo "$as_me:$LINENO: result: no" >&5
3798 echo "${ECHO_T}no" >&6
3801 AR=$ac_ct_AR
3802 else
3803 AR="$ac_cv_prog_AR"
3806 if test -n "$ac_tool_prefix"; then
3807 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3808 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3809 echo "$as_me:$LINENO: checking for $ac_word" >&5
3810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3811 if test "${ac_cv_prog_RANLIB+set}" = set; then
3812 echo $ECHO_N "(cached) $ECHO_C" >&6
3813 else
3814 if test -n "$RANLIB"; then
3815 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3816 else
3817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3818 for as_dir in $PATH
3820 IFS=$as_save_IFS
3821 test -z "$as_dir" && as_dir=.
3822 for ac_exec_ext in '' $ac_executable_extensions; do
3823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3824 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3826 break 2
3828 done
3829 done
3833 RANLIB=$ac_cv_prog_RANLIB
3834 if test -n "$RANLIB"; then
3835 echo "$as_me:$LINENO: result: $RANLIB" >&5
3836 echo "${ECHO_T}$RANLIB" >&6
3837 else
3838 echo "$as_me:$LINENO: result: no" >&5
3839 echo "${ECHO_T}no" >&6
3843 if test -z "$ac_cv_prog_RANLIB"; then
3844 ac_ct_RANLIB=$RANLIB
3845 # Extract the first word of "ranlib", so it can be a program name with args.
3846 set dummy ranlib; ac_word=$2
3847 echo "$as_me:$LINENO: checking for $ac_word" >&5
3848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3849 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3850 echo $ECHO_N "(cached) $ECHO_C" >&6
3851 else
3852 if test -n "$ac_ct_RANLIB"; then
3853 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3854 else
3855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3856 for as_dir in $PATH
3858 IFS=$as_save_IFS
3859 test -z "$as_dir" && as_dir=.
3860 for ac_exec_ext in '' $ac_executable_extensions; do
3861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3862 ac_cv_prog_ac_ct_RANLIB="ranlib"
3863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3864 break 2
3866 done
3867 done
3869 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3872 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3873 if test -n "$ac_ct_RANLIB"; then
3874 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3875 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3876 else
3877 echo "$as_me:$LINENO: result: no" >&5
3878 echo "${ECHO_T}no" >&6
3881 RANLIB=$ac_ct_RANLIB
3882 else
3883 RANLIB="$ac_cv_prog_RANLIB"
3887 # Find a good install program. We prefer a C program (faster),
3888 # so one script is as good as another. But avoid the broken or
3889 # incompatible versions:
3890 # SysV /etc/install, /usr/sbin/install
3891 # SunOS /usr/etc/install
3892 # IRIX /sbin/install
3893 # AIX /bin/install
3894 # AmigaOS /C/install, which installs bootblocks on floppy discs
3895 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3896 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3897 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3898 # OS/2's system install, which has a completely different semantic
3899 # ./install, which can be erroneously created by make from ./install.sh.
3900 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3901 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3902 if test -z "$INSTALL"; then
3903 if test "${ac_cv_path_install+set}" = set; then
3904 echo $ECHO_N "(cached) $ECHO_C" >&6
3905 else
3906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3907 for as_dir in $PATH
3909 IFS=$as_save_IFS
3910 test -z "$as_dir" && as_dir=.
3911 # Account for people who put trailing slashes in PATH elements.
3912 case $as_dir/ in
3913 ./ | .// | /cC/* | \
3914 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3915 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3916 /usr/ucb/* ) ;;
3918 # OSF1 and SCO ODT 3.0 have their own names for install.
3919 # Don't use installbsd from OSF since it installs stuff as root
3920 # by default.
3921 for ac_prog in ginstall scoinst install; do
3922 for ac_exec_ext in '' $ac_executable_extensions; do
3923 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3924 if test $ac_prog = install &&
3925 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3926 # AIX install. It has an incompatible calling convention.
3928 elif test $ac_prog = install &&
3929 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3930 # program-specific install script used by HP pwplus--don't use.
3932 else
3933 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3934 break 3
3937 done
3938 done
3940 esac
3941 done
3945 if test "${ac_cv_path_install+set}" = set; then
3946 INSTALL=$ac_cv_path_install
3947 else
3948 # As a last resort, use the slow shell script. We don't cache a
3949 # path for INSTALL within a source directory, because that will
3950 # break other packages using the cache if that directory is
3951 # removed, or if the path is relative.
3952 INSTALL=$ac_install_sh
3955 echo "$as_me:$LINENO: result: $INSTALL" >&5
3956 echo "${ECHO_T}$INSTALL" >&6
3958 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3959 # It thinks the first close brace ends the variable substitution.
3960 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3962 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3964 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3967 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3968 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3969 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3970 if test "${enable_maintainer_mode+set}" = set; then
3971 enableval="$enable_maintainer_mode"
3972 USE_MAINTAINER_MODE=$enableval
3973 else
3974 USE_MAINTAINER_MODE=no
3976 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3977 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3980 if test $USE_MAINTAINER_MODE = yes; then
3981 MAINTAINER_MODE_TRUE=
3982 MAINTAINER_MODE_FALSE='#'
3983 else
3984 MAINTAINER_MODE_TRUE='#'
3985 MAINTAINER_MODE_FALSE=
3988 MAINT=$MAINTAINER_MODE_TRUE
3994 # configure.host sets the following important variables
3995 # libgcj_cflags - host specific C compiler flags
3996 # libgcj_cxxflags - host specific C++ compiler flags
3997 # libgcj_javaflags - host specific Java compiler flags
3999 libgcj_cflags=
4000 libgcj_cxxflags=
4001 libgcj_javaflags=
4003 . ${srcdir}/configure.host
4005 LIBGCJ_CFLAGS="${libgcj_cflags}"
4006 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
4007 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
4008 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
4014 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
4018 # See if the user has requested runtime debugging.
4019 LIBGCJDEBUG="disable"
4021 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
4022 if test "${enable_libgcj_debug+set}" = set; then
4023 enableval="$enable_libgcj_debug"
4024 if test "$enable_libgcj_debug" = yes; then
4026 cat >>confdefs.h <<\_ACEOF
4027 #define DEBUG 1
4028 _ACEOF
4030 LIBGCJDEBUG="enable"
4034 # Determine which AWT peer libraries to build
4035 # Check whether --enable-java-awt or --disable-java-awt was given.
4036 if test "${enable_java_awt+set}" = set; then
4037 enableval="$enable_java_awt"
4041 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
4042 use_xlib_awt=""
4043 use_gtk_awt=""
4044 # The default toolkit to use is the first one specified.
4045 TOOLKIT=
4048 for peer in $peerlibs ; do
4049 case $peer in
4050 xlib)
4051 if test "$no_x" = yes; then
4052 echo "*** xlib peers requested but no X library available" 1>&2
4053 exit 1
4054 else
4055 # This code has bit-rotted a bit.
4056 echo "*** xlib peers can't currently be compiled -- disabling" 1>&2
4057 # use_xlib_awt="yes"
4058 # if test -z "$TOOLKIT"; then
4059 # TOOLKIT=gnu.awt.xlib.XToolkit
4060 # fi
4063 gtk)
4064 if test "$no_x" = yes; then
4065 echo "*** xlib peers requested but no X library available" 1>&2
4066 exit 1
4067 else
4068 use_gtk_awt=yes
4069 if test -z "$TOOLKIT"; then
4070 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
4075 use_xlib_awt=
4076 use_gtk_awt=
4077 break
4080 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
4081 exit 1
4082 esac
4083 done
4087 if test "$use_xlib_awt" = yes; then
4088 XLIB_AWT_TRUE=
4089 XLIB_AWT_FALSE='#'
4090 else
4091 XLIB_AWT_TRUE='#'
4092 XLIB_AWT_FALSE=
4097 if test "$use_gtk_awt" = yes; then
4098 GTK_AWT_TRUE=
4099 GTK_AWT_FALSE='#'
4100 else
4101 GTK_AWT_TRUE='#'
4102 GTK_AWT_FALSE=
4107 if test -z "${with_multisubdir}"; then
4108 builddotdot=.
4109 else
4110 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
4113 NATIVE=yes
4115 # Which gcj do we use?
4116 which_gcj=default
4117 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
4118 if test -n "${with_cross_host}"; then
4119 # We are being configured with a cross compiler. We can't
4120 # use ac_exeext, because that is for the target platform.
4121 NATIVE=no
4122 cross_host_exeext=
4123 case "${with_cross_host}" in
4124 *mingw* | *cygwin*)
4125 cross_host_exeext=.exe
4127 esac
4128 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
4129 if test x"$build_noncanonical" = x"$with_cross_host"; then
4130 # Ordinary cross (host!=target and host=build)
4131 which_gcj=built
4132 else
4133 # Canadian cross (host!=target and host!=build)
4134 which_gcj=cross
4136 else
4137 which_gcj=cross
4139 else
4140 # We are being configured with a native or crossed-native compiler
4141 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
4142 if test x"$build" = x"$host"; then
4143 # True native build (host=target and host=build)
4144 which_gcj=built
4145 else
4146 # Crossed-native build (host=target and host!=build)
4147 which_gcj=cross
4149 else
4150 which_gcj=path
4153 case "${which_gcj}" in
4154 built)
4155 GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
4156 GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
4157 ZIP='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/fastjar/fastjar'
4159 cross)
4160 if test "x${with_newlib}" = "xyes"; then
4161 # FIXME (comment): Why is this needed?
4162 GCC_UNWIND_INCLUDE=
4163 GCJ="${target_noncanonical}-gcj"
4164 else
4165 GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
4167 ZIP='$(target_noncanonical)-fastjar'
4168 GCJH='$(target_noncanonical)-gcjh'
4170 path)
4171 GCJ="gcj -B`${PWDCMD-pwd}`/"
4172 ## In this case, gcj is found outside the build tree. However, zip is
4173 ## found in the build tree.
4174 ZIP='$(top_builddir)/$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/fastjar'
4175 GCJH=gcjh
4177 esac
4182 # Create it, so that compile/link tests don't fail
4183 test -f libgcj.spec || touch libgcj.spec
4187 # Set up to configure Classpath.
4188 # FIXME: no supported way to pass args in autoconf.
4189 ac_configure_args="$ac_configure_args --disable-load-library"
4190 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
4191 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
4192 dir1=`cd $srcdir && pwd`
4193 dir2=`pwd`
4194 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
4195 ac_configure_args="$ac_configure_args --disable-core-jni"
4196 ac_configure_args="$ac_configure_args --disable-examples"
4197 ac_configure_args="$ac_configure_args --with-glibj=build"
4198 if test "$use_gtk_awt" != yes; then
4199 ac_configure_args="$ac_configure_args --disable-gtk-peer"
4202 # Only use libltdl for non-newlib builds.
4203 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
4204 case $enable_ltdl_convenience in
4205 no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
4206 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
4207 { (exit 1); exit 1; }; } ;;
4208 "") enable_ltdl_convenience=yes
4209 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
4210 esac
4211 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
4212 INCLTDL='-I${top_srcdir}/''libltdl'
4215 DIRLTDL=libltdl
4217 cat >>confdefs.h <<\_ACEOF
4218 #define USE_LTDL 1
4219 _ACEOF
4221 # Sigh. Libtool's macro doesn't do the right thing.
4222 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
4223 # FIXME: this is a hack.
4224 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
4225 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
4230 # Check whether --enable-shared or --disable-shared was given.
4231 if test "${enable_shared+set}" = set; then
4232 enableval="$enable_shared"
4233 p=${PACKAGE-default}
4234 case $enableval in
4235 yes) enable_shared=yes ;;
4236 no) enable_shared=no ;;
4238 enable_shared=no
4239 # Look at the argument we got. We use all the common list separators.
4240 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4241 for pkg in $enableval; do
4242 if test "X$pkg" = "X$p"; then
4243 enable_shared=yes
4245 done
4246 IFS="$ac_save_ifs"
4248 esac
4249 else
4250 enable_shared=yes
4252 # Check whether --enable-static or --disable-static was given.
4253 if test "${enable_static+set}" = set; then
4254 enableval="$enable_static"
4255 p=${PACKAGE-default}
4256 case $enableval in
4257 yes) enable_static=yes ;;
4258 no) enable_static=no ;;
4260 enable_static=no
4261 # Look at the argument we got. We use all the common list separators.
4262 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4263 for pkg in $enableval; do
4264 if test "X$pkg" = "X$p"; then
4265 enable_static=yes
4267 done
4268 IFS="$ac_save_ifs"
4270 esac
4271 else
4272 enable_static=yes
4274 # Check whether --enable-fast-install or --disable-fast-install was given.
4275 if test "${enable_fast_install+set}" = set; then
4276 enableval="$enable_fast_install"
4277 p=${PACKAGE-default}
4278 case $enableval in
4279 yes) enable_fast_install=yes ;;
4280 no) enable_fast_install=no ;;
4282 enable_fast_install=no
4283 # Look at the argument we got. We use all the common list separators.
4284 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4285 for pkg in $enableval; do
4286 if test "X$pkg" = "X$p"; then
4287 enable_fast_install=yes
4289 done
4290 IFS="$ac_save_ifs"
4292 esac
4293 else
4294 enable_fast_install=yes
4297 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4298 if test "${with_gnu_ld+set}" = set; then
4299 withval="$with_gnu_ld"
4300 test "$withval" = no || with_gnu_ld=yes
4301 else
4302 with_gnu_ld=no
4304 ac_prog=ld
4305 if test "$GCC" = yes; then
4306 # Check if gcc -print-prog-name=ld gives a path.
4307 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4308 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4309 case $host in
4310 *-*-mingw*)
4311 # gcc leaves a trailing carriage return which upsets mingw
4312 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4314 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4315 esac
4316 case $ac_prog in
4317 # Accept absolute paths.
4318 [\\/]* | [A-Za-z]:[\\/]*)
4319 re_direlt='/[^/][^/]*/\.\./'
4320 # Canonicalize the path of ld
4321 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4322 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4323 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4324 done
4325 test -z "$LD" && LD="$ac_prog"
4328 # If it fails, then pretend we aren't using GCC.
4329 ac_prog=ld
4332 # If it is relative, then search for the first ld in PATH.
4333 with_gnu_ld=unknown
4335 esac
4336 elif test "$with_gnu_ld" = yes; then
4337 echo "$as_me:$LINENO: checking for GNU ld" >&5
4338 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4339 else
4340 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4341 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4343 if test "${lt_cv_path_LD+set}" = set; then
4344 echo $ECHO_N "(cached) $ECHO_C" >&6
4345 else
4346 if test -z "$LD"; then
4347 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4348 for ac_dir in $PATH; do
4349 test -z "$ac_dir" && ac_dir=.
4350 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4351 lt_cv_path_LD="$ac_dir/$ac_prog"
4352 # Check to see if the program is GNU ld. I'd rather use --version,
4353 # but apparently some GNU ld's only accept -v.
4354 # Break only if it was the GNU/non-GNU ld that we prefer.
4355 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4356 test "$with_gnu_ld" != no && break
4357 else
4358 test "$with_gnu_ld" != yes && break
4361 done
4362 IFS="$ac_save_ifs"
4363 else
4364 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4368 LD="$lt_cv_path_LD"
4369 if test -n "$LD"; then
4370 echo "$as_me:$LINENO: result: $LD" >&5
4371 echo "${ECHO_T}$LD" >&6
4372 else
4373 echo "$as_me:$LINENO: result: no" >&5
4374 echo "${ECHO_T}no" >&6
4376 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4377 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4378 { (exit 1); exit 1; }; }
4379 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4380 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4381 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4382 echo $ECHO_N "(cached) $ECHO_C" >&6
4383 else
4384 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4385 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4386 lt_cv_prog_gnu_ld=yes
4387 else
4388 lt_cv_prog_gnu_ld=no
4391 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4392 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4393 with_gnu_ld=$lt_cv_prog_gnu_ld
4396 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4397 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4398 if test "${lt_cv_ld_reload_flag+set}" = set; then
4399 echo $ECHO_N "(cached) $ECHO_C" >&6
4400 else
4401 lt_cv_ld_reload_flag='-r'
4403 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4404 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4405 reload_flag=$lt_cv_ld_reload_flag
4406 test -n "$reload_flag" && reload_flag=" $reload_flag"
4408 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4409 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4410 if test "${lt_cv_path_NM+set}" = set; then
4411 echo $ECHO_N "(cached) $ECHO_C" >&6
4412 else
4413 if test -n "$NM"; then
4414 # Let the user override the test.
4415 lt_cv_path_NM="$NM"
4416 else
4417 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4418 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4419 test -z "$ac_dir" && ac_dir=.
4420 tmp_nm=$ac_dir/${ac_tool_prefix}nm
4421 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4422 # Check to see if the nm accepts a BSD-compat flag.
4423 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4424 # nm: unknown option "B" ignored
4425 # Tru64's nm complains that /dev/null is an invalid object file
4426 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4427 lt_cv_path_NM="$tmp_nm -B"
4428 break
4429 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4430 lt_cv_path_NM="$tmp_nm -p"
4431 break
4432 else
4433 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4434 continue # so that we can try to find one that supports BSD flags
4437 done
4438 IFS="$ac_save_ifs"
4439 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4443 NM="$lt_cv_path_NM"
4444 echo "$as_me:$LINENO: result: $NM" >&5
4445 echo "${ECHO_T}$NM" >&6
4447 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4448 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4449 if test "${lt_cv_deplibs_check_method+set}" = set; then
4450 echo $ECHO_N "(cached) $ECHO_C" >&6
4451 else
4452 lt_cv_file_magic_cmd='$MAGIC_CMD'
4453 lt_cv_file_magic_test_file=
4454 lt_cv_deplibs_check_method='unknown'
4455 # Need to set the preceding variable on all platforms that support
4456 # interlibrary dependencies.
4457 # 'none' -- dependencies not supported.
4458 # `unknown' -- same as none, but documents that we really don't know.
4459 # 'pass_all' -- all dependencies passed with no checks.
4460 # 'test_compile' -- check by making test program.
4461 # 'file_magic [regex]' -- check by looking for files in library path
4462 # which responds to the $file_magic_cmd with a given egrep regex.
4463 # If you have `file' or equivalent on your system and you're not sure
4464 # whether `pass_all' will *always* work, you probably want this one.
4466 case $host_os in
4467 aix*)
4468 lt_cv_deplibs_check_method=pass_all
4471 beos*)
4472 lt_cv_deplibs_check_method=pass_all
4475 bsdi4*)
4476 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4477 lt_cv_file_magic_cmd='/usr/bin/file -L'
4478 lt_cv_file_magic_test_file=/shlib/libc.so
4481 cygwin* | mingw* |pw32*)
4482 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4483 lt_cv_file_magic_cmd='$OBJDUMP -f'
4486 darwin* | rhapsody*)
4487 # this will be overwritten by pass_all, but leave it in just in case
4488 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4489 lt_cv_file_magic_cmd='/usr/bin/file -L'
4490 case "$host_os" in
4491 rhapsody* | darwin1.012)
4492 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
4494 *) # Darwin 1.3 on
4495 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4497 esac
4498 lt_cv_deplibs_check_method=pass_all
4501 freebsd* | kfreebsd*-gnu)
4502 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4503 case $host_cpu in
4504 i*86 )
4505 # Not sure whether the presence of OpenBSD here was a mistake.
4506 # Let's accept both of them until this is cleared up.
4507 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4508 lt_cv_file_magic_cmd=/usr/bin/file
4509 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4511 esac
4512 else
4513 lt_cv_deplibs_check_method=pass_all
4517 gnu*)
4518 lt_cv_deplibs_check_method=pass_all
4521 hpux10.20*|hpux11*)
4522 case $host_cpu in
4523 hppa*)
4524 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4525 lt_cv_file_magic_cmd=/usr/bin/file
4526 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4528 ia64*)
4529 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4530 lt_cv_file_magic_cmd=/usr/bin/file
4531 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4533 esac
4536 irix5* | irix6*)
4537 case $host_os in
4538 irix5*)
4539 # this will be overridden with pass_all, but let us keep it just in case
4540 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4543 case $LD in
4544 *-32|*"-32 ") libmagic=32-bit;;
4545 *-n32|*"-n32 ") libmagic=N32;;
4546 *-64|*"-64 ") libmagic=64-bit;;
4547 *) libmagic=never-match;;
4548 esac
4549 # this will be overridden with pass_all, but let us keep it just in case
4550 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4552 esac
4553 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4554 lt_cv_deplibs_check_method=pass_all
4557 # This must be Linux ELF.
4558 linux-gnu*)
4559 lt_cv_deplibs_check_method=pass_all
4562 netbsd* | knetbsd*-gnu)
4563 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4564 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4565 else
4566 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4570 newsos6)
4571 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4572 lt_cv_file_magic_cmd=/usr/bin/file
4573 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4576 osf3* | osf4* | osf5*)
4577 # this will be overridden with pass_all, but let us keep it just in case
4578 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4579 lt_cv_file_magic_test_file=/shlib/libc.so
4580 lt_cv_deplibs_check_method=pass_all
4583 sco3.2v5*)
4584 lt_cv_deplibs_check_method=pass_all
4587 solaris*)
4588 lt_cv_deplibs_check_method=pass_all
4589 lt_cv_file_magic_test_file=/lib/libc.so
4592 sysv5uw[78]* | sysv4*uw2*)
4593 lt_cv_deplibs_check_method=pass_all
4596 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4597 case $host_vendor in
4598 ncr)
4599 lt_cv_deplibs_check_method=pass_all
4601 motorola)
4602 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]'
4603 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4605 esac
4607 esac
4610 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4611 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4612 file_magic_cmd=$lt_cv_file_magic_cmd
4613 deplibs_check_method=$lt_cv_deplibs_check_method
4618 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4620 # find the maximum length of command line arguments
4621 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4622 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4623 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4624 echo $ECHO_N "(cached) $ECHO_C" >&6
4625 else
4627 teststring="ABCD"
4629 case $build_os in
4630 msdosdjgpp*)
4631 # On DJGPP, this test can blow up pretty badly due to problems in libc
4632 # (any single argument exceeding 2000 bytes causes a buffer overrun
4633 # during glob expansion). Even if it were fixed, the result of this
4634 # check would be larger than it should be.
4635 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4638 cygwin* | mingw*)
4639 # On Win9x/ME, this test blows up -- it succeeds, but takes
4640 # about 5 minutes as the teststring grows exponentially.
4641 # Worse, since 9x/ME are not pre-emptively multitasking,
4642 # you end up with a "frozen" computer, even though with patience
4643 # the test eventually succeeds (with a max line length of 256k).
4644 # Instead, let's just punt: use the minimum linelength reported by
4645 # all of the supported platforms: 8192 (on NT/2K/XP).
4646 lt_cv_sys_max_cmd_len=8192;
4649 amigaos*)
4650 # On AmigaOS with pdksh, this test takes hours, literally.
4651 # So we just punt and use a minimum line length of 8192.
4652 lt_cv_sys_max_cmd_len=8192;
4655 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4656 # This has been around since 386BSD, at least. Likely further.
4657 if test -x /sbin/sysctl; then
4658 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4659 elif test -x /usr/sbin/sysctl; then
4660 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4661 else
4662 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
4664 # And add a safety zone
4665 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4666 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4668 esac
4672 if test -n "$lt_cv_sys_max_cmd_len" ; then
4673 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4674 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4675 else
4676 echo "$as_me:$LINENO: result: none" >&5
4677 echo "${ECHO_T}none" >&6
4681 # Only perform the check for file, if the check method requires it
4682 case $deplibs_check_method in
4683 file_magic*)
4684 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4685 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4686 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4687 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4688 echo $ECHO_N "(cached) $ECHO_C" >&6
4689 else
4690 case $MAGIC_CMD in
4692 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4694 ?:/*)
4695 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4698 ac_save_MAGIC_CMD="$MAGIC_CMD"
4699 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4700 ac_dummy="/usr/bin:$PATH"
4701 for ac_dir in $ac_dummy; do
4702 test -z "$ac_dir" && ac_dir=.
4703 if test -f $ac_dir/${ac_tool_prefix}file; then
4704 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4705 if test -n "$file_magic_test_file"; then
4706 case $deplibs_check_method in
4707 "file_magic "*)
4708 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4709 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4710 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4711 egrep "$file_magic_regex" > /dev/null; then
4713 else
4714 cat <<EOF 1>&2
4716 *** Warning: the command libtool uses to detect shared libraries,
4717 *** $file_magic_cmd, produces output that libtool cannot recognize.
4718 *** The result is that libtool may fail to recognize shared libraries
4719 *** as such. This will affect the creation of libtool libraries that
4720 *** depend on shared libraries, but programs linked with such libtool
4721 *** libraries will work regardless of this problem. Nevertheless, you
4722 *** may want to report the problem to your system manager and/or to
4723 *** bug-libtool@gnu.org
4726 fi ;;
4727 esac
4729 break
4731 done
4732 IFS="$ac_save_ifs"
4733 MAGIC_CMD="$ac_save_MAGIC_CMD"
4735 esac
4738 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4739 if test -n "$MAGIC_CMD"; then
4740 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4741 echo "${ECHO_T}$MAGIC_CMD" >&6
4742 else
4743 echo "$as_me:$LINENO: result: no" >&5
4744 echo "${ECHO_T}no" >&6
4747 if test -z "$lt_cv_path_MAGIC_CMD"; then
4748 if test -n "$ac_tool_prefix"; then
4749 echo "$as_me:$LINENO: checking for file" >&5
4750 echo $ECHO_N "checking for file... $ECHO_C" >&6
4751 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4752 echo $ECHO_N "(cached) $ECHO_C" >&6
4753 else
4754 case $MAGIC_CMD in
4756 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4758 ?:/*)
4759 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4762 ac_save_MAGIC_CMD="$MAGIC_CMD"
4763 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4764 ac_dummy="/usr/bin:$PATH"
4765 for ac_dir in $ac_dummy; do
4766 test -z "$ac_dir" && ac_dir=.
4767 if test -f $ac_dir/file; then
4768 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4769 if test -n "$file_magic_test_file"; then
4770 case $deplibs_check_method in
4771 "file_magic "*)
4772 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4773 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4774 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4775 egrep "$file_magic_regex" > /dev/null; then
4777 else
4778 cat <<EOF 1>&2
4780 *** Warning: the command libtool uses to detect shared libraries,
4781 *** $file_magic_cmd, produces output that libtool cannot recognize.
4782 *** The result is that libtool may fail to recognize shared libraries
4783 *** as such. This will affect the creation of libtool libraries that
4784 *** depend on shared libraries, but programs linked with such libtool
4785 *** libraries will work regardless of this problem. Nevertheless, you
4786 *** may want to report the problem to your system manager and/or to
4787 *** bug-libtool@gnu.org
4790 fi ;;
4791 esac
4793 break
4795 done
4796 IFS="$ac_save_ifs"
4797 MAGIC_CMD="$ac_save_MAGIC_CMD"
4799 esac
4802 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4803 if test -n "$MAGIC_CMD"; then
4804 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4805 echo "${ECHO_T}$MAGIC_CMD" >&6
4806 else
4807 echo "$as_me:$LINENO: result: no" >&5
4808 echo "${ECHO_T}no" >&6
4811 else
4812 MAGIC_CMD=:
4818 esac
4820 if test -n "$ac_tool_prefix"; then
4821 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4822 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4823 echo "$as_me:$LINENO: checking for $ac_word" >&5
4824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4825 if test "${ac_cv_prog_RANLIB+set}" = set; then
4826 echo $ECHO_N "(cached) $ECHO_C" >&6
4827 else
4828 if test -n "$RANLIB"; then
4829 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4830 else
4831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4832 for as_dir in $PATH
4834 IFS=$as_save_IFS
4835 test -z "$as_dir" && as_dir=.
4836 for ac_exec_ext in '' $ac_executable_extensions; do
4837 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4838 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4840 break 2
4842 done
4843 done
4847 RANLIB=$ac_cv_prog_RANLIB
4848 if test -n "$RANLIB"; then
4849 echo "$as_me:$LINENO: result: $RANLIB" >&5
4850 echo "${ECHO_T}$RANLIB" >&6
4851 else
4852 echo "$as_me:$LINENO: result: no" >&5
4853 echo "${ECHO_T}no" >&6
4857 if test -z "$ac_cv_prog_RANLIB"; then
4858 ac_ct_RANLIB=$RANLIB
4859 # Extract the first word of "ranlib", so it can be a program name with args.
4860 set dummy ranlib; ac_word=$2
4861 echo "$as_me:$LINENO: checking for $ac_word" >&5
4862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4863 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4864 echo $ECHO_N "(cached) $ECHO_C" >&6
4865 else
4866 if test -n "$ac_ct_RANLIB"; then
4867 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4868 else
4869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870 for as_dir in $PATH
4872 IFS=$as_save_IFS
4873 test -z "$as_dir" && as_dir=.
4874 for ac_exec_ext in '' $ac_executable_extensions; do
4875 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4876 ac_cv_prog_ac_ct_RANLIB="ranlib"
4877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4878 break 2
4880 done
4881 done
4883 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4886 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4887 if test -n "$ac_ct_RANLIB"; then
4888 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4889 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4890 else
4891 echo "$as_me:$LINENO: result: no" >&5
4892 echo "${ECHO_T}no" >&6
4895 RANLIB=$ac_ct_RANLIB
4896 else
4897 RANLIB="$ac_cv_prog_RANLIB"
4900 if test -n "$ac_tool_prefix"; then
4901 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4902 set dummy ${ac_tool_prefix}strip; ac_word=$2
4903 echo "$as_me:$LINENO: checking for $ac_word" >&5
4904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4905 if test "${ac_cv_prog_STRIP+set}" = set; then
4906 echo $ECHO_N "(cached) $ECHO_C" >&6
4907 else
4908 if test -n "$STRIP"; then
4909 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4910 else
4911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4912 for as_dir in $PATH
4914 IFS=$as_save_IFS
4915 test -z "$as_dir" && as_dir=.
4916 for ac_exec_ext in '' $ac_executable_extensions; do
4917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4918 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4920 break 2
4922 done
4923 done
4927 STRIP=$ac_cv_prog_STRIP
4928 if test -n "$STRIP"; then
4929 echo "$as_me:$LINENO: result: $STRIP" >&5
4930 echo "${ECHO_T}$STRIP" >&6
4931 else
4932 echo "$as_me:$LINENO: result: no" >&5
4933 echo "${ECHO_T}no" >&6
4937 if test -z "$ac_cv_prog_STRIP"; then
4938 ac_ct_STRIP=$STRIP
4939 # Extract the first word of "strip", so it can be a program name with args.
4940 set dummy strip; ac_word=$2
4941 echo "$as_me:$LINENO: checking for $ac_word" >&5
4942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4943 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4944 echo $ECHO_N "(cached) $ECHO_C" >&6
4945 else
4946 if test -n "$ac_ct_STRIP"; then
4947 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4948 else
4949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4950 for as_dir in $PATH
4952 IFS=$as_save_IFS
4953 test -z "$as_dir" && as_dir=.
4954 for ac_exec_ext in '' $ac_executable_extensions; do
4955 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4956 ac_cv_prog_ac_ct_STRIP="strip"
4957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4958 break 2
4960 done
4961 done
4963 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4966 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4967 if test -n "$ac_ct_STRIP"; then
4968 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4969 echo "${ECHO_T}$ac_ct_STRIP" >&6
4970 else
4971 echo "$as_me:$LINENO: result: no" >&5
4972 echo "${ECHO_T}no" >&6
4975 STRIP=$ac_ct_STRIP
4976 else
4977 STRIP="$ac_cv_prog_STRIP"
4981 # Check for any special flags to pass to ltconfig.
4982 libtool_flags="--cache-file=$cache_file"
4983 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4984 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4985 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4986 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4987 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4990 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4991 if test "${enable_libtool_lock+set}" = set; then
4992 enableval="$enable_libtool_lock"
4995 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4996 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4999 # Check whether --with-pic or --without-pic was given.
5000 if test "${with_pic+set}" = set; then
5001 withval="$with_pic"
5002 pic_mode="$withval"
5003 else
5004 pic_mode=default
5006 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
5007 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
5009 # Some flags need to be propagated to the compiler or linker for good
5010 # libtool support.
5011 case $host in
5012 *-*-irix6*)
5013 # Find out which ABI we are using.
5014 echo '#line 5014 "configure"' > conftest.$ac_ext
5015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5016 (eval $ac_compile) 2>&5
5017 ac_status=$?
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); }; then
5020 if test "$lt_cv_prog_gnu_ld" = yes; then
5021 case `/usr/bin/file conftest.$ac_objext` in
5022 *32-bit*)
5023 LD="${LD-ld} -melf32bsmip"
5025 *N32*)
5026 LD="${LD-ld} -melf32bmipn32"
5028 *64-bit*)
5029 LD="${LD-ld} -melf64bmip"
5031 esac
5032 else
5033 case `/usr/bin/file conftest.$ac_objext` in
5034 *32-bit*)
5035 LD="${LD-ld} -32"
5037 *N32*)
5038 LD="${LD-ld} -n32"
5040 *64-bit*)
5041 LD="${LD-ld} -64"
5043 esac
5046 rm -rf conftest*
5049 ia64-*-hpux*)
5050 # Find out which ABI we are using.
5051 echo 'int i;' > conftest.$ac_ext
5052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5053 (eval $ac_compile) 2>&5
5054 ac_status=$?
5055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056 (exit $ac_status); }; then
5057 case "`/usr/bin/file conftest.o`" in
5058 *ELF-32*)
5059 HPUX_IA64_MODE="32"
5061 *ELF-64*)
5062 HPUX_IA64_MODE="64"
5064 esac
5066 rm -rf conftest*
5069 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5070 # Find out which ABI we are using.
5071 echo 'int i;' > conftest.$ac_ext
5072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5073 (eval $ac_compile) 2>&5
5074 ac_status=$?
5075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076 (exit $ac_status); }; then
5077 case "`/usr/bin/file conftest.o`" in
5078 *32-bit*)
5079 case $host in
5080 x86_64-*linux*)
5081 LD="${LD-ld} -m elf_i386"
5083 ppc64-*linux*|powerpc64-*linux*)
5084 LD="${LD-ld} -m elf32ppclinux"
5086 s390x-*linux*)
5087 LD="${LD-ld} -m elf_s390"
5089 sparc64-*linux*)
5090 LD="${LD-ld} -m elf32_sparc"
5092 esac
5094 *64-bit*)
5095 case $host in
5096 x86_64-*linux*)
5097 LD="${LD-ld} -m elf_x86_64"
5099 ppc*-*linux*|powerpc*-*linux*)
5100 LD="${LD-ld} -m elf64ppc"
5102 s390*-*linux*)
5103 LD="${LD-ld} -m elf64_s390"
5105 sparc*-*linux*)
5106 LD="${LD-ld} -m elf64_sparc"
5108 esac
5110 esac
5112 rm -rf conftest*
5115 *-*-sco3.2v5*)
5116 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5117 SAVE_CFLAGS="$CFLAGS"
5118 CFLAGS="$CFLAGS -belf"
5119 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5120 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5121 if test "${lt_cv_cc_needs_belf+set}" = set; then
5122 echo $ECHO_N "(cached) $ECHO_C" >&6
5123 else
5126 ac_ext=c
5127 ac_cpp='$CPP $CPPFLAGS'
5128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5132 if test x$gcc_no_link = xyes; then
5133 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5134 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5135 { (exit 1); exit 1; }; }
5137 cat >conftest.$ac_ext <<_ACEOF
5138 /* confdefs.h. */
5139 _ACEOF
5140 cat confdefs.h >>conftest.$ac_ext
5141 cat >>conftest.$ac_ext <<_ACEOF
5142 /* end confdefs.h. */
5145 main ()
5149 return 0;
5151 _ACEOF
5152 rm -f conftest.$ac_objext conftest$ac_exeext
5153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5154 (eval $ac_link) 2>conftest.er1
5155 ac_status=$?
5156 grep -v '^ *+' conftest.er1 >conftest.err
5157 rm -f conftest.er1
5158 cat conftest.err >&5
5159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5160 (exit $ac_status); } &&
5161 { ac_try='test -z "$ac_c_werror_flag"
5162 || test ! -s conftest.err'
5163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5164 (eval $ac_try) 2>&5
5165 ac_status=$?
5166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167 (exit $ac_status); }; } &&
5168 { ac_try='test -s conftest$ac_exeext'
5169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5170 (eval $ac_try) 2>&5
5171 ac_status=$?
5172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173 (exit $ac_status); }; }; then
5174 lt_cv_cc_needs_belf=yes
5175 else
5176 echo "$as_me: failed program was:" >&5
5177 sed 's/^/| /' conftest.$ac_ext >&5
5179 lt_cv_cc_needs_belf=no
5181 rm -f conftest.err conftest.$ac_objext \
5182 conftest$ac_exeext conftest.$ac_ext
5183 ac_ext=c
5184 ac_cpp='$CPP $CPPFLAGS'
5185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5190 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5191 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5192 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5193 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5194 CFLAGS="$SAVE_CFLAGS"
5199 esac
5202 # Save cache, so that ltconfig can load it
5203 cat >confcache <<\_ACEOF
5204 # This file is a shell script that caches the results of configure
5205 # tests run on this system so they can be shared between configure
5206 # scripts and configure runs, see configure's option --config-cache.
5207 # It is not useful on other systems. If it contains results you don't
5208 # want to keep, you may remove or edit it.
5210 # config.status only pays attention to the cache file if you give it
5211 # the --recheck option to rerun configure.
5213 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5214 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5215 # following values.
5217 _ACEOF
5219 # The following way of writing the cache mishandles newlines in values,
5220 # but we know of no workaround that is simple, portable, and efficient.
5221 # So, don't put newlines in cache variables' values.
5222 # Ultrix sh set writes to stderr and can't be redirected directly,
5223 # and sets the high bit in the cache file unless we assign to the vars.
5225 (set) 2>&1 |
5226 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5227 *ac_space=\ *)
5228 # `set' does not quote correctly, so add quotes (double-quote
5229 # substitution turns \\\\ into \\, and sed turns \\ into \).
5230 sed -n \
5231 "s/'/'\\\\''/g;
5232 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5235 # `set' quotes correctly as required by POSIX, so do not add quotes.
5236 sed -n \
5237 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5239 esac;
5241 sed '
5242 t clear
5243 : clear
5244 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5245 t end
5246 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5247 : end' >>confcache
5248 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5249 if test -w $cache_file; then
5250 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5251 cat confcache >$cache_file
5252 else
5253 echo "not updating unwritable cache $cache_file"
5256 rm -f confcache
5258 # Actually configure libtool. ac_aux_dir is where install-sh is found.
5259 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
5260 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5261 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5262 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5263 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5264 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
5265 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
5266 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
5267 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
5268 echo "$as_me: error: libtool configure failed" >&2;}
5269 { (exit 1); exit 1; }; }
5271 # Reload cache, that may have been modified by ltconfig
5272 if test -r "$cache_file"; then
5273 # Some versions of bash will fail to source /dev/null (special
5274 # files actually), so we avoid doing that.
5275 if test -f "$cache_file"; then
5276 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
5277 echo "$as_me: loading cache $cache_file" >&6;}
5278 case $cache_file in
5279 [\\/]* | ?:[\\/]* ) . $cache_file;;
5280 *) . ./$cache_file;;
5281 esac
5283 else
5284 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
5285 echo "$as_me: creating cache $cache_file" >&6;}
5286 >$cache_file
5290 # This can be used to rebuild libtool when needed
5291 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
5293 # Always use our own libtool.
5294 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5296 # Redirect the config.log output again, so that the ltconfig log is not
5297 # clobbered by the next message.
5298 exec 5>>./config.log
5300 ac_ext=cc
5301 ac_cpp='$CXXCPP $CPPFLAGS'
5302 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5303 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5304 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5305 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5306 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5307 if test -z "$CXXCPP"; then
5308 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5309 echo $ECHO_N "(cached) $ECHO_C" >&6
5310 else
5311 # Double quotes because CXXCPP needs to be expanded
5312 for CXXCPP in "$CXX -E" "/lib/cpp"
5314 ac_preproc_ok=false
5315 for ac_cxx_preproc_warn_flag in '' yes
5317 # Use a header file that comes with gcc, so configuring glibc
5318 # with a fresh cross-compiler works.
5319 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5320 # <limits.h> exists even on freestanding compilers.
5321 # On the NeXT, cc -E runs the code through the compiler's parser,
5322 # not just through cpp. "Syntax error" is here to catch this case.
5323 cat >conftest.$ac_ext <<_ACEOF
5324 /* confdefs.h. */
5325 _ACEOF
5326 cat confdefs.h >>conftest.$ac_ext
5327 cat >>conftest.$ac_ext <<_ACEOF
5328 /* end confdefs.h. */
5329 #ifdef __STDC__
5330 # include <limits.h>
5331 #else
5332 # include <assert.h>
5333 #endif
5334 Syntax error
5335 _ACEOF
5336 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5337 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5338 ac_status=$?
5339 grep -v '^ *+' conftest.er1 >conftest.err
5340 rm -f conftest.er1
5341 cat conftest.err >&5
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 (exit $ac_status); } >/dev/null; then
5344 if test -s conftest.err; then
5345 ac_cpp_err=$ac_cxx_preproc_warn_flag
5346 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5347 else
5348 ac_cpp_err=
5350 else
5351 ac_cpp_err=yes
5353 if test -z "$ac_cpp_err"; then
5355 else
5356 echo "$as_me: failed program was:" >&5
5357 sed 's/^/| /' conftest.$ac_ext >&5
5359 # Broken: fails on valid input.
5360 continue
5362 rm -f conftest.err conftest.$ac_ext
5364 # OK, works on sane cases. Now check whether non-existent headers
5365 # can be detected and how.
5366 cat >conftest.$ac_ext <<_ACEOF
5367 /* confdefs.h. */
5368 _ACEOF
5369 cat confdefs.h >>conftest.$ac_ext
5370 cat >>conftest.$ac_ext <<_ACEOF
5371 /* end confdefs.h. */
5372 #include <ac_nonexistent.h>
5373 _ACEOF
5374 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5375 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5376 ac_status=$?
5377 grep -v '^ *+' conftest.er1 >conftest.err
5378 rm -f conftest.er1
5379 cat conftest.err >&5
5380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381 (exit $ac_status); } >/dev/null; then
5382 if test -s conftest.err; then
5383 ac_cpp_err=$ac_cxx_preproc_warn_flag
5384 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5385 else
5386 ac_cpp_err=
5388 else
5389 ac_cpp_err=yes
5391 if test -z "$ac_cpp_err"; then
5392 # Broken: success on invalid input.
5393 continue
5394 else
5395 echo "$as_me: failed program was:" >&5
5396 sed 's/^/| /' conftest.$ac_ext >&5
5398 # Passes both tests.
5399 ac_preproc_ok=:
5400 break
5402 rm -f conftest.err conftest.$ac_ext
5404 done
5405 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5406 rm -f conftest.err conftest.$ac_ext
5407 if $ac_preproc_ok; then
5408 break
5411 done
5412 ac_cv_prog_CXXCPP=$CXXCPP
5415 CXXCPP=$ac_cv_prog_CXXCPP
5416 else
5417 ac_cv_prog_CXXCPP=$CXXCPP
5419 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5420 echo "${ECHO_T}$CXXCPP" >&6
5421 ac_preproc_ok=false
5422 for ac_cxx_preproc_warn_flag in '' yes
5424 # Use a header file that comes with gcc, so configuring glibc
5425 # with a fresh cross-compiler works.
5426 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5427 # <limits.h> exists even on freestanding compilers.
5428 # On the NeXT, cc -E runs the code through the compiler's parser,
5429 # not just through cpp. "Syntax error" is here to catch this case.
5430 cat >conftest.$ac_ext <<_ACEOF
5431 /* confdefs.h. */
5432 _ACEOF
5433 cat confdefs.h >>conftest.$ac_ext
5434 cat >>conftest.$ac_ext <<_ACEOF
5435 /* end confdefs.h. */
5436 #ifdef __STDC__
5437 # include <limits.h>
5438 #else
5439 # include <assert.h>
5440 #endif
5441 Syntax error
5442 _ACEOF
5443 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5444 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5445 ac_status=$?
5446 grep -v '^ *+' conftest.er1 >conftest.err
5447 rm -f conftest.er1
5448 cat conftest.err >&5
5449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450 (exit $ac_status); } >/dev/null; then
5451 if test -s conftest.err; then
5452 ac_cpp_err=$ac_cxx_preproc_warn_flag
5453 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5454 else
5455 ac_cpp_err=
5457 else
5458 ac_cpp_err=yes
5460 if test -z "$ac_cpp_err"; then
5462 else
5463 echo "$as_me: failed program was:" >&5
5464 sed 's/^/| /' conftest.$ac_ext >&5
5466 # Broken: fails on valid input.
5467 continue
5469 rm -f conftest.err conftest.$ac_ext
5471 # OK, works on sane cases. Now check whether non-existent headers
5472 # can be detected and how.
5473 cat >conftest.$ac_ext <<_ACEOF
5474 /* confdefs.h. */
5475 _ACEOF
5476 cat confdefs.h >>conftest.$ac_ext
5477 cat >>conftest.$ac_ext <<_ACEOF
5478 /* end confdefs.h. */
5479 #include <ac_nonexistent.h>
5480 _ACEOF
5481 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5482 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5483 ac_status=$?
5484 grep -v '^ *+' conftest.er1 >conftest.err
5485 rm -f conftest.er1
5486 cat conftest.err >&5
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); } >/dev/null; then
5489 if test -s conftest.err; then
5490 ac_cpp_err=$ac_cxx_preproc_warn_flag
5491 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5492 else
5493 ac_cpp_err=
5495 else
5496 ac_cpp_err=yes
5498 if test -z "$ac_cpp_err"; then
5499 # Broken: success on invalid input.
5500 continue
5501 else
5502 echo "$as_me: failed program was:" >&5
5503 sed 's/^/| /' conftest.$ac_ext >&5
5505 # Passes both tests.
5506 ac_preproc_ok=:
5507 break
5509 rm -f conftest.err conftest.$ac_ext
5511 done
5512 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5513 rm -f conftest.err conftest.$ac_ext
5514 if $ac_preproc_ok; then
5516 else
5517 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5518 See \`config.log' for more details." >&5
5519 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5520 See \`config.log' for more details." >&2;}
5521 { (exit 1); exit 1; }; }
5524 ac_ext=c
5525 ac_cpp='$CPP $CPPFLAGS'
5526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5532 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
5533 lt_save_CC="$CC"
5534 lt_save_CFLAGS="$CFLAGS"
5535 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
5536 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5537 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5538 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5539 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5540 deplibs_check_method="$deplibs_check_method" \
5541 file_magic_cmd="$file_magic_cmd" \
5542 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5543 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
5544 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
5545 echo "$as_me: error: libtool tag configuration failed" >&2;}
5546 { (exit 1); exit 1; }; }
5547 CC="$lt_save_CC"
5548 CFLAGS="$lt_save_CFLAGS"
5550 # Redirect the config.log output again, so that the ltconfig log is not
5551 # clobbered by the next message.
5552 exec 5>>./config.log
5560 for ac_prog in gcj
5562 # Extract the first word of "$ac_prog", so it can be a program name with args.
5563 set dummy $ac_prog; ac_word=$2
5564 echo "$as_me:$LINENO: checking for $ac_word" >&5
5565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5566 if test "${ac_cv_prog_GCJ+set}" = set; then
5567 echo $ECHO_N "(cached) $ECHO_C" >&6
5568 else
5569 if test -n "$GCJ"; then
5570 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5571 else
5572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5573 for as_dir in $PATH
5575 IFS=$as_save_IFS
5576 test -z "$as_dir" && as_dir=.
5577 for ac_exec_ext in '' $ac_executable_extensions; do
5578 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5579 ac_cv_prog_GCJ="$ac_prog"
5580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5581 break 2
5583 done
5584 done
5588 GCJ=$ac_cv_prog_GCJ
5589 if test -n "$GCJ"; then
5590 echo "$as_me:$LINENO: result: $GCJ" >&5
5591 echo "${ECHO_T}$GCJ" >&6
5592 else
5593 echo "$as_me:$LINENO: result: no" >&5
5594 echo "${ECHO_T}no" >&6
5597 test -n "$GCJ" && break
5598 done
5599 test -n "$GCJ" || GCJ="gcj"
5601 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
5602 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
5603 { (exit 1); exit 1; }; }
5604 if test "x${GCJFLAGS-unset}" = xunset; then
5605 GCJFLAGS="-g -O2"
5609 depcc="$GCJ" am_compiler_list='gcc3 gcc'
5611 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5612 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5613 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
5614 echo $ECHO_N "(cached) $ECHO_C" >&6
5615 else
5616 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5617 # We make a subdir and do the tests there. Otherwise we can end up
5618 # making bogus files that we don't know about and never remove. For
5619 # instance it was reported that on HP-UX the gcc test will end up
5620 # making a dummy file named `D' -- because `-MD' means `put the output
5621 # in D'.
5622 mkdir conftest.dir
5623 # Copy depcomp to subdir because otherwise we won't find it if we're
5624 # using a relative directory.
5625 cp "$am_depcomp" conftest.dir
5626 cd conftest.dir
5627 # We will build objects and dependencies in a subdirectory because
5628 # it helps to detect inapplicable dependency modes. For instance
5629 # both Tru64's cc and ICC support -MD to output dependencies as a
5630 # side effect of compilation, but ICC will put the dependencies in
5631 # the current directory while Tru64 will put them in the object
5632 # directory.
5633 mkdir sub
5635 am_cv_GCJ_dependencies_compiler_type=none
5636 if test "$am_compiler_list" = ""; then
5637 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5639 for depmode in $am_compiler_list; do
5640 # Setup a source with many dependencies, because some compilers
5641 # like to wrap large dependency lists on column 80 (with \), and
5642 # we should not choose a depcomp mode which is confused by this.
5644 # We need to recreate these files for each test, as the compiler may
5645 # overwrite some of them when testing with obscure command lines.
5646 # This happens at least with the AIX C compiler.
5647 : > sub/conftest.c
5648 for i in 1 2 3 4 5 6; do
5649 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5650 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5651 # Solaris 8's {/usr,}/bin/sh.
5652 touch sub/conftst$i.h
5653 done
5654 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5656 case $depmode in
5657 nosideeffect)
5658 # after this tag, mechanisms are not by side-effect, so they'll
5659 # only be used when explicitly requested
5660 if test "x$enable_dependency_tracking" = xyes; then
5661 continue
5662 else
5663 break
5666 none) break ;;
5667 esac
5668 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5669 # mode. It turns out that the SunPro C++ compiler does not properly
5670 # handle `-M -o', and we need to detect this.
5671 if depmode=$depmode \
5672 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5673 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5674 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5675 >/dev/null 2>conftest.err &&
5676 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5677 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5678 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5679 # icc doesn't choke on unknown options, it will just issue warnings
5680 # or remarks (even with -Werror). So we grep stderr for any message
5681 # that says an option was ignored or not supported.
5682 # When given -MP, icc 7.0 and 7.1 complain thusly:
5683 # icc: Command line warning: ignoring option '-M'; no argument required
5684 # The diagnosis changed in icc 8.0:
5685 # icc: Command line remark: option '-MP' not supported
5686 if (grep 'ignoring option' conftest.err ||
5687 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5688 am_cv_GCJ_dependencies_compiler_type=$depmode
5689 break
5692 done
5694 cd ..
5695 rm -rf conftest.dir
5696 else
5697 am_cv_GCJ_dependencies_compiler_type=none
5701 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
5702 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
5703 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
5708 test "x$enable_dependency_tracking" != xno \
5709 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
5710 am__fastdepGCJ_TRUE=
5711 am__fastdepGCJ_FALSE='#'
5712 else
5713 am__fastdepGCJ_TRUE='#'
5714 am__fastdepGCJ_FALSE=
5720 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
5721 lt_save_CC="$CC"
5722 lt_save_CFLAGS="$CFLAGS"
5723 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
5724 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5725 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5726 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5727 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5728 deplibs_check_method="$deplibs_check_method" \
5729 file_magic_cmd="$file_magic_cmd" \
5730 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5731 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
5732 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
5733 echo "$as_me: error: libtool tag configuration failed" >&2;}
5734 { (exit 1); exit 1; }; }
5735 CC="$lt_save_CC"
5736 CFLAGS="$lt_save_CFLAGS"
5738 # Redirect the config.log output again, so that the ltconfig log is not
5739 # clobbered by the next message.
5740 exec 5>>./config.log
5744 if test "x$CC" != xcc; then
5745 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
5746 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
5747 else
5748 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
5749 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
5751 set dummy $CC; ac_cc=`echo $2 |
5752 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5753 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
5754 echo $ECHO_N "(cached) $ECHO_C" >&6
5755 else
5756 cat >conftest.$ac_ext <<_ACEOF
5757 /* confdefs.h. */
5758 _ACEOF
5759 cat confdefs.h >>conftest.$ac_ext
5760 cat >>conftest.$ac_ext <<_ACEOF
5761 /* end confdefs.h. */
5764 main ()
5768 return 0;
5770 _ACEOF
5771 # Make sure it works both with $CC and with simple cc.
5772 # We do the test twice because some compilers refuse to overwrite an
5773 # existing .o file with -o, though they will create one.
5774 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
5775 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5776 (eval $ac_try) 2>&5
5777 ac_status=$?
5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); } &&
5780 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5781 (eval $ac_try) 2>&5
5782 ac_status=$?
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); };
5785 then
5786 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5787 if test "x$CC" != xcc; then
5788 # Test first that cc exists at all.
5789 if { ac_try='cc -c conftest.$ac_ext >&5'
5790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5791 (eval $ac_try) 2>&5
5792 ac_status=$?
5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 (exit $ac_status); }; }; then
5795 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
5796 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5797 (eval $ac_try) 2>&5
5798 ac_status=$?
5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800 (exit $ac_status); } &&
5801 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5802 (eval $ac_try) 2>&5
5803 ac_status=$?
5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805 (exit $ac_status); };
5806 then
5807 # cc works too.
5809 else
5810 # cc exists but doesn't like -o.
5811 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5815 else
5816 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5818 rm -f conftest*
5821 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
5822 echo "$as_me:$LINENO: result: yes" >&5
5823 echo "${ECHO_T}yes" >&6
5824 else
5825 echo "$as_me:$LINENO: result: no" >&5
5826 echo "${ECHO_T}no" >&6
5828 cat >>confdefs.h <<\_ACEOF
5829 #define NO_MINUS_C_MINUS_O 1
5830 _ACEOF
5834 # FIXME: we rely on the cache variable name because
5835 # there is no other way.
5836 set dummy $CC
5837 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5838 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
5839 # Losing compiler, so override with the script.
5840 # FIXME: It is wrong to rewrite CC.
5841 # But if we don't then we get into trouble of one sort or another.
5842 # A longer-term fix would be to have automake use am__CC in this case,
5843 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5844 CC="$am_aux_dir/compile $CC"
5850 subdirs="$subdirs classpath libltdl"
5853 # The -no-testsuite modules omit the test subdir.
5856 if test -d $srcdir/testsuite; then
5857 TESTSUBDIR_TRUE=
5858 TESTSUBDIR_FALSE='#'
5859 else
5860 TESTSUBDIR_TRUE='#'
5861 TESTSUBDIR_FALSE=
5865 # Should the runtime set system properties by examining the
5866 # environment variable GCJ_PROPERTIES?
5867 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
5868 if test "${enable_getenv_properties+set}" = set; then
5869 enableval="$enable_getenv_properties"
5873 # Whether GCJ_PROPERTIES is used depends on the target.
5874 if test -z "$enable_getenv_properties"; then
5875 enable_getenv_properties=${enable_getenv_properties_default-yes}
5877 if test "$enable_getenv_properties" = no; then
5879 cat >>confdefs.h <<\_ACEOF
5880 #define DISABLE_GETENV_PROPERTIES 1
5881 _ACEOF
5885 # Whether we should use arguments to main()
5886 if test -z "$enable_main_args"; then
5887 enable_main_args=${enable_main_args_default-yes}
5889 if test "$enable_main_args" = no; then
5891 cat >>confdefs.h <<\_ACEOF
5892 #define DISABLE_MAIN_ARGS 1
5893 _ACEOF
5898 # Should we use hashtable-based synchronization?
5899 # Currently works only for Linux X86/ia64
5900 # Typically faster and more space-efficient
5901 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
5902 if test "${enable_hash_synchronization+set}" = set; then
5903 enableval="$enable_hash_synchronization"
5907 if test -z "$enable_hash_synchronization"; then
5908 enable_hash_synchronization=$enable_hash_synchronization_default
5912 # Check whether --with-java-home or --without-java-home was given.
5913 if test "${with_java_home+set}" = set; then
5914 withval="$with_java_home"
5915 JAVA_HOME="${withval}"
5916 else
5917 JAVA_HOME=""
5921 if test ! -z "$JAVA_HOME"; then
5922 JAVA_HOME_SET_TRUE=
5923 JAVA_HOME_SET_FALSE='#'
5924 else
5925 JAVA_HOME_SET_TRUE='#'
5926 JAVA_HOME_SET_FALSE=
5931 # What is the native OS API for MinGW?
5933 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
5934 if test "${with_win32_nlsapi+set}" = set; then
5935 withval="$with_win32_nlsapi"
5936 case "${withval}" in
5937 ansi) with_win32_nlsapi=ansi ;;
5938 unicows) with_win32_nlsapi=unicows ;;
5939 unicode) with_win32_nlsapi=unicode ;;
5940 *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
5941 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
5942 { (exit 1); exit 1; }; } ;;
5943 esac
5944 else
5945 with_win32_nlsapi=ansi
5948 case "${with_win32_nlsapi}" in
5949 unicows | unicode)
5951 cat >>confdefs.h <<\_ACEOF
5952 #define MINGW_LIBGCJ_UNICODE 1
5953 _ACEOF
5956 esac
5958 # configure.host sets slow_pthread_self if the synchronization code should
5959 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
5960 if test "${slow_pthread_self}" = "yes"; then
5962 cat >>confdefs.h <<\_ACEOF
5963 #define SLOW_PTHREAD_SELF 1
5964 _ACEOF
5968 # Check for gc debugging. This option is handled both here and in the GC.
5969 # Check whether --enable-gc-debug or --disable-gc-debug was given.
5970 if test "${enable_gc_debug+set}" = set; then
5971 enableval="$enable_gc_debug"
5972 if test "$enable_gc_debug" = "yes"; then
5974 cat >>confdefs.h <<\_ACEOF
5975 #define LIBGCJ_GC_DEBUG 1
5976 _ACEOF
5981 # See if the user has the interpreter included.
5982 # Check whether --enable-interpreter or --disable-interpreter was given.
5983 if test "${enable_interpreter+set}" = set; then
5984 enableval="$enable_interpreter"
5985 if test "$enable_interpreter" = yes; then
5986 # This can also be set in configure.host.
5987 libgcj_interpreter=yes
5988 elif test "$enable_interpreter" = no; then
5989 libgcj_interpreter=no
5993 if test "$libgcj_interpreter" = yes; then
5995 cat >>confdefs.h <<\_ACEOF
5996 #define INTERPRETER 1
5997 _ACEOF
6000 INTERPRETER="$libgcj_interpreter"
6003 echo "$as_me:$LINENO: checking for exception model to use" >&5
6004 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
6005 ac_ext=cc
6006 ac_cpp='$CXXCPP $CPPFLAGS'
6007 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6008 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6009 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6011 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
6012 if test "${enable_sjlj_exceptions+set}" = set; then
6013 enableval="$enable_sjlj_exceptions"
6015 else
6016 cat > conftest.$ac_ext << EOF
6017 #line 6017 "configure"
6018 struct S { ~S(); };
6019 void bar();
6020 void foo()
6022 S s;
6023 bar();
6026 old_CXXFLAGS="$CXXFLAGS"
6027 CXXFLAGS=-S
6028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6029 (eval $ac_compile) 2>&5
6030 ac_status=$?
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); }; then
6033 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
6034 enable_sjlj_exceptions=yes
6035 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
6036 enable_sjlj_exceptions=no
6039 CXXFLAGS="$old_CXXFLAGS"
6040 rm -f conftest*
6042 if test x$enable_sjlj_exceptions = xyes; then
6044 cat >>confdefs.h <<\_ACEOF
6045 #define SJLJ_EXCEPTIONS 1
6046 _ACEOF
6048 ac_exception_model_name=sjlj
6049 elif test x$enable_sjlj_exceptions = xno; then
6050 ac_exception_model_name="call frame"
6051 else
6052 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
6053 echo "$as_me: error: unable to detect exception model" >&2;}
6054 { (exit 1); exit 1; }; }
6056 ac_ext=c
6057 ac_cpp='$CPP $CPPFLAGS'
6058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6062 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
6063 echo "${ECHO_T}$ac_exception_model_name" >&6
6065 # If we are non using SJLJ exceptions, and this host does not have support
6066 # for unwinding from a signal handler, enable checked dereferences and divides.
6067 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
6068 CHECKREFSPEC=-fcheck-references
6069 DIVIDESPEC=-fuse-divide-subroutine
6070 EXCEPTIONSPEC=
6073 # See if the user wants to disable java.net. This is the mildly
6074 # ugly way that we admit that target-side configuration sucks.
6075 # Check whether --enable-java-net or --disable-java-net was given.
6076 if test "${enable_java_net+set}" = set; then
6077 enableval="$enable_java_net"
6081 # Whether java.net is built by default can depend on the target.
6082 if test -z "$enable_java_net"; then
6083 enable_java_net=${enable_java_net_default-yes}
6085 if test "$enable_java_net" = no; then
6087 cat >>confdefs.h <<\_ACEOF
6088 #define DISABLE_JAVA_NET 1
6089 _ACEOF
6093 # See if the user wants to configure without libffi. Some
6094 # architectures don't support it, and default values are set in
6095 # configure.host.
6097 # Check whether --with-libffi or --without-libffi was given.
6098 if test "${with_libffi+set}" = set; then
6099 withval="$with_libffi"
6101 else
6102 with_libffi=${with_libffi_default-yes}
6105 LIBFFI=
6106 LIBFFIINCS=
6107 if test "$with_libffi" != no; then
6109 cat >>confdefs.h <<\_ACEOF
6110 #define USE_LIBFFI 1
6111 _ACEOF
6113 LIBFFI=../libffi/libffi_convenience.la
6114 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
6119 # See if the user wants to disable JVMPI support.
6120 # Check whether --enable-jvmpi or --disable-jvmpi was given.
6121 if test "${enable_jvmpi+set}" = set; then
6122 enableval="$enable_jvmpi"
6126 if test "$enable_jvmpi" != no; then
6128 cat >>confdefs.h <<\_ACEOF
6129 #define ENABLE_JVMPI 1
6130 _ACEOF
6134 # If the target is an eCos system, use the appropriate eCos
6135 # I/O routines.
6136 # FIXME: this should not be a local option but a global target
6137 # system; at present there is no eCos target.
6138 TARGET_ECOS=${PROCESS-"no"}
6140 # Check whether --with-ecos or --without-ecos was given.
6141 if test "${with_ecos+set}" = set; then
6142 withval="$with_ecos"
6143 TARGET_ECOS="$with_ecos"
6147 supply_backtrace=no
6149 PLATFORM_INNER_NAT_HDRS=
6150 case "$TARGET_ECOS" in
6151 no) case "$host" in
6152 *mingw*)
6153 PLATFORM=Win32
6154 PLATFORMNET=Win32
6155 PLATFORMH=win32.h
6157 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
6158 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
6159 LD_PROG=`$CC --print-prog-name=ld`
6160 LD_VERSION=`$LD_PROG --version`
6161 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
6162 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
6163 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
6164 LD_OK="ok"
6165 else
6166 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
6167 LD_OK="ok"
6170 if test "x$LD_OK" != x; then
6171 echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
6172 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
6173 else
6174 echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
6175 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
6176 { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
6177 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
6179 cat >>confdefs.h <<\_ACEOF
6180 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
6181 _ACEOF
6186 PLATFORM=Posix
6187 PLATFORMNET=Posix
6188 PLATFORMH=posix.h
6189 PLATFORM_INNER_NAT_HDRS='java/lang/ConcreteProcess$$ProcessManager.h'
6191 esac
6194 PLATFORM=Ecos
6195 PLATFORMNET=NoNet
6197 cat >>confdefs.h <<\_ACEOF
6198 #define ECOS 1
6199 _ACEOF
6201 PLATFORMH=posix.h
6203 esac
6205 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
6208 ac_ext=c
6209 ac_cpp='$CPP $CPPFLAGS'
6210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6213 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6214 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6215 # On Suns, sometimes $CPP names a directory.
6216 if test -n "$CPP" && test -d "$CPP"; then
6217 CPP=
6219 if test -z "$CPP"; then
6220 if test "${ac_cv_prog_CPP+set}" = set; then
6221 echo $ECHO_N "(cached) $ECHO_C" >&6
6222 else
6223 # Double quotes because CPP needs to be expanded
6224 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6226 ac_preproc_ok=false
6227 for ac_c_preproc_warn_flag in '' yes
6229 # Use a header file that comes with gcc, so configuring glibc
6230 # with a fresh cross-compiler works.
6231 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6232 # <limits.h> exists even on freestanding compilers.
6233 # On the NeXT, cc -E runs the code through the compiler's parser,
6234 # not just through cpp. "Syntax error" is here to catch this case.
6235 cat >conftest.$ac_ext <<_ACEOF
6236 /* confdefs.h. */
6237 _ACEOF
6238 cat confdefs.h >>conftest.$ac_ext
6239 cat >>conftest.$ac_ext <<_ACEOF
6240 /* end confdefs.h. */
6241 #ifdef __STDC__
6242 # include <limits.h>
6243 #else
6244 # include <assert.h>
6245 #endif
6246 Syntax error
6247 _ACEOF
6248 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6249 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6250 ac_status=$?
6251 grep -v '^ *+' conftest.er1 >conftest.err
6252 rm -f conftest.er1
6253 cat conftest.err >&5
6254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255 (exit $ac_status); } >/dev/null; then
6256 if test -s conftest.err; then
6257 ac_cpp_err=$ac_c_preproc_warn_flag
6258 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6259 else
6260 ac_cpp_err=
6262 else
6263 ac_cpp_err=yes
6265 if test -z "$ac_cpp_err"; then
6267 else
6268 echo "$as_me: failed program was:" >&5
6269 sed 's/^/| /' conftest.$ac_ext >&5
6271 # Broken: fails on valid input.
6272 continue
6274 rm -f conftest.err conftest.$ac_ext
6276 # OK, works on sane cases. Now check whether non-existent headers
6277 # can be detected and how.
6278 cat >conftest.$ac_ext <<_ACEOF
6279 /* confdefs.h. */
6280 _ACEOF
6281 cat confdefs.h >>conftest.$ac_ext
6282 cat >>conftest.$ac_ext <<_ACEOF
6283 /* end confdefs.h. */
6284 #include <ac_nonexistent.h>
6285 _ACEOF
6286 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6287 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6288 ac_status=$?
6289 grep -v '^ *+' conftest.er1 >conftest.err
6290 rm -f conftest.er1
6291 cat conftest.err >&5
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); } >/dev/null; then
6294 if test -s conftest.err; then
6295 ac_cpp_err=$ac_c_preproc_warn_flag
6296 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6297 else
6298 ac_cpp_err=
6300 else
6301 ac_cpp_err=yes
6303 if test -z "$ac_cpp_err"; then
6304 # Broken: success on invalid input.
6305 continue
6306 else
6307 echo "$as_me: failed program was:" >&5
6308 sed 's/^/| /' conftest.$ac_ext >&5
6310 # Passes both tests.
6311 ac_preproc_ok=:
6312 break
6314 rm -f conftest.err conftest.$ac_ext
6316 done
6317 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6318 rm -f conftest.err conftest.$ac_ext
6319 if $ac_preproc_ok; then
6320 break
6323 done
6324 ac_cv_prog_CPP=$CPP
6327 CPP=$ac_cv_prog_CPP
6328 else
6329 ac_cv_prog_CPP=$CPP
6331 echo "$as_me:$LINENO: result: $CPP" >&5
6332 echo "${ECHO_T}$CPP" >&6
6333 ac_preproc_ok=false
6334 for ac_c_preproc_warn_flag in '' yes
6336 # Use a header file that comes with gcc, so configuring glibc
6337 # with a fresh cross-compiler works.
6338 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6339 # <limits.h> exists even on freestanding compilers.
6340 # On the NeXT, cc -E runs the code through the compiler's parser,
6341 # not just through cpp. "Syntax error" is here to catch this case.
6342 cat >conftest.$ac_ext <<_ACEOF
6343 /* confdefs.h. */
6344 _ACEOF
6345 cat confdefs.h >>conftest.$ac_ext
6346 cat >>conftest.$ac_ext <<_ACEOF
6347 /* end confdefs.h. */
6348 #ifdef __STDC__
6349 # include <limits.h>
6350 #else
6351 # include <assert.h>
6352 #endif
6353 Syntax error
6354 _ACEOF
6355 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6356 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6357 ac_status=$?
6358 grep -v '^ *+' conftest.er1 >conftest.err
6359 rm -f conftest.er1
6360 cat conftest.err >&5
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); } >/dev/null; then
6363 if test -s conftest.err; then
6364 ac_cpp_err=$ac_c_preproc_warn_flag
6365 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6366 else
6367 ac_cpp_err=
6369 else
6370 ac_cpp_err=yes
6372 if test -z "$ac_cpp_err"; then
6374 else
6375 echo "$as_me: failed program was:" >&5
6376 sed 's/^/| /' conftest.$ac_ext >&5
6378 # Broken: fails on valid input.
6379 continue
6381 rm -f conftest.err conftest.$ac_ext
6383 # OK, works on sane cases. Now check whether non-existent headers
6384 # can be detected and how.
6385 cat >conftest.$ac_ext <<_ACEOF
6386 /* confdefs.h. */
6387 _ACEOF
6388 cat confdefs.h >>conftest.$ac_ext
6389 cat >>conftest.$ac_ext <<_ACEOF
6390 /* end confdefs.h. */
6391 #include <ac_nonexistent.h>
6392 _ACEOF
6393 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6394 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6395 ac_status=$?
6396 grep -v '^ *+' conftest.er1 >conftest.err
6397 rm -f conftest.er1
6398 cat conftest.err >&5
6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400 (exit $ac_status); } >/dev/null; then
6401 if test -s conftest.err; then
6402 ac_cpp_err=$ac_c_preproc_warn_flag
6403 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6404 else
6405 ac_cpp_err=
6407 else
6408 ac_cpp_err=yes
6410 if test -z "$ac_cpp_err"; then
6411 # Broken: success on invalid input.
6412 continue
6413 else
6414 echo "$as_me: failed program was:" >&5
6415 sed 's/^/| /' conftest.$ac_ext >&5
6417 # Passes both tests.
6418 ac_preproc_ok=:
6419 break
6421 rm -f conftest.err conftest.$ac_ext
6423 done
6424 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6425 rm -f conftest.err conftest.$ac_ext
6426 if $ac_preproc_ok; then
6428 else
6429 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6430 See \`config.log' for more details." >&5
6431 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6432 See \`config.log' for more details." >&2;}
6433 { (exit 1); exit 1; }; }
6436 ac_ext=c
6437 ac_cpp='$CPP $CPPFLAGS'
6438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6443 echo "$as_me:$LINENO: checking for egrep" >&5
6444 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6445 if test "${ac_cv_prog_egrep+set}" = set; then
6446 echo $ECHO_N "(cached) $ECHO_C" >&6
6447 else
6448 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6449 then ac_cv_prog_egrep='grep -E'
6450 else ac_cv_prog_egrep='egrep'
6453 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6454 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6455 EGREP=$ac_cv_prog_egrep
6458 cat >conftest.$ac_ext <<_ACEOF
6459 /* confdefs.h. */
6460 _ACEOF
6461 cat confdefs.h >>conftest.$ac_ext
6462 cat >>conftest.$ac_ext <<_ACEOF
6463 /* end confdefs.h. */
6464 #include <stdint.h>
6466 _ACEOF
6467 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6468 $EGREP "uint32_t" >/dev/null 2>&1; then
6470 cat >>confdefs.h <<\_ACEOF
6471 #define HAVE_INT32_DEFINED 1
6472 _ACEOF
6475 rm -f conftest*
6477 cat >conftest.$ac_ext <<_ACEOF
6478 /* confdefs.h. */
6479 _ACEOF
6480 cat confdefs.h >>conftest.$ac_ext
6481 cat >>conftest.$ac_ext <<_ACEOF
6482 /* end confdefs.h. */
6483 #include <inttypes.h>
6485 _ACEOF
6486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6487 $EGREP "uint32_t" >/dev/null 2>&1; then
6489 cat >>confdefs.h <<\_ACEOF
6490 #define HAVE_INT32_DEFINED 1
6491 _ACEOF
6494 rm -f conftest*
6496 cat >conftest.$ac_ext <<_ACEOF
6497 /* confdefs.h. */
6498 _ACEOF
6499 cat confdefs.h >>conftest.$ac_ext
6500 cat >>conftest.$ac_ext <<_ACEOF
6501 /* end confdefs.h. */
6502 #include <sys/types.h>
6504 _ACEOF
6505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6506 $EGREP "u_int32_t" >/dev/null 2>&1; then
6508 cat >>confdefs.h <<\_ACEOF
6509 #define HAVE_BSD_INT32_DEFINED 1
6510 _ACEOF
6513 rm -f conftest*
6515 cat >conftest.$ac_ext <<_ACEOF
6516 /* confdefs.h. */
6517 _ACEOF
6518 cat confdefs.h >>conftest.$ac_ext
6519 cat >>conftest.$ac_ext <<_ACEOF
6520 /* end confdefs.h. */
6521 #include <sys/config.h>
6523 _ACEOF
6524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6525 $EGREP "u_int32_t" >/dev/null 2>&1; then
6527 cat >>confdefs.h <<\_ACEOF
6528 #define HAVE_BSD_INT32_DEFINED 1
6529 _ACEOF
6532 rm -f conftest*
6537 if test "$PLATFORM" = Win32; then
6538 USING_WIN32_PLATFORM_TRUE=
6539 USING_WIN32_PLATFORM_FALSE='#'
6540 else
6541 USING_WIN32_PLATFORM_TRUE='#'
6542 USING_WIN32_PLATFORM_FALSE=
6547 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
6548 USING_POSIX_PLATFORM_TRUE=
6549 USING_POSIX_PLATFORM_FALSE='#'
6550 else
6551 USING_POSIX_PLATFORM_TRUE='#'
6552 USING_POSIX_PLATFORM_FALSE=
6556 case "$host" in
6557 *-darwin*) DARWIN_CRT=true ;;
6558 *) DARWIN_CRT=false ;;
6559 esac
6562 if $DARWIN_CRT; then
6563 USING_DARWIN_CRT_TRUE=
6564 USING_DARWIN_CRT_FALSE='#'
6565 else
6566 USING_DARWIN_CRT_TRUE='#'
6567 USING_DARWIN_CRT_FALSE=
6571 # These may not be defined in a non-ANS conformant embedded system.
6572 # FIXME: Should these case a runtime exception in that case?
6573 cat >conftest.$ac_ext <<_ACEOF
6574 /* confdefs.h. */
6575 _ACEOF
6576 cat confdefs.h >>conftest.$ac_ext
6577 cat >>conftest.$ac_ext <<_ACEOF
6578 /* end confdefs.h. */
6579 #include <time.h>
6581 _ACEOF
6582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6583 $EGREP "mktime" >/dev/null 2>&1; then
6585 cat >>confdefs.h <<\_ACEOF
6586 #define HAVE_MKTIME 1
6587 _ACEOF
6590 rm -f conftest*
6592 cat >conftest.$ac_ext <<_ACEOF
6593 /* confdefs.h. */
6594 _ACEOF
6595 cat confdefs.h >>conftest.$ac_ext
6596 cat >>conftest.$ac_ext <<_ACEOF
6597 /* end confdefs.h. */
6598 #include <time.h>
6600 _ACEOF
6601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6602 $EGREP "localtime" >/dev/null 2>&1; then
6604 cat >>confdefs.h <<\_ACEOF
6605 #define HAVE_LOCALTIME 1
6606 _ACEOF
6609 rm -f conftest*
6612 # Create the subdirectory for natFile.cc, or the attempt
6613 # to create the link will fail.
6614 test -d java || mkdir java
6615 test -d java/io || mkdir java/io
6616 test -d gnu || mkdir gnu
6617 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
6620 # Likewise for ConcreteProcess.java and natConcreteProcess.cc.
6621 test -d java/lang || mkdir java/lang
6622 ac_config_links="$ac_config_links java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java"
6624 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
6627 # Likewise for natInetAddress.cc and natVMNetworkInterface.cc.
6628 test -d java/net || mkdir java/net
6629 ac_config_links="$ac_config_links java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc"
6631 ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
6634 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
6635 test -d gnu/java || mkdir gnu/java
6636 test -d gnu/java/net || mkdir gnu/java/net
6637 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
6639 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
6642 # Likewise for natPipeImpl.cc and natSelectorImpl.cc.
6643 test -d gnu/java/nio || mkdir gnu/java/nio
6644 ac_config_links="$ac_config_links gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc"
6646 ac_config_links="$ac_config_links gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc"
6648 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
6649 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
6652 case "${host}" in
6653 *mingw*)
6654 SYSTEMSPEC="-lgdi32 -lws2_32"
6655 if test "${with_win32_nlsapi}" = "unicows"; then
6656 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
6660 SYSTEMSPEC=
6662 esac
6665 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
6669 # Check whether --with-system-zlib or --without-system-zlib was given.
6670 if test "${with_system_zlib+set}" = set; then
6671 withval="$with_system_zlib"
6674 ZLIBSPEC=
6676 ZLIBTESTSPEC=
6679 echo "$as_me:$LINENO: checking for X" >&5
6680 echo $ECHO_N "checking for X... $ECHO_C" >&6
6683 # Check whether --with-x or --without-x was given.
6684 if test "${with_x+set}" = set; then
6685 withval="$with_x"
6688 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6689 if test "x$with_x" = xno; then
6690 # The user explicitly disabled X.
6691 have_x=disabled
6692 else
6693 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6694 # Both variables are already set.
6695 have_x=yes
6696 else
6697 if test "${ac_cv_have_x+set}" = set; then
6698 echo $ECHO_N "(cached) $ECHO_C" >&6
6699 else
6700 # One or both of the vars are not set, and there is no cached value.
6701 ac_x_includes=no ac_x_libraries=no
6702 rm -fr conftest.dir
6703 if mkdir conftest.dir; then
6704 cd conftest.dir
6705 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6706 cat >Imakefile <<'_ACEOF'
6707 acfindx:
6708 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6709 _ACEOF
6710 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6711 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6712 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6713 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6714 for ac_extension in a so sl; do
6715 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6716 test -f $ac_im_libdir/libX11.$ac_extension; then
6717 ac_im_usrlibdir=$ac_im_libdir; break
6719 done
6720 # Screen out bogus values from the imake configuration. They are
6721 # bogus both because they are the default anyway, and because
6722 # using them would break gcc on systems where it needs fixed includes.
6723 case $ac_im_incroot in
6724 /usr/include) ;;
6725 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6726 esac
6727 case $ac_im_usrlibdir in
6728 /usr/lib | /lib) ;;
6729 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6730 esac
6732 cd ..
6733 rm -fr conftest.dir
6736 # Standard set of common directories for X headers.
6737 # Check X11 before X11Rn because it is often a symlink to the current release.
6738 ac_x_header_dirs='
6739 /usr/X11/include
6740 /usr/X11R6/include
6741 /usr/X11R5/include
6742 /usr/X11R4/include
6744 /usr/include/X11
6745 /usr/include/X11R6
6746 /usr/include/X11R5
6747 /usr/include/X11R4
6749 /usr/local/X11/include
6750 /usr/local/X11R6/include
6751 /usr/local/X11R5/include
6752 /usr/local/X11R4/include
6754 /usr/local/include/X11
6755 /usr/local/include/X11R6
6756 /usr/local/include/X11R5
6757 /usr/local/include/X11R4
6759 /usr/X386/include
6760 /usr/x386/include
6761 /usr/XFree86/include/X11
6763 /usr/include
6764 /usr/local/include
6765 /usr/unsupported/include
6766 /usr/athena/include
6767 /usr/local/x11r5/include
6768 /usr/lpp/Xamples/include
6770 /usr/openwin/include
6771 /usr/openwin/share/include'
6773 if test "$ac_x_includes" = no; then
6774 # Guess where to find include files, by looking for Intrinsic.h.
6775 # First, try using that file with no special directory specified.
6776 cat >conftest.$ac_ext <<_ACEOF
6777 /* confdefs.h. */
6778 _ACEOF
6779 cat confdefs.h >>conftest.$ac_ext
6780 cat >>conftest.$ac_ext <<_ACEOF
6781 /* end confdefs.h. */
6782 #include <X11/Intrinsic.h>
6783 _ACEOF
6784 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6785 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6786 ac_status=$?
6787 grep -v '^ *+' conftest.er1 >conftest.err
6788 rm -f conftest.er1
6789 cat conftest.err >&5
6790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6791 (exit $ac_status); } >/dev/null; then
6792 if test -s conftest.err; then
6793 ac_cpp_err=$ac_c_preproc_warn_flag
6794 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6795 else
6796 ac_cpp_err=
6798 else
6799 ac_cpp_err=yes
6801 if test -z "$ac_cpp_err"; then
6802 # We can compile using X headers with no special include directory.
6803 ac_x_includes=
6804 else
6805 echo "$as_me: failed program was:" >&5
6806 sed 's/^/| /' conftest.$ac_ext >&5
6808 for ac_dir in $ac_x_header_dirs; do
6809 if test -r "$ac_dir/X11/Intrinsic.h"; then
6810 ac_x_includes=$ac_dir
6811 break
6813 done
6815 rm -f conftest.err conftest.$ac_ext
6816 fi # $ac_x_includes = no
6818 if test "$ac_x_libraries" = no; then
6819 # Check for the libraries.
6820 # See if we find them without any special options.
6821 # Don't add to $LIBS permanently.
6822 ac_save_LIBS=$LIBS
6823 LIBS="-lXt $LIBS"
6824 if test x$gcc_no_link = xyes; then
6825 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6826 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6827 { (exit 1); exit 1; }; }
6829 cat >conftest.$ac_ext <<_ACEOF
6830 /* confdefs.h. */
6831 _ACEOF
6832 cat confdefs.h >>conftest.$ac_ext
6833 cat >>conftest.$ac_ext <<_ACEOF
6834 /* end confdefs.h. */
6835 #include <X11/Intrinsic.h>
6837 main ()
6839 XtMalloc (0)
6841 return 0;
6843 _ACEOF
6844 rm -f conftest.$ac_objext conftest$ac_exeext
6845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6846 (eval $ac_link) 2>conftest.er1
6847 ac_status=$?
6848 grep -v '^ *+' conftest.er1 >conftest.err
6849 rm -f conftest.er1
6850 cat conftest.err >&5
6851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852 (exit $ac_status); } &&
6853 { ac_try='test -z "$ac_c_werror_flag"
6854 || test ! -s conftest.err'
6855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6856 (eval $ac_try) 2>&5
6857 ac_status=$?
6858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859 (exit $ac_status); }; } &&
6860 { ac_try='test -s conftest$ac_exeext'
6861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6862 (eval $ac_try) 2>&5
6863 ac_status=$?
6864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6865 (exit $ac_status); }; }; then
6866 LIBS=$ac_save_LIBS
6867 # We can link X programs with no special library path.
6868 ac_x_libraries=
6869 else
6870 echo "$as_me: failed program was:" >&5
6871 sed 's/^/| /' conftest.$ac_ext >&5
6873 LIBS=$ac_save_LIBS
6874 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6876 # Don't even attempt the hair of trying to link an X program!
6877 for ac_extension in a so sl; do
6878 if test -r $ac_dir/libXt.$ac_extension; then
6879 ac_x_libraries=$ac_dir
6880 break 2
6882 done
6883 done
6885 rm -f conftest.err conftest.$ac_objext \
6886 conftest$ac_exeext conftest.$ac_ext
6887 fi # $ac_x_libraries = no
6889 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6890 # Didn't find X anywhere. Cache the known absence of X.
6891 ac_cv_have_x="have_x=no"
6892 else
6893 # Record where we found X for the cache.
6894 ac_cv_have_x="have_x=yes \
6895 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6900 eval "$ac_cv_have_x"
6901 fi # $with_x != no
6903 if test "$have_x" != yes; then
6904 echo "$as_me:$LINENO: result: $have_x" >&5
6905 echo "${ECHO_T}$have_x" >&6
6906 no_x=yes
6907 else
6908 # If each of the values was on the command line, it overrides each guess.
6909 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6910 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6911 # Update the cache value to reflect the command line values.
6912 ac_cv_have_x="have_x=yes \
6913 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6914 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6915 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6918 if test "$no_x" = yes; then
6919 # Not all programs may use this symbol, but it does not hurt to define it.
6921 cat >>confdefs.h <<\_ACEOF
6922 #define X_DISPLAY_MISSING 1
6923 _ACEOF
6925 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6926 else
6927 if test -n "$x_includes"; then
6928 X_CFLAGS="$X_CFLAGS -I$x_includes"
6931 # It would also be nice to do this for all -L options, not just this one.
6932 if test -n "$x_libraries"; then
6933 X_LIBS="$X_LIBS -L$x_libraries"
6934 # For Solaris; some versions of Sun CC require a space after -R and
6935 # others require no space. Words are not sufficient . . . .
6936 case `(uname -sr) 2>/dev/null` in
6937 "SunOS 5"*)
6938 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6939 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
6940 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6941 if test x$gcc_no_link = xyes; then
6942 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6943 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6944 { (exit 1); exit 1; }; }
6946 cat >conftest.$ac_ext <<_ACEOF
6947 /* confdefs.h. */
6948 _ACEOF
6949 cat confdefs.h >>conftest.$ac_ext
6950 cat >>conftest.$ac_ext <<_ACEOF
6951 /* end confdefs.h. */
6954 main ()
6958 return 0;
6960 _ACEOF
6961 rm -f conftest.$ac_objext conftest$ac_exeext
6962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6963 (eval $ac_link) 2>conftest.er1
6964 ac_status=$?
6965 grep -v '^ *+' conftest.er1 >conftest.err
6966 rm -f conftest.er1
6967 cat conftest.err >&5
6968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969 (exit $ac_status); } &&
6970 { ac_try='test -z "$ac_c_werror_flag"
6971 || test ! -s conftest.err'
6972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6973 (eval $ac_try) 2>&5
6974 ac_status=$?
6975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976 (exit $ac_status); }; } &&
6977 { ac_try='test -s conftest$ac_exeext'
6978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6979 (eval $ac_try) 2>&5
6980 ac_status=$?
6981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982 (exit $ac_status); }; }; then
6983 ac_R_nospace=yes
6984 else
6985 echo "$as_me: failed program was:" >&5
6986 sed 's/^/| /' conftest.$ac_ext >&5
6988 ac_R_nospace=no
6990 rm -f conftest.err conftest.$ac_objext \
6991 conftest$ac_exeext conftest.$ac_ext
6992 if test $ac_R_nospace = yes; then
6993 echo "$as_me:$LINENO: result: no" >&5
6994 echo "${ECHO_T}no" >&6
6995 X_LIBS="$X_LIBS -R$x_libraries"
6996 else
6997 LIBS="$ac_xsave_LIBS -R $x_libraries"
6998 if test x$gcc_no_link = xyes; then
6999 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7000 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7001 { (exit 1); exit 1; }; }
7003 cat >conftest.$ac_ext <<_ACEOF
7004 /* confdefs.h. */
7005 _ACEOF
7006 cat confdefs.h >>conftest.$ac_ext
7007 cat >>conftest.$ac_ext <<_ACEOF
7008 /* end confdefs.h. */
7011 main ()
7015 return 0;
7017 _ACEOF
7018 rm -f conftest.$ac_objext conftest$ac_exeext
7019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7020 (eval $ac_link) 2>conftest.er1
7021 ac_status=$?
7022 grep -v '^ *+' conftest.er1 >conftest.err
7023 rm -f conftest.er1
7024 cat conftest.err >&5
7025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026 (exit $ac_status); } &&
7027 { ac_try='test -z "$ac_c_werror_flag"
7028 || test ! -s conftest.err'
7029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7030 (eval $ac_try) 2>&5
7031 ac_status=$?
7032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033 (exit $ac_status); }; } &&
7034 { ac_try='test -s conftest$ac_exeext'
7035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7036 (eval $ac_try) 2>&5
7037 ac_status=$?
7038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7039 (exit $ac_status); }; }; then
7040 ac_R_space=yes
7041 else
7042 echo "$as_me: failed program was:" >&5
7043 sed 's/^/| /' conftest.$ac_ext >&5
7045 ac_R_space=no
7047 rm -f conftest.err conftest.$ac_objext \
7048 conftest$ac_exeext conftest.$ac_ext
7049 if test $ac_R_space = yes; then
7050 echo "$as_me:$LINENO: result: yes" >&5
7051 echo "${ECHO_T}yes" >&6
7052 X_LIBS="$X_LIBS -R $x_libraries"
7053 else
7054 echo "$as_me:$LINENO: result: neither works" >&5
7055 echo "${ECHO_T}neither works" >&6
7058 LIBS=$ac_xsave_LIBS
7059 esac
7062 # Check for system-dependent libraries X programs must link with.
7063 # Do this before checking for the system-independent R6 libraries
7064 # (-lICE), since we may need -lsocket or whatever for X linking.
7066 if test "$ISC" = yes; then
7067 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7068 else
7069 # Martyn Johnson says this is needed for Ultrix, if the X
7070 # libraries were built with DECnet support. And Karl Berry says
7071 # the Alpha needs dnet_stub (dnet does not exist).
7072 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7073 if test x$gcc_no_link = xyes; then
7074 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7075 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7076 { (exit 1); exit 1; }; }
7078 cat >conftest.$ac_ext <<_ACEOF
7079 /* confdefs.h. */
7080 _ACEOF
7081 cat confdefs.h >>conftest.$ac_ext
7082 cat >>conftest.$ac_ext <<_ACEOF
7083 /* end confdefs.h. */
7085 /* Override any gcc2 internal prototype to avoid an error. */
7086 #ifdef __cplusplus
7087 extern "C"
7088 #endif
7089 /* We use char because int might match the return type of a gcc2
7090 builtin and then its argument prototype would still apply. */
7091 char XOpenDisplay ();
7093 main ()
7095 XOpenDisplay ();
7097 return 0;
7099 _ACEOF
7100 rm -f conftest.$ac_objext conftest$ac_exeext
7101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7102 (eval $ac_link) 2>conftest.er1
7103 ac_status=$?
7104 grep -v '^ *+' conftest.er1 >conftest.err
7105 rm -f conftest.er1
7106 cat conftest.err >&5
7107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7108 (exit $ac_status); } &&
7109 { ac_try='test -z "$ac_c_werror_flag"
7110 || test ! -s conftest.err'
7111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7112 (eval $ac_try) 2>&5
7113 ac_status=$?
7114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115 (exit $ac_status); }; } &&
7116 { ac_try='test -s conftest$ac_exeext'
7117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7118 (eval $ac_try) 2>&5
7119 ac_status=$?
7120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121 (exit $ac_status); }; }; then
7123 else
7124 echo "$as_me: failed program was:" >&5
7125 sed 's/^/| /' conftest.$ac_ext >&5
7127 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7128 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7129 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7130 echo $ECHO_N "(cached) $ECHO_C" >&6
7131 else
7132 ac_check_lib_save_LIBS=$LIBS
7133 LIBS="-ldnet $LIBS"
7134 if test x$gcc_no_link = xyes; then
7135 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7136 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7137 { (exit 1); exit 1; }; }
7139 cat >conftest.$ac_ext <<_ACEOF
7140 /* confdefs.h. */
7141 _ACEOF
7142 cat confdefs.h >>conftest.$ac_ext
7143 cat >>conftest.$ac_ext <<_ACEOF
7144 /* end confdefs.h. */
7146 /* Override any gcc2 internal prototype to avoid an error. */
7147 #ifdef __cplusplus
7148 extern "C"
7149 #endif
7150 /* We use char because int might match the return type of a gcc2
7151 builtin and then its argument prototype would still apply. */
7152 char dnet_ntoa ();
7154 main ()
7156 dnet_ntoa ();
7158 return 0;
7160 _ACEOF
7161 rm -f conftest.$ac_objext conftest$ac_exeext
7162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7163 (eval $ac_link) 2>conftest.er1
7164 ac_status=$?
7165 grep -v '^ *+' conftest.er1 >conftest.err
7166 rm -f conftest.er1
7167 cat conftest.err >&5
7168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7169 (exit $ac_status); } &&
7170 { ac_try='test -z "$ac_c_werror_flag"
7171 || test ! -s conftest.err'
7172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7173 (eval $ac_try) 2>&5
7174 ac_status=$?
7175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176 (exit $ac_status); }; } &&
7177 { ac_try='test -s conftest$ac_exeext'
7178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7179 (eval $ac_try) 2>&5
7180 ac_status=$?
7181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182 (exit $ac_status); }; }; then
7183 ac_cv_lib_dnet_dnet_ntoa=yes
7184 else
7185 echo "$as_me: failed program was:" >&5
7186 sed 's/^/| /' conftest.$ac_ext >&5
7188 ac_cv_lib_dnet_dnet_ntoa=no
7190 rm -f conftest.err conftest.$ac_objext \
7191 conftest$ac_exeext conftest.$ac_ext
7192 LIBS=$ac_check_lib_save_LIBS
7194 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7195 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7196 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7197 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7200 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7201 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
7202 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
7203 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
7204 echo $ECHO_N "(cached) $ECHO_C" >&6
7205 else
7206 ac_check_lib_save_LIBS=$LIBS
7207 LIBS="-ldnet_stub $LIBS"
7208 if test x$gcc_no_link = xyes; then
7209 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7210 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7211 { (exit 1); exit 1; }; }
7213 cat >conftest.$ac_ext <<_ACEOF
7214 /* confdefs.h. */
7215 _ACEOF
7216 cat confdefs.h >>conftest.$ac_ext
7217 cat >>conftest.$ac_ext <<_ACEOF
7218 /* end confdefs.h. */
7220 /* Override any gcc2 internal prototype to avoid an error. */
7221 #ifdef __cplusplus
7222 extern "C"
7223 #endif
7224 /* We use char because int might match the return type of a gcc2
7225 builtin and then its argument prototype would still apply. */
7226 char dnet_ntoa ();
7228 main ()
7230 dnet_ntoa ();
7232 return 0;
7234 _ACEOF
7235 rm -f conftest.$ac_objext conftest$ac_exeext
7236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7237 (eval $ac_link) 2>conftest.er1
7238 ac_status=$?
7239 grep -v '^ *+' conftest.er1 >conftest.err
7240 rm -f conftest.er1
7241 cat conftest.err >&5
7242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243 (exit $ac_status); } &&
7244 { ac_try='test -z "$ac_c_werror_flag"
7245 || test ! -s conftest.err'
7246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7247 (eval $ac_try) 2>&5
7248 ac_status=$?
7249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250 (exit $ac_status); }; } &&
7251 { ac_try='test -s conftest$ac_exeext'
7252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7253 (eval $ac_try) 2>&5
7254 ac_status=$?
7255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256 (exit $ac_status); }; }; then
7257 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7258 else
7259 echo "$as_me: failed program was:" >&5
7260 sed 's/^/| /' conftest.$ac_ext >&5
7262 ac_cv_lib_dnet_stub_dnet_ntoa=no
7264 rm -f conftest.err conftest.$ac_objext \
7265 conftest$ac_exeext conftest.$ac_ext
7266 LIBS=$ac_check_lib_save_LIBS
7268 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7269 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
7270 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
7271 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7276 rm -f conftest.err conftest.$ac_objext \
7277 conftest$ac_exeext conftest.$ac_ext
7278 LIBS="$ac_xsave_LIBS"
7280 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7281 # to get the SysV transport functions.
7282 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7283 # needs -lnsl.
7284 # The nsl library prevents programs from opening the X display
7285 # on Irix 5.2, according to T.E. Dickey.
7286 # The functions gethostbyname, getservbyname, and inet_addr are
7287 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7288 echo "$as_me:$LINENO: checking for gethostbyname" >&5
7289 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
7290 if test "${ac_cv_func_gethostbyname+set}" = set; then
7291 echo $ECHO_N "(cached) $ECHO_C" >&6
7292 else
7293 if test x$gcc_no_link = xyes; then
7294 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7295 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7296 { (exit 1); exit 1; }; }
7298 cat >conftest.$ac_ext <<_ACEOF
7299 /* confdefs.h. */
7300 _ACEOF
7301 cat confdefs.h >>conftest.$ac_ext
7302 cat >>conftest.$ac_ext <<_ACEOF
7303 /* end confdefs.h. */
7304 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
7305 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7306 #define gethostbyname innocuous_gethostbyname
7308 /* System header to define __stub macros and hopefully few prototypes,
7309 which can conflict with char gethostbyname (); below.
7310 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7311 <limits.h> exists even on freestanding compilers. */
7313 #ifdef __STDC__
7314 # include <limits.h>
7315 #else
7316 # include <assert.h>
7317 #endif
7319 #undef gethostbyname
7321 /* Override any gcc2 internal prototype to avoid an error. */
7322 #ifdef __cplusplus
7323 extern "C"
7325 #endif
7326 /* We use char because int might match the return type of a gcc2
7327 builtin and then its argument prototype would still apply. */
7328 char gethostbyname ();
7329 /* The GNU C library defines this for functions which it implements
7330 to always fail with ENOSYS. Some functions are actually named
7331 something starting with __ and the normal name is an alias. */
7332 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7333 choke me
7334 #else
7335 char (*f) () = gethostbyname;
7336 #endif
7337 #ifdef __cplusplus
7339 #endif
7342 main ()
7344 return f != gethostbyname;
7346 return 0;
7348 _ACEOF
7349 rm -f conftest.$ac_objext conftest$ac_exeext
7350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7351 (eval $ac_link) 2>conftest.er1
7352 ac_status=$?
7353 grep -v '^ *+' conftest.er1 >conftest.err
7354 rm -f conftest.er1
7355 cat conftest.err >&5
7356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357 (exit $ac_status); } &&
7358 { ac_try='test -z "$ac_c_werror_flag"
7359 || test ! -s conftest.err'
7360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7361 (eval $ac_try) 2>&5
7362 ac_status=$?
7363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); }; } &&
7365 { ac_try='test -s conftest$ac_exeext'
7366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7367 (eval $ac_try) 2>&5
7368 ac_status=$?
7369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370 (exit $ac_status); }; }; then
7371 ac_cv_func_gethostbyname=yes
7372 else
7373 echo "$as_me: failed program was:" >&5
7374 sed 's/^/| /' conftest.$ac_ext >&5
7376 ac_cv_func_gethostbyname=no
7378 rm -f conftest.err conftest.$ac_objext \
7379 conftest$ac_exeext conftest.$ac_ext
7381 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
7382 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
7384 if test $ac_cv_func_gethostbyname = no; then
7385 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7386 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
7387 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7388 echo $ECHO_N "(cached) $ECHO_C" >&6
7389 else
7390 ac_check_lib_save_LIBS=$LIBS
7391 LIBS="-lnsl $LIBS"
7392 if test x$gcc_no_link = xyes; then
7393 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7394 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7395 { (exit 1); exit 1; }; }
7397 cat >conftest.$ac_ext <<_ACEOF
7398 /* confdefs.h. */
7399 _ACEOF
7400 cat confdefs.h >>conftest.$ac_ext
7401 cat >>conftest.$ac_ext <<_ACEOF
7402 /* end confdefs.h. */
7404 /* Override any gcc2 internal prototype to avoid an error. */
7405 #ifdef __cplusplus
7406 extern "C"
7407 #endif
7408 /* We use char because int might match the return type of a gcc2
7409 builtin and then its argument prototype would still apply. */
7410 char gethostbyname ();
7412 main ()
7414 gethostbyname ();
7416 return 0;
7418 _ACEOF
7419 rm -f conftest.$ac_objext conftest$ac_exeext
7420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7421 (eval $ac_link) 2>conftest.er1
7422 ac_status=$?
7423 grep -v '^ *+' conftest.er1 >conftest.err
7424 rm -f conftest.er1
7425 cat conftest.err >&5
7426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427 (exit $ac_status); } &&
7428 { ac_try='test -z "$ac_c_werror_flag"
7429 || test ! -s conftest.err'
7430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7431 (eval $ac_try) 2>&5
7432 ac_status=$?
7433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434 (exit $ac_status); }; } &&
7435 { ac_try='test -s conftest$ac_exeext'
7436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7437 (eval $ac_try) 2>&5
7438 ac_status=$?
7439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7440 (exit $ac_status); }; }; then
7441 ac_cv_lib_nsl_gethostbyname=yes
7442 else
7443 echo "$as_me: failed program was:" >&5
7444 sed 's/^/| /' conftest.$ac_ext >&5
7446 ac_cv_lib_nsl_gethostbyname=no
7448 rm -f conftest.err conftest.$ac_objext \
7449 conftest$ac_exeext conftest.$ac_ext
7450 LIBS=$ac_check_lib_save_LIBS
7452 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7453 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
7454 if test $ac_cv_lib_nsl_gethostbyname = yes; then
7455 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7458 if test $ac_cv_lib_nsl_gethostbyname = no; then
7459 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
7460 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
7461 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
7462 echo $ECHO_N "(cached) $ECHO_C" >&6
7463 else
7464 ac_check_lib_save_LIBS=$LIBS
7465 LIBS="-lbsd $LIBS"
7466 if test x$gcc_no_link = xyes; then
7467 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7468 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7469 { (exit 1); exit 1; }; }
7471 cat >conftest.$ac_ext <<_ACEOF
7472 /* confdefs.h. */
7473 _ACEOF
7474 cat confdefs.h >>conftest.$ac_ext
7475 cat >>conftest.$ac_ext <<_ACEOF
7476 /* end confdefs.h. */
7478 /* Override any gcc2 internal prototype to avoid an error. */
7479 #ifdef __cplusplus
7480 extern "C"
7481 #endif
7482 /* We use char because int might match the return type of a gcc2
7483 builtin and then its argument prototype would still apply. */
7484 char gethostbyname ();
7486 main ()
7488 gethostbyname ();
7490 return 0;
7492 _ACEOF
7493 rm -f conftest.$ac_objext conftest$ac_exeext
7494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7495 (eval $ac_link) 2>conftest.er1
7496 ac_status=$?
7497 grep -v '^ *+' conftest.er1 >conftest.err
7498 rm -f conftest.er1
7499 cat conftest.err >&5
7500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7501 (exit $ac_status); } &&
7502 { ac_try='test -z "$ac_c_werror_flag"
7503 || test ! -s conftest.err'
7504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7505 (eval $ac_try) 2>&5
7506 ac_status=$?
7507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508 (exit $ac_status); }; } &&
7509 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
7515 ac_cv_lib_bsd_gethostbyname=yes
7516 else
7517 echo "$as_me: failed program was:" >&5
7518 sed 's/^/| /' conftest.$ac_ext >&5
7520 ac_cv_lib_bsd_gethostbyname=no
7522 rm -f conftest.err conftest.$ac_objext \
7523 conftest$ac_exeext conftest.$ac_ext
7524 LIBS=$ac_check_lib_save_LIBS
7526 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
7527 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
7528 if test $ac_cv_lib_bsd_gethostbyname = yes; then
7529 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7535 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7536 # socket/setsockopt and other routines are undefined under SCO ODT
7537 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7538 # on later versions), says Simon Leinen: it contains gethostby*
7539 # variants that don't use the name server (or something). -lsocket
7540 # must be given before -lnsl if both are needed. We assume that
7541 # if connect needs -lnsl, so does gethostbyname.
7542 echo "$as_me:$LINENO: checking for connect" >&5
7543 echo $ECHO_N "checking for connect... $ECHO_C" >&6
7544 if test "${ac_cv_func_connect+set}" = set; then
7545 echo $ECHO_N "(cached) $ECHO_C" >&6
7546 else
7547 if test x$gcc_no_link = xyes; then
7548 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7549 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7550 { (exit 1); exit 1; }; }
7552 cat >conftest.$ac_ext <<_ACEOF
7553 /* confdefs.h. */
7554 _ACEOF
7555 cat confdefs.h >>conftest.$ac_ext
7556 cat >>conftest.$ac_ext <<_ACEOF
7557 /* end confdefs.h. */
7558 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
7559 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7560 #define connect innocuous_connect
7562 /* System header to define __stub macros and hopefully few prototypes,
7563 which can conflict with char connect (); below.
7564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7565 <limits.h> exists even on freestanding compilers. */
7567 #ifdef __STDC__
7568 # include <limits.h>
7569 #else
7570 # include <assert.h>
7571 #endif
7573 #undef connect
7575 /* Override any gcc2 internal prototype to avoid an error. */
7576 #ifdef __cplusplus
7577 extern "C"
7579 #endif
7580 /* We use char because int might match the return type of a gcc2
7581 builtin and then its argument prototype would still apply. */
7582 char connect ();
7583 /* The GNU C library defines this for functions which it implements
7584 to always fail with ENOSYS. Some functions are actually named
7585 something starting with __ and the normal name is an alias. */
7586 #if defined (__stub_connect) || defined (__stub___connect)
7587 choke me
7588 #else
7589 char (*f) () = connect;
7590 #endif
7591 #ifdef __cplusplus
7593 #endif
7596 main ()
7598 return f != connect;
7600 return 0;
7602 _ACEOF
7603 rm -f conftest.$ac_objext conftest$ac_exeext
7604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7605 (eval $ac_link) 2>conftest.er1
7606 ac_status=$?
7607 grep -v '^ *+' conftest.er1 >conftest.err
7608 rm -f conftest.er1
7609 cat conftest.err >&5
7610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611 (exit $ac_status); } &&
7612 { ac_try='test -z "$ac_c_werror_flag"
7613 || test ! -s conftest.err'
7614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7615 (eval $ac_try) 2>&5
7616 ac_status=$?
7617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7618 (exit $ac_status); }; } &&
7619 { ac_try='test -s conftest$ac_exeext'
7620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7621 (eval $ac_try) 2>&5
7622 ac_status=$?
7623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624 (exit $ac_status); }; }; then
7625 ac_cv_func_connect=yes
7626 else
7627 echo "$as_me: failed program was:" >&5
7628 sed 's/^/| /' conftest.$ac_ext >&5
7630 ac_cv_func_connect=no
7632 rm -f conftest.err conftest.$ac_objext \
7633 conftest$ac_exeext conftest.$ac_ext
7635 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7636 echo "${ECHO_T}$ac_cv_func_connect" >&6
7638 if test $ac_cv_func_connect = no; then
7639 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7640 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
7641 if test "${ac_cv_lib_socket_connect+set}" = set; then
7642 echo $ECHO_N "(cached) $ECHO_C" >&6
7643 else
7644 ac_check_lib_save_LIBS=$LIBS
7645 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7646 if test x$gcc_no_link = xyes; then
7647 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7648 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7649 { (exit 1); exit 1; }; }
7651 cat >conftest.$ac_ext <<_ACEOF
7652 /* confdefs.h. */
7653 _ACEOF
7654 cat confdefs.h >>conftest.$ac_ext
7655 cat >>conftest.$ac_ext <<_ACEOF
7656 /* end confdefs.h. */
7658 /* Override any gcc2 internal prototype to avoid an error. */
7659 #ifdef __cplusplus
7660 extern "C"
7661 #endif
7662 /* We use char because int might match the return type of a gcc2
7663 builtin and then its argument prototype would still apply. */
7664 char connect ();
7666 main ()
7668 connect ();
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_cv_lib_socket_connect=yes
7696 else
7697 echo "$as_me: failed program was:" >&5
7698 sed 's/^/| /' conftest.$ac_ext >&5
7700 ac_cv_lib_socket_connect=no
7702 rm -f conftest.err conftest.$ac_objext \
7703 conftest$ac_exeext conftest.$ac_ext
7704 LIBS=$ac_check_lib_save_LIBS
7706 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7707 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
7708 if test $ac_cv_lib_socket_connect = yes; then
7709 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7714 # Guillermo Gomez says -lposix is necessary on A/UX.
7715 echo "$as_me:$LINENO: checking for remove" >&5
7716 echo $ECHO_N "checking for remove... $ECHO_C" >&6
7717 if test "${ac_cv_func_remove+set}" = set; then
7718 echo $ECHO_N "(cached) $ECHO_C" >&6
7719 else
7720 if test x$gcc_no_link = xyes; then
7721 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7722 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7723 { (exit 1); exit 1; }; }
7725 cat >conftest.$ac_ext <<_ACEOF
7726 /* confdefs.h. */
7727 _ACEOF
7728 cat confdefs.h >>conftest.$ac_ext
7729 cat >>conftest.$ac_ext <<_ACEOF
7730 /* end confdefs.h. */
7731 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
7732 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7733 #define remove innocuous_remove
7735 /* System header to define __stub macros and hopefully few prototypes,
7736 which can conflict with char remove (); below.
7737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7738 <limits.h> exists even on freestanding compilers. */
7740 #ifdef __STDC__
7741 # include <limits.h>
7742 #else
7743 # include <assert.h>
7744 #endif
7746 #undef remove
7748 /* Override any gcc2 internal prototype to avoid an error. */
7749 #ifdef __cplusplus
7750 extern "C"
7752 #endif
7753 /* We use char because int might match the return type of a gcc2
7754 builtin and then its argument prototype would still apply. */
7755 char remove ();
7756 /* The GNU C library defines this for functions which it implements
7757 to always fail with ENOSYS. Some functions are actually named
7758 something starting with __ and the normal name is an alias. */
7759 #if defined (__stub_remove) || defined (__stub___remove)
7760 choke me
7761 #else
7762 char (*f) () = remove;
7763 #endif
7764 #ifdef __cplusplus
7766 #endif
7769 main ()
7771 return f != remove;
7773 return 0;
7775 _ACEOF
7776 rm -f conftest.$ac_objext conftest$ac_exeext
7777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7778 (eval $ac_link) 2>conftest.er1
7779 ac_status=$?
7780 grep -v '^ *+' conftest.er1 >conftest.err
7781 rm -f conftest.er1
7782 cat conftest.err >&5
7783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784 (exit $ac_status); } &&
7785 { ac_try='test -z "$ac_c_werror_flag"
7786 || test ! -s conftest.err'
7787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7788 (eval $ac_try) 2>&5
7789 ac_status=$?
7790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791 (exit $ac_status); }; } &&
7792 { ac_try='test -s conftest$ac_exeext'
7793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7794 (eval $ac_try) 2>&5
7795 ac_status=$?
7796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797 (exit $ac_status); }; }; then
7798 ac_cv_func_remove=yes
7799 else
7800 echo "$as_me: failed program was:" >&5
7801 sed 's/^/| /' conftest.$ac_ext >&5
7803 ac_cv_func_remove=no
7805 rm -f conftest.err conftest.$ac_objext \
7806 conftest$ac_exeext conftest.$ac_ext
7808 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7809 echo "${ECHO_T}$ac_cv_func_remove" >&6
7811 if test $ac_cv_func_remove = no; then
7812 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7813 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
7814 if test "${ac_cv_lib_posix_remove+set}" = set; then
7815 echo $ECHO_N "(cached) $ECHO_C" >&6
7816 else
7817 ac_check_lib_save_LIBS=$LIBS
7818 LIBS="-lposix $LIBS"
7819 if test x$gcc_no_link = xyes; then
7820 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7821 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7822 { (exit 1); exit 1; }; }
7824 cat >conftest.$ac_ext <<_ACEOF
7825 /* confdefs.h. */
7826 _ACEOF
7827 cat confdefs.h >>conftest.$ac_ext
7828 cat >>conftest.$ac_ext <<_ACEOF
7829 /* end confdefs.h. */
7831 /* Override any gcc2 internal prototype to avoid an error. */
7832 #ifdef __cplusplus
7833 extern "C"
7834 #endif
7835 /* We use char because int might match the return type of a gcc2
7836 builtin and then its argument prototype would still apply. */
7837 char remove ();
7839 main ()
7841 remove ();
7843 return 0;
7845 _ACEOF
7846 rm -f conftest.$ac_objext conftest$ac_exeext
7847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7848 (eval $ac_link) 2>conftest.er1
7849 ac_status=$?
7850 grep -v '^ *+' conftest.er1 >conftest.err
7851 rm -f conftest.er1
7852 cat conftest.err >&5
7853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854 (exit $ac_status); } &&
7855 { ac_try='test -z "$ac_c_werror_flag"
7856 || test ! -s conftest.err'
7857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7858 (eval $ac_try) 2>&5
7859 ac_status=$?
7860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861 (exit $ac_status); }; } &&
7862 { ac_try='test -s conftest$ac_exeext'
7863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7864 (eval $ac_try) 2>&5
7865 ac_status=$?
7866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867 (exit $ac_status); }; }; then
7868 ac_cv_lib_posix_remove=yes
7869 else
7870 echo "$as_me: failed program was:" >&5
7871 sed 's/^/| /' conftest.$ac_ext >&5
7873 ac_cv_lib_posix_remove=no
7875 rm -f conftest.err conftest.$ac_objext \
7876 conftest$ac_exeext conftest.$ac_ext
7877 LIBS=$ac_check_lib_save_LIBS
7879 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7880 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
7881 if test $ac_cv_lib_posix_remove = yes; then
7882 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7887 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7888 echo "$as_me:$LINENO: checking for shmat" >&5
7889 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
7890 if test "${ac_cv_func_shmat+set}" = set; then
7891 echo $ECHO_N "(cached) $ECHO_C" >&6
7892 else
7893 if test x$gcc_no_link = xyes; then
7894 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7895 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7896 { (exit 1); exit 1; }; }
7898 cat >conftest.$ac_ext <<_ACEOF
7899 /* confdefs.h. */
7900 _ACEOF
7901 cat confdefs.h >>conftest.$ac_ext
7902 cat >>conftest.$ac_ext <<_ACEOF
7903 /* end confdefs.h. */
7904 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7906 #define shmat innocuous_shmat
7908 /* System header to define __stub macros and hopefully few prototypes,
7909 which can conflict with char shmat (); below.
7910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7911 <limits.h> exists even on freestanding compilers. */
7913 #ifdef __STDC__
7914 # include <limits.h>
7915 #else
7916 # include <assert.h>
7917 #endif
7919 #undef shmat
7921 /* Override any gcc2 internal prototype to avoid an error. */
7922 #ifdef __cplusplus
7923 extern "C"
7925 #endif
7926 /* We use char because int might match the return type of a gcc2
7927 builtin and then its argument prototype would still apply. */
7928 char shmat ();
7929 /* The GNU C library defines this for functions which it implements
7930 to always fail with ENOSYS. Some functions are actually named
7931 something starting with __ and the normal name is an alias. */
7932 #if defined (__stub_shmat) || defined (__stub___shmat)
7933 choke me
7934 #else
7935 char (*f) () = shmat;
7936 #endif
7937 #ifdef __cplusplus
7939 #endif
7942 main ()
7944 return f != shmat;
7946 return 0;
7948 _ACEOF
7949 rm -f conftest.$ac_objext conftest$ac_exeext
7950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7951 (eval $ac_link) 2>conftest.er1
7952 ac_status=$?
7953 grep -v '^ *+' conftest.er1 >conftest.err
7954 rm -f conftest.er1
7955 cat conftest.err >&5
7956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957 (exit $ac_status); } &&
7958 { ac_try='test -z "$ac_c_werror_flag"
7959 || test ! -s conftest.err'
7960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7961 (eval $ac_try) 2>&5
7962 ac_status=$?
7963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7964 (exit $ac_status); }; } &&
7965 { ac_try='test -s conftest$ac_exeext'
7966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7967 (eval $ac_try) 2>&5
7968 ac_status=$?
7969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970 (exit $ac_status); }; }; then
7971 ac_cv_func_shmat=yes
7972 else
7973 echo "$as_me: failed program was:" >&5
7974 sed 's/^/| /' conftest.$ac_ext >&5
7976 ac_cv_func_shmat=no
7978 rm -f conftest.err conftest.$ac_objext \
7979 conftest$ac_exeext conftest.$ac_ext
7981 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7982 echo "${ECHO_T}$ac_cv_func_shmat" >&6
7984 if test $ac_cv_func_shmat = no; then
7985 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7986 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
7987 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7988 echo $ECHO_N "(cached) $ECHO_C" >&6
7989 else
7990 ac_check_lib_save_LIBS=$LIBS
7991 LIBS="-lipc $LIBS"
7992 if test x$gcc_no_link = xyes; then
7993 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7994 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7995 { (exit 1); exit 1; }; }
7997 cat >conftest.$ac_ext <<_ACEOF
7998 /* confdefs.h. */
7999 _ACEOF
8000 cat confdefs.h >>conftest.$ac_ext
8001 cat >>conftest.$ac_ext <<_ACEOF
8002 /* end confdefs.h. */
8004 /* Override any gcc2 internal prototype to avoid an error. */
8005 #ifdef __cplusplus
8006 extern "C"
8007 #endif
8008 /* We use char because int might match the return type of a gcc2
8009 builtin and then its argument prototype would still apply. */
8010 char shmat ();
8012 main ()
8014 shmat ();
8016 return 0;
8018 _ACEOF
8019 rm -f conftest.$ac_objext conftest$ac_exeext
8020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8021 (eval $ac_link) 2>conftest.er1
8022 ac_status=$?
8023 grep -v '^ *+' conftest.er1 >conftest.err
8024 rm -f conftest.er1
8025 cat conftest.err >&5
8026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027 (exit $ac_status); } &&
8028 { ac_try='test -z "$ac_c_werror_flag"
8029 || test ! -s conftest.err'
8030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8031 (eval $ac_try) 2>&5
8032 ac_status=$?
8033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034 (exit $ac_status); }; } &&
8035 { ac_try='test -s conftest$ac_exeext'
8036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8037 (eval $ac_try) 2>&5
8038 ac_status=$?
8039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040 (exit $ac_status); }; }; then
8041 ac_cv_lib_ipc_shmat=yes
8042 else
8043 echo "$as_me: failed program was:" >&5
8044 sed 's/^/| /' conftest.$ac_ext >&5
8046 ac_cv_lib_ipc_shmat=no
8048 rm -f conftest.err conftest.$ac_objext \
8049 conftest$ac_exeext conftest.$ac_ext
8050 LIBS=$ac_check_lib_save_LIBS
8052 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
8053 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8054 if test $ac_cv_lib_ipc_shmat = yes; then
8055 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8061 # Check for libraries that X11R6 Xt/Xaw programs need.
8062 ac_save_LDFLAGS=$LDFLAGS
8063 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8064 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8065 # check for ICE first), but we must link in the order -lSM -lICE or
8066 # we get undefined symbols. So assume we have SM if we have ICE.
8067 # These have to be linked with before -lX11, unlike the other
8068 # libraries we check for below, so use a different variable.
8069 # John Interrante, Karl Berry
8070 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
8071 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
8072 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8073 echo $ECHO_N "(cached) $ECHO_C" >&6
8074 else
8075 ac_check_lib_save_LIBS=$LIBS
8076 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8077 if test x$gcc_no_link = xyes; then
8078 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8079 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8080 { (exit 1); exit 1; }; }
8082 cat >conftest.$ac_ext <<_ACEOF
8083 /* confdefs.h. */
8084 _ACEOF
8085 cat confdefs.h >>conftest.$ac_ext
8086 cat >>conftest.$ac_ext <<_ACEOF
8087 /* end confdefs.h. */
8089 /* Override any gcc2 internal prototype to avoid an error. */
8090 #ifdef __cplusplus
8091 extern "C"
8092 #endif
8093 /* We use char because int might match the return type of a gcc2
8094 builtin and then its argument prototype would still apply. */
8095 char IceConnectionNumber ();
8097 main ()
8099 IceConnectionNumber ();
8101 return 0;
8103 _ACEOF
8104 rm -f conftest.$ac_objext conftest$ac_exeext
8105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8106 (eval $ac_link) 2>conftest.er1
8107 ac_status=$?
8108 grep -v '^ *+' conftest.er1 >conftest.err
8109 rm -f conftest.er1
8110 cat conftest.err >&5
8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112 (exit $ac_status); } &&
8113 { ac_try='test -z "$ac_c_werror_flag"
8114 || test ! -s conftest.err'
8115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8116 (eval $ac_try) 2>&5
8117 ac_status=$?
8118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119 (exit $ac_status); }; } &&
8120 { ac_try='test -s conftest$ac_exeext'
8121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8122 (eval $ac_try) 2>&5
8123 ac_status=$?
8124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125 (exit $ac_status); }; }; then
8126 ac_cv_lib_ICE_IceConnectionNumber=yes
8127 else
8128 echo "$as_me: failed program was:" >&5
8129 sed 's/^/| /' conftest.$ac_ext >&5
8131 ac_cv_lib_ICE_IceConnectionNumber=no
8133 rm -f conftest.err conftest.$ac_objext \
8134 conftest$ac_exeext conftest.$ac_ext
8135 LIBS=$ac_check_lib_save_LIBS
8137 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8138 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
8139 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
8140 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8143 LDFLAGS=$ac_save_LDFLAGS
8148 # determine whether to enable the cairo GTK Graphics2D backend
8149 # Check whether --enable-gtk-cairo or --disable-gtk-cairo was given.
8150 if test "${enable_gtk_cairo+set}" = set; then
8151 enableval="$enable_gtk_cairo"
8156 if test "x${enable_gtk_cairo}" = xyes; then
8157 GTK_CAIRO_TRUE=
8158 GTK_CAIRO_FALSE='#'
8159 else
8160 GTK_CAIRO_TRUE='#'
8161 GTK_CAIRO_FALSE=
8164 if test "x${enable_gtk_cairo}" = xyes
8165 then
8167 succeeded=no
8169 if test -z "$PKG_CONFIG"; then
8170 # Extract the first word of "pkg-config", so it can be a program name with args.
8171 set dummy pkg-config; ac_word=$2
8172 echo "$as_me:$LINENO: checking for $ac_word" >&5
8173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8174 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8175 echo $ECHO_N "(cached) $ECHO_C" >&6
8176 else
8177 case $PKG_CONFIG in
8178 [\\/]* | ?:[\\/]*)
8179 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8183 for as_dir in $PATH
8185 IFS=$as_save_IFS
8186 test -z "$as_dir" && as_dir=.
8187 for ac_exec_ext in '' $ac_executable_extensions; do
8188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8189 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8191 break 2
8193 done
8194 done
8196 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8198 esac
8200 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8202 if test -n "$PKG_CONFIG"; then
8203 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8204 echo "${ECHO_T}$PKG_CONFIG" >&6
8205 else
8206 echo "$as_me:$LINENO: result: no" >&5
8207 echo "${ECHO_T}no" >&6
8212 if test "$PKG_CONFIG" = "no" ; then
8213 echo "*** The pkg-config script could not be found. Make sure it is"
8214 echo "*** in your path, or set the PKG_CONFIG environment variable"
8215 echo "*** to the full path to pkg-config."
8216 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8217 else
8218 PKG_CONFIG_MIN_VERSION=0.9.0
8219 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8220 echo "$as_me:$LINENO: checking for cairo" >&5
8221 echo $ECHO_N "checking for cairo... $ECHO_C" >&6
8223 if $PKG_CONFIG --exists "cairo" ; then
8224 echo "$as_me:$LINENO: result: yes" >&5
8225 echo "${ECHO_T}yes" >&6
8226 succeeded=yes
8228 echo "$as_me:$LINENO: checking CAIRO_CFLAGS" >&5
8229 echo $ECHO_N "checking CAIRO_CFLAGS... $ECHO_C" >&6
8230 CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo"`
8231 echo "$as_me:$LINENO: result: $CAIRO_CFLAGS" >&5
8232 echo "${ECHO_T}$CAIRO_CFLAGS" >&6
8234 echo "$as_me:$LINENO: checking CAIRO_LIBS" >&5
8235 echo $ECHO_N "checking CAIRO_LIBS... $ECHO_C" >&6
8236 CAIRO_LIBS=`$PKG_CONFIG --libs "cairo"`
8237 echo "$as_me:$LINENO: result: $CAIRO_LIBS" >&5
8238 echo "${ECHO_T}$CAIRO_LIBS" >&6
8239 else
8240 CAIRO_CFLAGS=""
8241 CAIRO_LIBS=""
8242 ## If we have a custom action on failure, don't print errors, but
8243 ## do set a variable so people can do so.
8244 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
8245 echo $CAIRO_PKG_ERRORS
8250 else
8251 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8252 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8256 if test $succeeded = yes; then
8258 else
8259 { { 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
8260 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;}
8261 { (exit 1); exit 1; }; }
8265 succeeded=no
8267 if test -z "$PKG_CONFIG"; then
8268 # Extract the first word of "pkg-config", so it can be a program name with args.
8269 set dummy pkg-config; ac_word=$2
8270 echo "$as_me:$LINENO: checking for $ac_word" >&5
8271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8272 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8273 echo $ECHO_N "(cached) $ECHO_C" >&6
8274 else
8275 case $PKG_CONFIG in
8276 [\\/]* | ?:[\\/]*)
8277 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8281 for as_dir in $PATH
8283 IFS=$as_save_IFS
8284 test -z "$as_dir" && as_dir=.
8285 for ac_exec_ext in '' $ac_executable_extensions; do
8286 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8287 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8289 break 2
8291 done
8292 done
8294 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8296 esac
8298 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8300 if test -n "$PKG_CONFIG"; then
8301 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8302 echo "${ECHO_T}$PKG_CONFIG" >&6
8303 else
8304 echo "$as_me:$LINENO: result: no" >&5
8305 echo "${ECHO_T}no" >&6
8310 if test "$PKG_CONFIG" = "no" ; then
8311 echo "*** The pkg-config script could not be found. Make sure it is"
8312 echo "*** in your path, or set the PKG_CONFIG environment variable"
8313 echo "*** to the full path to pkg-config."
8314 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8315 else
8316 PKG_CONFIG_MIN_VERSION=0.9.0
8317 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8318 echo "$as_me:$LINENO: checking for pangoft2" >&5
8319 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
8321 if $PKG_CONFIG --exists "pangoft2" ; then
8322 echo "$as_me:$LINENO: result: yes" >&5
8323 echo "${ECHO_T}yes" >&6
8324 succeeded=yes
8326 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
8327 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
8328 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
8329 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
8330 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
8332 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
8333 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
8334 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
8335 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
8336 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
8337 else
8338 PANGOFT2_CFLAGS=""
8339 PANGOFT2_LIBS=""
8340 ## If we have a custom action on failure, don't print errors, but
8341 ## do set a variable so people can do so.
8342 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
8343 echo $PANGOFT2_PKG_ERRORS
8348 else
8349 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8350 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8354 if test $succeeded = yes; then
8356 else
8357 { { 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
8358 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;}
8359 { (exit 1); exit 1; }; }
8368 # FIXME: this should be _libs on some hosts.
8369 libsubdir=.libs
8371 # Allow the GC to be disabled. Can be useful when debugging.
8372 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
8373 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
8374 # Check whether --enable-java-gc or --disable-java-gc was given.
8375 if test "${enable_java_gc+set}" = set; then
8376 enableval="$enable_java_gc"
8377 GC=$enableval
8378 else
8379 GC=boehm
8381 GCLIBS=
8382 GCINCS=
8383 GCDEPS=
8384 GCSPEC=
8385 JC1GCSPEC=
8386 GCTESTSPEC=
8387 case "$GC" in
8388 boehm)
8389 echo "$as_me:$LINENO: result: boehm" >&5
8390 echo "${ECHO_T}boehm" >&6
8391 GCLIBS=../boehm-gc/libgcjgc_convenience.la
8392 JC1GCSPEC='-fuse-boehm-gc'
8393 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
8394 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
8395 GCOBJS=boehm.lo
8396 GCHDR=boehm-gc.h
8397 # The POSIX thread support needs to know this.
8399 cat >>confdefs.h <<\_ACEOF
8400 #define HAVE_BOEHM_GC 1
8401 _ACEOF
8405 echo "$as_me:$LINENO: result: none" >&5
8406 echo "${ECHO_T}none" >&6
8407 GCHDR=no-gc.h
8410 { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
8411 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
8412 { (exit 1); exit 1; }; }
8414 esac
8421 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
8425 if test "$GC" = boehm; then
8426 USING_BOEHMGC_TRUE=
8427 USING_BOEHMGC_FALSE='#'
8428 else
8429 USING_BOEHMGC_TRUE='#'
8430 USING_BOEHMGC_FALSE=
8435 if test "$GC" = no; then
8436 USING_NOGC_TRUE=
8437 USING_NOGC_FALSE='#'
8438 else
8439 USING_NOGC_TRUE='#'
8440 USING_NOGC_FALSE=
8445 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
8446 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
8447 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
8448 echo "$as_me:$LINENO: result: $THREADS" >&5
8449 echo "${ECHO_T}$THREADS" >&6
8451 case "$THREADS" in
8452 no | none | single)
8453 THREADS=none
8455 posix | posix95 | pthreads)
8456 THREADS=posix
8457 case "$host" in
8458 *-*-linux*)
8460 cat >>confdefs.h <<\_ACEOF
8461 #define LINUX_THREADS 1
8462 _ACEOF
8465 esac
8467 win32)
8469 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
8470 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
8471 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
8472 { (exit 1); exit 1; }; }
8475 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
8476 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
8477 { (exit 1); exit 1; }; }
8479 esac
8481 THREADCXXFLAGS=
8482 THREADLDFLAGS=
8483 THREADLIBS=
8484 THREADINCS=
8485 THREADDEPS=
8486 THREADH=
8487 THREADSPEC=
8488 case "$THREADS" in
8489 posix)
8490 case "$host" in
8491 *-*-cygwin*)
8492 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
8494 *-*-freebsd[1234]*)
8495 # Before FreeBSD 5, it didn't have -lpthread (or any library which
8496 # merely adds pthread_* functions) but it does have a -pthread switch
8497 # which is required at link-time to select -lc_r *instead* of -lc.
8498 THREADLDFLAGS=-pthread
8499 # Don't set THREADSPEC here as might be expected since -pthread is
8500 # not processed when found within a spec file, it must come from
8501 # the command line. For now, the user must provide the -pthread
8502 # switch to link code compiled with gcj. In future, consider adding
8503 # support for weak references to pthread_* functions ala gthr.h API.
8504 THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
8506 *-*-freebsd*)
8507 # FreeBSD 5 implements a model much closer to other modern UNIX
8508 # which support threads. However, it still does not support
8509 # -lpthread.
8510 THREADLDFLAGS=-pthread
8511 THREADSPEC=-lc_r
8513 alpha*-dec-osf*)
8514 THREADCXXFLAGS=-pthread
8515 # boehm-gc needs some functions from librt, so link that too.
8516 THREADLIBS='-lpthread -lrt'
8517 THREADSPEC='-lpthread -lrt'
8520 THREADLIBS=-lpthread
8521 THREADSPEC=-lpthread
8523 esac
8524 THREADH=posix-threads.h
8525 # MIT pthreads doesn't seem to have the mutexattr functions.
8526 # But for now we don't check for it. We just assume you aren't
8527 # using MIT pthreads.
8529 cat >>confdefs.h <<\_ACEOF
8530 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
8531 _ACEOF
8534 # If we're using the Boehm GC, then we happen to know that it
8535 # defines _REENTRANT, so we don't bother. Eww.
8536 if test "$GC" != boehm; then
8538 cat >>confdefs.h <<\_ACEOF
8539 #define _REENTRANT 1
8540 _ACEOF
8544 cat >>confdefs.h <<\_ACEOF
8545 #define _POSIX_PTHREAD_SEMANTICS 1
8546 _ACEOF
8550 win32)
8551 THREADH=win32-threads.h
8554 none)
8555 THREADH=no-threads.h
8557 esac
8558 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
8568 if test "$THREADS" = posix; then
8569 USING_POSIX_THREADS_TRUE=
8570 USING_POSIX_THREADS_FALSE='#'
8571 else
8572 USING_POSIX_THREADS_TRUE='#'
8573 USING_POSIX_THREADS_FALSE=
8578 if test "$THREADS" = win32; then
8579 USING_WIN32_THREADS_TRUE=
8580 USING_WIN32_THREADS_FALSE='#'
8581 else
8582 USING_WIN32_THREADS_TRUE='#'
8583 USING_WIN32_THREADS_FALSE=
8588 if test "$THREADS" = none; then
8589 USING_NO_THREADS_TRUE=
8590 USING_NO_THREADS_FALSE='#'
8591 else
8592 USING_NO_THREADS_TRUE='#'
8593 USING_NO_THREADS_FALSE=
8597 if test -d sysdep; then true; else mkdir sysdep; fi
8598 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
8600 ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
8602 ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
8605 HASH_SYNC_SPEC=
8606 # Hash synchronization is only useful with posix threads right now.
8607 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
8608 HASH_SYNC_SPEC=-fhash-synchronization
8610 cat >>confdefs.h <<\_ACEOF
8611 #define JV_HASH_SYNCHRONIZATION 1
8612 _ACEOF
8619 if test "$GCC" = yes; then
8620 USING_GCC_TRUE=
8621 USING_GCC_FALSE='#'
8622 else
8623 USING_GCC_TRUE='#'
8624 USING_GCC_FALSE=
8628 # We're in the tree with gcc, and need to include some of its headers.
8629 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
8631 if test "x${with_newlib}" = "xyes"; then
8632 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
8633 # may not work correctly, because the compiler may not be able to
8634 # link executables.
8636 # We assume newlib. This lets us hard-code the functions we know
8637 # we'll have.
8639 cat >>confdefs.h <<\_ACEOF
8640 #define HAVE_MEMMOVE 1
8641 _ACEOF
8644 cat >>confdefs.h <<\_ACEOF
8645 #define HAVE_MEMCPY 1
8646 _ACEOF
8649 cat >>confdefs.h <<\_ACEOF
8650 #define HAVE_STRERROR 1
8651 _ACEOF
8654 cat >>confdefs.h <<\_ACEOF
8655 #define HAVE_TIME 1
8656 _ACEOF
8659 cat >>confdefs.h <<\_ACEOF
8660 #define HAVE_GMTIME_R 1
8661 _ACEOF
8664 cat >>confdefs.h <<\_ACEOF
8665 #define HAVE_LOCALTIME_R 1
8666 _ACEOF
8669 cat >>confdefs.h <<\_ACEOF
8670 #define HAVE_USLEEP_DECL 1
8671 _ACEOF
8673 # This is only for POSIX threads.
8675 cat >>confdefs.h <<\_ACEOF
8676 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
8677 _ACEOF
8679 # We also assume we are using gcc, which provides alloca.
8680 cat >>confdefs.h <<\_ACEOF
8681 #define HAVE_ALLOCA 1
8682 _ACEOF
8685 # Assume we do not have getuid and friends.
8687 cat >>confdefs.h <<\_ACEOF
8688 #define NO_GETUID 1
8689 _ACEOF
8691 PLATFORMNET=NoNet
8692 else
8725 for ac_func in strerror ioctl select fstat open fsync sleep opendir \
8726 gmtime_r localtime_r readdir_r getpwuid_r getcwd \
8727 access stat mkdir rename rmdir unlink realpath utime chmod \
8728 nl_langinfo setlocale \
8729 inet_pton uname inet_ntoa \
8730 fork execvp pipe sigaction ftruncate
8732 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8733 echo "$as_me:$LINENO: checking for $ac_func" >&5
8734 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8735 if eval "test \"\${$as_ac_var+set}\" = set"; then
8736 echo $ECHO_N "(cached) $ECHO_C" >&6
8737 else
8738 if test x$gcc_no_link = xyes; then
8739 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8740 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8741 { (exit 1); exit 1; }; }
8743 cat >conftest.$ac_ext <<_ACEOF
8744 /* confdefs.h. */
8745 _ACEOF
8746 cat confdefs.h >>conftest.$ac_ext
8747 cat >>conftest.$ac_ext <<_ACEOF
8748 /* end confdefs.h. */
8749 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8750 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8751 #define $ac_func innocuous_$ac_func
8753 /* System header to define __stub macros and hopefully few prototypes,
8754 which can conflict with char $ac_func (); below.
8755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8756 <limits.h> exists even on freestanding compilers. */
8758 #ifdef __STDC__
8759 # include <limits.h>
8760 #else
8761 # include <assert.h>
8762 #endif
8764 #undef $ac_func
8766 /* Override any gcc2 internal prototype to avoid an error. */
8767 #ifdef __cplusplus
8768 extern "C"
8770 #endif
8771 /* We use char because int might match the return type of a gcc2
8772 builtin and then its argument prototype would still apply. */
8773 char $ac_func ();
8774 /* The GNU C library defines this for functions which it implements
8775 to always fail with ENOSYS. Some functions are actually named
8776 something starting with __ and the normal name is an alias. */
8777 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8778 choke me
8779 #else
8780 char (*f) () = $ac_func;
8781 #endif
8782 #ifdef __cplusplus
8784 #endif
8787 main ()
8789 return f != $ac_func;
8791 return 0;
8793 _ACEOF
8794 rm -f conftest.$ac_objext conftest$ac_exeext
8795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8796 (eval $ac_link) 2>conftest.er1
8797 ac_status=$?
8798 grep -v '^ *+' conftest.er1 >conftest.err
8799 rm -f conftest.er1
8800 cat conftest.err >&5
8801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8802 (exit $ac_status); } &&
8803 { ac_try='test -z "$ac_c_werror_flag"
8804 || test ! -s conftest.err'
8805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8806 (eval $ac_try) 2>&5
8807 ac_status=$?
8808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809 (exit $ac_status); }; } &&
8810 { ac_try='test -s conftest$ac_exeext'
8811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8812 (eval $ac_try) 2>&5
8813 ac_status=$?
8814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8815 (exit $ac_status); }; }; then
8816 eval "$as_ac_var=yes"
8817 else
8818 echo "$as_me: failed program was:" >&5
8819 sed 's/^/| /' conftest.$ac_ext >&5
8821 eval "$as_ac_var=no"
8823 rm -f conftest.err conftest.$ac_objext \
8824 conftest$ac_exeext conftest.$ac_ext
8826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8827 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8828 if test `eval echo '${'$as_ac_var'}'` = yes; then
8829 cat >>confdefs.h <<_ACEOF
8830 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8831 _ACEOF
8834 done
8838 for ac_func in inet_aton inet_addr
8840 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8841 echo "$as_me:$LINENO: checking for $ac_func" >&5
8842 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8843 if eval "test \"\${$as_ac_var+set}\" = set"; then
8844 echo $ECHO_N "(cached) $ECHO_C" >&6
8845 else
8846 if test x$gcc_no_link = xyes; then
8847 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8848 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8849 { (exit 1); exit 1; }; }
8851 cat >conftest.$ac_ext <<_ACEOF
8852 /* confdefs.h. */
8853 _ACEOF
8854 cat confdefs.h >>conftest.$ac_ext
8855 cat >>conftest.$ac_ext <<_ACEOF
8856 /* end confdefs.h. */
8857 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8858 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8859 #define $ac_func innocuous_$ac_func
8861 /* System header to define __stub macros and hopefully few prototypes,
8862 which can conflict with char $ac_func (); below.
8863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8864 <limits.h> exists even on freestanding compilers. */
8866 #ifdef __STDC__
8867 # include <limits.h>
8868 #else
8869 # include <assert.h>
8870 #endif
8872 #undef $ac_func
8874 /* Override any gcc2 internal prototype to avoid an error. */
8875 #ifdef __cplusplus
8876 extern "C"
8878 #endif
8879 /* We use char because int might match the return type of a gcc2
8880 builtin and then its argument prototype would still apply. */
8881 char $ac_func ();
8882 /* The GNU C library defines this for functions which it implements
8883 to always fail with ENOSYS. Some functions are actually named
8884 something starting with __ and the normal name is an alias. */
8885 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8886 choke me
8887 #else
8888 char (*f) () = $ac_func;
8889 #endif
8890 #ifdef __cplusplus
8892 #endif
8895 main ()
8897 return f != $ac_func;
8899 return 0;
8901 _ACEOF
8902 rm -f conftest.$ac_objext conftest$ac_exeext
8903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8904 (eval $ac_link) 2>conftest.er1
8905 ac_status=$?
8906 grep -v '^ *+' conftest.er1 >conftest.err
8907 rm -f conftest.er1
8908 cat conftest.err >&5
8909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910 (exit $ac_status); } &&
8911 { ac_try='test -z "$ac_c_werror_flag"
8912 || test ! -s conftest.err'
8913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8914 (eval $ac_try) 2>&5
8915 ac_status=$?
8916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917 (exit $ac_status); }; } &&
8918 { ac_try='test -s conftest$ac_exeext'
8919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8920 (eval $ac_try) 2>&5
8921 ac_status=$?
8922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923 (exit $ac_status); }; }; then
8924 eval "$as_ac_var=yes"
8925 else
8926 echo "$as_me: failed program was:" >&5
8927 sed 's/^/| /' conftest.$ac_ext >&5
8929 eval "$as_ac_var=no"
8931 rm -f conftest.err conftest.$ac_objext \
8932 conftest$ac_exeext conftest.$ac_ext
8934 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8935 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8936 if test `eval echo '${'$as_ac_var'}'` = yes; then
8937 cat >>confdefs.h <<_ACEOF
8938 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8939 _ACEOF
8940 break
8942 done
8944 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8945 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8946 if test "${ac_cv_header_stdc+set}" = set; then
8947 echo $ECHO_N "(cached) $ECHO_C" >&6
8948 else
8949 cat >conftest.$ac_ext <<_ACEOF
8950 /* confdefs.h. */
8951 _ACEOF
8952 cat confdefs.h >>conftest.$ac_ext
8953 cat >>conftest.$ac_ext <<_ACEOF
8954 /* end confdefs.h. */
8955 #include <stdlib.h>
8956 #include <stdarg.h>
8957 #include <string.h>
8958 #include <float.h>
8961 main ()
8965 return 0;
8967 _ACEOF
8968 rm -f conftest.$ac_objext
8969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8970 (eval $ac_compile) 2>conftest.er1
8971 ac_status=$?
8972 grep -v '^ *+' conftest.er1 >conftest.err
8973 rm -f conftest.er1
8974 cat conftest.err >&5
8975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976 (exit $ac_status); } &&
8977 { ac_try='test -z "$ac_c_werror_flag"
8978 || test ! -s conftest.err'
8979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8980 (eval $ac_try) 2>&5
8981 ac_status=$?
8982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983 (exit $ac_status); }; } &&
8984 { ac_try='test -s conftest.$ac_objext'
8985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8986 (eval $ac_try) 2>&5
8987 ac_status=$?
8988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989 (exit $ac_status); }; }; then
8990 ac_cv_header_stdc=yes
8991 else
8992 echo "$as_me: failed program was:" >&5
8993 sed 's/^/| /' conftest.$ac_ext >&5
8995 ac_cv_header_stdc=no
8997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8999 if test $ac_cv_header_stdc = yes; then
9000 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9001 cat >conftest.$ac_ext <<_ACEOF
9002 /* confdefs.h. */
9003 _ACEOF
9004 cat confdefs.h >>conftest.$ac_ext
9005 cat >>conftest.$ac_ext <<_ACEOF
9006 /* end confdefs.h. */
9007 #include <string.h>
9009 _ACEOF
9010 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9011 $EGREP "memchr" >/dev/null 2>&1; then
9013 else
9014 ac_cv_header_stdc=no
9016 rm -f conftest*
9020 if test $ac_cv_header_stdc = yes; then
9021 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9022 cat >conftest.$ac_ext <<_ACEOF
9023 /* confdefs.h. */
9024 _ACEOF
9025 cat confdefs.h >>conftest.$ac_ext
9026 cat >>conftest.$ac_ext <<_ACEOF
9027 /* end confdefs.h. */
9028 #include <stdlib.h>
9030 _ACEOF
9031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9032 $EGREP "free" >/dev/null 2>&1; then
9034 else
9035 ac_cv_header_stdc=no
9037 rm -f conftest*
9041 if test $ac_cv_header_stdc = yes; then
9042 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9043 if test "$cross_compiling" = yes; then
9045 else
9046 cat >conftest.$ac_ext <<_ACEOF
9047 /* confdefs.h. */
9048 _ACEOF
9049 cat confdefs.h >>conftest.$ac_ext
9050 cat >>conftest.$ac_ext <<_ACEOF
9051 /* end confdefs.h. */
9052 #include <ctype.h>
9053 #if ((' ' & 0x0FF) == 0x020)
9054 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9055 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9056 #else
9057 # define ISLOWER(c) \
9058 (('a' <= (c) && (c) <= 'i') \
9059 || ('j' <= (c) && (c) <= 'r') \
9060 || ('s' <= (c) && (c) <= 'z'))
9061 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9062 #endif
9064 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9066 main ()
9068 int i;
9069 for (i = 0; i < 256; i++)
9070 if (XOR (islower (i), ISLOWER (i))
9071 || toupper (i) != TOUPPER (i))
9072 exit(2);
9073 exit (0);
9075 _ACEOF
9076 rm -f conftest$ac_exeext
9077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9078 (eval $ac_link) 2>&5
9079 ac_status=$?
9080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9083 (eval $ac_try) 2>&5
9084 ac_status=$?
9085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086 (exit $ac_status); }; }; then
9088 else
9089 echo "$as_me: program exited with status $ac_status" >&5
9090 echo "$as_me: failed program was:" >&5
9091 sed 's/^/| /' conftest.$ac_ext >&5
9093 ( exit $ac_status )
9094 ac_cv_header_stdc=no
9096 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9100 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9101 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9102 if test $ac_cv_header_stdc = yes; then
9104 cat >>confdefs.h <<\_ACEOF
9105 #define STDC_HEADERS 1
9106 _ACEOF
9110 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9120 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9121 inttypes.h stdint.h unistd.h
9123 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9124 echo "$as_me:$LINENO: checking for $ac_header" >&5
9125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9126 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9127 echo $ECHO_N "(cached) $ECHO_C" >&6
9128 else
9129 cat >conftest.$ac_ext <<_ACEOF
9130 /* confdefs.h. */
9131 _ACEOF
9132 cat confdefs.h >>conftest.$ac_ext
9133 cat >>conftest.$ac_ext <<_ACEOF
9134 /* end confdefs.h. */
9135 $ac_includes_default
9137 #include <$ac_header>
9138 _ACEOF
9139 rm -f conftest.$ac_objext
9140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9141 (eval $ac_compile) 2>conftest.er1
9142 ac_status=$?
9143 grep -v '^ *+' conftest.er1 >conftest.err
9144 rm -f conftest.er1
9145 cat conftest.err >&5
9146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147 (exit $ac_status); } &&
9148 { ac_try='test -z "$ac_c_werror_flag"
9149 || test ! -s conftest.err'
9150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9151 (eval $ac_try) 2>&5
9152 ac_status=$?
9153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9154 (exit $ac_status); }; } &&
9155 { ac_try='test -s conftest.$ac_objext'
9156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9157 (eval $ac_try) 2>&5
9158 ac_status=$?
9159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160 (exit $ac_status); }; }; then
9161 eval "$as_ac_Header=yes"
9162 else
9163 echo "$as_me: failed program was:" >&5
9164 sed 's/^/| /' conftest.$ac_ext >&5
9166 eval "$as_ac_Header=no"
9168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9170 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9171 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9172 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9173 cat >>confdefs.h <<_ACEOF
9174 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9175 _ACEOF
9179 done
9185 for ac_header in execinfo.h unistd.h dlfcn.h
9187 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9189 echo "$as_me:$LINENO: checking for $ac_header" >&5
9190 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9192 echo $ECHO_N "(cached) $ECHO_C" >&6
9194 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9195 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9196 else
9197 # Is the header compilable?
9198 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9199 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9200 cat >conftest.$ac_ext <<_ACEOF
9201 /* confdefs.h. */
9202 _ACEOF
9203 cat confdefs.h >>conftest.$ac_ext
9204 cat >>conftest.$ac_ext <<_ACEOF
9205 /* end confdefs.h. */
9206 $ac_includes_default
9207 #include <$ac_header>
9208 _ACEOF
9209 rm -f conftest.$ac_objext
9210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9211 (eval $ac_compile) 2>conftest.er1
9212 ac_status=$?
9213 grep -v '^ *+' conftest.er1 >conftest.err
9214 rm -f conftest.er1
9215 cat conftest.err >&5
9216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9217 (exit $ac_status); } &&
9218 { ac_try='test -z "$ac_c_werror_flag"
9219 || test ! -s conftest.err'
9220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9221 (eval $ac_try) 2>&5
9222 ac_status=$?
9223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224 (exit $ac_status); }; } &&
9225 { ac_try='test -s conftest.$ac_objext'
9226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9227 (eval $ac_try) 2>&5
9228 ac_status=$?
9229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230 (exit $ac_status); }; }; then
9231 ac_header_compiler=yes
9232 else
9233 echo "$as_me: failed program was:" >&5
9234 sed 's/^/| /' conftest.$ac_ext >&5
9236 ac_header_compiler=no
9238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9239 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9240 echo "${ECHO_T}$ac_header_compiler" >&6
9242 # Is the header present?
9243 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9244 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9245 cat >conftest.$ac_ext <<_ACEOF
9246 /* confdefs.h. */
9247 _ACEOF
9248 cat confdefs.h >>conftest.$ac_ext
9249 cat >>conftest.$ac_ext <<_ACEOF
9250 /* end confdefs.h. */
9251 #include <$ac_header>
9252 _ACEOF
9253 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9254 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9255 ac_status=$?
9256 grep -v '^ *+' conftest.er1 >conftest.err
9257 rm -f conftest.er1
9258 cat conftest.err >&5
9259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260 (exit $ac_status); } >/dev/null; then
9261 if test -s conftest.err; then
9262 ac_cpp_err=$ac_c_preproc_warn_flag
9263 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9264 else
9265 ac_cpp_err=
9267 else
9268 ac_cpp_err=yes
9270 if test -z "$ac_cpp_err"; then
9271 ac_header_preproc=yes
9272 else
9273 echo "$as_me: failed program was:" >&5
9274 sed 's/^/| /' conftest.$ac_ext >&5
9276 ac_header_preproc=no
9278 rm -f conftest.err conftest.$ac_ext
9279 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9280 echo "${ECHO_T}$ac_header_preproc" >&6
9282 # So? What about this header?
9283 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9284 yes:no: )
9285 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9286 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9287 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9288 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9289 ac_header_preproc=yes
9291 no:yes:* )
9292 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9293 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9294 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9295 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9296 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9297 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9298 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9299 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9300 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9301 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9302 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9303 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9305 cat <<\_ASBOX
9306 ## ---------------------------------- ##
9307 ## Report this to the libjava lists. ##
9308 ## ---------------------------------- ##
9309 _ASBOX
9311 sed "s/^/$as_me: WARNING: /" >&2
9313 esac
9314 echo "$as_me:$LINENO: checking for $ac_header" >&5
9315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9316 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9317 echo $ECHO_N "(cached) $ECHO_C" >&6
9318 else
9319 eval "$as_ac_Header=\$ac_header_preproc"
9321 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9322 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9325 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9326 cat >>confdefs.h <<_ACEOF
9327 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9328 _ACEOF
9332 done
9334 echo "$as_me:$LINENO: checking for backtrace" >&5
9335 echo $ECHO_N "checking for backtrace... $ECHO_C" >&6
9336 if test "${ac_cv_func_backtrace+set}" = set; then
9337 echo $ECHO_N "(cached) $ECHO_C" >&6
9338 else
9339 if test x$gcc_no_link = xyes; then
9340 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9341 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9342 { (exit 1); exit 1; }; }
9344 cat >conftest.$ac_ext <<_ACEOF
9345 /* confdefs.h. */
9346 _ACEOF
9347 cat confdefs.h >>conftest.$ac_ext
9348 cat >>conftest.$ac_ext <<_ACEOF
9349 /* end confdefs.h. */
9350 /* Define backtrace to an innocuous variant, in case <limits.h> declares backtrace.
9351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9352 #define backtrace innocuous_backtrace
9354 /* System header to define __stub macros and hopefully few prototypes,
9355 which can conflict with char backtrace (); below.
9356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9357 <limits.h> exists even on freestanding compilers. */
9359 #ifdef __STDC__
9360 # include <limits.h>
9361 #else
9362 # include <assert.h>
9363 #endif
9365 #undef backtrace
9367 /* Override any gcc2 internal prototype to avoid an error. */
9368 #ifdef __cplusplus
9369 extern "C"
9371 #endif
9372 /* We use char because int might match the return type of a gcc2
9373 builtin and then its argument prototype would still apply. */
9374 char backtrace ();
9375 /* The GNU C library defines this for functions which it implements
9376 to always fail with ENOSYS. Some functions are actually named
9377 something starting with __ and the normal name is an alias. */
9378 #if defined (__stub_backtrace) || defined (__stub___backtrace)
9379 choke me
9380 #else
9381 char (*f) () = backtrace;
9382 #endif
9383 #ifdef __cplusplus
9385 #endif
9388 main ()
9390 return f != backtrace;
9392 return 0;
9394 _ACEOF
9395 rm -f conftest.$ac_objext conftest$ac_exeext
9396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9397 (eval $ac_link) 2>conftest.er1
9398 ac_status=$?
9399 grep -v '^ *+' conftest.er1 >conftest.err
9400 rm -f conftest.er1
9401 cat conftest.err >&5
9402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403 (exit $ac_status); } &&
9404 { ac_try='test -z "$ac_c_werror_flag"
9405 || test ! -s conftest.err'
9406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9407 (eval $ac_try) 2>&5
9408 ac_status=$?
9409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410 (exit $ac_status); }; } &&
9411 { ac_try='test -s conftest$ac_exeext'
9412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9413 (eval $ac_try) 2>&5
9414 ac_status=$?
9415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416 (exit $ac_status); }; }; then
9417 ac_cv_func_backtrace=yes
9418 else
9419 echo "$as_me: failed program was:" >&5
9420 sed 's/^/| /' conftest.$ac_ext >&5
9422 ac_cv_func_backtrace=no
9424 rm -f conftest.err conftest.$ac_objext \
9425 conftest$ac_exeext conftest.$ac_ext
9427 echo "$as_me:$LINENO: result: $ac_cv_func_backtrace" >&5
9428 echo "${ECHO_T}$ac_cv_func_backtrace" >&6
9429 if test $ac_cv_func_backtrace = yes; then
9431 case "$host" in
9432 ia64-*-linux*)
9433 # Has broken backtrace()
9435 mips*-*-linux*)
9436 # Has broken backtrace(), but we supply our own.
9437 if test -d sysdep; then true; else mkdir -p sysdep; fi
9438 supply_backtrace=yes
9440 cat >>confdefs.h <<\_ACEOF
9441 #define HAVE_BACKTRACE 1
9442 _ACEOF
9447 cat >>confdefs.h <<\_ACEOF
9448 #define HAVE_BACKTRACE 1
9449 _ACEOF
9452 esac
9454 else
9456 case "$host" in
9457 *mingw*)
9458 # Has backtrace() defined in libgcj itself
9460 cat >>confdefs.h <<\_ACEOF
9461 #define HAVE_BACKTRACE 1
9462 _ACEOF
9465 esac
9470 echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
9471 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
9472 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
9473 echo $ECHO_N "(cached) $ECHO_C" >&6
9474 else
9475 ac_check_lib_save_LIBS=$LIBS
9476 LIBS="-ldl $LIBS"
9477 if test x$gcc_no_link = xyes; then
9478 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9479 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9480 { (exit 1); exit 1; }; }
9482 cat >conftest.$ac_ext <<_ACEOF
9483 /* confdefs.h. */
9484 _ACEOF
9485 cat confdefs.h >>conftest.$ac_ext
9486 cat >>conftest.$ac_ext <<_ACEOF
9487 /* end confdefs.h. */
9489 /* Override any gcc2 internal prototype to avoid an error. */
9490 #ifdef __cplusplus
9491 extern "C"
9492 #endif
9493 /* We use char because int might match the return type of a gcc2
9494 builtin and then its argument prototype would still apply. */
9495 char dladdr ();
9497 main ()
9499 dladdr ();
9501 return 0;
9503 _ACEOF
9504 rm -f conftest.$ac_objext conftest$ac_exeext
9505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9506 (eval $ac_link) 2>conftest.er1
9507 ac_status=$?
9508 grep -v '^ *+' conftest.er1 >conftest.err
9509 rm -f conftest.er1
9510 cat conftest.err >&5
9511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9512 (exit $ac_status); } &&
9513 { ac_try='test -z "$ac_c_werror_flag"
9514 || test ! -s conftest.err'
9515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9516 (eval $ac_try) 2>&5
9517 ac_status=$?
9518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519 (exit $ac_status); }; } &&
9520 { ac_try='test -s conftest$ac_exeext'
9521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9522 (eval $ac_try) 2>&5
9523 ac_status=$?
9524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9525 (exit $ac_status); }; }; then
9526 ac_cv_lib_dl_dladdr=yes
9527 else
9528 echo "$as_me: failed program was:" >&5
9529 sed 's/^/| /' conftest.$ac_ext >&5
9531 ac_cv_lib_dl_dladdr=no
9533 rm -f conftest.err conftest.$ac_objext \
9534 conftest$ac_exeext conftest.$ac_ext
9535 LIBS=$ac_check_lib_save_LIBS
9537 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
9538 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
9539 if test $ac_cv_lib_dl_dladdr = yes; then
9541 if test "x${disable_dladdr}" = "xyes"; then
9542 #Broken dladdr().
9543 true
9544 else
9546 cat >>confdefs.h <<\_ACEOF
9547 #define HAVE_DLADDR 1
9548 _ACEOF
9554 if test x"$build" = x"$host"; then
9555 echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
9556 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
9557 if test "${ac_cv_file__proc_self_exe+set}" = set; then
9558 echo $ECHO_N "(cached) $ECHO_C" >&6
9559 else
9560 test "$cross_compiling" = yes &&
9561 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
9562 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
9563 { (exit 1); exit 1; }; }
9564 if test -r "/proc/self/exe"; then
9565 ac_cv_file__proc_self_exe=yes
9566 else
9567 ac_cv_file__proc_self_exe=no
9570 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
9571 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
9572 if test $ac_cv_file__proc_self_exe = yes; then
9574 cat >>confdefs.h <<_ACEOF
9575 #define HAVE__PROC_SELF_EXE 1
9576 _ACEOF
9580 cat >>confdefs.h <<\_ACEOF
9581 #define HAVE_PROC_SELF_EXE 1
9582 _ACEOF
9586 else
9587 case $host in
9588 *-linux*)
9590 cat >>confdefs.h <<\_ACEOF
9591 #define HAVE_PROC_SELF_EXE 1
9592 _ACEOF
9595 esac
9599 if test "X$prefix" = "XNONE"; then
9600 acl_final_prefix="$ac_default_prefix"
9601 else
9602 acl_final_prefix="$prefix"
9604 if test "X$exec_prefix" = "XNONE"; then
9605 acl_final_exec_prefix='${prefix}'
9606 else
9607 acl_final_exec_prefix="$exec_prefix"
9609 acl_save_prefix="$prefix"
9610 prefix="$acl_final_prefix"
9611 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9612 prefix="$acl_save_prefix"
9615 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9616 if test "${with_gnu_ld+set}" = set; then
9617 withval="$with_gnu_ld"
9618 test "$withval" = no || with_gnu_ld=yes
9619 else
9620 with_gnu_ld=no
9622 # Prepare PATH_SEPARATOR.
9623 # The user is always right.
9624 if test "${PATH_SEPARATOR+set}" != set; then
9625 echo "#! /bin/sh" >conf$$.sh
9626 echo "exit 0" >>conf$$.sh
9627 chmod +x conf$$.sh
9628 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9629 PATH_SEPARATOR=';'
9630 else
9631 PATH_SEPARATOR=:
9633 rm -f conf$$.sh
9635 ac_prog=ld
9636 if test "$GCC" = yes; then
9637 # Check if gcc -print-prog-name=ld gives a path.
9638 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
9639 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
9640 case $host in
9641 *-*-mingw*)
9642 # gcc leaves a trailing carriage return which upsets mingw
9643 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9645 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9646 esac
9647 case $ac_prog in
9648 # Accept absolute paths.
9649 [\\/]* | [A-Za-z]:[\\/]*)
9650 re_direlt='/[^/][^/]*/\.\./'
9651 # Canonicalize the path of ld
9652 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9653 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9654 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9655 done
9656 test -z "$LD" && LD="$ac_prog"
9659 # If it fails, then pretend we aren't using GCC.
9660 ac_prog=ld
9663 # If it is relative, then search for the first ld in PATH.
9664 with_gnu_ld=unknown
9666 esac
9667 elif test "$with_gnu_ld" = yes; then
9668 echo "$as_me:$LINENO: checking for GNU ld" >&5
9669 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9670 else
9671 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9672 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9674 if test "${acl_cv_path_LD+set}" = set; then
9675 echo $ECHO_N "(cached) $ECHO_C" >&6
9676 else
9677 if test -z "$LD"; then
9678 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9679 for ac_dir in $PATH; do
9680 test -z "$ac_dir" && ac_dir=.
9681 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9682 acl_cv_path_LD="$ac_dir/$ac_prog"
9683 # Check to see if the program is GNU ld. I'd rather use --version,
9684 # but apparently some GNU ld's only accept -v.
9685 # Break only if it was the GNU/non-GNU ld that we prefer.
9686 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9687 test "$with_gnu_ld" != no && break
9688 else
9689 test "$with_gnu_ld" != yes && break
9692 done
9693 IFS="$ac_save_ifs"
9694 else
9695 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9699 LD="$acl_cv_path_LD"
9700 if test -n "$LD"; then
9701 echo "$as_me:$LINENO: result: $LD" >&5
9702 echo "${ECHO_T}$LD" >&6
9703 else
9704 echo "$as_me:$LINENO: result: no" >&5
9705 echo "${ECHO_T}no" >&6
9707 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9708 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9709 { (exit 1); exit 1; }; }
9710 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9711 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9712 if test "${acl_cv_prog_gnu_ld+set}" = set; then
9713 echo $ECHO_N "(cached) $ECHO_C" >&6
9714 else
9715 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9716 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9717 acl_cv_prog_gnu_ld=yes
9718 else
9719 acl_cv_prog_gnu_ld=no
9722 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
9723 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
9724 with_gnu_ld=$acl_cv_prog_gnu_ld
9728 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
9729 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
9730 if test "${acl_cv_rpath+set}" = set; then
9731 echo $ECHO_N "(cached) $ECHO_C" >&6
9732 else
9734 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9735 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9736 . ./conftest.sh
9737 rm -f ./conftest.sh
9738 acl_cv_rpath=done
9741 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
9742 echo "${ECHO_T}$acl_cv_rpath" >&6
9743 wl="$acl_cv_wl"
9744 libext="$acl_cv_libext"
9745 shlibext="$acl_cv_shlibext"
9746 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9747 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9748 hardcode_direct="$acl_cv_hardcode_direct"
9749 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9750 # Check whether --enable-rpath or --disable-rpath was given.
9751 if test "${enable_rpath+set}" = set; then
9752 enableval="$enable_rpath"
9754 else
9755 enable_rpath=yes
9764 use_additional=yes
9766 acl_save_prefix="$prefix"
9767 prefix="$acl_final_prefix"
9768 acl_save_exec_prefix="$exec_prefix"
9769 exec_prefix="$acl_final_exec_prefix"
9771 eval additional_includedir=\"$includedir\"
9772 eval additional_libdir=\"$libdir\"
9774 exec_prefix="$acl_save_exec_prefix"
9775 prefix="$acl_save_prefix"
9778 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
9779 if test "${with_libiconv_prefix+set}" = set; then
9780 withval="$with_libiconv_prefix"
9782 if test "X$withval" = "Xno"; then
9783 use_additional=no
9784 else
9785 if test "X$withval" = "X"; then
9787 acl_save_prefix="$prefix"
9788 prefix="$acl_final_prefix"
9789 acl_save_exec_prefix="$exec_prefix"
9790 exec_prefix="$acl_final_exec_prefix"
9792 eval additional_includedir=\"$includedir\"
9793 eval additional_libdir=\"$libdir\"
9795 exec_prefix="$acl_save_exec_prefix"
9796 prefix="$acl_save_prefix"
9798 else
9799 additional_includedir="$withval/include"
9800 additional_libdir="$withval/lib"
9805 LIBICONV=
9806 LTLIBICONV=
9807 INCICONV=
9808 rpathdirs=
9809 ltrpathdirs=
9810 names_already_handled=
9811 names_next_round='iconv '
9812 while test -n "$names_next_round"; do
9813 names_this_round="$names_next_round"
9814 names_next_round=
9815 for name in $names_this_round; do
9816 already_handled=
9817 for n in $names_already_handled; do
9818 if test "$n" = "$name"; then
9819 already_handled=yes
9820 break
9822 done
9823 if test -z "$already_handled"; then
9824 names_already_handled="$names_already_handled $name"
9825 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9826 eval value=\"\$HAVE_LIB$uppername\"
9827 if test -n "$value"; then
9828 if test "$value" = yes; then
9829 eval value=\"\$LIB$uppername\"
9830 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9831 eval value=\"\$LTLIB$uppername\"
9832 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9833 else
9836 else
9837 found_dir=
9838 found_la=
9839 found_so=
9840 found_a=
9841 if test $use_additional = yes; then
9842 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9843 found_dir="$additional_libdir"
9844 found_so="$additional_libdir/lib$name.$shlibext"
9845 if test -f "$additional_libdir/lib$name.la"; then
9846 found_la="$additional_libdir/lib$name.la"
9848 else
9849 if test -f "$additional_libdir/lib$name.$libext"; then
9850 found_dir="$additional_libdir"
9851 found_a="$additional_libdir/lib$name.$libext"
9852 if test -f "$additional_libdir/lib$name.la"; then
9853 found_la="$additional_libdir/lib$name.la"
9858 if test "X$found_dir" = "X"; then
9859 for x in $LDFLAGS $LTLIBICONV; do
9861 acl_save_prefix="$prefix"
9862 prefix="$acl_final_prefix"
9863 acl_save_exec_prefix="$exec_prefix"
9864 exec_prefix="$acl_final_exec_prefix"
9865 eval x=\"$x\"
9866 exec_prefix="$acl_save_exec_prefix"
9867 prefix="$acl_save_prefix"
9869 case "$x" in
9870 -L*)
9871 dir=`echo "X$x" | sed -e 's/^X-L//'`
9872 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9873 found_dir="$dir"
9874 found_so="$dir/lib$name.$shlibext"
9875 if test -f "$dir/lib$name.la"; then
9876 found_la="$dir/lib$name.la"
9878 else
9879 if test -f "$dir/lib$name.$libext"; then
9880 found_dir="$dir"
9881 found_a="$dir/lib$name.$libext"
9882 if test -f "$dir/lib$name.la"; then
9883 found_la="$dir/lib$name.la"
9888 esac
9889 if test "X$found_dir" != "X"; then
9890 break
9892 done
9894 if test "X$found_dir" != "X"; then
9895 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9896 if test "X$found_so" != "X"; then
9897 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9898 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9899 else
9900 haveit=
9901 for x in $ltrpathdirs; do
9902 if test "X$x" = "X$found_dir"; then
9903 haveit=yes
9904 break
9906 done
9907 if test -z "$haveit"; then
9908 ltrpathdirs="$ltrpathdirs $found_dir"
9910 if test "$hardcode_direct" = yes; then
9911 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9912 else
9913 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9914 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9915 haveit=
9916 for x in $rpathdirs; do
9917 if test "X$x" = "X$found_dir"; then
9918 haveit=yes
9919 break
9921 done
9922 if test -z "$haveit"; then
9923 rpathdirs="$rpathdirs $found_dir"
9925 else
9926 haveit=
9927 for x in $LDFLAGS $LIBICONV; do
9929 acl_save_prefix="$prefix"
9930 prefix="$acl_final_prefix"
9931 acl_save_exec_prefix="$exec_prefix"
9932 exec_prefix="$acl_final_exec_prefix"
9933 eval x=\"$x\"
9934 exec_prefix="$acl_save_exec_prefix"
9935 prefix="$acl_save_prefix"
9937 if test "X$x" = "X-L$found_dir"; then
9938 haveit=yes
9939 break
9941 done
9942 if test -z "$haveit"; then
9943 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9945 if test "$hardcode_minus_L" != no; then
9946 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9947 else
9948 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9953 else
9954 if test "X$found_a" != "X"; then
9955 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9956 else
9957 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9960 additional_includedir=
9961 case "$found_dir" in
9962 */lib | */lib/)
9963 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9964 additional_includedir="$basedir/include"
9966 esac
9967 if test "X$additional_includedir" != "X"; then
9968 if test "X$additional_includedir" != "X/usr/include"; then
9969 haveit=
9970 if test "X$additional_includedir" = "X/usr/local/include"; then
9971 if test -n "$GCC"; then
9972 case $host_os in
9973 linux*) haveit=yes;;
9974 esac
9977 if test -z "$haveit"; then
9978 for x in $CPPFLAGS $INCICONV; do
9980 acl_save_prefix="$prefix"
9981 prefix="$acl_final_prefix"
9982 acl_save_exec_prefix="$exec_prefix"
9983 exec_prefix="$acl_final_exec_prefix"
9984 eval x=\"$x\"
9985 exec_prefix="$acl_save_exec_prefix"
9986 prefix="$acl_save_prefix"
9988 if test "X$x" = "X-I$additional_includedir"; then
9989 haveit=yes
9990 break
9992 done
9993 if test -z "$haveit"; then
9994 if test -d "$additional_includedir"; then
9995 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10001 if test -n "$found_la"; then
10002 save_libdir="$libdir"
10003 case "$found_la" in
10004 */* | *\\*) . "$found_la" ;;
10005 *) . "./$found_la" ;;
10006 esac
10007 libdir="$save_libdir"
10008 for dep in $dependency_libs; do
10009 case "$dep" in
10010 -L*)
10011 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10012 if test "X$additional_libdir" != "X/usr/lib"; then
10013 haveit=
10014 if test "X$additional_libdir" = "X/usr/local/lib"; then
10015 if test -n "$GCC"; then
10016 case $host_os in
10017 linux*) haveit=yes;;
10018 esac
10021 if test -z "$haveit"; then
10022 haveit=
10023 for x in $LDFLAGS $LIBICONV; do
10025 acl_save_prefix="$prefix"
10026 prefix="$acl_final_prefix"
10027 acl_save_exec_prefix="$exec_prefix"
10028 exec_prefix="$acl_final_exec_prefix"
10029 eval x=\"$x\"
10030 exec_prefix="$acl_save_exec_prefix"
10031 prefix="$acl_save_prefix"
10033 if test "X$x" = "X-L$additional_libdir"; then
10034 haveit=yes
10035 break
10037 done
10038 if test -z "$haveit"; then
10039 if test -d "$additional_libdir"; then
10040 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10043 haveit=
10044 for x in $LDFLAGS $LTLIBICONV; do
10046 acl_save_prefix="$prefix"
10047 prefix="$acl_final_prefix"
10048 acl_save_exec_prefix="$exec_prefix"
10049 exec_prefix="$acl_final_exec_prefix"
10050 eval x=\"$x\"
10051 exec_prefix="$acl_save_exec_prefix"
10052 prefix="$acl_save_prefix"
10054 if test "X$x" = "X-L$additional_libdir"; then
10055 haveit=yes
10056 break
10058 done
10059 if test -z "$haveit"; then
10060 if test -d "$additional_libdir"; then
10061 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10067 -R*)
10068 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10069 if test "$enable_rpath" != no; then
10070 haveit=
10071 for x in $rpathdirs; do
10072 if test "X$x" = "X$dir"; then
10073 haveit=yes
10074 break
10076 done
10077 if test -z "$haveit"; then
10078 rpathdirs="$rpathdirs $dir"
10080 haveit=
10081 for x in $ltrpathdirs; do
10082 if test "X$x" = "X$dir"; then
10083 haveit=yes
10084 break
10086 done
10087 if test -z "$haveit"; then
10088 ltrpathdirs="$ltrpathdirs $dir"
10092 -l*)
10093 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10095 *.la)
10096 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10099 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10100 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10102 esac
10103 done
10105 else
10106 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10107 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10111 done
10112 done
10113 if test "X$rpathdirs" != "X"; then
10114 if test -n "$hardcode_libdir_separator"; then
10115 alldirs=
10116 for found_dir in $rpathdirs; do
10117 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10118 done
10119 acl_save_libdir="$libdir"
10120 libdir="$alldirs"
10121 eval flag=\"$hardcode_libdir_flag_spec\"
10122 libdir="$acl_save_libdir"
10123 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10124 else
10125 for found_dir in $rpathdirs; do
10126 acl_save_libdir="$libdir"
10127 libdir="$found_dir"
10128 eval flag=\"$hardcode_libdir_flag_spec\"
10129 libdir="$acl_save_libdir"
10130 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10131 done
10134 if test "X$ltrpathdirs" != "X"; then
10135 for found_dir in $ltrpathdirs; do
10136 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10137 done
10146 am_save_CPPFLAGS="$CPPFLAGS"
10148 for element in $INCICONV; do
10149 haveit=
10150 for x in $CPPFLAGS; do
10152 acl_save_prefix="$prefix"
10153 prefix="$acl_final_prefix"
10154 acl_save_exec_prefix="$exec_prefix"
10155 exec_prefix="$acl_final_exec_prefix"
10156 eval x=\"$x\"
10157 exec_prefix="$acl_save_exec_prefix"
10158 prefix="$acl_save_prefix"
10160 if test "X$x" = "X$element"; then
10161 haveit=yes
10162 break
10164 done
10165 if test -z "$haveit"; then
10166 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10168 done
10171 echo "$as_me:$LINENO: checking for iconv" >&5
10172 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10173 if test "${am_cv_func_iconv+set}" = set; then
10174 echo $ECHO_N "(cached) $ECHO_C" >&6
10175 else
10177 am_cv_func_iconv="no, consider installing GNU libiconv"
10178 am_cv_lib_iconv=no
10179 if test x$gcc_no_link = xyes; then
10180 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10181 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10182 { (exit 1); exit 1; }; }
10184 cat >conftest.$ac_ext <<_ACEOF
10185 /* confdefs.h. */
10186 _ACEOF
10187 cat confdefs.h >>conftest.$ac_ext
10188 cat >>conftest.$ac_ext <<_ACEOF
10189 /* end confdefs.h. */
10190 #include <stdlib.h>
10191 #include <iconv.h>
10193 main ()
10195 iconv_t cd = iconv_open("","");
10196 iconv(cd,NULL,NULL,NULL,NULL);
10197 iconv_close(cd);
10199 return 0;
10201 _ACEOF
10202 rm -f conftest.$ac_objext conftest$ac_exeext
10203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10204 (eval $ac_link) 2>conftest.er1
10205 ac_status=$?
10206 grep -v '^ *+' conftest.er1 >conftest.err
10207 rm -f conftest.er1
10208 cat conftest.err >&5
10209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210 (exit $ac_status); } &&
10211 { ac_try='test -z "$ac_c_werror_flag"
10212 || test ! -s conftest.err'
10213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10214 (eval $ac_try) 2>&5
10215 ac_status=$?
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); }; } &&
10218 { ac_try='test -s conftest$ac_exeext'
10219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10220 (eval $ac_try) 2>&5
10221 ac_status=$?
10222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223 (exit $ac_status); }; }; then
10224 am_cv_func_iconv=yes
10225 else
10226 echo "$as_me: failed program was:" >&5
10227 sed 's/^/| /' conftest.$ac_ext >&5
10230 rm -f conftest.err conftest.$ac_objext \
10231 conftest$ac_exeext conftest.$ac_ext
10232 if test "$am_cv_func_iconv" != yes; then
10233 am_save_LIBS="$LIBS"
10234 LIBS="$LIBS $LIBICONV"
10235 if test x$gcc_no_link = xyes; then
10236 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10237 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10238 { (exit 1); exit 1; }; }
10240 cat >conftest.$ac_ext <<_ACEOF
10241 /* confdefs.h. */
10242 _ACEOF
10243 cat confdefs.h >>conftest.$ac_ext
10244 cat >>conftest.$ac_ext <<_ACEOF
10245 /* end confdefs.h. */
10246 #include <stdlib.h>
10247 #include <iconv.h>
10249 main ()
10251 iconv_t cd = iconv_open("","");
10252 iconv(cd,NULL,NULL,NULL,NULL);
10253 iconv_close(cd);
10255 return 0;
10257 _ACEOF
10258 rm -f conftest.$ac_objext conftest$ac_exeext
10259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10260 (eval $ac_link) 2>conftest.er1
10261 ac_status=$?
10262 grep -v '^ *+' conftest.er1 >conftest.err
10263 rm -f conftest.er1
10264 cat conftest.err >&5
10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 (exit $ac_status); } &&
10267 { ac_try='test -z "$ac_c_werror_flag"
10268 || test ! -s conftest.err'
10269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10270 (eval $ac_try) 2>&5
10271 ac_status=$?
10272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273 (exit $ac_status); }; } &&
10274 { ac_try='test -s conftest$ac_exeext'
10275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10276 (eval $ac_try) 2>&5
10277 ac_status=$?
10278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10279 (exit $ac_status); }; }; then
10280 am_cv_lib_iconv=yes
10281 am_cv_func_iconv=yes
10282 else
10283 echo "$as_me: failed program was:" >&5
10284 sed 's/^/| /' conftest.$ac_ext >&5
10287 rm -f conftest.err conftest.$ac_objext \
10288 conftest$ac_exeext conftest.$ac_ext
10289 LIBS="$am_save_LIBS"
10293 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10294 echo "${ECHO_T}$am_cv_func_iconv" >&6
10295 if test "$am_cv_func_iconv" = yes; then
10297 cat >>confdefs.h <<\_ACEOF
10298 #define HAVE_ICONV 1
10299 _ACEOF
10302 if test "$am_cv_lib_iconv" = yes; then
10303 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10304 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10305 echo "$as_me:$LINENO: result: $LIBICONV" >&5
10306 echo "${ECHO_T}$LIBICONV" >&6
10307 else
10308 CPPFLAGS="$am_save_CPPFLAGS"
10309 LIBICONV=
10310 LTLIBICONV=
10315 if test "$am_cv_func_iconv" = yes; then
10316 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10317 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10318 if test "${am_cv_proto_iconv+set}" = set; then
10319 echo $ECHO_N "(cached) $ECHO_C" >&6
10320 else
10322 cat >conftest.$ac_ext <<_ACEOF
10323 /* confdefs.h. */
10324 _ACEOF
10325 cat confdefs.h >>conftest.$ac_ext
10326 cat >>conftest.$ac_ext <<_ACEOF
10327 /* end confdefs.h. */
10329 #include <stdlib.h>
10330 #include <iconv.h>
10331 extern
10332 #ifdef __cplusplus
10334 #endif
10335 #if defined(__STDC__) || defined(__cplusplus)
10336 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10337 #else
10338 size_t iconv();
10339 #endif
10342 main ()
10346 return 0;
10348 _ACEOF
10349 rm -f conftest.$ac_objext
10350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10351 (eval $ac_compile) 2>conftest.er1
10352 ac_status=$?
10353 grep -v '^ *+' conftest.er1 >conftest.err
10354 rm -f conftest.er1
10355 cat conftest.err >&5
10356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357 (exit $ac_status); } &&
10358 { ac_try='test -z "$ac_c_werror_flag"
10359 || test ! -s conftest.err'
10360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10361 (eval $ac_try) 2>&5
10362 ac_status=$?
10363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364 (exit $ac_status); }; } &&
10365 { ac_try='test -s conftest.$ac_objext'
10366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10367 (eval $ac_try) 2>&5
10368 ac_status=$?
10369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370 (exit $ac_status); }; }; then
10371 am_cv_proto_iconv_arg1=""
10372 else
10373 echo "$as_me: failed program was:" >&5
10374 sed 's/^/| /' conftest.$ac_ext >&5
10376 am_cv_proto_iconv_arg1="const"
10378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10379 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);"
10382 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10383 echo "$as_me:$LINENO: result: ${ac_t:-
10384 }$am_cv_proto_iconv" >&5
10385 echo "${ECHO_T}${ac_t:-
10386 }$am_cv_proto_iconv" >&6
10388 cat >>confdefs.h <<_ACEOF
10389 #define ICONV_CONST $am_cv_proto_iconv_arg1
10390 _ACEOF
10395 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10396 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10397 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10398 echo $ECHO_N "(cached) $ECHO_C" >&6
10399 else
10400 if test x$gcc_no_link = xyes; then
10401 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10402 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10403 { (exit 1); exit 1; }; }
10405 cat >conftest.$ac_ext <<_ACEOF
10406 /* confdefs.h. */
10407 _ACEOF
10408 cat confdefs.h >>conftest.$ac_ext
10409 cat >>conftest.$ac_ext <<_ACEOF
10410 /* end confdefs.h. */
10411 #include <locale.h>
10413 main ()
10415 return LC_MESSAGES
10417 return 0;
10419 _ACEOF
10420 rm -f conftest.$ac_objext conftest$ac_exeext
10421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10422 (eval $ac_link) 2>conftest.er1
10423 ac_status=$?
10424 grep -v '^ *+' conftest.er1 >conftest.err
10425 rm -f conftest.er1
10426 cat conftest.err >&5
10427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428 (exit $ac_status); } &&
10429 { ac_try='test -z "$ac_c_werror_flag"
10430 || test ! -s conftest.err'
10431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10432 (eval $ac_try) 2>&5
10433 ac_status=$?
10434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10435 (exit $ac_status); }; } &&
10436 { ac_try='test -s conftest$ac_exeext'
10437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10438 (eval $ac_try) 2>&5
10439 ac_status=$?
10440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441 (exit $ac_status); }; }; then
10442 am_cv_val_LC_MESSAGES=yes
10443 else
10444 echo "$as_me: failed program was:" >&5
10445 sed 's/^/| /' conftest.$ac_ext >&5
10447 am_cv_val_LC_MESSAGES=no
10449 rm -f conftest.err conftest.$ac_objext \
10450 conftest$ac_exeext conftest.$ac_ext
10452 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10453 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
10454 if test $am_cv_val_LC_MESSAGES = yes; then
10456 cat >>confdefs.h <<\_ACEOF
10457 #define HAVE_LC_MESSAGES 1
10458 _ACEOF
10462 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10463 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10464 if test "${ac_cv_struct_tm+set}" = set; then
10465 echo $ECHO_N "(cached) $ECHO_C" >&6
10466 else
10467 cat >conftest.$ac_ext <<_ACEOF
10468 /* confdefs.h. */
10469 _ACEOF
10470 cat confdefs.h >>conftest.$ac_ext
10471 cat >>conftest.$ac_ext <<_ACEOF
10472 /* end confdefs.h. */
10473 #include <sys/types.h>
10474 #include <time.h>
10477 main ()
10479 struct tm *tp; tp->tm_sec;
10481 return 0;
10483 _ACEOF
10484 rm -f conftest.$ac_objext
10485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10486 (eval $ac_compile) 2>conftest.er1
10487 ac_status=$?
10488 grep -v '^ *+' conftest.er1 >conftest.err
10489 rm -f conftest.er1
10490 cat conftest.err >&5
10491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492 (exit $ac_status); } &&
10493 { ac_try='test -z "$ac_c_werror_flag"
10494 || test ! -s conftest.err'
10495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10496 (eval $ac_try) 2>&5
10497 ac_status=$?
10498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10499 (exit $ac_status); }; } &&
10500 { ac_try='test -s conftest.$ac_objext'
10501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10502 (eval $ac_try) 2>&5
10503 ac_status=$?
10504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10505 (exit $ac_status); }; }; then
10506 ac_cv_struct_tm=time.h
10507 else
10508 echo "$as_me: failed program was:" >&5
10509 sed 's/^/| /' conftest.$ac_ext >&5
10511 ac_cv_struct_tm=sys/time.h
10513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10515 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10516 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10517 if test $ac_cv_struct_tm = sys/time.h; then
10519 cat >>confdefs.h <<\_ACEOF
10520 #define TM_IN_SYS_TIME 1
10521 _ACEOF
10525 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10526 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10527 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10528 echo $ECHO_N "(cached) $ECHO_C" >&6
10529 else
10530 cat >conftest.$ac_ext <<_ACEOF
10531 /* confdefs.h. */
10532 _ACEOF
10533 cat confdefs.h >>conftest.$ac_ext
10534 cat >>conftest.$ac_ext <<_ACEOF
10535 /* end confdefs.h. */
10536 #include <sys/types.h>
10537 #include <$ac_cv_struct_tm>
10541 main ()
10543 static struct tm ac_aggr;
10544 if (ac_aggr.tm_zone)
10545 return 0;
10547 return 0;
10549 _ACEOF
10550 rm -f conftest.$ac_objext
10551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10552 (eval $ac_compile) 2>conftest.er1
10553 ac_status=$?
10554 grep -v '^ *+' conftest.er1 >conftest.err
10555 rm -f conftest.er1
10556 cat conftest.err >&5
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); } &&
10559 { ac_try='test -z "$ac_c_werror_flag"
10560 || test ! -s conftest.err'
10561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10562 (eval $ac_try) 2>&5
10563 ac_status=$?
10564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565 (exit $ac_status); }; } &&
10566 { ac_try='test -s conftest.$ac_objext'
10567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10568 (eval $ac_try) 2>&5
10569 ac_status=$?
10570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571 (exit $ac_status); }; }; then
10572 ac_cv_member_struct_tm_tm_zone=yes
10573 else
10574 echo "$as_me: failed program was:" >&5
10575 sed 's/^/| /' conftest.$ac_ext >&5
10577 cat >conftest.$ac_ext <<_ACEOF
10578 /* confdefs.h. */
10579 _ACEOF
10580 cat confdefs.h >>conftest.$ac_ext
10581 cat >>conftest.$ac_ext <<_ACEOF
10582 /* end confdefs.h. */
10583 #include <sys/types.h>
10584 #include <$ac_cv_struct_tm>
10588 main ()
10590 static struct tm ac_aggr;
10591 if (sizeof ac_aggr.tm_zone)
10592 return 0;
10594 return 0;
10596 _ACEOF
10597 rm -f conftest.$ac_objext
10598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10599 (eval $ac_compile) 2>conftest.er1
10600 ac_status=$?
10601 grep -v '^ *+' conftest.er1 >conftest.err
10602 rm -f conftest.er1
10603 cat conftest.err >&5
10604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605 (exit $ac_status); } &&
10606 { ac_try='test -z "$ac_c_werror_flag"
10607 || test ! -s conftest.err'
10608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10609 (eval $ac_try) 2>&5
10610 ac_status=$?
10611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612 (exit $ac_status); }; } &&
10613 { ac_try='test -s conftest.$ac_objext'
10614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10615 (eval $ac_try) 2>&5
10616 ac_status=$?
10617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618 (exit $ac_status); }; }; then
10619 ac_cv_member_struct_tm_tm_zone=yes
10620 else
10621 echo "$as_me: failed program was:" >&5
10622 sed 's/^/| /' conftest.$ac_ext >&5
10624 ac_cv_member_struct_tm_tm_zone=no
10626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10630 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10631 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10632 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10634 cat >>confdefs.h <<_ACEOF
10635 #define HAVE_STRUCT_TM_TM_ZONE 1
10636 _ACEOF
10641 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10643 cat >>confdefs.h <<\_ACEOF
10644 #define HAVE_TM_ZONE 1
10645 _ACEOF
10647 else
10648 echo "$as_me:$LINENO: checking for tzname" >&5
10649 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10650 if test "${ac_cv_var_tzname+set}" = set; then
10651 echo $ECHO_N "(cached) $ECHO_C" >&6
10652 else
10653 if test x$gcc_no_link = xyes; then
10654 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10655 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10656 { (exit 1); exit 1; }; }
10658 cat >conftest.$ac_ext <<_ACEOF
10659 /* confdefs.h. */
10660 _ACEOF
10661 cat confdefs.h >>conftest.$ac_ext
10662 cat >>conftest.$ac_ext <<_ACEOF
10663 /* end confdefs.h. */
10664 #include <time.h>
10665 #ifndef tzname /* For SGI. */
10666 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
10667 #endif
10670 main ()
10672 atoi(*tzname);
10674 return 0;
10676 _ACEOF
10677 rm -f conftest.$ac_objext conftest$ac_exeext
10678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10679 (eval $ac_link) 2>conftest.er1
10680 ac_status=$?
10681 grep -v '^ *+' conftest.er1 >conftest.err
10682 rm -f conftest.er1
10683 cat conftest.err >&5
10684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685 (exit $ac_status); } &&
10686 { ac_try='test -z "$ac_c_werror_flag"
10687 || test ! -s conftest.err'
10688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10689 (eval $ac_try) 2>&5
10690 ac_status=$?
10691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692 (exit $ac_status); }; } &&
10693 { ac_try='test -s conftest$ac_exeext'
10694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10695 (eval $ac_try) 2>&5
10696 ac_status=$?
10697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698 (exit $ac_status); }; }; then
10699 ac_cv_var_tzname=yes
10700 else
10701 echo "$as_me: failed program was:" >&5
10702 sed 's/^/| /' conftest.$ac_ext >&5
10704 ac_cv_var_tzname=no
10706 rm -f conftest.err conftest.$ac_objext \
10707 conftest$ac_exeext conftest.$ac_ext
10709 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10710 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10711 if test $ac_cv_var_tzname = yes; then
10713 cat >>confdefs.h <<\_ACEOF
10714 #define HAVE_TZNAME 1
10715 _ACEOF
10723 for ac_func in gethostbyname_r
10725 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10726 echo "$as_me:$LINENO: checking for $ac_func" >&5
10727 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10728 if eval "test \"\${$as_ac_var+set}\" = set"; then
10729 echo $ECHO_N "(cached) $ECHO_C" >&6
10730 else
10731 if test x$gcc_no_link = xyes; then
10732 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10733 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10734 { (exit 1); exit 1; }; }
10736 cat >conftest.$ac_ext <<_ACEOF
10737 /* confdefs.h. */
10738 _ACEOF
10739 cat confdefs.h >>conftest.$ac_ext
10740 cat >>conftest.$ac_ext <<_ACEOF
10741 /* end confdefs.h. */
10742 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10743 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10744 #define $ac_func innocuous_$ac_func
10746 /* System header to define __stub macros and hopefully few prototypes,
10747 which can conflict with char $ac_func (); below.
10748 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10749 <limits.h> exists even on freestanding compilers. */
10751 #ifdef __STDC__
10752 # include <limits.h>
10753 #else
10754 # include <assert.h>
10755 #endif
10757 #undef $ac_func
10759 /* Override any gcc2 internal prototype to avoid an error. */
10760 #ifdef __cplusplus
10761 extern "C"
10763 #endif
10764 /* We use char because int might match the return type of a gcc2
10765 builtin and then its argument prototype would still apply. */
10766 char $ac_func ();
10767 /* The GNU C library defines this for functions which it implements
10768 to always fail with ENOSYS. Some functions are actually named
10769 something starting with __ and the normal name is an alias. */
10770 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10771 choke me
10772 #else
10773 char (*f) () = $ac_func;
10774 #endif
10775 #ifdef __cplusplus
10777 #endif
10780 main ()
10782 return f != $ac_func;
10784 return 0;
10786 _ACEOF
10787 rm -f conftest.$ac_objext conftest$ac_exeext
10788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10789 (eval $ac_link) 2>conftest.er1
10790 ac_status=$?
10791 grep -v '^ *+' conftest.er1 >conftest.err
10792 rm -f conftest.er1
10793 cat conftest.err >&5
10794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10795 (exit $ac_status); } &&
10796 { ac_try='test -z "$ac_c_werror_flag"
10797 || test ! -s conftest.err'
10798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10799 (eval $ac_try) 2>&5
10800 ac_status=$?
10801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802 (exit $ac_status); }; } &&
10803 { ac_try='test -s conftest$ac_exeext'
10804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10805 (eval $ac_try) 2>&5
10806 ac_status=$?
10807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10808 (exit $ac_status); }; }; then
10809 eval "$as_ac_var=yes"
10810 else
10811 echo "$as_me: failed program was:" >&5
10812 sed 's/^/| /' conftest.$ac_ext >&5
10814 eval "$as_ac_var=no"
10816 rm -f conftest.err conftest.$ac_objext \
10817 conftest$ac_exeext conftest.$ac_ext
10819 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10820 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10821 if test `eval echo '${'$as_ac_var'}'` = yes; then
10822 cat >>confdefs.h <<_ACEOF
10823 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10824 _ACEOF
10827 cat >>confdefs.h <<\_ACEOF
10828 #define HAVE_GETHOSTBYNAME_R 1
10829 _ACEOF
10831 # There are two different kinds of gethostbyname_r.
10832 # We look for the one that returns `int'.
10833 # Hopefully this check is robust enough.
10834 cat >conftest.$ac_ext <<_ACEOF
10835 /* confdefs.h. */
10836 _ACEOF
10837 cat confdefs.h >>conftest.$ac_ext
10838 cat >>conftest.$ac_ext <<_ACEOF
10839 /* end confdefs.h. */
10840 #include <netdb.h>
10842 _ACEOF
10843 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10844 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
10847 cat >>confdefs.h <<\_ACEOF
10848 #define GETHOSTBYNAME_R_RETURNS_INT 1
10849 _ACEOF
10852 rm -f conftest*
10855 case " $GCINCS " in
10856 *" -D_REENTRANT "*) ;;
10858 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
10859 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
10860 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
10861 echo $ECHO_N "(cached) $ECHO_C" >&6
10862 else
10863 ac_ext=cc
10864 ac_cpp='$CXXCPP $CPPFLAGS'
10865 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10866 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10867 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10869 cat >conftest.$ac_ext <<_ACEOF
10870 /* confdefs.h. */
10871 _ACEOF
10872 cat confdefs.h >>conftest.$ac_ext
10873 cat >>conftest.$ac_ext <<_ACEOF
10874 /* end confdefs.h. */
10875 #include <netdb.h>
10877 main ()
10879 gethostbyname_r("", 0, 0);
10881 return 0;
10883 _ACEOF
10884 rm -f conftest.$ac_objext
10885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10886 (eval $ac_compile) 2>conftest.er1
10887 ac_status=$?
10888 grep -v '^ *+' conftest.er1 >conftest.err
10889 rm -f conftest.er1
10890 cat conftest.err >&5
10891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892 (exit $ac_status); } &&
10893 { ac_try='test -z "$ac_cxx_werror_flag"
10894 || test ! -s conftest.err'
10895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10896 (eval $ac_try) 2>&5
10897 ac_status=$?
10898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899 (exit $ac_status); }; } &&
10900 { ac_try='test -s conftest.$ac_objext'
10901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10902 (eval $ac_try) 2>&5
10903 ac_status=$?
10904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905 (exit $ac_status); }; }; then
10906 libjava_cv_gethostbyname_r_needs_reentrant=no
10907 else
10908 echo "$as_me: failed program was:" >&5
10909 sed 's/^/| /' conftest.$ac_ext >&5
10911 CPPFLAGS_SAVE="$CPPFLAGS"
10912 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
10913 cat >conftest.$ac_ext <<_ACEOF
10914 /* confdefs.h. */
10915 _ACEOF
10916 cat confdefs.h >>conftest.$ac_ext
10917 cat >>conftest.$ac_ext <<_ACEOF
10918 /* end confdefs.h. */
10919 #include <netdb.h>
10921 main ()
10923 gethostbyname_r("", 0, 0);
10925 return 0;
10927 _ACEOF
10928 rm -f conftest.$ac_objext
10929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10930 (eval $ac_compile) 2>conftest.er1
10931 ac_status=$?
10932 grep -v '^ *+' conftest.er1 >conftest.err
10933 rm -f conftest.er1
10934 cat conftest.err >&5
10935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10936 (exit $ac_status); } &&
10937 { ac_try='test -z "$ac_cxx_werror_flag"
10938 || test ! -s conftest.err'
10939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10940 (eval $ac_try) 2>&5
10941 ac_status=$?
10942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10943 (exit $ac_status); }; } &&
10944 { ac_try='test -s conftest.$ac_objext'
10945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10946 (eval $ac_try) 2>&5
10947 ac_status=$?
10948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949 (exit $ac_status); }; }; then
10950 libjava_cv_gethostbyname_r_needs_reentrant=yes
10951 else
10952 echo "$as_me: failed program was:" >&5
10953 sed 's/^/| /' conftest.$ac_ext >&5
10955 libjava_cv_gethostbyname_r_needs_reentrant=fail
10957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10958 CPPFLAGS="$CPPFLAGS_SAVE"
10961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10962 ac_ext=c
10963 ac_cpp='$CPP $CPPFLAGS'
10964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10970 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
10971 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
10972 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
10974 cat >>confdefs.h <<\_ACEOF
10975 #define _REENTRANT 1
10976 _ACEOF
10980 esac
10982 echo "$as_me:$LINENO: checking for struct hostent_data" >&5
10983 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
10984 if test "${libjava_cv_struct_hostent_data+set}" = set; then
10985 echo $ECHO_N "(cached) $ECHO_C" >&6
10986 else
10987 cat >conftest.$ac_ext <<_ACEOF
10988 /* confdefs.h. */
10989 _ACEOF
10990 cat confdefs.h >>conftest.$ac_ext
10991 cat >>conftest.$ac_ext <<_ACEOF
10992 /* end confdefs.h. */
10994 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
10995 # define _REENTRANT 1
10996 #endif
10997 #include <netdb.h>
10999 main ()
11001 struct hostent_data data;
11003 return 0;
11005 _ACEOF
11006 rm -f conftest.$ac_objext
11007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11008 (eval $ac_compile) 2>conftest.er1
11009 ac_status=$?
11010 grep -v '^ *+' conftest.er1 >conftest.err
11011 rm -f conftest.er1
11012 cat conftest.err >&5
11013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014 (exit $ac_status); } &&
11015 { ac_try='test -z "$ac_c_werror_flag"
11016 || test ! -s conftest.err'
11017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11018 (eval $ac_try) 2>&5
11019 ac_status=$?
11020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021 (exit $ac_status); }; } &&
11022 { ac_try='test -s conftest.$ac_objext'
11023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11024 (eval $ac_try) 2>&5
11025 ac_status=$?
11026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027 (exit $ac_status); }; }; then
11028 libjava_cv_struct_hostent_data=yes
11029 else
11030 echo "$as_me: failed program was:" >&5
11031 sed 's/^/| /' conftest.$ac_ext >&5
11033 libjava_cv_struct_hostent_data=no
11035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11037 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
11038 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
11039 if test "x$libjava_cv_struct_hostent_data" = xyes; then
11041 cat >>confdefs.h <<\_ACEOF
11042 #define HAVE_STRUCT_HOSTENT_DATA 1
11043 _ACEOF
11048 done
11051 # FIXME: libjava source code expects to find a prototype for
11052 # gethostbyaddr_r in netdb.h. The outer check ensures that
11053 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
11054 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
11055 # linkage check is enough, yet C++ code requires proper prototypes.)
11056 cat >conftest.$ac_ext <<_ACEOF
11057 /* confdefs.h. */
11058 _ACEOF
11059 cat confdefs.h >>conftest.$ac_ext
11060 cat >>conftest.$ac_ext <<_ACEOF
11061 /* end confdefs.h. */
11062 #include <netdb.h>
11064 _ACEOF
11065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11066 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
11069 for ac_func in gethostbyaddr_r
11071 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11072 echo "$as_me:$LINENO: checking for $ac_func" >&5
11073 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11074 if eval "test \"\${$as_ac_var+set}\" = set"; then
11075 echo $ECHO_N "(cached) $ECHO_C" >&6
11076 else
11077 if test x$gcc_no_link = xyes; then
11078 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11079 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11080 { (exit 1); exit 1; }; }
11082 cat >conftest.$ac_ext <<_ACEOF
11083 /* confdefs.h. */
11084 _ACEOF
11085 cat confdefs.h >>conftest.$ac_ext
11086 cat >>conftest.$ac_ext <<_ACEOF
11087 /* end confdefs.h. */
11088 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11089 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11090 #define $ac_func innocuous_$ac_func
11092 /* System header to define __stub macros and hopefully few prototypes,
11093 which can conflict with char $ac_func (); below.
11094 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11095 <limits.h> exists even on freestanding compilers. */
11097 #ifdef __STDC__
11098 # include <limits.h>
11099 #else
11100 # include <assert.h>
11101 #endif
11103 #undef $ac_func
11105 /* Override any gcc2 internal prototype to avoid an error. */
11106 #ifdef __cplusplus
11107 extern "C"
11109 #endif
11110 /* We use char because int might match the return type of a gcc2
11111 builtin and then its argument prototype would still apply. */
11112 char $ac_func ();
11113 /* The GNU C library defines this for functions which it implements
11114 to always fail with ENOSYS. Some functions are actually named
11115 something starting with __ and the normal name is an alias. */
11116 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11117 choke me
11118 #else
11119 char (*f) () = $ac_func;
11120 #endif
11121 #ifdef __cplusplus
11123 #endif
11126 main ()
11128 return f != $ac_func;
11130 return 0;
11132 _ACEOF
11133 rm -f conftest.$ac_objext conftest$ac_exeext
11134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11135 (eval $ac_link) 2>conftest.er1
11136 ac_status=$?
11137 grep -v '^ *+' conftest.er1 >conftest.err
11138 rm -f conftest.er1
11139 cat conftest.err >&5
11140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141 (exit $ac_status); } &&
11142 { ac_try='test -z "$ac_c_werror_flag"
11143 || test ! -s conftest.err'
11144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11145 (eval $ac_try) 2>&5
11146 ac_status=$?
11147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148 (exit $ac_status); }; } &&
11149 { ac_try='test -s conftest$ac_exeext'
11150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11151 (eval $ac_try) 2>&5
11152 ac_status=$?
11153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154 (exit $ac_status); }; }; then
11155 eval "$as_ac_var=yes"
11156 else
11157 echo "$as_me: failed program was:" >&5
11158 sed 's/^/| /' conftest.$ac_ext >&5
11160 eval "$as_ac_var=no"
11162 rm -f conftest.err conftest.$ac_objext \
11163 conftest$ac_exeext conftest.$ac_ext
11165 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11166 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11167 if test `eval echo '${'$as_ac_var'}'` = yes; then
11168 cat >>confdefs.h <<_ACEOF
11169 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11170 _ACEOF
11173 cat >>confdefs.h <<\_ACEOF
11174 #define HAVE_GETHOSTBYADDR_R 1
11175 _ACEOF
11177 # There are two different kinds of gethostbyaddr_r.
11178 # We look for the one that returns `int'.
11179 # Hopefully this check is robust enough.
11180 cat >conftest.$ac_ext <<_ACEOF
11181 /* confdefs.h. */
11182 _ACEOF
11183 cat confdefs.h >>conftest.$ac_ext
11184 cat >>conftest.$ac_ext <<_ACEOF
11185 /* end confdefs.h. */
11186 #include <netdb.h>
11188 _ACEOF
11189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11190 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
11193 cat >>confdefs.h <<\_ACEOF
11194 #define GETHOSTBYADDR_R_RETURNS_INT 1
11195 _ACEOF
11198 rm -f conftest*
11201 done
11204 rm -f conftest*
11208 for ac_func in gethostname
11210 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11211 echo "$as_me:$LINENO: checking for $ac_func" >&5
11212 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11213 if eval "test \"\${$as_ac_var+set}\" = set"; then
11214 echo $ECHO_N "(cached) $ECHO_C" >&6
11215 else
11216 if test x$gcc_no_link = xyes; then
11217 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11218 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11219 { (exit 1); exit 1; }; }
11221 cat >conftest.$ac_ext <<_ACEOF
11222 /* confdefs.h. */
11223 _ACEOF
11224 cat confdefs.h >>conftest.$ac_ext
11225 cat >>conftest.$ac_ext <<_ACEOF
11226 /* end confdefs.h. */
11227 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11228 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11229 #define $ac_func innocuous_$ac_func
11231 /* System header to define __stub macros and hopefully few prototypes,
11232 which can conflict with char $ac_func (); below.
11233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11234 <limits.h> exists even on freestanding compilers. */
11236 #ifdef __STDC__
11237 # include <limits.h>
11238 #else
11239 # include <assert.h>
11240 #endif
11242 #undef $ac_func
11244 /* Override any gcc2 internal prototype to avoid an error. */
11245 #ifdef __cplusplus
11246 extern "C"
11248 #endif
11249 /* We use char because int might match the return type of a gcc2
11250 builtin and then its argument prototype would still apply. */
11251 char $ac_func ();
11252 /* The GNU C library defines this for functions which it implements
11253 to always fail with ENOSYS. Some functions are actually named
11254 something starting with __ and the normal name is an alias. */
11255 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11256 choke me
11257 #else
11258 char (*f) () = $ac_func;
11259 #endif
11260 #ifdef __cplusplus
11262 #endif
11265 main ()
11267 return f != $ac_func;
11269 return 0;
11271 _ACEOF
11272 rm -f conftest.$ac_objext conftest$ac_exeext
11273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11274 (eval $ac_link) 2>conftest.er1
11275 ac_status=$?
11276 grep -v '^ *+' conftest.er1 >conftest.err
11277 rm -f conftest.er1
11278 cat conftest.err >&5
11279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280 (exit $ac_status); } &&
11281 { ac_try='test -z "$ac_c_werror_flag"
11282 || test ! -s conftest.err'
11283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11284 (eval $ac_try) 2>&5
11285 ac_status=$?
11286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287 (exit $ac_status); }; } &&
11288 { ac_try='test -s conftest$ac_exeext'
11289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11290 (eval $ac_try) 2>&5
11291 ac_status=$?
11292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293 (exit $ac_status); }; }; then
11294 eval "$as_ac_var=yes"
11295 else
11296 echo "$as_me: failed program was:" >&5
11297 sed 's/^/| /' conftest.$ac_ext >&5
11299 eval "$as_ac_var=no"
11301 rm -f conftest.err conftest.$ac_objext \
11302 conftest$ac_exeext conftest.$ac_ext
11304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11305 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11306 if test `eval echo '${'$as_ac_var'}'` = yes; then
11307 cat >>confdefs.h <<_ACEOF
11308 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11309 _ACEOF
11312 cat >>confdefs.h <<\_ACEOF
11313 #define HAVE_GETHOSTNAME 1
11314 _ACEOF
11316 cat >conftest.$ac_ext <<_ACEOF
11317 /* confdefs.h. */
11318 _ACEOF
11319 cat confdefs.h >>conftest.$ac_ext
11320 cat >>conftest.$ac_ext <<_ACEOF
11321 /* end confdefs.h. */
11322 #include <unistd.h>
11324 _ACEOF
11325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11326 $EGREP "gethostname" >/dev/null 2>&1; then
11329 cat >>confdefs.h <<\_ACEOF
11330 #define HAVE_GETHOSTNAME_DECL 1
11331 _ACEOF
11334 rm -f conftest*
11337 done
11341 for ac_func in usleep
11343 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11344 echo "$as_me:$LINENO: checking for $ac_func" >&5
11345 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11346 if eval "test \"\${$as_ac_var+set}\" = set"; then
11347 echo $ECHO_N "(cached) $ECHO_C" >&6
11348 else
11349 if test x$gcc_no_link = xyes; then
11350 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11351 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11352 { (exit 1); exit 1; }; }
11354 cat >conftest.$ac_ext <<_ACEOF
11355 /* confdefs.h. */
11356 _ACEOF
11357 cat confdefs.h >>conftest.$ac_ext
11358 cat >>conftest.$ac_ext <<_ACEOF
11359 /* end confdefs.h. */
11360 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11361 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11362 #define $ac_func innocuous_$ac_func
11364 /* System header to define __stub macros and hopefully few prototypes,
11365 which can conflict with char $ac_func (); below.
11366 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11367 <limits.h> exists even on freestanding compilers. */
11369 #ifdef __STDC__
11370 # include <limits.h>
11371 #else
11372 # include <assert.h>
11373 #endif
11375 #undef $ac_func
11377 /* Override any gcc2 internal prototype to avoid an error. */
11378 #ifdef __cplusplus
11379 extern "C"
11381 #endif
11382 /* We use char because int might match the return type of a gcc2
11383 builtin and then its argument prototype would still apply. */
11384 char $ac_func ();
11385 /* The GNU C library defines this for functions which it implements
11386 to always fail with ENOSYS. Some functions are actually named
11387 something starting with __ and the normal name is an alias. */
11388 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11389 choke me
11390 #else
11391 char (*f) () = $ac_func;
11392 #endif
11393 #ifdef __cplusplus
11395 #endif
11398 main ()
11400 return f != $ac_func;
11402 return 0;
11404 _ACEOF
11405 rm -f conftest.$ac_objext conftest$ac_exeext
11406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11407 (eval $ac_link) 2>conftest.er1
11408 ac_status=$?
11409 grep -v '^ *+' conftest.er1 >conftest.err
11410 rm -f conftest.er1
11411 cat conftest.err >&5
11412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413 (exit $ac_status); } &&
11414 { ac_try='test -z "$ac_c_werror_flag"
11415 || test ! -s conftest.err'
11416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11417 (eval $ac_try) 2>&5
11418 ac_status=$?
11419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11420 (exit $ac_status); }; } &&
11421 { ac_try='test -s conftest$ac_exeext'
11422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11423 (eval $ac_try) 2>&5
11424 ac_status=$?
11425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11426 (exit $ac_status); }; }; then
11427 eval "$as_ac_var=yes"
11428 else
11429 echo "$as_me: failed program was:" >&5
11430 sed 's/^/| /' conftest.$ac_ext >&5
11432 eval "$as_ac_var=no"
11434 rm -f conftest.err conftest.$ac_objext \
11435 conftest$ac_exeext conftest.$ac_ext
11437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11438 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11439 if test `eval echo '${'$as_ac_var'}'` = yes; then
11440 cat >>confdefs.h <<_ACEOF
11441 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11442 _ACEOF
11444 cat >conftest.$ac_ext <<_ACEOF
11445 /* confdefs.h. */
11446 _ACEOF
11447 cat confdefs.h >>conftest.$ac_ext
11448 cat >>conftest.$ac_ext <<_ACEOF
11449 /* end confdefs.h. */
11450 #include <unistd.h>
11452 _ACEOF
11453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11454 $EGREP "usleep" >/dev/null 2>&1; then
11457 cat >>confdefs.h <<\_ACEOF
11458 #define HAVE_USLEEP_DECL 1
11459 _ACEOF
11462 rm -f conftest*
11465 done
11468 # Look for these functions in the thread library, but only bother
11469 # if using POSIX threads.
11470 if test "$THREADS" = posix; then
11471 save_LIBS="$LIBS"
11472 LIBS="$LIBS $THREADLIBS"
11473 # Some POSIX thread systems don't have pthread_mutexattr_settype.
11474 # E.g., Solaris.
11477 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
11479 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11480 echo "$as_me:$LINENO: checking for $ac_func" >&5
11481 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11482 if eval "test \"\${$as_ac_var+set}\" = set"; then
11483 echo $ECHO_N "(cached) $ECHO_C" >&6
11484 else
11485 if test x$gcc_no_link = xyes; then
11486 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11487 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11488 { (exit 1); exit 1; }; }
11490 cat >conftest.$ac_ext <<_ACEOF
11491 /* confdefs.h. */
11492 _ACEOF
11493 cat confdefs.h >>conftest.$ac_ext
11494 cat >>conftest.$ac_ext <<_ACEOF
11495 /* end confdefs.h. */
11496 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11498 #define $ac_func innocuous_$ac_func
11500 /* System header to define __stub macros and hopefully few prototypes,
11501 which can conflict with char $ac_func (); below.
11502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11503 <limits.h> exists even on freestanding compilers. */
11505 #ifdef __STDC__
11506 # include <limits.h>
11507 #else
11508 # include <assert.h>
11509 #endif
11511 #undef $ac_func
11513 /* Override any gcc2 internal prototype to avoid an error. */
11514 #ifdef __cplusplus
11515 extern "C"
11517 #endif
11518 /* We use char because int might match the return type of a gcc2
11519 builtin and then its argument prototype would still apply. */
11520 char $ac_func ();
11521 /* The GNU C library defines this for functions which it implements
11522 to always fail with ENOSYS. Some functions are actually named
11523 something starting with __ and the normal name is an alias. */
11524 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11525 choke me
11526 #else
11527 char (*f) () = $ac_func;
11528 #endif
11529 #ifdef __cplusplus
11531 #endif
11534 main ()
11536 return f != $ac_func;
11538 return 0;
11540 _ACEOF
11541 rm -f conftest.$ac_objext conftest$ac_exeext
11542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11543 (eval $ac_link) 2>conftest.er1
11544 ac_status=$?
11545 grep -v '^ *+' conftest.er1 >conftest.err
11546 rm -f conftest.er1
11547 cat conftest.err >&5
11548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549 (exit $ac_status); } &&
11550 { ac_try='test -z "$ac_c_werror_flag"
11551 || test ! -s conftest.err'
11552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11553 (eval $ac_try) 2>&5
11554 ac_status=$?
11555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556 (exit $ac_status); }; } &&
11557 { ac_try='test -s conftest$ac_exeext'
11558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11559 (eval $ac_try) 2>&5
11560 ac_status=$?
11561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562 (exit $ac_status); }; }; then
11563 eval "$as_ac_var=yes"
11564 else
11565 echo "$as_me: failed program was:" >&5
11566 sed 's/^/| /' conftest.$ac_ext >&5
11568 eval "$as_ac_var=no"
11570 rm -f conftest.err conftest.$ac_objext \
11571 conftest$ac_exeext conftest.$ac_ext
11573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11574 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11575 if test `eval echo '${'$as_ac_var'}'` = yes; then
11576 cat >>confdefs.h <<_ACEOF
11577 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11578 _ACEOF
11581 done
11584 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
11585 # Solaris 7 the name librt is preferred.
11587 for ac_func in sched_yield
11589 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11590 echo "$as_me:$LINENO: checking for $ac_func" >&5
11591 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11592 if eval "test \"\${$as_ac_var+set}\" = set"; then
11593 echo $ECHO_N "(cached) $ECHO_C" >&6
11594 else
11595 if test x$gcc_no_link = xyes; then
11596 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11597 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11598 { (exit 1); exit 1; }; }
11600 cat >conftest.$ac_ext <<_ACEOF
11601 /* confdefs.h. */
11602 _ACEOF
11603 cat confdefs.h >>conftest.$ac_ext
11604 cat >>conftest.$ac_ext <<_ACEOF
11605 /* end confdefs.h. */
11606 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11607 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11608 #define $ac_func innocuous_$ac_func
11610 /* System header to define __stub macros and hopefully few prototypes,
11611 which can conflict with char $ac_func (); below.
11612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11613 <limits.h> exists even on freestanding compilers. */
11615 #ifdef __STDC__
11616 # include <limits.h>
11617 #else
11618 # include <assert.h>
11619 #endif
11621 #undef $ac_func
11623 /* Override any gcc2 internal prototype to avoid an error. */
11624 #ifdef __cplusplus
11625 extern "C"
11627 #endif
11628 /* We use char because int might match the return type of a gcc2
11629 builtin and then its argument prototype would still apply. */
11630 char $ac_func ();
11631 /* The GNU C library defines this for functions which it implements
11632 to always fail with ENOSYS. Some functions are actually named
11633 something starting with __ and the normal name is an alias. */
11634 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11635 choke me
11636 #else
11637 char (*f) () = $ac_func;
11638 #endif
11639 #ifdef __cplusplus
11641 #endif
11644 main ()
11646 return f != $ac_func;
11648 return 0;
11650 _ACEOF
11651 rm -f conftest.$ac_objext conftest$ac_exeext
11652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11653 (eval $ac_link) 2>conftest.er1
11654 ac_status=$?
11655 grep -v '^ *+' conftest.er1 >conftest.err
11656 rm -f conftest.er1
11657 cat conftest.err >&5
11658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659 (exit $ac_status); } &&
11660 { ac_try='test -z "$ac_c_werror_flag"
11661 || test ! -s conftest.err'
11662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11663 (eval $ac_try) 2>&5
11664 ac_status=$?
11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 (exit $ac_status); }; } &&
11667 { ac_try='test -s conftest$ac_exeext'
11668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11669 (eval $ac_try) 2>&5
11670 ac_status=$?
11671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672 (exit $ac_status); }; }; then
11673 eval "$as_ac_var=yes"
11674 else
11675 echo "$as_me: failed program was:" >&5
11676 sed 's/^/| /' conftest.$ac_ext >&5
11678 eval "$as_ac_var=no"
11680 rm -f conftest.err conftest.$ac_objext \
11681 conftest$ac_exeext conftest.$ac_ext
11683 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11684 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11685 if test `eval echo '${'$as_ac_var'}'` = yes; then
11686 cat >>confdefs.h <<_ACEOF
11687 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11688 _ACEOF
11690 else
11692 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
11693 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
11694 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
11695 echo $ECHO_N "(cached) $ECHO_C" >&6
11696 else
11697 ac_check_lib_save_LIBS=$LIBS
11698 LIBS="-lrt $LIBS"
11699 if test x$gcc_no_link = xyes; then
11700 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11701 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11702 { (exit 1); exit 1; }; }
11704 cat >conftest.$ac_ext <<_ACEOF
11705 /* confdefs.h. */
11706 _ACEOF
11707 cat confdefs.h >>conftest.$ac_ext
11708 cat >>conftest.$ac_ext <<_ACEOF
11709 /* end confdefs.h. */
11711 /* Override any gcc2 internal prototype to avoid an error. */
11712 #ifdef __cplusplus
11713 extern "C"
11714 #endif
11715 /* We use char because int might match the return type of a gcc2
11716 builtin and then its argument prototype would still apply. */
11717 char sched_yield ();
11719 main ()
11721 sched_yield ();
11723 return 0;
11725 _ACEOF
11726 rm -f conftest.$ac_objext conftest$ac_exeext
11727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11728 (eval $ac_link) 2>conftest.er1
11729 ac_status=$?
11730 grep -v '^ *+' conftest.er1 >conftest.err
11731 rm -f conftest.er1
11732 cat conftest.err >&5
11733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734 (exit $ac_status); } &&
11735 { ac_try='test -z "$ac_c_werror_flag"
11736 || test ! -s conftest.err'
11737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11738 (eval $ac_try) 2>&5
11739 ac_status=$?
11740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741 (exit $ac_status); }; } &&
11742 { ac_try='test -s conftest$ac_exeext'
11743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11744 (eval $ac_try) 2>&5
11745 ac_status=$?
11746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747 (exit $ac_status); }; }; then
11748 ac_cv_lib_rt_sched_yield=yes
11749 else
11750 echo "$as_me: failed program was:" >&5
11751 sed 's/^/| /' conftest.$ac_ext >&5
11753 ac_cv_lib_rt_sched_yield=no
11755 rm -f conftest.err conftest.$ac_objext \
11756 conftest$ac_exeext conftest.$ac_ext
11757 LIBS=$ac_check_lib_save_LIBS
11759 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
11760 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
11761 if test $ac_cv_lib_rt_sched_yield = yes; then
11763 cat >>confdefs.h <<\_ACEOF
11764 #define HAVE_SCHED_YIELD 1
11765 _ACEOF
11767 THREADLIBS="$THREADLIBS -lrt"
11768 THREADSPEC="$THREADSPEC -lrt"
11769 else
11771 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
11772 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
11773 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
11774 echo $ECHO_N "(cached) $ECHO_C" >&6
11775 else
11776 ac_check_lib_save_LIBS=$LIBS
11777 LIBS="-lposix4 $LIBS"
11778 if test x$gcc_no_link = xyes; then
11779 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11780 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11781 { (exit 1); exit 1; }; }
11783 cat >conftest.$ac_ext <<_ACEOF
11784 /* confdefs.h. */
11785 _ACEOF
11786 cat confdefs.h >>conftest.$ac_ext
11787 cat >>conftest.$ac_ext <<_ACEOF
11788 /* end confdefs.h. */
11790 /* Override any gcc2 internal prototype to avoid an error. */
11791 #ifdef __cplusplus
11792 extern "C"
11793 #endif
11794 /* We use char because int might match the return type of a gcc2
11795 builtin and then its argument prototype would still apply. */
11796 char sched_yield ();
11798 main ()
11800 sched_yield ();
11802 return 0;
11804 _ACEOF
11805 rm -f conftest.$ac_objext conftest$ac_exeext
11806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11807 (eval $ac_link) 2>conftest.er1
11808 ac_status=$?
11809 grep -v '^ *+' conftest.er1 >conftest.err
11810 rm -f conftest.er1
11811 cat conftest.err >&5
11812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813 (exit $ac_status); } &&
11814 { ac_try='test -z "$ac_c_werror_flag"
11815 || test ! -s conftest.err'
11816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11817 (eval $ac_try) 2>&5
11818 ac_status=$?
11819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820 (exit $ac_status); }; } &&
11821 { ac_try='test -s conftest$ac_exeext'
11822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11823 (eval $ac_try) 2>&5
11824 ac_status=$?
11825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826 (exit $ac_status); }; }; then
11827 ac_cv_lib_posix4_sched_yield=yes
11828 else
11829 echo "$as_me: failed program was:" >&5
11830 sed 's/^/| /' conftest.$ac_ext >&5
11832 ac_cv_lib_posix4_sched_yield=no
11834 rm -f conftest.err conftest.$ac_objext \
11835 conftest$ac_exeext conftest.$ac_ext
11836 LIBS=$ac_check_lib_save_LIBS
11838 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
11839 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
11840 if test $ac_cv_lib_posix4_sched_yield = yes; then
11842 cat >>confdefs.h <<\_ACEOF
11843 #define HAVE_SCHED_YIELD 1
11844 _ACEOF
11846 THREADLIBS="$THREADLIBS -lposix4"
11847 THREADSPEC="$THREADSPEC -lposix4"
11853 done
11855 LIBS="$save_LIBS"
11857 # We can save a little space at runtime if the mutex has m_count
11858 # or __m_count. This is a nice hack for Linux.
11859 cat >conftest.$ac_ext <<_ACEOF
11860 /* confdefs.h. */
11861 _ACEOF
11862 cat confdefs.h >>conftest.$ac_ext
11863 cat >>conftest.$ac_ext <<_ACEOF
11864 /* end confdefs.h. */
11865 #include <pthread.h>
11867 main ()
11870 extern pthread_mutex_t *mutex; int q = mutex->m_count;
11873 return 0;
11875 _ACEOF
11876 rm -f conftest.$ac_objext
11877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11878 (eval $ac_compile) 2>conftest.er1
11879 ac_status=$?
11880 grep -v '^ *+' conftest.er1 >conftest.err
11881 rm -f conftest.er1
11882 cat conftest.err >&5
11883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884 (exit $ac_status); } &&
11885 { ac_try='test -z "$ac_c_werror_flag"
11886 || test ! -s conftest.err'
11887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11888 (eval $ac_try) 2>&5
11889 ac_status=$?
11890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891 (exit $ac_status); }; } &&
11892 { ac_try='test -s conftest.$ac_objext'
11893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11894 (eval $ac_try) 2>&5
11895 ac_status=$?
11896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897 (exit $ac_status); }; }; then
11899 cat >>confdefs.h <<\_ACEOF
11900 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
11901 _ACEOF
11903 else
11904 echo "$as_me: failed program was:" >&5
11905 sed 's/^/| /' conftest.$ac_ext >&5
11908 cat >conftest.$ac_ext <<_ACEOF
11909 /* confdefs.h. */
11910 _ACEOF
11911 cat confdefs.h >>conftest.$ac_ext
11912 cat >>conftest.$ac_ext <<_ACEOF
11913 /* end confdefs.h. */
11914 #include <pthread.h>
11916 main ()
11919 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
11922 return 0;
11924 _ACEOF
11925 rm -f conftest.$ac_objext
11926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11927 (eval $ac_compile) 2>conftest.er1
11928 ac_status=$?
11929 grep -v '^ *+' conftest.er1 >conftest.err
11930 rm -f conftest.er1
11931 cat conftest.err >&5
11932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933 (exit $ac_status); } &&
11934 { ac_try='test -z "$ac_c_werror_flag"
11935 || test ! -s conftest.err'
11936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11937 (eval $ac_try) 2>&5
11938 ac_status=$?
11939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940 (exit $ac_status); }; } &&
11941 { ac_try='test -s conftest.$ac_objext'
11942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11943 (eval $ac_try) 2>&5
11944 ac_status=$?
11945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946 (exit $ac_status); }; }; then
11948 cat >>confdefs.h <<\_ACEOF
11949 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
11950 _ACEOF
11952 else
11953 echo "$as_me: failed program was:" >&5
11954 sed 's/^/| /' conftest.$ac_ext >&5
11957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11962 # We require a way to get the time.
11963 time_found=no
11967 for ac_func in gettimeofday time ftime
11969 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11970 echo "$as_me:$LINENO: checking for $ac_func" >&5
11971 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11972 if eval "test \"\${$as_ac_var+set}\" = set"; then
11973 echo $ECHO_N "(cached) $ECHO_C" >&6
11974 else
11975 if test x$gcc_no_link = xyes; then
11976 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11977 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11978 { (exit 1); exit 1; }; }
11980 cat >conftest.$ac_ext <<_ACEOF
11981 /* confdefs.h. */
11982 _ACEOF
11983 cat confdefs.h >>conftest.$ac_ext
11984 cat >>conftest.$ac_ext <<_ACEOF
11985 /* end confdefs.h. */
11986 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11988 #define $ac_func innocuous_$ac_func
11990 /* System header to define __stub macros and hopefully few prototypes,
11991 which can conflict with char $ac_func (); below.
11992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11993 <limits.h> exists even on freestanding compilers. */
11995 #ifdef __STDC__
11996 # include <limits.h>
11997 #else
11998 # include <assert.h>
11999 #endif
12001 #undef $ac_func
12003 /* Override any gcc2 internal prototype to avoid an error. */
12004 #ifdef __cplusplus
12005 extern "C"
12007 #endif
12008 /* We use char because int might match the return type of a gcc2
12009 builtin and then its argument prototype would still apply. */
12010 char $ac_func ();
12011 /* The GNU C library defines this for functions which it implements
12012 to always fail with ENOSYS. Some functions are actually named
12013 something starting with __ and the normal name is an alias. */
12014 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12015 choke me
12016 #else
12017 char (*f) () = $ac_func;
12018 #endif
12019 #ifdef __cplusplus
12021 #endif
12024 main ()
12026 return f != $ac_func;
12028 return 0;
12030 _ACEOF
12031 rm -f conftest.$ac_objext conftest$ac_exeext
12032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12033 (eval $ac_link) 2>conftest.er1
12034 ac_status=$?
12035 grep -v '^ *+' conftest.er1 >conftest.err
12036 rm -f conftest.er1
12037 cat conftest.err >&5
12038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039 (exit $ac_status); } &&
12040 { ac_try='test -z "$ac_c_werror_flag"
12041 || test ! -s conftest.err'
12042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12043 (eval $ac_try) 2>&5
12044 ac_status=$?
12045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046 (exit $ac_status); }; } &&
12047 { ac_try='test -s conftest$ac_exeext'
12048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12049 (eval $ac_try) 2>&5
12050 ac_status=$?
12051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052 (exit $ac_status); }; }; then
12053 eval "$as_ac_var=yes"
12054 else
12055 echo "$as_me: failed program was:" >&5
12056 sed 's/^/| /' conftest.$ac_ext >&5
12058 eval "$as_ac_var=no"
12060 rm -f conftest.err conftest.$ac_objext \
12061 conftest$ac_exeext conftest.$ac_ext
12063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12064 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12065 if test `eval echo '${'$as_ac_var'}'` = yes; then
12066 cat >>confdefs.h <<_ACEOF
12067 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12068 _ACEOF
12069 time_found=yes
12071 done
12073 if test "$time_found" = no; then
12074 { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
12075 echo "$as_me: error: no function found to get the time" >&2;}
12076 { (exit 1); exit 1; }; }
12080 for ac_func in memmove
12082 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12083 echo "$as_me:$LINENO: checking for $ac_func" >&5
12084 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12085 if eval "test \"\${$as_ac_var+set}\" = set"; then
12086 echo $ECHO_N "(cached) $ECHO_C" >&6
12087 else
12088 if test x$gcc_no_link = xyes; then
12089 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12090 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12091 { (exit 1); exit 1; }; }
12093 cat >conftest.$ac_ext <<_ACEOF
12094 /* confdefs.h. */
12095 _ACEOF
12096 cat confdefs.h >>conftest.$ac_ext
12097 cat >>conftest.$ac_ext <<_ACEOF
12098 /* end confdefs.h. */
12099 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12100 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12101 #define $ac_func innocuous_$ac_func
12103 /* System header to define __stub macros and hopefully few prototypes,
12104 which can conflict with char $ac_func (); below.
12105 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12106 <limits.h> exists even on freestanding compilers. */
12108 #ifdef __STDC__
12109 # include <limits.h>
12110 #else
12111 # include <assert.h>
12112 #endif
12114 #undef $ac_func
12116 /* Override any gcc2 internal prototype to avoid an error. */
12117 #ifdef __cplusplus
12118 extern "C"
12120 #endif
12121 /* We use char because int might match the return type of a gcc2
12122 builtin and then its argument prototype would still apply. */
12123 char $ac_func ();
12124 /* The GNU C library defines this for functions which it implements
12125 to always fail with ENOSYS. Some functions are actually named
12126 something starting with __ and the normal name is an alias. */
12127 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12128 choke me
12129 #else
12130 char (*f) () = $ac_func;
12131 #endif
12132 #ifdef __cplusplus
12134 #endif
12137 main ()
12139 return f != $ac_func;
12141 return 0;
12143 _ACEOF
12144 rm -f conftest.$ac_objext conftest$ac_exeext
12145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12146 (eval $ac_link) 2>conftest.er1
12147 ac_status=$?
12148 grep -v '^ *+' conftest.er1 >conftest.err
12149 rm -f conftest.er1
12150 cat conftest.err >&5
12151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152 (exit $ac_status); } &&
12153 { ac_try='test -z "$ac_c_werror_flag"
12154 || test ! -s conftest.err'
12155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12156 (eval $ac_try) 2>&5
12157 ac_status=$?
12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); }; } &&
12160 { ac_try='test -s conftest$ac_exeext'
12161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12162 (eval $ac_try) 2>&5
12163 ac_status=$?
12164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165 (exit $ac_status); }; }; then
12166 eval "$as_ac_var=yes"
12167 else
12168 echo "$as_me: failed program was:" >&5
12169 sed 's/^/| /' conftest.$ac_ext >&5
12171 eval "$as_ac_var=no"
12173 rm -f conftest.err conftest.$ac_objext \
12174 conftest$ac_exeext conftest.$ac_ext
12176 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12177 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12178 if test `eval echo '${'$as_ac_var'}'` = yes; then
12179 cat >>confdefs.h <<_ACEOF
12180 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12181 _ACEOF
12184 done
12187 # We require memcpy.
12188 memcpy_found=no
12190 for ac_func in memcpy
12192 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12193 echo "$as_me:$LINENO: checking for $ac_func" >&5
12194 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12195 if eval "test \"\${$as_ac_var+set}\" = set"; then
12196 echo $ECHO_N "(cached) $ECHO_C" >&6
12197 else
12198 if test x$gcc_no_link = xyes; then
12199 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12200 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12201 { (exit 1); exit 1; }; }
12203 cat >conftest.$ac_ext <<_ACEOF
12204 /* confdefs.h. */
12205 _ACEOF
12206 cat confdefs.h >>conftest.$ac_ext
12207 cat >>conftest.$ac_ext <<_ACEOF
12208 /* end confdefs.h. */
12209 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12211 #define $ac_func innocuous_$ac_func
12213 /* System header to define __stub macros and hopefully few prototypes,
12214 which can conflict with char $ac_func (); below.
12215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12216 <limits.h> exists even on freestanding compilers. */
12218 #ifdef __STDC__
12219 # include <limits.h>
12220 #else
12221 # include <assert.h>
12222 #endif
12224 #undef $ac_func
12226 /* Override any gcc2 internal prototype to avoid an error. */
12227 #ifdef __cplusplus
12228 extern "C"
12230 #endif
12231 /* We use char because int might match the return type of a gcc2
12232 builtin and then its argument prototype would still apply. */
12233 char $ac_func ();
12234 /* The GNU C library defines this for functions which it implements
12235 to always fail with ENOSYS. Some functions are actually named
12236 something starting with __ and the normal name is an alias. */
12237 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12238 choke me
12239 #else
12240 char (*f) () = $ac_func;
12241 #endif
12242 #ifdef __cplusplus
12244 #endif
12247 main ()
12249 return f != $ac_func;
12251 return 0;
12253 _ACEOF
12254 rm -f conftest.$ac_objext conftest$ac_exeext
12255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12256 (eval $ac_link) 2>conftest.er1
12257 ac_status=$?
12258 grep -v '^ *+' conftest.er1 >conftest.err
12259 rm -f conftest.er1
12260 cat conftest.err >&5
12261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262 (exit $ac_status); } &&
12263 { ac_try='test -z "$ac_c_werror_flag"
12264 || test ! -s conftest.err'
12265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12266 (eval $ac_try) 2>&5
12267 ac_status=$?
12268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); }; } &&
12270 { ac_try='test -s conftest$ac_exeext'
12271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12272 (eval $ac_try) 2>&5
12273 ac_status=$?
12274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275 (exit $ac_status); }; }; then
12276 eval "$as_ac_var=yes"
12277 else
12278 echo "$as_me: failed program was:" >&5
12279 sed 's/^/| /' conftest.$ac_ext >&5
12281 eval "$as_ac_var=no"
12283 rm -f conftest.err conftest.$ac_objext \
12284 conftest$ac_exeext conftest.$ac_ext
12286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12287 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12288 if test `eval echo '${'$as_ac_var'}'` = yes; then
12289 cat >>confdefs.h <<_ACEOF
12290 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12291 _ACEOF
12292 memcpy_found=yes
12294 done
12296 if test "$memcpy_found" = no; then
12297 { { echo "$as_me:$LINENO: error: memcpy is required" >&5
12298 echo "$as_me: error: memcpy is required" >&2;}
12299 { (exit 1); exit 1; }; }
12302 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12303 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12304 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12305 echo $ECHO_N "(cached) $ECHO_C" >&6
12306 else
12307 ac_check_lib_save_LIBS=$LIBS
12308 LIBS="-ldl $LIBS"
12309 if test x$gcc_no_link = xyes; then
12310 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12311 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12312 { (exit 1); exit 1; }; }
12314 cat >conftest.$ac_ext <<_ACEOF
12315 /* confdefs.h. */
12316 _ACEOF
12317 cat confdefs.h >>conftest.$ac_ext
12318 cat >>conftest.$ac_ext <<_ACEOF
12319 /* end confdefs.h. */
12321 /* Override any gcc2 internal prototype to avoid an error. */
12322 #ifdef __cplusplus
12323 extern "C"
12324 #endif
12325 /* We use char because int might match the return type of a gcc2
12326 builtin and then its argument prototype would still apply. */
12327 char dlopen ();
12329 main ()
12331 dlopen ();
12333 return 0;
12335 _ACEOF
12336 rm -f conftest.$ac_objext conftest$ac_exeext
12337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12338 (eval $ac_link) 2>conftest.er1
12339 ac_status=$?
12340 grep -v '^ *+' conftest.er1 >conftest.err
12341 rm -f conftest.er1
12342 cat conftest.err >&5
12343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344 (exit $ac_status); } &&
12345 { ac_try='test -z "$ac_c_werror_flag"
12346 || test ! -s conftest.err'
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); }; } &&
12352 { ac_try='test -s conftest$ac_exeext'
12353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12354 (eval $ac_try) 2>&5
12355 ac_status=$?
12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); }; }; then
12358 ac_cv_lib_dl_dlopen=yes
12359 else
12360 echo "$as_me: failed program was:" >&5
12361 sed 's/^/| /' conftest.$ac_ext >&5
12363 ac_cv_lib_dl_dlopen=no
12365 rm -f conftest.err conftest.$ac_objext \
12366 conftest$ac_exeext conftest.$ac_ext
12367 LIBS=$ac_check_lib_save_LIBS
12369 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12370 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12371 if test $ac_cv_lib_dl_dlopen = yes; then
12374 cat >>confdefs.h <<\_ACEOF
12375 #define HAVE_DLOPEN 1
12376 _ACEOF
12381 # Some library-finding code we stole from Tcl.
12382 #--------------------------------------------------------------------
12383 # Check for the existence of the -lsocket and -lnsl libraries.
12384 # The order here is important, so that they end up in the right
12385 # order in the command line generated by make. Here are some
12386 # special considerations:
12387 # 1. Use "connect" and "accept" to check for -lsocket, and
12388 # "gethostbyname" to check for -lnsl.
12389 # 2. Use each function name only once: can't redo a check because
12390 # autoconf caches the results of the last check and won't redo it.
12391 # 3. Use -lnsl and -lsocket only if they supply procedures that
12392 # aren't already present in the normal libraries. This is because
12393 # IRIX 5.2 has libraries, but they aren't needed and they're
12394 # bogus: they goof up name resolution if used.
12395 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
12396 # To get around this problem, check for both libraries together
12397 # if -lsocket doesn't work by itself.
12398 #--------------------------------------------------------------------
12400 echo "$as_me:$LINENO: checking for socket libraries" >&5
12401 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
12402 if test "${gcj_cv_lib_sockets+set}" = set; then
12403 echo $ECHO_N "(cached) $ECHO_C" >&6
12404 else
12405 gcj_cv_lib_sockets=
12406 gcj_checkBoth=0
12407 unset ac_cv_func_connect
12408 echo "$as_me:$LINENO: checking for connect" >&5
12409 echo $ECHO_N "checking for connect... $ECHO_C" >&6
12410 if test "${ac_cv_func_connect+set}" = set; then
12411 echo $ECHO_N "(cached) $ECHO_C" >&6
12412 else
12413 if test x$gcc_no_link = xyes; then
12414 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12415 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12416 { (exit 1); exit 1; }; }
12418 cat >conftest.$ac_ext <<_ACEOF
12419 /* confdefs.h. */
12420 _ACEOF
12421 cat confdefs.h >>conftest.$ac_ext
12422 cat >>conftest.$ac_ext <<_ACEOF
12423 /* end confdefs.h. */
12424 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
12425 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12426 #define connect innocuous_connect
12428 /* System header to define __stub macros and hopefully few prototypes,
12429 which can conflict with char connect (); below.
12430 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12431 <limits.h> exists even on freestanding compilers. */
12433 #ifdef __STDC__
12434 # include <limits.h>
12435 #else
12436 # include <assert.h>
12437 #endif
12439 #undef connect
12441 /* Override any gcc2 internal prototype to avoid an error. */
12442 #ifdef __cplusplus
12443 extern "C"
12445 #endif
12446 /* We use char because int might match the return type of a gcc2
12447 builtin and then its argument prototype would still apply. */
12448 char connect ();
12449 /* The GNU C library defines this for functions which it implements
12450 to always fail with ENOSYS. Some functions are actually named
12451 something starting with __ and the normal name is an alias. */
12452 #if defined (__stub_connect) || defined (__stub___connect)
12453 choke me
12454 #else
12455 char (*f) () = connect;
12456 #endif
12457 #ifdef __cplusplus
12459 #endif
12462 main ()
12464 return f != connect;
12466 return 0;
12468 _ACEOF
12469 rm -f conftest.$ac_objext conftest$ac_exeext
12470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12471 (eval $ac_link) 2>conftest.er1
12472 ac_status=$?
12473 grep -v '^ *+' conftest.er1 >conftest.err
12474 rm -f conftest.er1
12475 cat conftest.err >&5
12476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477 (exit $ac_status); } &&
12478 { ac_try='test -z "$ac_c_werror_flag"
12479 || test ! -s conftest.err'
12480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12481 (eval $ac_try) 2>&5
12482 ac_status=$?
12483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484 (exit $ac_status); }; } &&
12485 { ac_try='test -s conftest$ac_exeext'
12486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12487 (eval $ac_try) 2>&5
12488 ac_status=$?
12489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490 (exit $ac_status); }; }; then
12491 ac_cv_func_connect=yes
12492 else
12493 echo "$as_me: failed program was:" >&5
12494 sed 's/^/| /' conftest.$ac_ext >&5
12496 ac_cv_func_connect=no
12498 rm -f conftest.err conftest.$ac_objext \
12499 conftest$ac_exeext conftest.$ac_ext
12501 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
12502 echo "${ECHO_T}$ac_cv_func_connect" >&6
12503 if test $ac_cv_func_connect = yes; then
12504 gcj_checkSocket=0
12505 else
12506 gcj_checkSocket=1
12509 if test "$gcj_checkSocket" = 1; then
12510 unset ac_cv_func_connect
12511 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
12512 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
12513 if test "${ac_cv_lib_socket_main+set}" = set; then
12514 echo $ECHO_N "(cached) $ECHO_C" >&6
12515 else
12516 ac_check_lib_save_LIBS=$LIBS
12517 LIBS="-lsocket $LIBS"
12518 if test x$gcc_no_link = xyes; then
12519 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12520 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12521 { (exit 1); exit 1; }; }
12523 cat >conftest.$ac_ext <<_ACEOF
12524 /* confdefs.h. */
12525 _ACEOF
12526 cat confdefs.h >>conftest.$ac_ext
12527 cat >>conftest.$ac_ext <<_ACEOF
12528 /* end confdefs.h. */
12532 main ()
12534 main ();
12536 return 0;
12538 _ACEOF
12539 rm -f conftest.$ac_objext conftest$ac_exeext
12540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12541 (eval $ac_link) 2>conftest.er1
12542 ac_status=$?
12543 grep -v '^ *+' conftest.er1 >conftest.err
12544 rm -f conftest.er1
12545 cat conftest.err >&5
12546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547 (exit $ac_status); } &&
12548 { ac_try='test -z "$ac_c_werror_flag"
12549 || test ! -s conftest.err'
12550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12551 (eval $ac_try) 2>&5
12552 ac_status=$?
12553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554 (exit $ac_status); }; } &&
12555 { ac_try='test -s conftest$ac_exeext'
12556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12557 (eval $ac_try) 2>&5
12558 ac_status=$?
12559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560 (exit $ac_status); }; }; then
12561 ac_cv_lib_socket_main=yes
12562 else
12563 echo "$as_me: failed program was:" >&5
12564 sed 's/^/| /' conftest.$ac_ext >&5
12566 ac_cv_lib_socket_main=no
12568 rm -f conftest.err conftest.$ac_objext \
12569 conftest$ac_exeext conftest.$ac_ext
12570 LIBS=$ac_check_lib_save_LIBS
12572 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
12573 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
12574 if test $ac_cv_lib_socket_main = yes; then
12575 gcj_cv_lib_sockets="-lsocket"
12576 else
12577 gcj_checkBoth=1
12581 if test "$gcj_checkBoth" = 1; then
12582 gcj_oldLibs=$LIBS
12583 LIBS="$LIBS -lsocket -lnsl"
12584 unset ac_cv_func_accept
12585 echo "$as_me:$LINENO: checking for accept" >&5
12586 echo $ECHO_N "checking for accept... $ECHO_C" >&6
12587 if test "${ac_cv_func_accept+set}" = set; then
12588 echo $ECHO_N "(cached) $ECHO_C" >&6
12589 else
12590 if test x$gcc_no_link = xyes; then
12591 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12592 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12593 { (exit 1); exit 1; }; }
12595 cat >conftest.$ac_ext <<_ACEOF
12596 /* confdefs.h. */
12597 _ACEOF
12598 cat confdefs.h >>conftest.$ac_ext
12599 cat >>conftest.$ac_ext <<_ACEOF
12600 /* end confdefs.h. */
12601 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
12602 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12603 #define accept innocuous_accept
12605 /* System header to define __stub macros and hopefully few prototypes,
12606 which can conflict with char accept (); below.
12607 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12608 <limits.h> exists even on freestanding compilers. */
12610 #ifdef __STDC__
12611 # include <limits.h>
12612 #else
12613 # include <assert.h>
12614 #endif
12616 #undef accept
12618 /* Override any gcc2 internal prototype to avoid an error. */
12619 #ifdef __cplusplus
12620 extern "C"
12622 #endif
12623 /* We use char because int might match the return type of a gcc2
12624 builtin and then its argument prototype would still apply. */
12625 char accept ();
12626 /* The GNU C library defines this for functions which it implements
12627 to always fail with ENOSYS. Some functions are actually named
12628 something starting with __ and the normal name is an alias. */
12629 #if defined (__stub_accept) || defined (__stub___accept)
12630 choke me
12631 #else
12632 char (*f) () = accept;
12633 #endif
12634 #ifdef __cplusplus
12636 #endif
12639 main ()
12641 return f != accept;
12643 return 0;
12645 _ACEOF
12646 rm -f conftest.$ac_objext conftest$ac_exeext
12647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12648 (eval $ac_link) 2>conftest.er1
12649 ac_status=$?
12650 grep -v '^ *+' conftest.er1 >conftest.err
12651 rm -f conftest.er1
12652 cat conftest.err >&5
12653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654 (exit $ac_status); } &&
12655 { ac_try='test -z "$ac_c_werror_flag"
12656 || test ! -s conftest.err'
12657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12658 (eval $ac_try) 2>&5
12659 ac_status=$?
12660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661 (exit $ac_status); }; } &&
12662 { ac_try='test -s conftest$ac_exeext'
12663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12664 (eval $ac_try) 2>&5
12665 ac_status=$?
12666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667 (exit $ac_status); }; }; then
12668 ac_cv_func_accept=yes
12669 else
12670 echo "$as_me: failed program was:" >&5
12671 sed 's/^/| /' conftest.$ac_ext >&5
12673 ac_cv_func_accept=no
12675 rm -f conftest.err conftest.$ac_objext \
12676 conftest$ac_exeext conftest.$ac_ext
12678 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
12679 echo "${ECHO_T}$ac_cv_func_accept" >&6
12680 if test $ac_cv_func_accept = yes; then
12681 gcj_checkNsl=0
12682 gcj_cv_lib_sockets="-lsocket -lnsl"
12685 unset ac_cv_func_accept
12686 LIBS=$gcj_oldLibs
12688 unset ac_cv_func_gethostbyname
12689 gcj_oldLibs=$LIBS
12690 LIBS="$LIBS $gcj_cv_lib_sockets"
12691 echo "$as_me:$LINENO: checking for gethostbyname" >&5
12692 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
12693 if test "${ac_cv_func_gethostbyname+set}" = set; then
12694 echo $ECHO_N "(cached) $ECHO_C" >&6
12695 else
12696 if test x$gcc_no_link = xyes; then
12697 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12698 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12699 { (exit 1); exit 1; }; }
12701 cat >conftest.$ac_ext <<_ACEOF
12702 /* confdefs.h. */
12703 _ACEOF
12704 cat confdefs.h >>conftest.$ac_ext
12705 cat >>conftest.$ac_ext <<_ACEOF
12706 /* end confdefs.h. */
12707 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
12708 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12709 #define gethostbyname innocuous_gethostbyname
12711 /* System header to define __stub macros and hopefully few prototypes,
12712 which can conflict with char gethostbyname (); below.
12713 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12714 <limits.h> exists even on freestanding compilers. */
12716 #ifdef __STDC__
12717 # include <limits.h>
12718 #else
12719 # include <assert.h>
12720 #endif
12722 #undef gethostbyname
12724 /* Override any gcc2 internal prototype to avoid an error. */
12725 #ifdef __cplusplus
12726 extern "C"
12728 #endif
12729 /* We use char because int might match the return type of a gcc2
12730 builtin and then its argument prototype would still apply. */
12731 char gethostbyname ();
12732 /* The GNU C library defines this for functions which it implements
12733 to always fail with ENOSYS. Some functions are actually named
12734 something starting with __ and the normal name is an alias. */
12735 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
12736 choke me
12737 #else
12738 char (*f) () = gethostbyname;
12739 #endif
12740 #ifdef __cplusplus
12742 #endif
12745 main ()
12747 return f != gethostbyname;
12749 return 0;
12751 _ACEOF
12752 rm -f conftest.$ac_objext conftest$ac_exeext
12753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12754 (eval $ac_link) 2>conftest.er1
12755 ac_status=$?
12756 grep -v '^ *+' conftest.er1 >conftest.err
12757 rm -f conftest.er1
12758 cat conftest.err >&5
12759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 (exit $ac_status); } &&
12761 { ac_try='test -z "$ac_c_werror_flag"
12762 || test ! -s conftest.err'
12763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12764 (eval $ac_try) 2>&5
12765 ac_status=$?
12766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12767 (exit $ac_status); }; } &&
12768 { ac_try='test -s conftest$ac_exeext'
12769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12770 (eval $ac_try) 2>&5
12771 ac_status=$?
12772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12773 (exit $ac_status); }; }; then
12774 ac_cv_func_gethostbyname=yes
12775 else
12776 echo "$as_me: failed program was:" >&5
12777 sed 's/^/| /' conftest.$ac_ext >&5
12779 ac_cv_func_gethostbyname=no
12781 rm -f conftest.err conftest.$ac_objext \
12782 conftest$ac_exeext conftest.$ac_ext
12784 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
12785 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
12786 if test $ac_cv_func_gethostbyname = yes; then
12788 else
12789 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
12790 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
12791 if test "${ac_cv_lib_nsl_main+set}" = set; then
12792 echo $ECHO_N "(cached) $ECHO_C" >&6
12793 else
12794 ac_check_lib_save_LIBS=$LIBS
12795 LIBS="-lnsl $LIBS"
12796 if test x$gcc_no_link = xyes; then
12797 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12798 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12799 { (exit 1); exit 1; }; }
12801 cat >conftest.$ac_ext <<_ACEOF
12802 /* confdefs.h. */
12803 _ACEOF
12804 cat confdefs.h >>conftest.$ac_ext
12805 cat >>conftest.$ac_ext <<_ACEOF
12806 /* end confdefs.h. */
12810 main ()
12812 main ();
12814 return 0;
12816 _ACEOF
12817 rm -f conftest.$ac_objext conftest$ac_exeext
12818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12819 (eval $ac_link) 2>conftest.er1
12820 ac_status=$?
12821 grep -v '^ *+' conftest.er1 >conftest.err
12822 rm -f conftest.er1
12823 cat conftest.err >&5
12824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825 (exit $ac_status); } &&
12826 { ac_try='test -z "$ac_c_werror_flag"
12827 || test ! -s conftest.err'
12828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12829 (eval $ac_try) 2>&5
12830 ac_status=$?
12831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12832 (exit $ac_status); }; } &&
12833 { ac_try='test -s conftest$ac_exeext'
12834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12835 (eval $ac_try) 2>&5
12836 ac_status=$?
12837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12838 (exit $ac_status); }; }; then
12839 ac_cv_lib_nsl_main=yes
12840 else
12841 echo "$as_me: failed program was:" >&5
12842 sed 's/^/| /' conftest.$ac_ext >&5
12844 ac_cv_lib_nsl_main=no
12846 rm -f conftest.err conftest.$ac_objext \
12847 conftest$ac_exeext conftest.$ac_ext
12848 LIBS=$ac_check_lib_save_LIBS
12850 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
12851 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
12852 if test $ac_cv_lib_nsl_main = yes; then
12853 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
12858 unset ac_cv_func_gethostbyname
12859 LIBS=$gcj_oldLIBS
12862 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
12863 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
12864 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
12866 if test "$with_system_zlib" = yes; then
12867 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
12868 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
12869 if test "${ac_cv_lib_z_deflate+set}" = set; then
12870 echo $ECHO_N "(cached) $ECHO_C" >&6
12871 else
12872 ac_check_lib_save_LIBS=$LIBS
12873 LIBS="-lz $LIBS"
12874 if test x$gcc_no_link = xyes; then
12875 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12876 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12877 { (exit 1); exit 1; }; }
12879 cat >conftest.$ac_ext <<_ACEOF
12880 /* confdefs.h. */
12881 _ACEOF
12882 cat confdefs.h >>conftest.$ac_ext
12883 cat >>conftest.$ac_ext <<_ACEOF
12884 /* end confdefs.h. */
12886 /* Override any gcc2 internal prototype to avoid an error. */
12887 #ifdef __cplusplus
12888 extern "C"
12889 #endif
12890 /* We use char because int might match the return type of a gcc2
12891 builtin and then its argument prototype would still apply. */
12892 char deflate ();
12894 main ()
12896 deflate ();
12898 return 0;
12900 _ACEOF
12901 rm -f conftest.$ac_objext conftest$ac_exeext
12902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12903 (eval $ac_link) 2>conftest.er1
12904 ac_status=$?
12905 grep -v '^ *+' conftest.er1 >conftest.err
12906 rm -f conftest.er1
12907 cat conftest.err >&5
12908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909 (exit $ac_status); } &&
12910 { ac_try='test -z "$ac_c_werror_flag"
12911 || test ! -s conftest.err'
12912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12913 (eval $ac_try) 2>&5
12914 ac_status=$?
12915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12916 (exit $ac_status); }; } &&
12917 { ac_try='test -s conftest$ac_exeext'
12918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12919 (eval $ac_try) 2>&5
12920 ac_status=$?
12921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922 (exit $ac_status); }; }; then
12923 ac_cv_lib_z_deflate=yes
12924 else
12925 echo "$as_me: failed program was:" >&5
12926 sed 's/^/| /' conftest.$ac_ext >&5
12928 ac_cv_lib_z_deflate=no
12930 rm -f conftest.err conftest.$ac_objext \
12931 conftest$ac_exeext conftest.$ac_ext
12932 LIBS=$ac_check_lib_save_LIBS
12934 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
12935 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
12936 if test $ac_cv_lib_z_deflate = yes; then
12937 ZLIBSPEC=-lz
12938 else
12939 ZLIBSPEC=
12944 # Test for Gtk stuff, if asked for.
12945 if test "$use_gtk_awt" = yes; then
12947 succeeded=no
12949 if test -z "$PKG_CONFIG"; then
12950 # Extract the first word of "pkg-config", so it can be a program name with args.
12951 set dummy pkg-config; ac_word=$2
12952 echo "$as_me:$LINENO: checking for $ac_word" >&5
12953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12954 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12955 echo $ECHO_N "(cached) $ECHO_C" >&6
12956 else
12957 case $PKG_CONFIG in
12958 [\\/]* | ?:[\\/]*)
12959 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12963 for as_dir in $PATH
12965 IFS=$as_save_IFS
12966 test -z "$as_dir" && as_dir=.
12967 for ac_exec_ext in '' $ac_executable_extensions; do
12968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12969 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12971 break 2
12973 done
12974 done
12976 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12978 esac
12980 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12982 if test -n "$PKG_CONFIG"; then
12983 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12984 echo "${ECHO_T}$PKG_CONFIG" >&6
12985 else
12986 echo "$as_me:$LINENO: result: no" >&5
12987 echo "${ECHO_T}no" >&6
12992 if test "$PKG_CONFIG" = "no" ; then
12993 echo "*** The pkg-config script could not be found. Make sure it is"
12994 echo "*** in your path, or set the PKG_CONFIG environment variable"
12995 echo "*** to the full path to pkg-config."
12996 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12997 else
12998 PKG_CONFIG_MIN_VERSION=0.9.0
12999 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13000 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
13001 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
13003 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
13004 echo "$as_me:$LINENO: result: yes" >&5
13005 echo "${ECHO_T}yes" >&6
13006 succeeded=yes
13008 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
13009 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
13010 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
13011 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
13012 echo "${ECHO_T}$GTK_CFLAGS" >&6
13014 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
13015 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
13016 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
13017 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
13018 echo "${ECHO_T}$GTK_LIBS" >&6
13019 else
13020 GTK_CFLAGS=""
13021 GTK_LIBS=""
13022 ## If we have a custom action on failure, don't print errors, but
13023 ## do set a variable so people can do so.
13024 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
13025 echo $GTK_PKG_ERRORS
13030 else
13031 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13032 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13036 if test $succeeded = yes; then
13038 else
13039 { { 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
13040 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;}
13041 { (exit 1); exit 1; }; }
13048 succeeded=no
13050 if test -z "$PKG_CONFIG"; then
13051 # Extract the first word of "pkg-config", so it can be a program name with args.
13052 set dummy pkg-config; ac_word=$2
13053 echo "$as_me:$LINENO: checking for $ac_word" >&5
13054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13055 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13056 echo $ECHO_N "(cached) $ECHO_C" >&6
13057 else
13058 case $PKG_CONFIG in
13059 [\\/]* | ?:[\\/]*)
13060 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13064 for as_dir in $PATH
13066 IFS=$as_save_IFS
13067 test -z "$as_dir" && as_dir=.
13068 for ac_exec_ext in '' $ac_executable_extensions; do
13069 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13070 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13072 break 2
13074 done
13075 done
13077 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13079 esac
13081 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13083 if test -n "$PKG_CONFIG"; then
13084 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13085 echo "${ECHO_T}$PKG_CONFIG" >&6
13086 else
13087 echo "$as_me:$LINENO: result: no" >&5
13088 echo "${ECHO_T}no" >&6
13093 if test "$PKG_CONFIG" = "no" ; then
13094 echo "*** The pkg-config script could not be found. Make sure it is"
13095 echo "*** in your path, or set the PKG_CONFIG environment variable"
13096 echo "*** to the full path to pkg-config."
13097 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13098 else
13099 PKG_CONFIG_MIN_VERSION=0.9.0
13100 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13101 echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
13102 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
13104 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
13105 echo "$as_me:$LINENO: result: yes" >&5
13106 echo "${ECHO_T}yes" >&6
13107 succeeded=yes
13109 echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
13110 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
13111 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13112 echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
13113 echo "${ECHO_T}$GLIB_CFLAGS" >&6
13115 echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
13116 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
13117 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13118 echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
13119 echo "${ECHO_T}$GLIB_LIBS" >&6
13120 else
13121 GLIB_CFLAGS=""
13122 GLIB_LIBS=""
13123 ## If we have a custom action on failure, don't print errors, but
13124 ## do set a variable so people can do so.
13125 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13126 echo $GLIB_PKG_ERRORS
13131 else
13132 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13133 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13137 if test $succeeded = yes; then
13139 else
13140 { { 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
13141 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;}
13142 { (exit 1); exit 1; }; }
13149 succeeded=no
13151 if test -z "$PKG_CONFIG"; then
13152 # Extract the first word of "pkg-config", so it can be a program name with args.
13153 set dummy pkg-config; ac_word=$2
13154 echo "$as_me:$LINENO: checking for $ac_word" >&5
13155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13156 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13157 echo $ECHO_N "(cached) $ECHO_C" >&6
13158 else
13159 case $PKG_CONFIG in
13160 [\\/]* | ?:[\\/]*)
13161 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13165 for as_dir in $PATH
13167 IFS=$as_save_IFS
13168 test -z "$as_dir" && as_dir=.
13169 for ac_exec_ext in '' $ac_executable_extensions; do
13170 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13171 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13173 break 2
13175 done
13176 done
13178 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13180 esac
13182 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13184 if test -n "$PKG_CONFIG"; then
13185 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13186 echo "${ECHO_T}$PKG_CONFIG" >&6
13187 else
13188 echo "$as_me:$LINENO: result: no" >&5
13189 echo "${ECHO_T}no" >&6
13194 if test "$PKG_CONFIG" = "no" ; then
13195 echo "*** The pkg-config script could not be found. Make sure it is"
13196 echo "*** in your path, or set the PKG_CONFIG environment variable"
13197 echo "*** to the full path to pkg-config."
13198 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13199 else
13200 PKG_CONFIG_MIN_VERSION=0.9.0
13201 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13202 echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
13203 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
13205 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
13206 echo "$as_me:$LINENO: result: yes" >&5
13207 echo "${ECHO_T}yes" >&6
13208 succeeded=yes
13210 echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
13211 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
13212 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
13213 echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
13214 echo "${ECHO_T}$LIBART_CFLAGS" >&6
13216 echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
13217 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
13218 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
13219 echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
13220 echo "${ECHO_T}$LIBART_LIBS" >&6
13221 else
13222 LIBART_CFLAGS=""
13223 LIBART_LIBS=""
13224 ## If we have a custom action on failure, don't print errors, but
13225 ## do set a variable so people can do so.
13226 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
13227 echo $LIBART_PKG_ERRORS
13232 else
13233 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13234 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13238 if test $succeeded = yes; then
13240 else
13241 { { 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
13242 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;}
13243 { (exit 1); exit 1; }; }
13249 # We require the XTest Extension to support java.awt.Robot.
13250 echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
13251 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
13252 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
13253 echo $ECHO_N "(cached) $ECHO_C" >&6
13254 else
13255 ac_check_lib_save_LIBS=$LIBS
13256 LIBS="-lXtst ${X_LIBS} $LIBS"
13257 if test x$gcc_no_link = xyes; then
13258 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13259 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13260 { (exit 1); exit 1; }; }
13262 cat >conftest.$ac_ext <<_ACEOF
13263 /* confdefs.h. */
13264 _ACEOF
13265 cat confdefs.h >>conftest.$ac_ext
13266 cat >>conftest.$ac_ext <<_ACEOF
13267 /* end confdefs.h. */
13269 /* Override any gcc2 internal prototype to avoid an error. */
13270 #ifdef __cplusplus
13271 extern "C"
13272 #endif
13273 /* We use char because int might match the return type of a gcc2
13274 builtin and then its argument prototype would still apply. */
13275 char XTestQueryExtension ();
13277 main ()
13279 XTestQueryExtension ();
13281 return 0;
13283 _ACEOF
13284 rm -f conftest.$ac_objext conftest$ac_exeext
13285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13286 (eval $ac_link) 2>conftest.er1
13287 ac_status=$?
13288 grep -v '^ *+' conftest.er1 >conftest.err
13289 rm -f conftest.er1
13290 cat conftest.err >&5
13291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292 (exit $ac_status); } &&
13293 { ac_try='test -z "$ac_c_werror_flag"
13294 || test ! -s conftest.err'
13295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13296 (eval $ac_try) 2>&5
13297 ac_status=$?
13298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299 (exit $ac_status); }; } &&
13300 { ac_try='test -s conftest$ac_exeext'
13301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13302 (eval $ac_try) 2>&5
13303 ac_status=$?
13304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305 (exit $ac_status); }; }; then
13306 ac_cv_lib_Xtst_XTestQueryExtension=yes
13307 else
13308 echo "$as_me: failed program was:" >&5
13309 sed 's/^/| /' conftest.$ac_ext >&5
13311 ac_cv_lib_Xtst_XTestQueryExtension=no
13313 rm -f conftest.err conftest.$ac_objext \
13314 conftest$ac_exeext conftest.$ac_ext
13315 LIBS=$ac_check_lib_save_LIBS
13317 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
13318 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
13319 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
13320 true
13321 else
13322 { { echo "$as_me:$LINENO: error: libXtst not found, required by java.awt.Robot" >&5
13323 echo "$as_me: error: libXtst not found, required by java.awt.Robot" >&2;}
13324 { (exit 1); exit 1; }; }
13329 # On Solaris, and maybe other architectures, the Boehm collector
13330 # requires -ldl.
13331 if test "$GC" = boehm; then
13332 echo "$as_me:$LINENO: checking for main in -ldl" >&5
13333 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
13334 if test "${ac_cv_lib_dl_main+set}" = set; then
13335 echo $ECHO_N "(cached) $ECHO_C" >&6
13336 else
13337 ac_check_lib_save_LIBS=$LIBS
13338 LIBS="-ldl $LIBS"
13339 if test x$gcc_no_link = xyes; then
13340 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13341 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13342 { (exit 1); exit 1; }; }
13344 cat >conftest.$ac_ext <<_ACEOF
13345 /* confdefs.h. */
13346 _ACEOF
13347 cat confdefs.h >>conftest.$ac_ext
13348 cat >>conftest.$ac_ext <<_ACEOF
13349 /* end confdefs.h. */
13353 main ()
13355 main ();
13357 return 0;
13359 _ACEOF
13360 rm -f conftest.$ac_objext conftest$ac_exeext
13361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13362 (eval $ac_link) 2>conftest.er1
13363 ac_status=$?
13364 grep -v '^ *+' conftest.er1 >conftest.err
13365 rm -f conftest.er1
13366 cat conftest.err >&5
13367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13368 (exit $ac_status); } &&
13369 { ac_try='test -z "$ac_c_werror_flag"
13370 || test ! -s conftest.err'
13371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13372 (eval $ac_try) 2>&5
13373 ac_status=$?
13374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375 (exit $ac_status); }; } &&
13376 { ac_try='test -s conftest$ac_exeext'
13377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13378 (eval $ac_try) 2>&5
13379 ac_status=$?
13380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13381 (exit $ac_status); }; }; then
13382 ac_cv_lib_dl_main=yes
13383 else
13384 echo "$as_me: failed program was:" >&5
13385 sed 's/^/| /' conftest.$ac_ext >&5
13387 ac_cv_lib_dl_main=no
13389 rm -f conftest.err conftest.$ac_objext \
13390 conftest$ac_exeext conftest.$ac_ext
13391 LIBS=$ac_check_lib_save_LIBS
13393 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
13394 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
13395 if test $ac_cv_lib_dl_main = yes; then
13396 SYSTEMSPEC="$SYSTEMSPEC -ldl"
13403 if test "$supply_backtrace" = yes; then
13404 SUPPLY_BACKTRACE_TRUE=
13405 SUPPLY_BACKTRACE_FALSE='#'
13406 else
13407 SUPPLY_BACKTRACE_TRUE='#'
13408 SUPPLY_BACKTRACE_FALSE=
13412 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
13413 case $build in
13414 *-mingw32) CLASSPATH_SEPARATOR=';' ;;
13415 *) CLASSPATH_SEPARATOR=':' ;;
13416 esac
13419 # We must search the source tree for java.lang, since we still don't
13420 # have libgcj.jar nor java/lang/*.class
13421 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
13422 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
13424 # Since some classes depend on this one, we need its source available
13425 # before we can do any GCJ compilation test :-(
13426 if test ! -f gnu/classpath/Configuration.java; then
13427 test -d gnu || mkdir gnu
13428 test -d gnu/classpath || mkdir gnu/classpath
13429 sed -e "s,@LIBGCJDEBUG@,$LIBGCJDEBUG," \
13430 -e "s,@TOOLKIT@,$TOOLKIT," \
13431 < $srcdir/gnu/classpath/Configuration.java.in \
13432 > gnu/classpath/Configuration.java
13433 # We do not want to redirect the output of the grep below to /dev/null,
13434 # but we add /dev/null to the input list so that grep will print the
13435 # filename of Configuration.java in case it finds any matches.
13436 if grep @ gnu/classpath/Configuration.java /dev/null; then
13437 { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
13438 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
13439 { (exit 1); exit 1; }; }
13443 if test -n "$ac_tool_prefix"; then
13444 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
13445 set dummy ${ac_tool_prefix}gcj; ac_word=$2
13446 echo "$as_me:$LINENO: checking for $ac_word" >&5
13447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13448 if test "${ac_cv_prog_GCJ+set}" = set; then
13449 echo $ECHO_N "(cached) $ECHO_C" >&6
13450 else
13451 if test -n "$GCJ"; then
13452 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
13453 else
13454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13455 for as_dir in $PATH
13457 IFS=$as_save_IFS
13458 test -z "$as_dir" && as_dir=.
13459 for ac_exec_ext in '' $ac_executable_extensions; do
13460 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13461 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
13462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13463 break 2
13465 done
13466 done
13470 GCJ=$ac_cv_prog_GCJ
13471 if test -n "$GCJ"; then
13472 echo "$as_me:$LINENO: result: $GCJ" >&5
13473 echo "${ECHO_T}$GCJ" >&6
13474 else
13475 echo "$as_me:$LINENO: result: no" >&5
13476 echo "${ECHO_T}no" >&6
13480 if test -z "$ac_cv_prog_GCJ"; then
13481 ac_ct_GCJ=$GCJ
13482 # Extract the first word of "gcj", so it can be a program name with args.
13483 set dummy gcj; ac_word=$2
13484 echo "$as_me:$LINENO: checking for $ac_word" >&5
13485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13486 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
13487 echo $ECHO_N "(cached) $ECHO_C" >&6
13488 else
13489 if test -n "$ac_ct_GCJ"; then
13490 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
13491 else
13492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13493 for as_dir in $PATH
13495 IFS=$as_save_IFS
13496 test -z "$as_dir" && as_dir=.
13497 for ac_exec_ext in '' $ac_executable_extensions; do
13498 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13499 ac_cv_prog_ac_ct_GCJ="gcj"
13500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13501 break 2
13503 done
13504 done
13506 test -z "$ac_cv_prog_ac_ct_GCJ" && ac_cv_prog_ac_ct_GCJ="no"
13509 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
13510 if test -n "$ac_ct_GCJ"; then
13511 echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5
13512 echo "${ECHO_T}$ac_ct_GCJ" >&6
13513 else
13514 echo "$as_me:$LINENO: result: no" >&5
13515 echo "${ECHO_T}no" >&6
13518 GCJ=$ac_ct_GCJ
13519 else
13520 GCJ="$ac_cv_prog_GCJ"
13523 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
13528 # Now remove it.
13529 rm -f gnu/classpath/Configuration.java
13531 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
13533 echo "$as_me:$LINENO: checking for void *" >&5
13534 echo $ECHO_N "checking for void *... $ECHO_C" >&6
13535 if test "${ac_cv_type_void_p+set}" = set; then
13536 echo $ECHO_N "(cached) $ECHO_C" >&6
13537 else
13538 cat >conftest.$ac_ext <<_ACEOF
13539 /* confdefs.h. */
13540 _ACEOF
13541 cat confdefs.h >>conftest.$ac_ext
13542 cat >>conftest.$ac_ext <<_ACEOF
13543 /* end confdefs.h. */
13544 $ac_includes_default
13546 main ()
13548 if ((void * *) 0)
13549 return 0;
13550 if (sizeof (void *))
13551 return 0;
13553 return 0;
13555 _ACEOF
13556 rm -f conftest.$ac_objext
13557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13558 (eval $ac_compile) 2>conftest.er1
13559 ac_status=$?
13560 grep -v '^ *+' conftest.er1 >conftest.err
13561 rm -f conftest.er1
13562 cat conftest.err >&5
13563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13564 (exit $ac_status); } &&
13565 { ac_try='test -z "$ac_c_werror_flag"
13566 || test ! -s conftest.err'
13567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13568 (eval $ac_try) 2>&5
13569 ac_status=$?
13570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571 (exit $ac_status); }; } &&
13572 { ac_try='test -s conftest.$ac_objext'
13573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13574 (eval $ac_try) 2>&5
13575 ac_status=$?
13576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577 (exit $ac_status); }; }; then
13578 ac_cv_type_void_p=yes
13579 else
13580 echo "$as_me: failed program was:" >&5
13581 sed 's/^/| /' conftest.$ac_ext >&5
13583 ac_cv_type_void_p=no
13585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13587 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
13588 echo "${ECHO_T}$ac_cv_type_void_p" >&6
13590 echo "$as_me:$LINENO: checking size of void *" >&5
13591 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
13592 if test "${ac_cv_sizeof_void_p+set}" = set; then
13593 echo $ECHO_N "(cached) $ECHO_C" >&6
13594 else
13595 if test "$ac_cv_type_void_p" = yes; then
13596 # The cast to unsigned long works around a bug in the HP C Compiler
13597 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13598 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13599 # This bug is HP SR number 8606223364.
13600 if test "$cross_compiling" = yes; then
13601 # Depending upon the size, compute the lo and hi bounds.
13602 cat >conftest.$ac_ext <<_ACEOF
13603 /* confdefs.h. */
13604 _ACEOF
13605 cat confdefs.h >>conftest.$ac_ext
13606 cat >>conftest.$ac_ext <<_ACEOF
13607 /* end confdefs.h. */
13608 $ac_includes_default
13610 main ()
13612 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
13613 test_array [0] = 0
13616 return 0;
13618 _ACEOF
13619 rm -f conftest.$ac_objext
13620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13621 (eval $ac_compile) 2>conftest.er1
13622 ac_status=$?
13623 grep -v '^ *+' conftest.er1 >conftest.err
13624 rm -f conftest.er1
13625 cat conftest.err >&5
13626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627 (exit $ac_status); } &&
13628 { ac_try='test -z "$ac_c_werror_flag"
13629 || test ! -s conftest.err'
13630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13631 (eval $ac_try) 2>&5
13632 ac_status=$?
13633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634 (exit $ac_status); }; } &&
13635 { ac_try='test -s conftest.$ac_objext'
13636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13637 (eval $ac_try) 2>&5
13638 ac_status=$?
13639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640 (exit $ac_status); }; }; then
13641 ac_lo=0 ac_mid=0
13642 while :; do
13643 cat >conftest.$ac_ext <<_ACEOF
13644 /* confdefs.h. */
13645 _ACEOF
13646 cat confdefs.h >>conftest.$ac_ext
13647 cat >>conftest.$ac_ext <<_ACEOF
13648 /* end confdefs.h. */
13649 $ac_includes_default
13651 main ()
13653 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13654 test_array [0] = 0
13657 return 0;
13659 _ACEOF
13660 rm -f conftest.$ac_objext
13661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13662 (eval $ac_compile) 2>conftest.er1
13663 ac_status=$?
13664 grep -v '^ *+' conftest.er1 >conftest.err
13665 rm -f conftest.er1
13666 cat conftest.err >&5
13667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13668 (exit $ac_status); } &&
13669 { ac_try='test -z "$ac_c_werror_flag"
13670 || test ! -s conftest.err'
13671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13672 (eval $ac_try) 2>&5
13673 ac_status=$?
13674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675 (exit $ac_status); }; } &&
13676 { ac_try='test -s conftest.$ac_objext'
13677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13678 (eval $ac_try) 2>&5
13679 ac_status=$?
13680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13681 (exit $ac_status); }; }; then
13682 ac_hi=$ac_mid; break
13683 else
13684 echo "$as_me: failed program was:" >&5
13685 sed 's/^/| /' conftest.$ac_ext >&5
13687 ac_lo=`expr $ac_mid + 1`
13688 if test $ac_lo -le $ac_mid; then
13689 ac_lo= ac_hi=
13690 break
13692 ac_mid=`expr 2 '*' $ac_mid + 1`
13694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13695 done
13696 else
13697 echo "$as_me: failed program was:" >&5
13698 sed 's/^/| /' conftest.$ac_ext >&5
13700 cat >conftest.$ac_ext <<_ACEOF
13701 /* confdefs.h. */
13702 _ACEOF
13703 cat confdefs.h >>conftest.$ac_ext
13704 cat >>conftest.$ac_ext <<_ACEOF
13705 /* end confdefs.h. */
13706 $ac_includes_default
13708 main ()
13710 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
13711 test_array [0] = 0
13714 return 0;
13716 _ACEOF
13717 rm -f conftest.$ac_objext
13718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13719 (eval $ac_compile) 2>conftest.er1
13720 ac_status=$?
13721 grep -v '^ *+' conftest.er1 >conftest.err
13722 rm -f conftest.er1
13723 cat conftest.err >&5
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); } &&
13726 { ac_try='test -z "$ac_c_werror_flag"
13727 || test ! -s conftest.err'
13728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13729 (eval $ac_try) 2>&5
13730 ac_status=$?
13731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732 (exit $ac_status); }; } &&
13733 { ac_try='test -s conftest.$ac_objext'
13734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13735 (eval $ac_try) 2>&5
13736 ac_status=$?
13737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738 (exit $ac_status); }; }; then
13739 ac_hi=-1 ac_mid=-1
13740 while :; do
13741 cat >conftest.$ac_ext <<_ACEOF
13742 /* confdefs.h. */
13743 _ACEOF
13744 cat confdefs.h >>conftest.$ac_ext
13745 cat >>conftest.$ac_ext <<_ACEOF
13746 /* end confdefs.h. */
13747 $ac_includes_default
13749 main ()
13751 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
13752 test_array [0] = 0
13755 return 0;
13757 _ACEOF
13758 rm -f conftest.$ac_objext
13759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13760 (eval $ac_compile) 2>conftest.er1
13761 ac_status=$?
13762 grep -v '^ *+' conftest.er1 >conftest.err
13763 rm -f conftest.er1
13764 cat conftest.err >&5
13765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766 (exit $ac_status); } &&
13767 { ac_try='test -z "$ac_c_werror_flag"
13768 || test ! -s conftest.err'
13769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13770 (eval $ac_try) 2>&5
13771 ac_status=$?
13772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773 (exit $ac_status); }; } &&
13774 { ac_try='test -s conftest.$ac_objext'
13775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13776 (eval $ac_try) 2>&5
13777 ac_status=$?
13778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779 (exit $ac_status); }; }; then
13780 ac_lo=$ac_mid; break
13781 else
13782 echo "$as_me: failed program was:" >&5
13783 sed 's/^/| /' conftest.$ac_ext >&5
13785 ac_hi=`expr '(' $ac_mid ')' - 1`
13786 if test $ac_mid -le $ac_hi; then
13787 ac_lo= ac_hi=
13788 break
13790 ac_mid=`expr 2 '*' $ac_mid`
13792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13793 done
13794 else
13795 echo "$as_me: failed program was:" >&5
13796 sed 's/^/| /' conftest.$ac_ext >&5
13798 ac_lo= ac_hi=
13800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13803 # Binary search between lo and hi bounds.
13804 while test "x$ac_lo" != "x$ac_hi"; do
13805 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13806 cat >conftest.$ac_ext <<_ACEOF
13807 /* confdefs.h. */
13808 _ACEOF
13809 cat confdefs.h >>conftest.$ac_ext
13810 cat >>conftest.$ac_ext <<_ACEOF
13811 /* end confdefs.h. */
13812 $ac_includes_default
13814 main ()
13816 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13817 test_array [0] = 0
13820 return 0;
13822 _ACEOF
13823 rm -f conftest.$ac_objext
13824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13825 (eval $ac_compile) 2>conftest.er1
13826 ac_status=$?
13827 grep -v '^ *+' conftest.er1 >conftest.err
13828 rm -f conftest.er1
13829 cat conftest.err >&5
13830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13831 (exit $ac_status); } &&
13832 { ac_try='test -z "$ac_c_werror_flag"
13833 || test ! -s conftest.err'
13834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13835 (eval $ac_try) 2>&5
13836 ac_status=$?
13837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13838 (exit $ac_status); }; } &&
13839 { ac_try='test -s conftest.$ac_objext'
13840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13841 (eval $ac_try) 2>&5
13842 ac_status=$?
13843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844 (exit $ac_status); }; }; then
13845 ac_hi=$ac_mid
13846 else
13847 echo "$as_me: failed program was:" >&5
13848 sed 's/^/| /' conftest.$ac_ext >&5
13850 ac_lo=`expr '(' $ac_mid ')' + 1`
13852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13853 done
13854 case $ac_lo in
13855 ?*) ac_cv_sizeof_void_p=$ac_lo;;
13856 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
13857 See \`config.log' for more details." >&5
13858 echo "$as_me: error: cannot compute sizeof (void *), 77
13859 See \`config.log' for more details." >&2;}
13860 { (exit 1); exit 1; }; } ;;
13861 esac
13862 else
13863 if test "$cross_compiling" = yes; then
13864 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13865 See \`config.log' for more details." >&5
13866 echo "$as_me: error: cannot run test program while cross compiling
13867 See \`config.log' for more details." >&2;}
13868 { (exit 1); exit 1; }; }
13869 else
13870 cat >conftest.$ac_ext <<_ACEOF
13871 /* confdefs.h. */
13872 _ACEOF
13873 cat confdefs.h >>conftest.$ac_ext
13874 cat >>conftest.$ac_ext <<_ACEOF
13875 /* end confdefs.h. */
13876 $ac_includes_default
13877 long longval () { return (long) (sizeof (void *)); }
13878 unsigned long ulongval () { return (long) (sizeof (void *)); }
13879 #include <stdio.h>
13880 #include <stdlib.h>
13882 main ()
13885 FILE *f = fopen ("conftest.val", "w");
13886 if (! f)
13887 exit (1);
13888 if (((long) (sizeof (void *))) < 0)
13890 long i = longval ();
13891 if (i != ((long) (sizeof (void *))))
13892 exit (1);
13893 fprintf (f, "%ld\n", i);
13895 else
13897 unsigned long i = ulongval ();
13898 if (i != ((long) (sizeof (void *))))
13899 exit (1);
13900 fprintf (f, "%lu\n", i);
13902 exit (ferror (f) || fclose (f) != 0);
13905 return 0;
13907 _ACEOF
13908 rm -f conftest$ac_exeext
13909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13910 (eval $ac_link) 2>&5
13911 ac_status=$?
13912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13915 (eval $ac_try) 2>&5
13916 ac_status=$?
13917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918 (exit $ac_status); }; }; then
13919 ac_cv_sizeof_void_p=`cat conftest.val`
13920 else
13921 echo "$as_me: program exited with status $ac_status" >&5
13922 echo "$as_me: failed program was:" >&5
13923 sed 's/^/| /' conftest.$ac_ext >&5
13925 ( exit $ac_status )
13926 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
13927 See \`config.log' for more details." >&5
13928 echo "$as_me: error: cannot compute sizeof (void *), 77
13929 See \`config.log' for more details." >&2;}
13930 { (exit 1); exit 1; }; }
13932 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13935 rm -f conftest.val
13936 else
13937 ac_cv_sizeof_void_p=0
13940 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
13941 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
13942 cat >>confdefs.h <<_ACEOF
13943 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13944 _ACEOF
13948 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13949 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
13950 if test "${ac_cv_c_bigendian+set}" = set; then
13951 echo $ECHO_N "(cached) $ECHO_C" >&6
13952 else
13953 # See if sys/param.h defines the BYTE_ORDER macro.
13954 cat >conftest.$ac_ext <<_ACEOF
13955 /* confdefs.h. */
13956 _ACEOF
13957 cat confdefs.h >>conftest.$ac_ext
13958 cat >>conftest.$ac_ext <<_ACEOF
13959 /* end confdefs.h. */
13960 #include <sys/types.h>
13961 #include <sys/param.h>
13964 main ()
13966 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
13967 bogus endian macros
13968 #endif
13971 return 0;
13973 _ACEOF
13974 rm -f conftest.$ac_objext
13975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13976 (eval $ac_compile) 2>conftest.er1
13977 ac_status=$?
13978 grep -v '^ *+' conftest.er1 >conftest.err
13979 rm -f conftest.er1
13980 cat conftest.err >&5
13981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13982 (exit $ac_status); } &&
13983 { ac_try='test -z "$ac_c_werror_flag"
13984 || test ! -s conftest.err'
13985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13986 (eval $ac_try) 2>&5
13987 ac_status=$?
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); }; } &&
13990 { ac_try='test -s conftest.$ac_objext'
13991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13992 (eval $ac_try) 2>&5
13993 ac_status=$?
13994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13995 (exit $ac_status); }; }; then
13996 # It does; now see whether it defined to BIG_ENDIAN or not.
13997 cat >conftest.$ac_ext <<_ACEOF
13998 /* confdefs.h. */
13999 _ACEOF
14000 cat confdefs.h >>conftest.$ac_ext
14001 cat >>conftest.$ac_ext <<_ACEOF
14002 /* end confdefs.h. */
14003 #include <sys/types.h>
14004 #include <sys/param.h>
14007 main ()
14009 #if BYTE_ORDER != BIG_ENDIAN
14010 not big endian
14011 #endif
14014 return 0;
14016 _ACEOF
14017 rm -f conftest.$ac_objext
14018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14019 (eval $ac_compile) 2>conftest.er1
14020 ac_status=$?
14021 grep -v '^ *+' conftest.er1 >conftest.err
14022 rm -f conftest.er1
14023 cat conftest.err >&5
14024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14025 (exit $ac_status); } &&
14026 { ac_try='test -z "$ac_c_werror_flag"
14027 || test ! -s conftest.err'
14028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14029 (eval $ac_try) 2>&5
14030 ac_status=$?
14031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032 (exit $ac_status); }; } &&
14033 { ac_try='test -s conftest.$ac_objext'
14034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14035 (eval $ac_try) 2>&5
14036 ac_status=$?
14037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038 (exit $ac_status); }; }; then
14039 ac_cv_c_bigendian=yes
14040 else
14041 echo "$as_me: failed program was:" >&5
14042 sed 's/^/| /' conftest.$ac_ext >&5
14044 ac_cv_c_bigendian=no
14046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14047 else
14048 echo "$as_me: failed program was:" >&5
14049 sed 's/^/| /' conftest.$ac_ext >&5
14051 # It does not; compile a test program.
14052 if test "$cross_compiling" = yes; then
14053 # try to guess the endianness by grepping values into an object file
14054 ac_cv_c_bigendian=unknown
14055 cat >conftest.$ac_ext <<_ACEOF
14056 /* confdefs.h. */
14057 _ACEOF
14058 cat confdefs.h >>conftest.$ac_ext
14059 cat >>conftest.$ac_ext <<_ACEOF
14060 /* end confdefs.h. */
14061 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14062 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14063 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
14064 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14065 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14066 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14068 main ()
14070 _ascii (); _ebcdic ();
14072 return 0;
14074 _ACEOF
14075 rm -f conftest.$ac_objext
14076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14077 (eval $ac_compile) 2>conftest.er1
14078 ac_status=$?
14079 grep -v '^ *+' conftest.er1 >conftest.err
14080 rm -f conftest.er1
14081 cat conftest.err >&5
14082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083 (exit $ac_status); } &&
14084 { ac_try='test -z "$ac_c_werror_flag"
14085 || test ! -s conftest.err'
14086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14087 (eval $ac_try) 2>&5
14088 ac_status=$?
14089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14090 (exit $ac_status); }; } &&
14091 { ac_try='test -s conftest.$ac_objext'
14092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14093 (eval $ac_try) 2>&5
14094 ac_status=$?
14095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096 (exit $ac_status); }; }; then
14097 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14098 ac_cv_c_bigendian=yes
14100 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14101 if test "$ac_cv_c_bigendian" = unknown; then
14102 ac_cv_c_bigendian=no
14103 else
14104 # finding both strings is unlikely to happen, but who knows?
14105 ac_cv_c_bigendian=unknown
14108 else
14109 echo "$as_me: failed program was:" >&5
14110 sed 's/^/| /' conftest.$ac_ext >&5
14113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14114 else
14115 cat >conftest.$ac_ext <<_ACEOF
14116 /* confdefs.h. */
14117 _ACEOF
14118 cat confdefs.h >>conftest.$ac_ext
14119 cat >>conftest.$ac_ext <<_ACEOF
14120 /* end confdefs.h. */
14122 main ()
14124 /* Are we little or big endian? From Harbison&Steele. */
14125 union
14127 long l;
14128 char c[sizeof (long)];
14129 } u;
14130 u.l = 1;
14131 exit (u.c[sizeof (long) - 1] == 1);
14133 _ACEOF
14134 rm -f conftest$ac_exeext
14135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14136 (eval $ac_link) 2>&5
14137 ac_status=$?
14138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14139 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14141 (eval $ac_try) 2>&5
14142 ac_status=$?
14143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14144 (exit $ac_status); }; }; then
14145 ac_cv_c_bigendian=no
14146 else
14147 echo "$as_me: program exited with status $ac_status" >&5
14148 echo "$as_me: failed program was:" >&5
14149 sed 's/^/| /' conftest.$ac_ext >&5
14151 ( exit $ac_status )
14152 ac_cv_c_bigendian=yes
14154 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14159 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14160 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
14161 case $ac_cv_c_bigendian in
14162 yes)
14164 cat >>confdefs.h <<\_ACEOF
14165 #define WORDS_BIGENDIAN 1
14166 _ACEOF
14171 { { echo "$as_me:$LINENO: error: unknown endianness
14172 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14173 echo "$as_me: error: unknown endianness
14174 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14175 { (exit 1); exit 1; }; } ;;
14176 esac
14179 ZLIBS=
14180 SYS_ZLIBS=
14181 ZINCS=
14183 if test -z "$ZLIBSPEC"; then
14184 # Use zlib from the GCC tree.
14185 ZINCS='-I$(top_srcdir)/../zlib'
14186 ZLIBS=../zlib/libzgcj_convenience.la
14187 else
14188 # System's zlib.
14189 SYS_ZLIBS="$ZLIBSPEC"
14202 if test "$NATIVE" = yes; then
14203 NATIVE_TRUE=
14204 NATIVE_FALSE='#'
14205 else
14206 NATIVE_TRUE='#'
14207 NATIVE_FALSE=
14212 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
14213 NEEDS_DATA_START_TRUE=
14214 NEEDS_DATA_START_FALSE='#'
14215 else
14216 NEEDS_DATA_START_TRUE='#'
14217 NEEDS_DATA_START_FALSE=
14222 # Process the option "--enable-version-specific-runtime-libs"
14223 # Calculate toolexeclibdir
14224 case ${version_specific_libs} in
14225 yes)
14226 # Need the gcc compiler version to know where to install libraries
14227 # and header files if --enable-version-specific-runtime-libs option
14228 # is selected.
14229 includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
14230 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
14231 toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
14232 toolexeclibdir=$toolexecmainlibdir
14235 if test -n "$with_cross_host" &&
14236 test x"$with_cross_host" != x"no"; then
14237 # Install a library built with a cross compiler in tooldir, not libdir.
14238 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
14239 toolexecmainlibdir='$(toolexecdir)/lib'
14240 else
14241 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
14242 toolexecmainlibdir='$(libdir)'
14244 multi_os_directory=`$CC -print-multi-os-directory`
14245 case $multi_os_directory in
14246 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
14247 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
14248 esac
14250 esac
14255 # Determine gcj version number.
14256 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
14257 GCJVERSION=$gcjversion
14260 cat >>confdefs.h <<_ACEOF
14261 #define GCJVERSION "$GCJVERSION"
14262 _ACEOF
14266 cat >>confdefs.h <<\_ACEOF
14267 #define JV_VERSION "1.4.2"
14268 _ACEOF
14271 cat >>confdefs.h <<\_ACEOF
14272 #define JV_API_VERSION "1.4"
14273 _ACEOF
14277 case "${with_gxx_include_dir}" in
14278 yes)
14279 { { echo "$as_me:$LINENO: error: --with-gxx-include-dir=[dir] requires a directory" >&5
14280 echo "$as_me: error: --with-gxx-include-dir=[dir] requires a directory" >&2;}
14281 { (exit 1); exit 1; }; }
14283 no | "")
14284 case "${enable_version_specific_runtime_libs}" in
14285 yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
14287 libstdcxx_incdir='c++/$(gcc_version)'
14288 gxx_include_dir='$(prefix)/include/$(libstdcxx_incdir)' ;;
14289 esac ;;
14290 *) gxx_include_dir=${with_gxx_include_dir} ;;
14291 esac
14296 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
14297 # On that system, sys/ioctl.h will not include sys/filio.h unless
14298 # BSD_COMP is defined; just including sys/filio.h is simpler.
14299 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
14300 # for now. If you change this, you also must update natFile.cc.
14321 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
14322 sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
14323 sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
14324 pwd.h sys/config.h stdint.h langinfo.h locale.h \
14325 dirent.h
14327 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14329 echo "$as_me:$LINENO: checking for $ac_header" >&5
14330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14331 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14332 echo $ECHO_N "(cached) $ECHO_C" >&6
14334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14335 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14336 else
14337 # Is the header compilable?
14338 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14339 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14340 cat >conftest.$ac_ext <<_ACEOF
14341 /* confdefs.h. */
14342 _ACEOF
14343 cat confdefs.h >>conftest.$ac_ext
14344 cat >>conftest.$ac_ext <<_ACEOF
14345 /* end confdefs.h. */
14346 $ac_includes_default
14347 #include <$ac_header>
14348 _ACEOF
14349 rm -f conftest.$ac_objext
14350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14351 (eval $ac_compile) 2>conftest.er1
14352 ac_status=$?
14353 grep -v '^ *+' conftest.er1 >conftest.err
14354 rm -f conftest.er1
14355 cat conftest.err >&5
14356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14357 (exit $ac_status); } &&
14358 { ac_try='test -z "$ac_c_werror_flag"
14359 || test ! -s conftest.err'
14360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14361 (eval $ac_try) 2>&5
14362 ac_status=$?
14363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14364 (exit $ac_status); }; } &&
14365 { ac_try='test -s conftest.$ac_objext'
14366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14367 (eval $ac_try) 2>&5
14368 ac_status=$?
14369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370 (exit $ac_status); }; }; then
14371 ac_header_compiler=yes
14372 else
14373 echo "$as_me: failed program was:" >&5
14374 sed 's/^/| /' conftest.$ac_ext >&5
14376 ac_header_compiler=no
14378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14379 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14380 echo "${ECHO_T}$ac_header_compiler" >&6
14382 # Is the header present?
14383 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14384 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14385 cat >conftest.$ac_ext <<_ACEOF
14386 /* confdefs.h. */
14387 _ACEOF
14388 cat confdefs.h >>conftest.$ac_ext
14389 cat >>conftest.$ac_ext <<_ACEOF
14390 /* end confdefs.h. */
14391 #include <$ac_header>
14392 _ACEOF
14393 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14394 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14395 ac_status=$?
14396 grep -v '^ *+' conftest.er1 >conftest.err
14397 rm -f conftest.er1
14398 cat conftest.err >&5
14399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14400 (exit $ac_status); } >/dev/null; then
14401 if test -s conftest.err; then
14402 ac_cpp_err=$ac_c_preproc_warn_flag
14403 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14404 else
14405 ac_cpp_err=
14407 else
14408 ac_cpp_err=yes
14410 if test -z "$ac_cpp_err"; then
14411 ac_header_preproc=yes
14412 else
14413 echo "$as_me: failed program was:" >&5
14414 sed 's/^/| /' conftest.$ac_ext >&5
14416 ac_header_preproc=no
14418 rm -f conftest.err conftest.$ac_ext
14419 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14420 echo "${ECHO_T}$ac_header_preproc" >&6
14422 # So? What about this header?
14423 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14424 yes:no: )
14425 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14426 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14427 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14428 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14429 ac_header_preproc=yes
14431 no:yes:* )
14432 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14433 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14434 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14435 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14436 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14437 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14438 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14439 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14441 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14442 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14443 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14445 cat <<\_ASBOX
14446 ## ---------------------------------- ##
14447 ## Report this to the libjava lists. ##
14448 ## ---------------------------------- ##
14449 _ASBOX
14451 sed "s/^/$as_me: WARNING: /" >&2
14453 esac
14454 echo "$as_me:$LINENO: checking for $ac_header" >&5
14455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14456 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14457 echo $ECHO_N "(cached) $ECHO_C" >&6
14458 else
14459 eval "$as_ac_Header=\$ac_header_preproc"
14461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14462 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14465 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14466 cat >>confdefs.h <<_ACEOF
14467 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14468 _ACEOF
14472 done
14475 for ac_header in inttypes.h
14477 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14479 echo "$as_me:$LINENO: checking for $ac_header" >&5
14480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14481 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14482 echo $ECHO_N "(cached) $ECHO_C" >&6
14484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14485 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14486 else
14487 # Is the header compilable?
14488 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14489 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14490 cat >conftest.$ac_ext <<_ACEOF
14491 /* confdefs.h. */
14492 _ACEOF
14493 cat confdefs.h >>conftest.$ac_ext
14494 cat >>conftest.$ac_ext <<_ACEOF
14495 /* end confdefs.h. */
14496 $ac_includes_default
14497 #include <$ac_header>
14498 _ACEOF
14499 rm -f conftest.$ac_objext
14500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14501 (eval $ac_compile) 2>conftest.er1
14502 ac_status=$?
14503 grep -v '^ *+' conftest.er1 >conftest.err
14504 rm -f conftest.er1
14505 cat conftest.err >&5
14506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14507 (exit $ac_status); } &&
14508 { ac_try='test -z "$ac_c_werror_flag"
14509 || test ! -s conftest.err'
14510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14511 (eval $ac_try) 2>&5
14512 ac_status=$?
14513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14514 (exit $ac_status); }; } &&
14515 { ac_try='test -s conftest.$ac_objext'
14516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14517 (eval $ac_try) 2>&5
14518 ac_status=$?
14519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14520 (exit $ac_status); }; }; then
14521 ac_header_compiler=yes
14522 else
14523 echo "$as_me: failed program was:" >&5
14524 sed 's/^/| /' conftest.$ac_ext >&5
14526 ac_header_compiler=no
14528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14529 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14530 echo "${ECHO_T}$ac_header_compiler" >&6
14532 # Is the header present?
14533 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14534 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14535 cat >conftest.$ac_ext <<_ACEOF
14536 /* confdefs.h. */
14537 _ACEOF
14538 cat confdefs.h >>conftest.$ac_ext
14539 cat >>conftest.$ac_ext <<_ACEOF
14540 /* end confdefs.h. */
14541 #include <$ac_header>
14542 _ACEOF
14543 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14544 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14545 ac_status=$?
14546 grep -v '^ *+' conftest.er1 >conftest.err
14547 rm -f conftest.er1
14548 cat conftest.err >&5
14549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14550 (exit $ac_status); } >/dev/null; then
14551 if test -s conftest.err; then
14552 ac_cpp_err=$ac_c_preproc_warn_flag
14553 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14554 else
14555 ac_cpp_err=
14557 else
14558 ac_cpp_err=yes
14560 if test -z "$ac_cpp_err"; then
14561 ac_header_preproc=yes
14562 else
14563 echo "$as_me: failed program was:" >&5
14564 sed 's/^/| /' conftest.$ac_ext >&5
14566 ac_header_preproc=no
14568 rm -f conftest.err conftest.$ac_ext
14569 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14570 echo "${ECHO_T}$ac_header_preproc" >&6
14572 # So? What about this header?
14573 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14574 yes:no: )
14575 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14576 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14578 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14579 ac_header_preproc=yes
14581 no:yes:* )
14582 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14583 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14584 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14585 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14586 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14587 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14588 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14589 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14591 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14592 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14593 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14595 cat <<\_ASBOX
14596 ## ---------------------------------- ##
14597 ## Report this to the libjava lists. ##
14598 ## ---------------------------------- ##
14599 _ASBOX
14601 sed "s/^/$as_me: WARNING: /" >&2
14603 esac
14604 echo "$as_me:$LINENO: checking for $ac_header" >&5
14605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14607 echo $ECHO_N "(cached) $ECHO_C" >&6
14608 else
14609 eval "$as_ac_Header=\$ac_header_preproc"
14611 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14612 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14615 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14616 cat >>confdefs.h <<_ACEOF
14617 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14618 _ACEOF
14621 cat >>confdefs.h <<\_ACEOF
14622 #define HAVE_INTTYPES_H 1
14623 _ACEOF
14626 cat >>confdefs.h <<\_ACEOF
14627 #define JV_HAVE_INTTYPES_H 1
14628 _ACEOF
14633 done
14635 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14636 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
14637 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14638 echo $ECHO_N "(cached) $ECHO_C" >&6
14639 else
14640 cat >conftest.$ac_ext <<_ACEOF
14641 /* confdefs.h. */
14642 _ACEOF
14643 cat confdefs.h >>conftest.$ac_ext
14644 cat >>conftest.$ac_ext <<_ACEOF
14645 /* end confdefs.h. */
14646 #include <sys/types.h>
14647 #include <sys/wait.h>
14648 #ifndef WEXITSTATUS
14649 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
14650 #endif
14651 #ifndef WIFEXITED
14652 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14653 #endif
14656 main ()
14658 int s;
14659 wait (&s);
14660 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14662 return 0;
14664 _ACEOF
14665 rm -f conftest.$ac_objext
14666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14667 (eval $ac_compile) 2>conftest.er1
14668 ac_status=$?
14669 grep -v '^ *+' conftest.er1 >conftest.err
14670 rm -f conftest.er1
14671 cat conftest.err >&5
14672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673 (exit $ac_status); } &&
14674 { ac_try='test -z "$ac_c_werror_flag"
14675 || test ! -s conftest.err'
14676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14677 (eval $ac_try) 2>&5
14678 ac_status=$?
14679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680 (exit $ac_status); }; } &&
14681 { ac_try='test -s conftest.$ac_objext'
14682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14683 (eval $ac_try) 2>&5
14684 ac_status=$?
14685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14686 (exit $ac_status); }; }; then
14687 ac_cv_header_sys_wait_h=yes
14688 else
14689 echo "$as_me: failed program was:" >&5
14690 sed 's/^/| /' conftest.$ac_ext >&5
14692 ac_cv_header_sys_wait_h=no
14694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14696 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14697 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
14698 if test $ac_cv_header_sys_wait_h = yes; then
14700 cat >>confdefs.h <<\_ACEOF
14701 #define HAVE_SYS_WAIT_H 1
14702 _ACEOF
14707 echo "$as_me:$LINENO: checking for ssize_t" >&5
14708 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
14709 if test "${ac_cv_type_ssize_t+set}" = set; then
14710 echo $ECHO_N "(cached) $ECHO_C" >&6
14711 else
14712 cat >conftest.$ac_ext <<_ACEOF
14713 /* confdefs.h. */
14714 _ACEOF
14715 cat confdefs.h >>conftest.$ac_ext
14716 cat >>conftest.$ac_ext <<_ACEOF
14717 /* end confdefs.h. */
14718 $ac_includes_default
14720 main ()
14722 if ((ssize_t *) 0)
14723 return 0;
14724 if (sizeof (ssize_t))
14725 return 0;
14727 return 0;
14729 _ACEOF
14730 rm -f conftest.$ac_objext
14731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14732 (eval $ac_compile) 2>conftest.er1
14733 ac_status=$?
14734 grep -v '^ *+' conftest.er1 >conftest.err
14735 rm -f conftest.er1
14736 cat conftest.err >&5
14737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738 (exit $ac_status); } &&
14739 { ac_try='test -z "$ac_c_werror_flag"
14740 || test ! -s conftest.err'
14741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14742 (eval $ac_try) 2>&5
14743 ac_status=$?
14744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); }; } &&
14746 { ac_try='test -s conftest.$ac_objext'
14747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14748 (eval $ac_try) 2>&5
14749 ac_status=$?
14750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751 (exit $ac_status); }; }; then
14752 ac_cv_type_ssize_t=yes
14753 else
14754 echo "$as_me: failed program was:" >&5
14755 sed 's/^/| /' conftest.$ac_ext >&5
14757 ac_cv_type_ssize_t=no
14759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14761 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
14762 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
14763 if test $ac_cv_type_ssize_t = yes; then
14765 else
14767 cat >>confdefs.h <<_ACEOF
14768 #define ssize_t int
14769 _ACEOF
14774 echo "$as_me:$LINENO: checking for in_addr_t" >&5
14775 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
14776 cat >conftest.$ac_ext <<_ACEOF
14777 /* confdefs.h. */
14778 _ACEOF
14779 cat confdefs.h >>conftest.$ac_ext
14780 cat >>conftest.$ac_ext <<_ACEOF
14781 /* end confdefs.h. */
14782 #include <sys/types.h>
14783 #if STDC_HEADERS
14784 #include <stdlib.h>
14785 #include <stddef.h>
14786 #endif
14787 #if HAVE_NETINET_IN_H
14788 #include <netinet/in.h>
14789 #endif
14791 main ()
14793 in_addr_t foo;
14795 return 0;
14797 _ACEOF
14798 rm -f conftest.$ac_objext
14799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14800 (eval $ac_compile) 2>conftest.er1
14801 ac_status=$?
14802 grep -v '^ *+' conftest.er1 >conftest.err
14803 rm -f conftest.er1
14804 cat conftest.err >&5
14805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); } &&
14807 { ac_try='test -z "$ac_c_werror_flag"
14808 || test ! -s conftest.err'
14809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14810 (eval $ac_try) 2>&5
14811 ac_status=$?
14812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813 (exit $ac_status); }; } &&
14814 { ac_try='test -s conftest.$ac_objext'
14815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14816 (eval $ac_try) 2>&5
14817 ac_status=$?
14818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14819 (exit $ac_status); }; }; then
14821 cat >>confdefs.h <<\_ACEOF
14822 #define HAVE_IN_ADDR_T 1
14823 _ACEOF
14825 echo "$as_me:$LINENO: result: yes" >&5
14826 echo "${ECHO_T}yes" >&6
14827 else
14828 echo "$as_me: failed program was:" >&5
14829 sed 's/^/| /' conftest.$ac_ext >&5
14831 echo "$as_me:$LINENO: result: no" >&5
14832 echo "${ECHO_T}no" >&6
14834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14836 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
14837 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
14838 cat >conftest.$ac_ext <<_ACEOF
14839 /* confdefs.h. */
14840 _ACEOF
14841 cat confdefs.h >>conftest.$ac_ext
14842 cat >>conftest.$ac_ext <<_ACEOF
14843 /* end confdefs.h. */
14844 #include <netinet/in.h>
14846 main ()
14848 struct ip_mreq mreq;
14850 return 0;
14852 _ACEOF
14853 rm -f conftest.$ac_objext
14854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14855 (eval $ac_compile) 2>conftest.er1
14856 ac_status=$?
14857 grep -v '^ *+' conftest.er1 >conftest.err
14858 rm -f conftest.er1
14859 cat conftest.err >&5
14860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14861 (exit $ac_status); } &&
14862 { ac_try='test -z "$ac_c_werror_flag"
14863 || test ! -s conftest.err'
14864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14865 (eval $ac_try) 2>&5
14866 ac_status=$?
14867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14868 (exit $ac_status); }; } &&
14869 { ac_try='test -s conftest.$ac_objext'
14870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14871 (eval $ac_try) 2>&5
14872 ac_status=$?
14873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14874 (exit $ac_status); }; }; then
14876 cat >>confdefs.h <<\_ACEOF
14877 #define HAVE_STRUCT_IP_MREQ 1
14878 _ACEOF
14880 echo "$as_me:$LINENO: result: yes" >&5
14881 echo "${ECHO_T}yes" >&6
14882 else
14883 echo "$as_me: failed program was:" >&5
14884 sed 's/^/| /' conftest.$ac_ext >&5
14886 echo "$as_me:$LINENO: result: no" >&5
14887 echo "${ECHO_T}no" >&6
14889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14891 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
14892 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
14893 cat >conftest.$ac_ext <<_ACEOF
14894 /* confdefs.h. */
14895 _ACEOF
14896 cat confdefs.h >>conftest.$ac_ext
14897 cat >>conftest.$ac_ext <<_ACEOF
14898 /* end confdefs.h. */
14899 #include <netinet/in.h>
14901 main ()
14903 struct ipv6_mreq mreq6;
14905 return 0;
14907 _ACEOF
14908 rm -f conftest.$ac_objext
14909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14910 (eval $ac_compile) 2>conftest.er1
14911 ac_status=$?
14912 grep -v '^ *+' conftest.er1 >conftest.err
14913 rm -f conftest.er1
14914 cat conftest.err >&5
14915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916 (exit $ac_status); } &&
14917 { ac_try='test -z "$ac_c_werror_flag"
14918 || test ! -s conftest.err'
14919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14920 (eval $ac_try) 2>&5
14921 ac_status=$?
14922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14923 (exit $ac_status); }; } &&
14924 { ac_try='test -s conftest.$ac_objext'
14925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14926 (eval $ac_try) 2>&5
14927 ac_status=$?
14928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14929 (exit $ac_status); }; }; then
14931 cat >>confdefs.h <<\_ACEOF
14932 #define HAVE_STRUCT_IPV6_MREQ 1
14933 _ACEOF
14935 echo "$as_me:$LINENO: result: yes" >&5
14936 echo "${ECHO_T}yes" >&6
14937 else
14938 echo "$as_me: failed program was:" >&5
14939 sed 's/^/| /' conftest.$ac_ext >&5
14941 echo "$as_me:$LINENO: result: no" >&5
14942 echo "${ECHO_T}no" >&6
14944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14946 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
14947 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
14948 cat >conftest.$ac_ext <<_ACEOF
14949 /* confdefs.h. */
14950 _ACEOF
14951 cat confdefs.h >>conftest.$ac_ext
14952 cat >>conftest.$ac_ext <<_ACEOF
14953 /* end confdefs.h. */
14954 #include <netinet/in.h>
14956 main ()
14958 struct sockaddr_in6 addr6;
14960 return 0;
14962 _ACEOF
14963 rm -f conftest.$ac_objext
14964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14965 (eval $ac_compile) 2>conftest.er1
14966 ac_status=$?
14967 grep -v '^ *+' conftest.er1 >conftest.err
14968 rm -f conftest.er1
14969 cat conftest.err >&5
14970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971 (exit $ac_status); } &&
14972 { ac_try='test -z "$ac_c_werror_flag"
14973 || test ! -s conftest.err'
14974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14975 (eval $ac_try) 2>&5
14976 ac_status=$?
14977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978 (exit $ac_status); }; } &&
14979 { ac_try='test -s conftest.$ac_objext'
14980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14981 (eval $ac_try) 2>&5
14982 ac_status=$?
14983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984 (exit $ac_status); }; }; then
14986 cat >>confdefs.h <<\_ACEOF
14987 #define HAVE_INET6 1
14988 _ACEOF
14990 echo "$as_me:$LINENO: result: yes" >&5
14991 echo "${ECHO_T}yes" >&6
14992 else
14993 echo "$as_me: failed program was:" >&5
14994 sed 's/^/| /' conftest.$ac_ext >&5
14996 echo "$as_me:$LINENO: result: no" >&5
14997 echo "${ECHO_T}no" >&6
14999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15001 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
15002 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
15003 cat >conftest.$ac_ext <<_ACEOF
15004 /* confdefs.h. */
15005 _ACEOF
15006 cat confdefs.h >>conftest.$ac_ext
15007 cat >>conftest.$ac_ext <<_ACEOF
15008 /* end confdefs.h. */
15009 #define _POSIX_PII_SOCKET
15010 #include <sys/types.h>
15011 #include <sys/socket.h>
15013 main ()
15015 socklen_t x = 5;
15017 return 0;
15019 _ACEOF
15020 rm -f conftest.$ac_objext
15021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15022 (eval $ac_compile) 2>conftest.er1
15023 ac_status=$?
15024 grep -v '^ *+' conftest.er1 >conftest.err
15025 rm -f conftest.er1
15026 cat conftest.err >&5
15027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15028 (exit $ac_status); } &&
15029 { ac_try='test -z "$ac_c_werror_flag"
15030 || test ! -s conftest.err'
15031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15032 (eval $ac_try) 2>&5
15033 ac_status=$?
15034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035 (exit $ac_status); }; } &&
15036 { ac_try='test -s conftest.$ac_objext'
15037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15038 (eval $ac_try) 2>&5
15039 ac_status=$?
15040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041 (exit $ac_status); }; }; then
15043 cat >>confdefs.h <<\_ACEOF
15044 #define HAVE_SOCKLEN_T 1
15045 _ACEOF
15047 echo "$as_me:$LINENO: result: yes" >&5
15048 echo "${ECHO_T}yes" >&6
15049 else
15050 echo "$as_me: failed program was:" >&5
15051 sed 's/^/| /' conftest.$ac_ext >&5
15053 echo "$as_me:$LINENO: result: no" >&5
15054 echo "${ECHO_T}no" >&6
15056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15058 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
15059 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
15060 cat >conftest.$ac_ext <<_ACEOF
15061 /* confdefs.h. */
15062 _ACEOF
15063 cat confdefs.h >>conftest.$ac_ext
15064 cat >>conftest.$ac_ext <<_ACEOF
15065 /* end confdefs.h. */
15066 #include <time.h>
15068 main ()
15070 struct tm tim; tim.tm_gmtoff = 0;
15072 return 0;
15074 _ACEOF
15075 rm -f conftest.$ac_objext
15076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15077 (eval $ac_compile) 2>conftest.er1
15078 ac_status=$?
15079 grep -v '^ *+' conftest.er1 >conftest.err
15080 rm -f conftest.er1
15081 cat conftest.err >&5
15082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083 (exit $ac_status); } &&
15084 { ac_try='test -z "$ac_c_werror_flag"
15085 || test ! -s conftest.err'
15086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15087 (eval $ac_try) 2>&5
15088 ac_status=$?
15089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090 (exit $ac_status); }; } &&
15091 { ac_try='test -s conftest.$ac_objext'
15092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15093 (eval $ac_try) 2>&5
15094 ac_status=$?
15095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096 (exit $ac_status); }; }; then
15098 cat >>confdefs.h <<\_ACEOF
15099 #define STRUCT_TM_HAS_GMTOFF 1
15100 _ACEOF
15102 echo "$as_me:$LINENO: result: yes" >&5
15103 echo "${ECHO_T}yes" >&6
15104 else
15105 echo "$as_me: failed program was:" >&5
15106 sed 's/^/| /' conftest.$ac_ext >&5
15108 echo "$as_me:$LINENO: result: no" >&5
15109 echo "${ECHO_T}no" >&6
15110 echo "$as_me:$LINENO: checking for global timezone variable" >&5
15111 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
15112 cat >conftest.$ac_ext <<_ACEOF
15113 /* confdefs.h. */
15114 _ACEOF
15115 cat confdefs.h >>conftest.$ac_ext
15116 cat >>conftest.$ac_ext <<_ACEOF
15117 /* end confdefs.h. */
15118 #include <time.h>
15120 main ()
15122 void i(){long z2 = 2*timezone;}
15124 return 0;
15126 _ACEOF
15127 rm -f conftest.$ac_objext
15128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15129 (eval $ac_compile) 2>conftest.er1
15130 ac_status=$?
15131 grep -v '^ *+' conftest.er1 >conftest.err
15132 rm -f conftest.er1
15133 cat conftest.err >&5
15134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135 (exit $ac_status); } &&
15136 { ac_try='test -z "$ac_c_werror_flag"
15137 || test ! -s conftest.err'
15138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15139 (eval $ac_try) 2>&5
15140 ac_status=$?
15141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142 (exit $ac_status); }; } &&
15143 { ac_try='test -s conftest.$ac_objext'
15144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15145 (eval $ac_try) 2>&5
15146 ac_status=$?
15147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15148 (exit $ac_status); }; }; then
15150 cat >>confdefs.h <<\_ACEOF
15151 #define HAVE_TIMEZONE 1
15152 _ACEOF
15154 echo "$as_me:$LINENO: result: yes" >&5
15155 echo "${ECHO_T}yes" >&6
15156 else
15157 echo "$as_me: failed program was:" >&5
15158 sed 's/^/| /' conftest.$ac_ext >&5
15160 echo "$as_me:$LINENO: result: no" >&5
15161 echo "${ECHO_T}no" >&6
15162 echo "$as_me:$LINENO: checking for global _timezone variable" >&5
15163 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
15164 cat >conftest.$ac_ext <<_ACEOF
15165 /* confdefs.h. */
15166 _ACEOF
15167 cat confdefs.h >>conftest.$ac_ext
15168 cat >>conftest.$ac_ext <<_ACEOF
15169 /* end confdefs.h. */
15170 #include <time.h>
15172 main ()
15174 long z2 = _timezone;
15176 return 0;
15178 _ACEOF
15179 rm -f conftest.$ac_objext
15180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15181 (eval $ac_compile) 2>conftest.er1
15182 ac_status=$?
15183 grep -v '^ *+' conftest.er1 >conftest.err
15184 rm -f conftest.er1
15185 cat conftest.err >&5
15186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15187 (exit $ac_status); } &&
15188 { ac_try='test -z "$ac_c_werror_flag"
15189 || test ! -s conftest.err'
15190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15191 (eval $ac_try) 2>&5
15192 ac_status=$?
15193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194 (exit $ac_status); }; } &&
15195 { ac_try='test -s conftest.$ac_objext'
15196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15197 (eval $ac_try) 2>&5
15198 ac_status=$?
15199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15200 (exit $ac_status); }; }; then
15202 cat >>confdefs.h <<\_ACEOF
15203 #define HAVE_UNDERSCORE_TIMEZONE 1
15204 _ACEOF
15206 echo "$as_me:$LINENO: result: yes" >&5
15207 echo "${ECHO_T}yes" >&6
15208 else
15209 echo "$as_me: failed program was:" >&5
15210 sed 's/^/| /' conftest.$ac_ext >&5
15212 echo "$as_me:$LINENO: result: no" >&5
15213 echo "${ECHO_T}no" >&6
15215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15221 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15222 # for constant arguments. Useless!
15223 echo "$as_me:$LINENO: checking for working alloca.h" >&5
15224 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15225 if test "${ac_cv_working_alloca_h+set}" = set; then
15226 echo $ECHO_N "(cached) $ECHO_C" >&6
15227 else
15228 if test x$gcc_no_link = xyes; then
15229 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15230 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15231 { (exit 1); exit 1; }; }
15233 cat >conftest.$ac_ext <<_ACEOF
15234 /* confdefs.h. */
15235 _ACEOF
15236 cat confdefs.h >>conftest.$ac_ext
15237 cat >>conftest.$ac_ext <<_ACEOF
15238 /* end confdefs.h. */
15239 #include <alloca.h>
15241 main ()
15243 char *p = (char *) alloca (2 * sizeof (int));
15245 return 0;
15247 _ACEOF
15248 rm -f conftest.$ac_objext conftest$ac_exeext
15249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15250 (eval $ac_link) 2>conftest.er1
15251 ac_status=$?
15252 grep -v '^ *+' conftest.er1 >conftest.err
15253 rm -f conftest.er1
15254 cat conftest.err >&5
15255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256 (exit $ac_status); } &&
15257 { ac_try='test -z "$ac_c_werror_flag"
15258 || test ! -s conftest.err'
15259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15260 (eval $ac_try) 2>&5
15261 ac_status=$?
15262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263 (exit $ac_status); }; } &&
15264 { ac_try='test -s conftest$ac_exeext'
15265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15266 (eval $ac_try) 2>&5
15267 ac_status=$?
15268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15269 (exit $ac_status); }; }; then
15270 ac_cv_working_alloca_h=yes
15271 else
15272 echo "$as_me: failed program was:" >&5
15273 sed 's/^/| /' conftest.$ac_ext >&5
15275 ac_cv_working_alloca_h=no
15277 rm -f conftest.err conftest.$ac_objext \
15278 conftest$ac_exeext conftest.$ac_ext
15280 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15281 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
15282 if test $ac_cv_working_alloca_h = yes; then
15284 cat >>confdefs.h <<\_ACEOF
15285 #define HAVE_ALLOCA_H 1
15286 _ACEOF
15290 echo "$as_me:$LINENO: checking for alloca" >&5
15291 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
15292 if test "${ac_cv_func_alloca_works+set}" = set; then
15293 echo $ECHO_N "(cached) $ECHO_C" >&6
15294 else
15295 if test x$gcc_no_link = xyes; then
15296 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15297 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15298 { (exit 1); exit 1; }; }
15300 cat >conftest.$ac_ext <<_ACEOF
15301 /* confdefs.h. */
15302 _ACEOF
15303 cat confdefs.h >>conftest.$ac_ext
15304 cat >>conftest.$ac_ext <<_ACEOF
15305 /* end confdefs.h. */
15306 #ifdef __GNUC__
15307 # define alloca __builtin_alloca
15308 #else
15309 # ifdef _MSC_VER
15310 # include <malloc.h>
15311 # define alloca _alloca
15312 # else
15313 # if HAVE_ALLOCA_H
15314 # include <alloca.h>
15315 # else
15316 # ifdef _AIX
15317 #pragma alloca
15318 # else
15319 # ifndef alloca /* predefined by HP cc +Olibcalls */
15320 char *alloca ();
15321 # endif
15322 # endif
15323 # endif
15324 # endif
15325 #endif
15328 main ()
15330 char *p = (char *) alloca (1);
15332 return 0;
15334 _ACEOF
15335 rm -f conftest.$ac_objext conftest$ac_exeext
15336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15337 (eval $ac_link) 2>conftest.er1
15338 ac_status=$?
15339 grep -v '^ *+' conftest.er1 >conftest.err
15340 rm -f conftest.er1
15341 cat conftest.err >&5
15342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343 (exit $ac_status); } &&
15344 { ac_try='test -z "$ac_c_werror_flag"
15345 || test ! -s conftest.err'
15346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15347 (eval $ac_try) 2>&5
15348 ac_status=$?
15349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15350 (exit $ac_status); }; } &&
15351 { ac_try='test -s conftest$ac_exeext'
15352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15353 (eval $ac_try) 2>&5
15354 ac_status=$?
15355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15356 (exit $ac_status); }; }; then
15357 ac_cv_func_alloca_works=yes
15358 else
15359 echo "$as_me: failed program was:" >&5
15360 sed 's/^/| /' conftest.$ac_ext >&5
15362 ac_cv_func_alloca_works=no
15364 rm -f conftest.err conftest.$ac_objext \
15365 conftest$ac_exeext conftest.$ac_ext
15367 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15368 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
15370 if test $ac_cv_func_alloca_works = yes; then
15372 cat >>confdefs.h <<\_ACEOF
15373 #define HAVE_ALLOCA 1
15374 _ACEOF
15376 else
15377 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15378 # that cause trouble. Some versions do not even contain alloca or
15379 # contain a buggy version. If you still want to use their alloca,
15380 # use ar to extract alloca.o from them instead of compiling alloca.c.
15382 ALLOCA=alloca.$ac_objext
15384 cat >>confdefs.h <<\_ACEOF
15385 #define C_ALLOCA 1
15386 _ACEOF
15389 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15390 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
15391 if test "${ac_cv_os_cray+set}" = set; then
15392 echo $ECHO_N "(cached) $ECHO_C" >&6
15393 else
15394 cat >conftest.$ac_ext <<_ACEOF
15395 /* confdefs.h. */
15396 _ACEOF
15397 cat confdefs.h >>conftest.$ac_ext
15398 cat >>conftest.$ac_ext <<_ACEOF
15399 /* end confdefs.h. */
15400 #if defined(CRAY) && ! defined(CRAY2)
15401 webecray
15402 #else
15403 wenotbecray
15404 #endif
15406 _ACEOF
15407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15408 $EGREP "webecray" >/dev/null 2>&1; then
15409 ac_cv_os_cray=yes
15410 else
15411 ac_cv_os_cray=no
15413 rm -f conftest*
15416 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15417 echo "${ECHO_T}$ac_cv_os_cray" >&6
15418 if test $ac_cv_os_cray = yes; then
15419 for ac_func in _getb67 GETB67 getb67; do
15420 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15421 echo "$as_me:$LINENO: checking for $ac_func" >&5
15422 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15423 if eval "test \"\${$as_ac_var+set}\" = set"; then
15424 echo $ECHO_N "(cached) $ECHO_C" >&6
15425 else
15426 if test x$gcc_no_link = xyes; then
15427 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15428 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15429 { (exit 1); exit 1; }; }
15431 cat >conftest.$ac_ext <<_ACEOF
15432 /* confdefs.h. */
15433 _ACEOF
15434 cat confdefs.h >>conftest.$ac_ext
15435 cat >>conftest.$ac_ext <<_ACEOF
15436 /* end confdefs.h. */
15437 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15438 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15439 #define $ac_func innocuous_$ac_func
15441 /* System header to define __stub macros and hopefully few prototypes,
15442 which can conflict with char $ac_func (); below.
15443 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15444 <limits.h> exists even on freestanding compilers. */
15446 #ifdef __STDC__
15447 # include <limits.h>
15448 #else
15449 # include <assert.h>
15450 #endif
15452 #undef $ac_func
15454 /* Override any gcc2 internal prototype to avoid an error. */
15455 #ifdef __cplusplus
15456 extern "C"
15458 #endif
15459 /* We use char because int might match the return type of a gcc2
15460 builtin and then its argument prototype would still apply. */
15461 char $ac_func ();
15462 /* The GNU C library defines this for functions which it implements
15463 to always fail with ENOSYS. Some functions are actually named
15464 something starting with __ and the normal name is an alias. */
15465 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15466 choke me
15467 #else
15468 char (*f) () = $ac_func;
15469 #endif
15470 #ifdef __cplusplus
15472 #endif
15475 main ()
15477 return f != $ac_func;
15479 return 0;
15481 _ACEOF
15482 rm -f conftest.$ac_objext conftest$ac_exeext
15483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15484 (eval $ac_link) 2>conftest.er1
15485 ac_status=$?
15486 grep -v '^ *+' conftest.er1 >conftest.err
15487 rm -f conftest.er1
15488 cat conftest.err >&5
15489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15490 (exit $ac_status); } &&
15491 { ac_try='test -z "$ac_c_werror_flag"
15492 || test ! -s conftest.err'
15493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15494 (eval $ac_try) 2>&5
15495 ac_status=$?
15496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15497 (exit $ac_status); }; } &&
15498 { ac_try='test -s conftest$ac_exeext'
15499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15500 (eval $ac_try) 2>&5
15501 ac_status=$?
15502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503 (exit $ac_status); }; }; then
15504 eval "$as_ac_var=yes"
15505 else
15506 echo "$as_me: failed program was:" >&5
15507 sed 's/^/| /' conftest.$ac_ext >&5
15509 eval "$as_ac_var=no"
15511 rm -f conftest.err conftest.$ac_objext \
15512 conftest$ac_exeext conftest.$ac_ext
15514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15515 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15516 if test `eval echo '${'$as_ac_var'}'` = yes; then
15518 cat >>confdefs.h <<_ACEOF
15519 #define CRAY_STACKSEG_END $ac_func
15520 _ACEOF
15522 break
15525 done
15528 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15529 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
15530 if test "${ac_cv_c_stack_direction+set}" = set; then
15531 echo $ECHO_N "(cached) $ECHO_C" >&6
15532 else
15533 if test "$cross_compiling" = yes; then
15534 ac_cv_c_stack_direction=0
15535 else
15536 cat >conftest.$ac_ext <<_ACEOF
15537 /* confdefs.h. */
15538 _ACEOF
15539 cat confdefs.h >>conftest.$ac_ext
15540 cat >>conftest.$ac_ext <<_ACEOF
15541 /* end confdefs.h. */
15543 find_stack_direction ()
15545 static char *addr = 0;
15546 auto char dummy;
15547 if (addr == 0)
15549 addr = &dummy;
15550 return find_stack_direction ();
15552 else
15553 return (&dummy > addr) ? 1 : -1;
15557 main ()
15559 exit (find_stack_direction () < 0);
15561 _ACEOF
15562 rm -f conftest$ac_exeext
15563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15564 (eval $ac_link) 2>&5
15565 ac_status=$?
15566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15567 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15569 (eval $ac_try) 2>&5
15570 ac_status=$?
15571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15572 (exit $ac_status); }; }; then
15573 ac_cv_c_stack_direction=1
15574 else
15575 echo "$as_me: program exited with status $ac_status" >&5
15576 echo "$as_me: failed program was:" >&5
15577 sed 's/^/| /' conftest.$ac_ext >&5
15579 ( exit $ac_status )
15580 ac_cv_c_stack_direction=-1
15582 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15585 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15586 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
15588 cat >>confdefs.h <<_ACEOF
15589 #define STACK_DIRECTION $ac_cv_c_stack_direction
15590 _ACEOF
15595 if test x$gcc_no_link = xyes; then
15596 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
15597 ac_cv_func_mmap_fixed_mapped=no
15600 if test "x${ac_cv_func_mmap_fixed_mapped}" != xno; then
15603 for ac_header in stdlib.h unistd.h
15605 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15607 echo "$as_me:$LINENO: checking for $ac_header" >&5
15608 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15609 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15610 echo $ECHO_N "(cached) $ECHO_C" >&6
15612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15613 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15614 else
15615 # Is the header compilable?
15616 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15617 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15618 cat >conftest.$ac_ext <<_ACEOF
15619 /* confdefs.h. */
15620 _ACEOF
15621 cat confdefs.h >>conftest.$ac_ext
15622 cat >>conftest.$ac_ext <<_ACEOF
15623 /* end confdefs.h. */
15624 $ac_includes_default
15625 #include <$ac_header>
15626 _ACEOF
15627 rm -f conftest.$ac_objext
15628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15629 (eval $ac_compile) 2>conftest.er1
15630 ac_status=$?
15631 grep -v '^ *+' conftest.er1 >conftest.err
15632 rm -f conftest.er1
15633 cat conftest.err >&5
15634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15635 (exit $ac_status); } &&
15636 { ac_try='test -z "$ac_c_werror_flag"
15637 || test ! -s conftest.err'
15638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15639 (eval $ac_try) 2>&5
15640 ac_status=$?
15641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15642 (exit $ac_status); }; } &&
15643 { ac_try='test -s conftest.$ac_objext'
15644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15645 (eval $ac_try) 2>&5
15646 ac_status=$?
15647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15648 (exit $ac_status); }; }; then
15649 ac_header_compiler=yes
15650 else
15651 echo "$as_me: failed program was:" >&5
15652 sed 's/^/| /' conftest.$ac_ext >&5
15654 ac_header_compiler=no
15656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15657 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15658 echo "${ECHO_T}$ac_header_compiler" >&6
15660 # Is the header present?
15661 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15662 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15663 cat >conftest.$ac_ext <<_ACEOF
15664 /* confdefs.h. */
15665 _ACEOF
15666 cat confdefs.h >>conftest.$ac_ext
15667 cat >>conftest.$ac_ext <<_ACEOF
15668 /* end confdefs.h. */
15669 #include <$ac_header>
15670 _ACEOF
15671 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15672 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15673 ac_status=$?
15674 grep -v '^ *+' conftest.er1 >conftest.err
15675 rm -f conftest.er1
15676 cat conftest.err >&5
15677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678 (exit $ac_status); } >/dev/null; then
15679 if test -s conftest.err; then
15680 ac_cpp_err=$ac_c_preproc_warn_flag
15681 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15682 else
15683 ac_cpp_err=
15685 else
15686 ac_cpp_err=yes
15688 if test -z "$ac_cpp_err"; then
15689 ac_header_preproc=yes
15690 else
15691 echo "$as_me: failed program was:" >&5
15692 sed 's/^/| /' conftest.$ac_ext >&5
15694 ac_header_preproc=no
15696 rm -f conftest.err conftest.$ac_ext
15697 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15698 echo "${ECHO_T}$ac_header_preproc" >&6
15700 # So? What about this header?
15701 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15702 yes:no: )
15703 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15704 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15706 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15707 ac_header_preproc=yes
15709 no:yes:* )
15710 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15711 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15712 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15713 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15714 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15715 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15716 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15717 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15718 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15719 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15720 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15721 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15723 cat <<\_ASBOX
15724 ## ---------------------------------- ##
15725 ## Report this to the libjava lists. ##
15726 ## ---------------------------------- ##
15727 _ASBOX
15729 sed "s/^/$as_me: WARNING: /" >&2
15731 esac
15732 echo "$as_me:$LINENO: checking for $ac_header" >&5
15733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15734 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15735 echo $ECHO_N "(cached) $ECHO_C" >&6
15736 else
15737 eval "$as_ac_Header=\$ac_header_preproc"
15739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15740 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15743 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15744 cat >>confdefs.h <<_ACEOF
15745 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15746 _ACEOF
15750 done
15753 for ac_func in getpagesize
15755 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15756 echo "$as_me:$LINENO: checking for $ac_func" >&5
15757 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15758 if eval "test \"\${$as_ac_var+set}\" = set"; then
15759 echo $ECHO_N "(cached) $ECHO_C" >&6
15760 else
15761 if test x$gcc_no_link = xyes; then
15762 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15763 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15764 { (exit 1); exit 1; }; }
15766 cat >conftest.$ac_ext <<_ACEOF
15767 /* confdefs.h. */
15768 _ACEOF
15769 cat confdefs.h >>conftest.$ac_ext
15770 cat >>conftest.$ac_ext <<_ACEOF
15771 /* end confdefs.h. */
15772 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15773 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15774 #define $ac_func innocuous_$ac_func
15776 /* System header to define __stub macros and hopefully few prototypes,
15777 which can conflict with char $ac_func (); below.
15778 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15779 <limits.h> exists even on freestanding compilers. */
15781 #ifdef __STDC__
15782 # include <limits.h>
15783 #else
15784 # include <assert.h>
15785 #endif
15787 #undef $ac_func
15789 /* Override any gcc2 internal prototype to avoid an error. */
15790 #ifdef __cplusplus
15791 extern "C"
15793 #endif
15794 /* We use char because int might match the return type of a gcc2
15795 builtin and then its argument prototype would still apply. */
15796 char $ac_func ();
15797 /* The GNU C library defines this for functions which it implements
15798 to always fail with ENOSYS. Some functions are actually named
15799 something starting with __ and the normal name is an alias. */
15800 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15801 choke me
15802 #else
15803 char (*f) () = $ac_func;
15804 #endif
15805 #ifdef __cplusplus
15807 #endif
15810 main ()
15812 return f != $ac_func;
15814 return 0;
15816 _ACEOF
15817 rm -f conftest.$ac_objext conftest$ac_exeext
15818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15819 (eval $ac_link) 2>conftest.er1
15820 ac_status=$?
15821 grep -v '^ *+' conftest.er1 >conftest.err
15822 rm -f conftest.er1
15823 cat conftest.err >&5
15824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15825 (exit $ac_status); } &&
15826 { ac_try='test -z "$ac_c_werror_flag"
15827 || test ! -s conftest.err'
15828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15829 (eval $ac_try) 2>&5
15830 ac_status=$?
15831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15832 (exit $ac_status); }; } &&
15833 { ac_try='test -s conftest$ac_exeext'
15834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15835 (eval $ac_try) 2>&5
15836 ac_status=$?
15837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15838 (exit $ac_status); }; }; then
15839 eval "$as_ac_var=yes"
15840 else
15841 echo "$as_me: failed program was:" >&5
15842 sed 's/^/| /' conftest.$ac_ext >&5
15844 eval "$as_ac_var=no"
15846 rm -f conftest.err conftest.$ac_objext \
15847 conftest$ac_exeext conftest.$ac_ext
15849 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15850 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15851 if test `eval echo '${'$as_ac_var'}'` = yes; then
15852 cat >>confdefs.h <<_ACEOF
15853 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15854 _ACEOF
15857 done
15859 echo "$as_me:$LINENO: checking for working mmap" >&5
15860 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
15861 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
15862 echo $ECHO_N "(cached) $ECHO_C" >&6
15863 else
15864 if test "$cross_compiling" = yes; then
15865 ac_cv_func_mmap_fixed_mapped=no
15866 else
15867 cat >conftest.$ac_ext <<_ACEOF
15868 /* confdefs.h. */
15869 _ACEOF
15870 cat confdefs.h >>conftest.$ac_ext
15871 cat >>conftest.$ac_ext <<_ACEOF
15872 /* end confdefs.h. */
15873 $ac_includes_default
15874 /* malloc might have been renamed as rpl_malloc. */
15875 #undef malloc
15877 /* Thanks to Mike Haertel and Jim Avera for this test.
15878 Here is a matrix of mmap possibilities:
15879 mmap private not fixed
15880 mmap private fixed at somewhere currently unmapped
15881 mmap private fixed at somewhere already mapped
15882 mmap shared not fixed
15883 mmap shared fixed at somewhere currently unmapped
15884 mmap shared fixed at somewhere already mapped
15885 For private mappings, we should verify that changes cannot be read()
15886 back from the file, nor mmap's back from the file at a different
15887 address. (There have been systems where private was not correctly
15888 implemented like the infamous i386 svr4.0, and systems where the
15889 VM page cache was not coherent with the file system buffer cache
15890 like early versions of FreeBSD and possibly contemporary NetBSD.)
15891 For shared mappings, we should conversely verify that changes get
15892 propagated back to all the places they're supposed to be.
15894 Grep wants private fixed already mapped.
15895 The main things grep needs to know about mmap are:
15896 * does it exist and is it safe to write into the mmap'd area
15897 * how to use it (BSD variants) */
15899 #include <fcntl.h>
15900 #include <sys/mman.h>
15902 #if !STDC_HEADERS && !HAVE_STDLIB_H
15903 char *malloc ();
15904 #endif
15906 /* This mess was copied from the GNU getpagesize.h. */
15907 #if !HAVE_GETPAGESIZE
15908 /* Assume that all systems that can run configure have sys/param.h. */
15909 # if !HAVE_SYS_PARAM_H
15910 # define HAVE_SYS_PARAM_H 1
15911 # endif
15913 # ifdef _SC_PAGESIZE
15914 # define getpagesize() sysconf(_SC_PAGESIZE)
15915 # else /* no _SC_PAGESIZE */
15916 # if HAVE_SYS_PARAM_H
15917 # include <sys/param.h>
15918 # ifdef EXEC_PAGESIZE
15919 # define getpagesize() EXEC_PAGESIZE
15920 # else /* no EXEC_PAGESIZE */
15921 # ifdef NBPG
15922 # define getpagesize() NBPG * CLSIZE
15923 # ifndef CLSIZE
15924 # define CLSIZE 1
15925 # endif /* no CLSIZE */
15926 # else /* no NBPG */
15927 # ifdef NBPC
15928 # define getpagesize() NBPC
15929 # else /* no NBPC */
15930 # ifdef PAGESIZE
15931 # define getpagesize() PAGESIZE
15932 # endif /* PAGESIZE */
15933 # endif /* no NBPC */
15934 # endif /* no NBPG */
15935 # endif /* no EXEC_PAGESIZE */
15936 # else /* no HAVE_SYS_PARAM_H */
15937 # define getpagesize() 8192 /* punt totally */
15938 # endif /* no HAVE_SYS_PARAM_H */
15939 # endif /* no _SC_PAGESIZE */
15941 #endif /* no HAVE_GETPAGESIZE */
15944 main ()
15946 char *data, *data2, *data3;
15947 int i, pagesize;
15948 int fd;
15950 pagesize = getpagesize ();
15952 /* First, make a file with some known garbage in it. */
15953 data = (char *) malloc (pagesize);
15954 if (!data)
15955 exit (1);
15956 for (i = 0; i < pagesize; ++i)
15957 *(data + i) = rand ();
15958 umask (0);
15959 fd = creat ("conftest.mmap", 0600);
15960 if (fd < 0)
15961 exit (1);
15962 if (write (fd, data, pagesize) != pagesize)
15963 exit (1);
15964 close (fd);
15966 /* Next, try to mmap the file at a fixed address which already has
15967 something else allocated at it. If we can, also make sure that
15968 we see the same garbage. */
15969 fd = open ("conftest.mmap", O_RDWR);
15970 if (fd < 0)
15971 exit (1);
15972 data2 = (char *) malloc (2 * pagesize);
15973 if (!data2)
15974 exit (1);
15975 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
15976 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15977 MAP_PRIVATE | MAP_FIXED, fd, 0L))
15978 exit (1);
15979 for (i = 0; i < pagesize; ++i)
15980 if (*(data + i) != *(data2 + i))
15981 exit (1);
15983 /* Finally, make sure that changes to the mapped area do not
15984 percolate back to the file as seen by read(). (This is a bug on
15985 some variants of i386 svr4.0.) */
15986 for (i = 0; i < pagesize; ++i)
15987 *(data2 + i) = *(data2 + i) + 1;
15988 data3 = (char *) malloc (pagesize);
15989 if (!data3)
15990 exit (1);
15991 if (read (fd, data3, pagesize) != pagesize)
15992 exit (1);
15993 for (i = 0; i < pagesize; ++i)
15994 if (*(data + i) != *(data3 + i))
15995 exit (1);
15996 close (fd);
15997 exit (0);
15999 _ACEOF
16000 rm -f conftest$ac_exeext
16001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16002 (eval $ac_link) 2>&5
16003 ac_status=$?
16004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16007 (eval $ac_try) 2>&5
16008 ac_status=$?
16009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010 (exit $ac_status); }; }; then
16011 ac_cv_func_mmap_fixed_mapped=yes
16012 else
16013 echo "$as_me: program exited with status $ac_status" >&5
16014 echo "$as_me: failed program was:" >&5
16015 sed 's/^/| /' conftest.$ac_ext >&5
16017 ( exit $ac_status )
16018 ac_cv_func_mmap_fixed_mapped=no
16020 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16023 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
16024 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
16025 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16027 cat >>confdefs.h <<\_ACEOF
16028 #define HAVE_MMAP 1
16029 _ACEOF
16032 rm -f conftest.mmap
16036 for ac_prog in perl
16038 # Extract the first word of "$ac_prog", so it can be a program name with args.
16039 set dummy $ac_prog; ac_word=$2
16040 echo "$as_me:$LINENO: checking for $ac_word" >&5
16041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16042 if test "${ac_cv_prog_PERL+set}" = set; then
16043 echo $ECHO_N "(cached) $ECHO_C" >&6
16044 else
16045 if test -n "$PERL"; then
16046 ac_cv_prog_PERL="$PERL" # Let the user override the test.
16047 else
16048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16049 for as_dir in $PATH
16051 IFS=$as_save_IFS
16052 test -z "$as_dir" && as_dir=.
16053 for ac_exec_ext in '' $ac_executable_extensions; do
16054 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16055 ac_cv_prog_PERL="$ac_prog"
16056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16057 break 2
16059 done
16060 done
16064 PERL=$ac_cv_prog_PERL
16065 if test -n "$PERL"; then
16066 echo "$as_me:$LINENO: result: $PERL" >&5
16067 echo "${ECHO_T}$PERL" >&6
16068 else
16069 echo "$as_me:$LINENO: result: no" >&5
16070 echo "${ECHO_T}no" >&6
16073 test -n "$PERL" && break
16074 done
16075 test -n "$PERL" || PERL="false"
16078 SYSDEP_SOURCES=
16079 SIGNAL_HANDLER_AUX=
16081 case "${host}" in
16082 i?86-*-linux*)
16083 SIGNAL_HANDLER=include/i386-signal.h
16085 sparc*-sun-solaris*)
16086 SIGNAL_HANDLER=include/sparc-signal.h
16088 # ia64-*)
16089 # SYSDEP_SOURCES=sysdep/ia64.c
16090 # test -d sysdep || mkdir sysdep
16091 # ;;
16092 hppa*-*-linux*)
16093 SIGNAL_HANDLER=include/pa-signal.h
16095 ia64-*-linux*)
16096 SIGNAL_HANDLER=include/dwarf2-signal.h
16098 powerpc*-*-linux*)
16099 SIGNAL_HANDLER=include/powerpc-signal.h
16101 alpha*-*-linux*)
16102 SIGNAL_HANDLER=include/dwarf2-signal.h
16104 s390*-*-linux*)
16105 SIGNAL_HANDLER=include/s390-signal.h
16107 x86_64*-*-linux*)
16108 SIGNAL_HANDLER=include/x86_64-signal.h
16109 SIGNAL_HANDLER_AUX=include/i386-signal.h
16111 sparc*-*-linux*)
16112 SIGNAL_HANDLER=include/dwarf2-signal.h
16114 sh*-*-linux*)
16115 SIGNAL_HANDLER=include/sh-signal.h
16117 *mingw*)
16118 SIGNAL_HANDLER=include/win32-signal.h
16120 mips*-*-linux*)
16121 SIGNAL_HANDLER=include/mips-signal.h
16123 *-*-darwin*)
16124 SIGNAL_HANDLER=include/darwin-signal.h
16127 SIGNAL_HANDLER=include/default-signal.h
16129 esac
16131 # If we're using sjlj exceptions, forget what we just learned.
16132 if test "$enable_sjlj_exceptions" = yes; then
16133 SIGNAL_HANDLER=include/default-signal.h
16134 SIGNAL_HANDLER_AUX=
16139 if test -z "$SIGNAL_HANDLER_AUX"; then
16140 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
16143 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
16146 if test "${multilib}" = "yes"; then
16147 multilib_arg="--enable-multilib"
16148 else
16149 multilib_arg=
16154 here=`${PWDCMD-pwd}`
16157 # We get this from the environment.
16160 ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile"
16163 ac_config_commands="$ac_config_commands default"
16166 cat >confcache <<\_ACEOF
16167 # This file is a shell script that caches the results of configure
16168 # tests run on this system so they can be shared between configure
16169 # scripts and configure runs, see configure's option --config-cache.
16170 # It is not useful on other systems. If it contains results you don't
16171 # want to keep, you may remove or edit it.
16173 # config.status only pays attention to the cache file if you give it
16174 # the --recheck option to rerun configure.
16176 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16177 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16178 # following values.
16180 _ACEOF
16182 # The following way of writing the cache mishandles newlines in values,
16183 # but we know of no workaround that is simple, portable, and efficient.
16184 # So, don't put newlines in cache variables' values.
16185 # Ultrix sh set writes to stderr and can't be redirected directly,
16186 # and sets the high bit in the cache file unless we assign to the vars.
16188 (set) 2>&1 |
16189 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16190 *ac_space=\ *)
16191 # `set' does not quote correctly, so add quotes (double-quote
16192 # substitution turns \\\\ into \\, and sed turns \\ into \).
16193 sed -n \
16194 "s/'/'\\\\''/g;
16195 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16198 # `set' quotes correctly as required by POSIX, so do not add quotes.
16199 sed -n \
16200 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16202 esac;
16204 sed '
16205 t clear
16206 : clear
16207 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16208 t end
16209 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16210 : end' >>confcache
16211 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16212 if test -w $cache_file; then
16213 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16214 cat confcache >$cache_file
16215 else
16216 echo "not updating unwritable cache $cache_file"
16219 rm -f confcache
16221 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16222 # Let make expand exec_prefix.
16223 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16225 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16226 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16227 # trailing colons and then remove the whole line if VPATH becomes empty
16228 # (actually we leave an empty line to preserve line numbers).
16229 if test "x$srcdir" = x.; then
16230 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16231 s/:*\$(srcdir):*/:/;
16232 s/:*\${srcdir}:*/:/;
16233 s/:*@srcdir@:*/:/;
16234 s/^\([^=]*=[ ]*\):*/\1/;
16235 s/:*$//;
16236 s/^[^=]*=[ ]*$//;
16240 DEFS=-DHAVE_CONFIG_H
16242 ac_libobjs=
16243 ac_ltlibobjs=
16244 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16245 # 1. Remove the extension, and $U if already installed.
16246 ac_i=`echo "$ac_i" |
16247 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16248 # 2. Add them.
16249 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16250 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16251 done
16252 LIBOBJS=$ac_libobjs
16254 LTLIBOBJS=$ac_ltlibobjs
16257 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16258 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16259 Usually this means the macro was only invoked conditionally." >&5
16260 echo "$as_me: error: conditional \"AMDEP\" was never defined.
16261 Usually this means the macro was only invoked conditionally." >&2;}
16262 { (exit 1); exit 1; }; }
16264 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16265 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16266 Usually this means the macro was only invoked conditionally." >&5
16267 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16268 Usually this means the macro was only invoked conditionally." >&2;}
16269 { (exit 1); exit 1; }; }
16271 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16272 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
16273 Usually this means the macro was only invoked conditionally." >&5
16274 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
16275 Usually this means the macro was only invoked conditionally." >&2;}
16276 { (exit 1); exit 1; }; }
16278 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16279 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
16280 Usually this means the macro was only invoked conditionally." >&5
16281 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
16282 Usually this means the macro was only invoked conditionally." >&2;}
16283 { (exit 1); exit 1; }; }
16285 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
16286 { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
16287 Usually this means the macro was only invoked conditionally." >&5
16288 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
16289 Usually this means the macro was only invoked conditionally." >&2;}
16290 { (exit 1); exit 1; }; }
16292 if test -z "${GTK_AWT_TRUE}" && test -z "${GTK_AWT_FALSE}"; then
16293 { { echo "$as_me:$LINENO: error: conditional \"GTK_AWT\" was never defined.
16294 Usually this means the macro was only invoked conditionally." >&5
16295 echo "$as_me: error: conditional \"GTK_AWT\" was never defined.
16296 Usually this means the macro was only invoked conditionally." >&2;}
16297 { (exit 1); exit 1; }; }
16299 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
16300 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
16301 Usually this means the macro was only invoked conditionally." >&5
16302 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
16303 Usually this means the macro was only invoked conditionally." >&2;}
16304 { (exit 1); exit 1; }; }
16306 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
16307 { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
16308 Usually this means the macro was only invoked conditionally." >&5
16309 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
16310 Usually this means the macro was only invoked conditionally." >&2;}
16311 { (exit 1); exit 1; }; }
16313 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
16314 { { echo "$as_me:$LINENO: error: conditional \"JAVA_HOME_SET\" was never defined.
16315 Usually this means the macro was only invoked conditionally." >&5
16316 echo "$as_me: error: conditional \"JAVA_HOME_SET\" was never defined.
16317 Usually this means the macro was only invoked conditionally." >&2;}
16318 { (exit 1); exit 1; }; }
16320 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
16321 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
16322 Usually this means the macro was only invoked conditionally." >&5
16323 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
16324 Usually this means the macro was only invoked conditionally." >&2;}
16325 { (exit 1); exit 1; }; }
16327 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
16328 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
16329 Usually this means the macro was only invoked conditionally." >&5
16330 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
16331 Usually this means the macro was only invoked conditionally." >&2;}
16332 { (exit 1); exit 1; }; }
16334 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
16335 { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
16336 Usually this means the macro was only invoked conditionally." >&5
16337 echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
16338 Usually this means the macro was only invoked conditionally." >&2;}
16339 { (exit 1); exit 1; }; }
16341 if test -z "${GTK_CAIRO_TRUE}" && test -z "${GTK_CAIRO_FALSE}"; then
16342 { { echo "$as_me:$LINENO: error: conditional \"GTK_CAIRO\" was never defined.
16343 Usually this means the macro was only invoked conditionally." >&5
16344 echo "$as_me: error: conditional \"GTK_CAIRO\" was never defined.
16345 Usually this means the macro was only invoked conditionally." >&2;}
16346 { (exit 1); exit 1; }; }
16348 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
16349 { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
16350 Usually this means the macro was only invoked conditionally." >&5
16351 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
16352 Usually this means the macro was only invoked conditionally." >&2;}
16353 { (exit 1); exit 1; }; }
16355 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
16356 { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
16357 Usually this means the macro was only invoked conditionally." >&5
16358 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
16359 Usually this means the macro was only invoked conditionally." >&2;}
16360 { (exit 1); exit 1; }; }
16362 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
16363 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
16364 Usually this means the macro was only invoked conditionally." >&5
16365 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
16366 Usually this means the macro was only invoked conditionally." >&2;}
16367 { (exit 1); exit 1; }; }
16369 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
16370 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
16371 Usually this means the macro was only invoked conditionally." >&5
16372 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
16373 Usually this means the macro was only invoked conditionally." >&2;}
16374 { (exit 1); exit 1; }; }
16376 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
16377 { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
16378 Usually this means the macro was only invoked conditionally." >&5
16379 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
16380 Usually this means the macro was only invoked conditionally." >&2;}
16381 { (exit 1); exit 1; }; }
16383 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
16384 { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
16385 Usually this means the macro was only invoked conditionally." >&5
16386 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
16387 Usually this means the macro was only invoked conditionally." >&2;}
16388 { (exit 1); exit 1; }; }
16390 if test -z "${SUPPLY_BACKTRACE_TRUE}" && test -z "${SUPPLY_BACKTRACE_FALSE}"; then
16391 { { echo "$as_me:$LINENO: error: conditional \"SUPPLY_BACKTRACE\" was never defined.
16392 Usually this means the macro was only invoked conditionally." >&5
16393 echo "$as_me: error: conditional \"SUPPLY_BACKTRACE\" was never defined.
16394 Usually this means the macro was only invoked conditionally." >&2;}
16395 { (exit 1); exit 1; }; }
16397 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
16398 { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
16399 Usually this means the macro was only invoked conditionally." >&5
16400 echo "$as_me: error: conditional \"NATIVE\" was never defined.
16401 Usually this means the macro was only invoked conditionally." >&2;}
16402 { (exit 1); exit 1; }; }
16404 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
16405 { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
16406 Usually this means the macro was only invoked conditionally." >&5
16407 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
16408 Usually this means the macro was only invoked conditionally." >&2;}
16409 { (exit 1); exit 1; }; }
16412 : ${CONFIG_STATUS=./config.status}
16413 ac_clean_files_save=$ac_clean_files
16414 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16415 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16416 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16417 cat >$CONFIG_STATUS <<_ACEOF
16418 #! $SHELL
16419 # Generated by $as_me.
16420 # Run this file to recreate the current configuration.
16421 # Compiler output produced by configure, useful for debugging
16422 # configure, is in config.log if it exists.
16424 debug=false
16425 ac_cs_recheck=false
16426 ac_cs_silent=false
16427 SHELL=\${CONFIG_SHELL-$SHELL}
16428 _ACEOF
16430 cat >>$CONFIG_STATUS <<\_ACEOF
16431 ## --------------------- ##
16432 ## M4sh Initialization. ##
16433 ## --------------------- ##
16435 # Be Bourne compatible
16436 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16437 emulate sh
16438 NULLCMD=:
16439 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16440 # is contrary to our usage. Disable this feature.
16441 alias -g '${1+"$@"}'='"$@"'
16442 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16443 set -o posix
16445 DUALCASE=1; export DUALCASE # for MKS sh
16447 # Support unset when possible.
16448 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16449 as_unset=unset
16450 else
16451 as_unset=false
16455 # Work around bugs in pre-3.0 UWIN ksh.
16456 $as_unset ENV MAIL MAILPATH
16457 PS1='$ '
16458 PS2='> '
16459 PS4='+ '
16461 # NLS nuisances.
16462 for as_var in \
16463 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16464 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16465 LC_TELEPHONE LC_TIME
16467 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16468 eval $as_var=C; export $as_var
16469 else
16470 $as_unset $as_var
16472 done
16474 # Required to use basename.
16475 if expr a : '\(a\)' >/dev/null 2>&1; then
16476 as_expr=expr
16477 else
16478 as_expr=false
16481 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16482 as_basename=basename
16483 else
16484 as_basename=false
16488 # Name of the executable.
16489 as_me=`$as_basename "$0" ||
16490 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16491 X"$0" : 'X\(//\)$' \| \
16492 X"$0" : 'X\(/\)$' \| \
16493 . : '\(.\)' 2>/dev/null ||
16494 echo X/"$0" |
16495 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16496 /^X\/\(\/\/\)$/{ s//\1/; q; }
16497 /^X\/\(\/\).*/{ s//\1/; q; }
16498 s/.*/./; q'`
16501 # PATH needs CR, and LINENO needs CR and PATH.
16502 # Avoid depending upon Character Ranges.
16503 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16504 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16505 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16506 as_cr_digits='0123456789'
16507 as_cr_alnum=$as_cr_Letters$as_cr_digits
16509 # The user is always right.
16510 if test "${PATH_SEPARATOR+set}" != set; then
16511 echo "#! /bin/sh" >conf$$.sh
16512 echo "exit 0" >>conf$$.sh
16513 chmod +x conf$$.sh
16514 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16515 PATH_SEPARATOR=';'
16516 else
16517 PATH_SEPARATOR=:
16519 rm -f conf$$.sh
16523 as_lineno_1=$LINENO
16524 as_lineno_2=$LINENO
16525 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16526 test "x$as_lineno_1" != "x$as_lineno_2" &&
16527 test "x$as_lineno_3" = "x$as_lineno_2" || {
16528 # Find who we are. Look in the path if we contain no path at all
16529 # relative or not.
16530 case $0 in
16531 *[\\/]* ) as_myself=$0 ;;
16532 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16533 for as_dir in $PATH
16535 IFS=$as_save_IFS
16536 test -z "$as_dir" && as_dir=.
16537 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16538 done
16541 esac
16542 # We did not find ourselves, most probably we were run as `sh COMMAND'
16543 # in which case we are not to be found in the path.
16544 if test "x$as_myself" = x; then
16545 as_myself=$0
16547 if test ! -f "$as_myself"; then
16548 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16549 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16550 { (exit 1); exit 1; }; }
16552 case $CONFIG_SHELL in
16554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16555 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16557 IFS=$as_save_IFS
16558 test -z "$as_dir" && as_dir=.
16559 for as_base in sh bash ksh sh5; do
16560 case $as_dir in
16562 if ("$as_dir/$as_base" -c '
16563 as_lineno_1=$LINENO
16564 as_lineno_2=$LINENO
16565 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16566 test "x$as_lineno_1" != "x$as_lineno_2" &&
16567 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16568 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16569 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16570 CONFIG_SHELL=$as_dir/$as_base
16571 export CONFIG_SHELL
16572 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16573 fi;;
16574 esac
16575 done
16576 done
16578 esac
16580 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16581 # uniformly replaced by the line number. The first 'sed' inserts a
16582 # line-number line before each line; the second 'sed' does the real
16583 # work. The second script uses 'N' to pair each line-number line
16584 # with the numbered line, and appends trailing '-' during
16585 # substitution so that $LINENO is not a special case at line end.
16586 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16587 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16588 sed '=' <$as_myself |
16589 sed '
16591 s,$,-,
16592 : loop
16593 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16594 t loop
16595 s,-$,,
16596 s,^['$as_cr_digits']*\n,,
16597 ' >$as_me.lineno &&
16598 chmod +x $as_me.lineno ||
16599 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16600 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16601 { (exit 1); exit 1; }; }
16603 # Don't try to exec as it changes $[0], causing all sort of problems
16604 # (the dirname of $[0] is not the place where we might find the
16605 # original and so on. Autoconf is especially sensible to this).
16606 . ./$as_me.lineno
16607 # Exit status is that of the last command.
16608 exit
16612 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16613 *c*,-n*) ECHO_N= ECHO_C='
16614 ' ECHO_T=' ' ;;
16615 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16616 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16617 esac
16619 if expr a : '\(a\)' >/dev/null 2>&1; then
16620 as_expr=expr
16621 else
16622 as_expr=false
16625 rm -f conf$$ conf$$.exe conf$$.file
16626 echo >conf$$.file
16627 if ln -s conf$$.file conf$$ 2>/dev/null; then
16628 # We could just check for DJGPP; but this test a) works b) is more generic
16629 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16630 if test -f conf$$.exe; then
16631 # Don't use ln at all; we don't have any links
16632 as_ln_s='cp -p'
16633 else
16634 as_ln_s='ln -s'
16636 elif ln conf$$.file conf$$ 2>/dev/null; then
16637 as_ln_s=ln
16638 else
16639 as_ln_s='cp -p'
16641 rm -f conf$$ conf$$.exe conf$$.file
16643 if mkdir -p . 2>/dev/null; then
16644 as_mkdir_p=:
16645 else
16646 test -d ./-p && rmdir ./-p
16647 as_mkdir_p=false
16650 as_executable_p="test -f"
16652 # Sed expression to map a string onto a valid CPP name.
16653 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16655 # Sed expression to map a string onto a valid variable name.
16656 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16659 # IFS
16660 # We need space, tab and new line, in precisely that order.
16661 as_nl='
16663 IFS=" $as_nl"
16665 # CDPATH.
16666 $as_unset CDPATH
16668 exec 6>&1
16670 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16671 # report actual input values of CONFIG_FILES etc. instead of their
16672 # values after options handling. Logging --version etc. is OK.
16673 exec 5>>config.log
16675 echo
16676 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16677 ## Running $as_me. ##
16678 _ASBOX
16679 } >&5
16680 cat >&5 <<_CSEOF
16682 This file was extended by libjava $as_me version-unused, which was
16683 generated by GNU Autoconf 2.59. Invocation command line was
16685 CONFIG_FILES = $CONFIG_FILES
16686 CONFIG_HEADERS = $CONFIG_HEADERS
16687 CONFIG_LINKS = $CONFIG_LINKS
16688 CONFIG_COMMANDS = $CONFIG_COMMANDS
16689 $ $0 $@
16691 _CSEOF
16692 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16693 echo >&5
16694 _ACEOF
16696 # Files that config.status was made for.
16697 if test -n "$ac_config_files"; then
16698 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16701 if test -n "$ac_config_headers"; then
16702 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16705 if test -n "$ac_config_links"; then
16706 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16709 if test -n "$ac_config_commands"; then
16710 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16713 cat >>$CONFIG_STATUS <<\_ACEOF
16715 ac_cs_usage="\
16716 \`$as_me' instantiates files from templates according to the
16717 current configuration.
16719 Usage: $0 [OPTIONS] [FILE]...
16721 -h, --help print this help, then exit
16722 -V, --version print version number, then exit
16723 -q, --quiet do not print progress messages
16724 -d, --debug don't remove temporary files
16725 --recheck update $as_me by reconfiguring in the same conditions
16726 --file=FILE[:TEMPLATE]
16727 instantiate the configuration file FILE
16728 --header=FILE[:TEMPLATE]
16729 instantiate the configuration header FILE
16731 Configuration files:
16732 $config_files
16734 Configuration headers:
16735 $config_headers
16737 Configuration links:
16738 $config_links
16740 Configuration commands:
16741 $config_commands
16743 Report bugs to <bug-autoconf@gnu.org>."
16744 _ACEOF
16746 cat >>$CONFIG_STATUS <<_ACEOF
16747 ac_cs_version="\\
16748 libjava config.status version-unused
16749 configured by $0, generated by GNU Autoconf 2.59,
16750 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16752 Copyright (C) 2003 Free Software Foundation, Inc.
16753 This config.status script is free software; the Free Software Foundation
16754 gives unlimited permission to copy, distribute and modify it."
16755 srcdir=$srcdir
16756 INSTALL="$INSTALL"
16757 _ACEOF
16759 cat >>$CONFIG_STATUS <<\_ACEOF
16760 # If no file are specified by the user, then we need to provide default
16761 # value. By we need to know if files were specified by the user.
16762 ac_need_defaults=:
16763 while test $# != 0
16765 case $1 in
16766 --*=*)
16767 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16768 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16769 ac_shift=:
16772 ac_option=$1
16773 ac_optarg=$2
16774 ac_shift=shift
16776 *) # This is not an option, so the user has probably given explicit
16777 # arguments.
16778 ac_option=$1
16779 ac_need_defaults=false;;
16780 esac
16782 case $ac_option in
16783 # Handling of the options.
16784 _ACEOF
16785 cat >>$CONFIG_STATUS <<\_ACEOF
16786 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16787 ac_cs_recheck=: ;;
16788 --version | --vers* | -V )
16789 echo "$ac_cs_version"; exit 0 ;;
16790 --he | --h)
16791 # Conflict between --help and --header
16792 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16793 Try \`$0 --help' for more information." >&5
16794 echo "$as_me: error: ambiguous option: $1
16795 Try \`$0 --help' for more information." >&2;}
16796 { (exit 1); exit 1; }; };;
16797 --help | --hel | -h )
16798 echo "$ac_cs_usage"; exit 0 ;;
16799 --debug | --d* | -d )
16800 debug=: ;;
16801 --file | --fil | --fi | --f )
16802 $ac_shift
16803 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16804 ac_need_defaults=false;;
16805 --header | --heade | --head | --hea )
16806 $ac_shift
16807 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16808 ac_need_defaults=false;;
16809 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16810 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16811 ac_cs_silent=: ;;
16813 # This is an error.
16814 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16815 Try \`$0 --help' for more information." >&5
16816 echo "$as_me: error: unrecognized option: $1
16817 Try \`$0 --help' for more information." >&2;}
16818 { (exit 1); exit 1; }; } ;;
16820 *) ac_config_targets="$ac_config_targets $1" ;;
16822 esac
16823 shift
16824 done
16826 ac_configure_extra_args=
16828 if $ac_cs_silent; then
16829 exec 6>/dev/null
16830 ac_configure_extra_args="$ac_configure_extra_args --silent"
16833 _ACEOF
16834 cat >>$CONFIG_STATUS <<_ACEOF
16835 if \$ac_cs_recheck; then
16836 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16837 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16840 _ACEOF
16842 cat >>$CONFIG_STATUS <<_ACEOF
16844 # INIT-COMMANDS section.
16847 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16848 srcdir=${srcdir}
16849 host=${host}
16850 target=${target}
16851 with_multisubdir=${with_multisubdir}
16852 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16853 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16854 libgcj_basedir=${libgcj_basedir}
16855 CC="${CC}"
16856 CXX="${CXX}"
16857 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
16860 _ACEOF
16864 cat >>$CONFIG_STATUS <<\_ACEOF
16865 for ac_config_target in $ac_config_targets
16867 case "$ac_config_target" in
16868 # Handling of arguments.
16869 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16870 "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
16871 "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
16872 "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
16873 "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
16874 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16875 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16876 "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
16877 "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
16878 "java/lang/ConcreteProcess.java" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java" ;;
16879 "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
16880 "java/net/natInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc" ;;
16881 "java/net/natVMNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
16882 "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
16883 "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
16884 "gnu/java/nio/natPipeImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc" ;;
16885 "gnu/java/nio/natSelectorImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc" ;;
16886 "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
16887 "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
16888 "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
16889 "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
16890 "sysdep/backtrace.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
16891 "sysdep/descriptor.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
16892 "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
16893 "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
16894 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16895 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16896 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
16897 "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
16898 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16899 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16900 { (exit 1); exit 1; }; };;
16901 esac
16902 done
16904 # If the user did not use the arguments to specify the items to instantiate,
16905 # then the envvar interface is used. Set only those that are not.
16906 # We use the long form for the default assignment because of an extremely
16907 # bizarre bug on SunOS 4.1.3.
16908 if $ac_need_defaults; then
16909 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16910 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16911 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16912 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16915 # Have a temporary directory for convenience. Make it in the build tree
16916 # simply because there is no reason to put it here, and in addition,
16917 # creating and moving files from /tmp can sometimes cause problems.
16918 # Create a temporary directory, and hook for its removal unless debugging.
16919 $debug ||
16921 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16922 trap '{ (exit 1); exit 1; }' 1 2 13 15
16925 # Create a (secure) tmp directory for tmp files.
16928 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16929 test -n "$tmp" && test -d "$tmp"
16930 } ||
16932 tmp=./confstat$$-$RANDOM
16933 (umask 077 && mkdir $tmp)
16934 } ||
16936 echo "$me: cannot create a temporary directory in ." >&2
16937 { (exit 1); exit 1; }
16940 _ACEOF
16942 cat >>$CONFIG_STATUS <<_ACEOF
16945 # CONFIG_FILES section.
16948 # No need to generate the scripts if there are no CONFIG_FILES.
16949 # This happens for instance when ./config.status config.h
16950 if test -n "\$CONFIG_FILES"; then
16951 # Protect against being on the right side of a sed subst in config.status.
16952 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16953 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16954 s,@SHELL@,$SHELL,;t t
16955 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16956 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16957 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16958 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16959 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16960 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16961 s,@exec_prefix@,$exec_prefix,;t t
16962 s,@prefix@,$prefix,;t t
16963 s,@program_transform_name@,$program_transform_name,;t t
16964 s,@bindir@,$bindir,;t t
16965 s,@sbindir@,$sbindir,;t t
16966 s,@libexecdir@,$libexecdir,;t t
16967 s,@datadir@,$datadir,;t t
16968 s,@sysconfdir@,$sysconfdir,;t t
16969 s,@sharedstatedir@,$sharedstatedir,;t t
16970 s,@localstatedir@,$localstatedir,;t t
16971 s,@libdir@,$libdir,;t t
16972 s,@includedir@,$includedir,;t t
16973 s,@oldincludedir@,$oldincludedir,;t t
16974 s,@infodir@,$infodir,;t t
16975 s,@mandir@,$mandir,;t t
16976 s,@build_alias@,$build_alias,;t t
16977 s,@host_alias@,$host_alias,;t t
16978 s,@target_alias@,$target_alias,;t t
16979 s,@DEFS@,$DEFS,;t t
16980 s,@ECHO_C@,$ECHO_C,;t t
16981 s,@ECHO_N@,$ECHO_N,;t t
16982 s,@ECHO_T@,$ECHO_T,;t t
16983 s,@LIBS@,$LIBS,;t t
16984 s,@build@,$build,;t t
16985 s,@build_cpu@,$build_cpu,;t t
16986 s,@build_vendor@,$build_vendor,;t t
16987 s,@build_os@,$build_os,;t t
16988 s,@build_subdir@,$build_subdir,;t t
16989 s,@host_subdir@,$host_subdir,;t t
16990 s,@target_subdir@,$target_subdir,;t t
16991 s,@libgcj_basedir@,$libgcj_basedir,;t t
16992 s,@host@,$host,;t t
16993 s,@host_cpu@,$host_cpu,;t t
16994 s,@host_vendor@,$host_vendor,;t t
16995 s,@host_os@,$host_os,;t t
16996 s,@target@,$target,;t t
16997 s,@target_cpu@,$target_cpu,;t t
16998 s,@target_vendor@,$target_vendor,;t t
16999 s,@target_os@,$target_os,;t t
17000 s,@target_noncanonical@,$target_noncanonical,;t t
17001 s,@LN_S@,$LN_S,;t t
17002 s,@mkinstalldirs@,$mkinstalldirs,;t t
17003 s,@CC@,$CC,;t t
17004 s,@ac_ct_CC@,$ac_ct_CC,;t t
17005 s,@EXEEXT@,$EXEEXT,;t t
17006 s,@OBJEXT@,$OBJEXT,;t t
17007 s,@CXX@,$CXX,;t t
17008 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17009 s,@CFLAGS@,$CFLAGS,;t t
17010 s,@CXXFLAGS@,$CXXFLAGS,;t t
17011 s,@LDFLAGS@,$LDFLAGS,;t t
17012 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17013 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17014 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17015 s,@CYGPATH_W@,$CYGPATH_W,;t t
17016 s,@PACKAGE@,$PACKAGE,;t t
17017 s,@VERSION@,$VERSION,;t t
17018 s,@ACLOCAL@,$ACLOCAL,;t t
17019 s,@AUTOCONF@,$AUTOCONF,;t t
17020 s,@AUTOMAKE@,$AUTOMAKE,;t t
17021 s,@AUTOHEADER@,$AUTOHEADER,;t t
17022 s,@MAKEINFO@,$MAKEINFO,;t t
17023 s,@install_sh@,$install_sh,;t t
17024 s,@STRIP@,$STRIP,;t t
17025 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17026 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17027 s,@mkdir_p@,$mkdir_p,;t t
17028 s,@AWK@,$AWK,;t t
17029 s,@SET_MAKE@,$SET_MAKE,;t t
17030 s,@am__leading_dot@,$am__leading_dot,;t t
17031 s,@AMTAR@,$AMTAR,;t t
17032 s,@am__tar@,$am__tar,;t t
17033 s,@am__untar@,$am__untar,;t t
17034 s,@DEPDIR@,$DEPDIR,;t t
17035 s,@am__include@,$am__include,;t t
17036 s,@am__quote@,$am__quote,;t t
17037 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17038 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17039 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17040 s,@CCDEPMODE@,$CCDEPMODE,;t t
17041 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17042 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17043 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
17044 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
17045 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
17046 s,@AS@,$AS,;t t
17047 s,@ac_ct_AS@,$ac_ct_AS,;t t
17048 s,@AR@,$AR,;t t
17049 s,@ac_ct_AR@,$ac_ct_AR,;t t
17050 s,@RANLIB@,$RANLIB,;t t
17051 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17052 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
17053 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
17054 s,@MAINT@,$MAINT,;t t
17055 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
17056 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
17057 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
17058 s,@LIBGCJ_LD_SYMBOLIC@,$LIBGCJ_LD_SYMBOLIC,;t t
17059 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
17060 s,@TOOLKIT@,$TOOLKIT,;t t
17061 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
17062 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
17063 s,@GTK_AWT_TRUE@,$GTK_AWT_TRUE,;t t
17064 s,@GTK_AWT_FALSE@,$GTK_AWT_FALSE,;t t
17065 s,@GCJH@,$GCJH,;t t
17066 s,@ZIP@,$ZIP,;t t
17067 s,@INCLTDL@,$INCLTDL,;t t
17068 s,@LIBLTDL@,$LIBLTDL,;t t
17069 s,@DIRLTDL@,$DIRLTDL,;t t
17070 s,@LIBTOOL@,$LIBTOOL,;t t
17071 s,@CXXCPP@,$CXXCPP,;t t
17072 s,@CPPFLAGS@,$CPPFLAGS,;t t
17073 s,@GCJ@,$GCJ,;t t
17074 s,@GCJFLAGS@,$GCJFLAGS,;t t
17075 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
17076 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
17077 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
17078 s,@subdirs@,$subdirs,;t t
17079 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
17080 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
17081 s,@JAVA_HOME_SET_TRUE@,$JAVA_HOME_SET_TRUE,;t t
17082 s,@JAVA_HOME_SET_FALSE@,$JAVA_HOME_SET_FALSE,;t t
17083 s,@JAVA_HOME@,$JAVA_HOME,;t t
17084 s,@INTERPRETER@,$INTERPRETER,;t t
17085 s,@LIBFFI@,$LIBFFI,;t t
17086 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
17087 s,@PLATFORM_INNER_NAT_HDRS@,$PLATFORM_INNER_NAT_HDRS,;t t
17088 s,@CPP@,$CPP,;t t
17089 s,@EGREP@,$EGREP,;t t
17090 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
17091 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
17092 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
17093 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
17094 s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
17095 s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
17096 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
17097 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
17098 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
17099 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
17100 s,@X_CFLAGS@,$X_CFLAGS,;t t
17101 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17102 s,@X_LIBS@,$X_LIBS,;t t
17103 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17104 s,@GTK_CAIRO_TRUE@,$GTK_CAIRO_TRUE,;t t
17105 s,@GTK_CAIRO_FALSE@,$GTK_CAIRO_FALSE,;t t
17106 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
17107 s,@CAIRO_CFLAGS@,$CAIRO_CFLAGS,;t t
17108 s,@CAIRO_LIBS@,$CAIRO_LIBS,;t t
17109 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
17110 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
17111 s,@GCLIBS@,$GCLIBS,;t t
17112 s,@GCINCS@,$GCINCS,;t t
17113 s,@GCDEPS@,$GCDEPS,;t t
17114 s,@GCSPEC@,$GCSPEC,;t t
17115 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
17116 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
17117 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
17118 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
17119 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
17120 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
17121 s,@THREADLIBS@,$THREADLIBS,;t t
17122 s,@THREADINCS@,$THREADINCS,;t t
17123 s,@THREADDEPS@,$THREADDEPS,;t t
17124 s,@THREADSPEC@,$THREADSPEC,;t t
17125 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
17126 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
17127 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
17128 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
17129 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
17130 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
17131 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
17132 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
17133 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
17134 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
17135 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
17136 s,@LIBICONV@,$LIBICONV,;t t
17137 s,@LTLIBICONV@,$LTLIBICONV,;t t
17138 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
17139 s,@GTK_LIBS@,$GTK_LIBS,;t t
17140 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
17141 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
17142 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
17143 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
17144 s,@SUPPLY_BACKTRACE_TRUE@,$SUPPLY_BACKTRACE_TRUE,;t t
17145 s,@SUPPLY_BACKTRACE_FALSE@,$SUPPLY_BACKTRACE_FALSE,;t t
17146 s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
17147 s,@ac_ct_GCJ@,$ac_ct_GCJ,;t t
17148 s,@ZLIBS@,$ZLIBS,;t t
17149 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
17150 s,@ZINCS@,$ZINCS,;t t
17151 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
17152 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
17153 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
17154 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
17155 s,@IEEESPEC@,$IEEESPEC,;t t
17156 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
17157 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
17158 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
17159 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
17160 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
17161 s,@toolexecdir@,$toolexecdir,;t t
17162 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
17163 s,@toolexeclibdir@,$toolexeclibdir,;t t
17164 s,@GCJVERSION@,$GCJVERSION,;t t
17165 s,@gxx_include_dir@,$gxx_include_dir,;t t
17166 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
17167 s,@ALLOCA@,$ALLOCA,;t t
17168 s,@PERL@,$PERL,;t t
17169 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
17170 s,@here@,$here,;t t
17171 s,@LIBOBJS@,$LIBOBJS,;t t
17172 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17173 CEOF
17175 _ACEOF
17177 cat >>$CONFIG_STATUS <<\_ACEOF
17178 # Split the substitutions into bite-sized pieces for seds with
17179 # small command number limits, like on Digital OSF/1 and HP-UX.
17180 ac_max_sed_lines=48
17181 ac_sed_frag=1 # Number of current file.
17182 ac_beg=1 # First line for current file.
17183 ac_end=$ac_max_sed_lines # Line after last line for current file.
17184 ac_more_lines=:
17185 ac_sed_cmds=
17186 while $ac_more_lines; do
17187 if test $ac_beg -gt 1; then
17188 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17189 else
17190 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17192 if test ! -s $tmp/subs.frag; then
17193 ac_more_lines=false
17194 else
17195 # The purpose of the label and of the branching condition is to
17196 # speed up the sed processing (if there are no `@' at all, there
17197 # is no need to browse any of the substitutions).
17198 # These are the two extra sed commands mentioned above.
17199 (echo ':t
17200 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17201 if test -z "$ac_sed_cmds"; then
17202 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17203 else
17204 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17206 ac_sed_frag=`expr $ac_sed_frag + 1`
17207 ac_beg=$ac_end
17208 ac_end=`expr $ac_end + $ac_max_sed_lines`
17210 done
17211 if test -z "$ac_sed_cmds"; then
17212 ac_sed_cmds=cat
17214 fi # test -n "$CONFIG_FILES"
17216 _ACEOF
17217 cat >>$CONFIG_STATUS <<\_ACEOF
17218 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17219 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17220 case $ac_file in
17221 - | *:- | *:-:* ) # input from stdin
17222 cat >$tmp/stdin
17223 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17224 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17225 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17226 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17227 * ) ac_file_in=$ac_file.in ;;
17228 esac
17230 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17231 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17232 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17233 X"$ac_file" : 'X\(//\)[^/]' \| \
17234 X"$ac_file" : 'X\(//\)$' \| \
17235 X"$ac_file" : 'X\(/\)' \| \
17236 . : '\(.\)' 2>/dev/null ||
17237 echo X"$ac_file" |
17238 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17239 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17240 /^X\(\/\/\)$/{ s//\1/; q; }
17241 /^X\(\/\).*/{ s//\1/; q; }
17242 s/.*/./; q'`
17243 { if $as_mkdir_p; then
17244 mkdir -p "$ac_dir"
17245 else
17246 as_dir="$ac_dir"
17247 as_dirs=
17248 while test ! -d "$as_dir"; do
17249 as_dirs="$as_dir $as_dirs"
17250 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17251 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17252 X"$as_dir" : 'X\(//\)[^/]' \| \
17253 X"$as_dir" : 'X\(//\)$' \| \
17254 X"$as_dir" : 'X\(/\)' \| \
17255 . : '\(.\)' 2>/dev/null ||
17256 echo X"$as_dir" |
17257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17258 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17259 /^X\(\/\/\)$/{ s//\1/; q; }
17260 /^X\(\/\).*/{ s//\1/; q; }
17261 s/.*/./; q'`
17262 done
17263 test ! -n "$as_dirs" || mkdir $as_dirs
17264 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17265 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17266 { (exit 1); exit 1; }; }; }
17268 ac_builddir=.
17270 if test "$ac_dir" != .; then
17271 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17272 # A "../" for each directory in $ac_dir_suffix.
17273 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17274 else
17275 ac_dir_suffix= ac_top_builddir=
17278 case $srcdir in
17279 .) # No --srcdir option. We are building in place.
17280 ac_srcdir=.
17281 if test -z "$ac_top_builddir"; then
17282 ac_top_srcdir=.
17283 else
17284 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17285 fi ;;
17286 [\\/]* | ?:[\\/]* ) # Absolute path.
17287 ac_srcdir=$srcdir$ac_dir_suffix;
17288 ac_top_srcdir=$srcdir ;;
17289 *) # Relative path.
17290 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17291 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17292 esac
17294 # Do not use `cd foo && pwd` to compute absolute paths, because
17295 # the directories may not exist.
17296 case `pwd` in
17297 .) ac_abs_builddir="$ac_dir";;
17299 case "$ac_dir" in
17300 .) ac_abs_builddir=`pwd`;;
17301 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17302 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17303 esac;;
17304 esac
17305 case $ac_abs_builddir in
17306 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17308 case ${ac_top_builddir}. in
17309 .) ac_abs_top_builddir=$ac_abs_builddir;;
17310 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17311 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17312 esac;;
17313 esac
17314 case $ac_abs_builddir in
17315 .) ac_abs_srcdir=$ac_srcdir;;
17317 case $ac_srcdir in
17318 .) ac_abs_srcdir=$ac_abs_builddir;;
17319 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17320 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17321 esac;;
17322 esac
17323 case $ac_abs_builddir in
17324 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17326 case $ac_top_srcdir in
17327 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17328 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17329 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17330 esac;;
17331 esac
17334 case $INSTALL in
17335 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17336 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17337 esac
17339 if test x"$ac_file" != x-; then
17340 { echo "$as_me:$LINENO: creating $ac_file" >&5
17341 echo "$as_me: creating $ac_file" >&6;}
17342 rm -f "$ac_file"
17344 # Let's still pretend it is `configure' which instantiates (i.e., don't
17345 # use $as_me), people would be surprised to read:
17346 # /* config.h. Generated by config.status. */
17347 if test x"$ac_file" = x-; then
17348 configure_input=
17349 else
17350 configure_input="$ac_file. "
17352 configure_input=$configure_input"Generated from `echo $ac_file_in |
17353 sed 's,.*/,,'` by configure."
17355 # First look for the input files in the build tree, otherwise in the
17356 # src tree.
17357 ac_file_inputs=`IFS=:
17358 for f in $ac_file_in; do
17359 case $f in
17360 -) echo $tmp/stdin ;;
17361 [\\/$]*)
17362 # Absolute (can't be DOS-style, as IFS=:)
17363 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17364 echo "$as_me: error: cannot find input file: $f" >&2;}
17365 { (exit 1); exit 1; }; }
17366 echo "$f";;
17367 *) # Relative
17368 if test -f "$f"; then
17369 # Build tree
17370 echo "$f"
17371 elif test -f "$srcdir/$f"; then
17372 # Source tree
17373 echo "$srcdir/$f"
17374 else
17375 # /dev/null tree
17376 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17377 echo "$as_me: error: cannot find input file: $f" >&2;}
17378 { (exit 1); exit 1; }; }
17379 fi;;
17380 esac
17381 done` || { (exit 1); exit 1; }
17382 _ACEOF
17383 cat >>$CONFIG_STATUS <<_ACEOF
17384 sed "$ac_vpsub
17385 $extrasub
17386 _ACEOF
17387 cat >>$CONFIG_STATUS <<\_ACEOF
17389 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17390 s,@configure_input@,$configure_input,;t t
17391 s,@srcdir@,$ac_srcdir,;t t
17392 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17393 s,@top_srcdir@,$ac_top_srcdir,;t t
17394 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17395 s,@builddir@,$ac_builddir,;t t
17396 s,@abs_builddir@,$ac_abs_builddir,;t t
17397 s,@top_builddir@,$ac_top_builddir,;t t
17398 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17399 s,@INSTALL@,$ac_INSTALL,;t t
17400 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17401 rm -f $tmp/stdin
17402 if test x"$ac_file" != x-; then
17403 mv $tmp/out $ac_file
17404 else
17405 cat $tmp/out
17406 rm -f $tmp/out
17409 done
17410 _ACEOF
17411 cat >>$CONFIG_STATUS <<\_ACEOF
17414 # CONFIG_HEADER section.
17417 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17418 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17420 # ac_d sets the value in "#define NAME VALUE" lines.
17421 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17422 ac_dB='[ ].*$,\1#\2'
17423 ac_dC=' '
17424 ac_dD=',;t'
17425 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17426 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17427 ac_uB='$,\1#\2define\3'
17428 ac_uC=' '
17429 ac_uD=',;t'
17431 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17432 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17433 case $ac_file in
17434 - | *:- | *:-:* ) # input from stdin
17435 cat >$tmp/stdin
17436 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17437 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17438 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17439 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17440 * ) ac_file_in=$ac_file.in ;;
17441 esac
17443 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17444 echo "$as_me: creating $ac_file" >&6;}
17446 # First look for the input files in the build tree, otherwise in the
17447 # src tree.
17448 ac_file_inputs=`IFS=:
17449 for f in $ac_file_in; do
17450 case $f in
17451 -) echo $tmp/stdin ;;
17452 [\\/$]*)
17453 # Absolute (can't be DOS-style, as IFS=:)
17454 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17455 echo "$as_me: error: cannot find input file: $f" >&2;}
17456 { (exit 1); exit 1; }; }
17457 # Do quote $f, to prevent DOS paths from being IFS'd.
17458 echo "$f";;
17459 *) # Relative
17460 if test -f "$f"; then
17461 # Build tree
17462 echo "$f"
17463 elif test -f "$srcdir/$f"; then
17464 # Source tree
17465 echo "$srcdir/$f"
17466 else
17467 # /dev/null tree
17468 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17469 echo "$as_me: error: cannot find input file: $f" >&2;}
17470 { (exit 1); exit 1; }; }
17471 fi;;
17472 esac
17473 done` || { (exit 1); exit 1; }
17474 # Remove the trailing spaces.
17475 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17477 _ACEOF
17479 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17480 # `conftest.undefs', that substitutes the proper values into
17481 # config.h.in to produce config.h. The first handles `#define'
17482 # templates, and the second `#undef' templates.
17483 # And first: Protect against being on the right side of a sed subst in
17484 # config.status. Protect against being in an unquoted here document
17485 # in config.status.
17486 rm -f conftest.defines conftest.undefs
17487 # Using a here document instead of a string reduces the quoting nightmare.
17488 # Putting comments in sed scripts is not portable.
17490 # `end' is used to avoid that the second main sed command (meant for
17491 # 0-ary CPP macros) applies to n-ary macro definitions.
17492 # See the Autoconf documentation for `clear'.
17493 cat >confdef2sed.sed <<\_ACEOF
17494 s/[\\&,]/\\&/g
17495 s,[\\$`],\\&,g
17496 t clear
17497 : clear
17498 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17499 t end
17500 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17501 : end
17502 _ACEOF
17503 # If some macros were called several times there might be several times
17504 # the same #defines, which is useless. Nevertheless, we may not want to
17505 # sort them, since we want the *last* AC-DEFINE to be honored.
17506 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17507 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17508 rm -f confdef2sed.sed
17510 # This sed command replaces #undef with comments. This is necessary, for
17511 # example, in the case of _POSIX_SOURCE, which is predefined and required
17512 # on some systems where configure will not decide to define it.
17513 cat >>conftest.undefs <<\_ACEOF
17514 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17515 _ACEOF
17517 # Break up conftest.defines because some shells have a limit on the size
17518 # of here documents, and old seds have small limits too (100 cmds).
17519 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17520 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17521 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17522 echo ' :' >>$CONFIG_STATUS
17523 rm -f conftest.tail
17524 while grep . conftest.defines >/dev/null
17526 # Write a limited-size here document to $tmp/defines.sed.
17527 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17528 # Speed up: don't consider the non `#define' lines.
17529 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17530 # Work around the forget-to-reset-the-flag bug.
17531 echo 't clr' >>$CONFIG_STATUS
17532 echo ': clr' >>$CONFIG_STATUS
17533 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17534 echo 'CEOF
17535 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17536 rm -f $tmp/in
17537 mv $tmp/out $tmp/in
17538 ' >>$CONFIG_STATUS
17539 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17540 rm -f conftest.defines
17541 mv conftest.tail conftest.defines
17542 done
17543 rm -f conftest.defines
17544 echo ' fi # grep' >>$CONFIG_STATUS
17545 echo >>$CONFIG_STATUS
17547 # Break up conftest.undefs because some shells have a limit on the size
17548 # of here documents, and old seds have small limits too (100 cmds).
17549 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17550 rm -f conftest.tail
17551 while grep . conftest.undefs >/dev/null
17553 # Write a limited-size here document to $tmp/undefs.sed.
17554 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17555 # Speed up: don't consider the non `#undef'
17556 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17557 # Work around the forget-to-reset-the-flag bug.
17558 echo 't clr' >>$CONFIG_STATUS
17559 echo ': clr' >>$CONFIG_STATUS
17560 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17561 echo 'CEOF
17562 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17563 rm -f $tmp/in
17564 mv $tmp/out $tmp/in
17565 ' >>$CONFIG_STATUS
17566 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17567 rm -f conftest.undefs
17568 mv conftest.tail conftest.undefs
17569 done
17570 rm -f conftest.undefs
17572 cat >>$CONFIG_STATUS <<\_ACEOF
17573 # Let's still pretend it is `configure' which instantiates (i.e., don't
17574 # use $as_me), people would be surprised to read:
17575 # /* config.h. Generated by config.status. */
17576 if test x"$ac_file" = x-; then
17577 echo "/* Generated by configure. */" >$tmp/config.h
17578 else
17579 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17581 cat $tmp/in >>$tmp/config.h
17582 rm -f $tmp/in
17583 if test x"$ac_file" != x-; then
17584 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17585 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17586 echo "$as_me: $ac_file is unchanged" >&6;}
17587 else
17588 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17589 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17590 X"$ac_file" : 'X\(//\)[^/]' \| \
17591 X"$ac_file" : 'X\(//\)$' \| \
17592 X"$ac_file" : 'X\(/\)' \| \
17593 . : '\(.\)' 2>/dev/null ||
17594 echo X"$ac_file" |
17595 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17596 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17597 /^X\(\/\/\)$/{ s//\1/; q; }
17598 /^X\(\/\).*/{ s//\1/; q; }
17599 s/.*/./; q'`
17600 { if $as_mkdir_p; then
17601 mkdir -p "$ac_dir"
17602 else
17603 as_dir="$ac_dir"
17604 as_dirs=
17605 while test ! -d "$as_dir"; do
17606 as_dirs="$as_dir $as_dirs"
17607 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17608 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17609 X"$as_dir" : 'X\(//\)[^/]' \| \
17610 X"$as_dir" : 'X\(//\)$' \| \
17611 X"$as_dir" : 'X\(/\)' \| \
17612 . : '\(.\)' 2>/dev/null ||
17613 echo X"$as_dir" |
17614 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17615 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17616 /^X\(\/\/\)$/{ s//\1/; q; }
17617 /^X\(\/\).*/{ s//\1/; q; }
17618 s/.*/./; q'`
17619 done
17620 test ! -n "$as_dirs" || mkdir $as_dirs
17621 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17622 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17623 { (exit 1); exit 1; }; }; }
17625 rm -f $ac_file
17626 mv $tmp/config.h $ac_file
17628 else
17629 cat $tmp/config.h
17630 rm -f $tmp/config.h
17632 # Compute $ac_file's index in $config_headers.
17633 _am_stamp_count=1
17634 for _am_header in $config_headers :; do
17635 case $_am_header in
17636 $ac_file | $ac_file:* )
17637 break ;;
17639 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17640 esac
17641 done
17642 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
17643 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17644 X$ac_file : 'X\(//\)[^/]' \| \
17645 X$ac_file : 'X\(//\)$' \| \
17646 X$ac_file : 'X\(/\)' \| \
17647 . : '\(.\)' 2>/dev/null ||
17648 echo X$ac_file |
17649 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17650 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17651 /^X\(\/\/\)$/{ s//\1/; q; }
17652 /^X\(\/\).*/{ s//\1/; q; }
17653 s/.*/./; q'`/stamp-h$_am_stamp_count
17654 done
17655 _ACEOF
17656 cat >>$CONFIG_STATUS <<\_ACEOF
17659 # CONFIG_LINKS section.
17662 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
17663 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17664 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17666 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
17667 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
17669 if test ! -r $srcdir/$ac_source; then
17670 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
17671 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
17672 { (exit 1); exit 1; }; }
17674 rm -f $ac_dest
17676 # Make relative symlinks.
17677 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
17678 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17679 X"$ac_dest" : 'X\(//\)[^/]' \| \
17680 X"$ac_dest" : 'X\(//\)$' \| \
17681 X"$ac_dest" : 'X\(/\)' \| \
17682 . : '\(.\)' 2>/dev/null ||
17683 echo X"$ac_dest" |
17684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17685 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17686 /^X\(\/\/\)$/{ s//\1/; q; }
17687 /^X\(\/\).*/{ s//\1/; q; }
17688 s/.*/./; q'`
17689 { if $as_mkdir_p; then
17690 mkdir -p "$ac_dest_dir"
17691 else
17692 as_dir="$ac_dest_dir"
17693 as_dirs=
17694 while test ! -d "$as_dir"; do
17695 as_dirs="$as_dir $as_dirs"
17696 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17697 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17698 X"$as_dir" : 'X\(//\)[^/]' \| \
17699 X"$as_dir" : 'X\(//\)$' \| \
17700 X"$as_dir" : 'X\(/\)' \| \
17701 . : '\(.\)' 2>/dev/null ||
17702 echo X"$as_dir" |
17703 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17704 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17705 /^X\(\/\/\)$/{ s//\1/; q; }
17706 /^X\(\/\).*/{ s//\1/; q; }
17707 s/.*/./; q'`
17708 done
17709 test ! -n "$as_dirs" || mkdir $as_dirs
17710 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
17711 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
17712 { (exit 1); exit 1; }; }; }
17714 ac_builddir=.
17716 if test "$ac_dest_dir" != .; then
17717 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
17718 # A "../" for each directory in $ac_dir_suffix.
17719 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17720 else
17721 ac_dir_suffix= ac_top_builddir=
17724 case $srcdir in
17725 .) # No --srcdir option. We are building in place.
17726 ac_srcdir=.
17727 if test -z "$ac_top_builddir"; then
17728 ac_top_srcdir=.
17729 else
17730 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17731 fi ;;
17732 [\\/]* | ?:[\\/]* ) # Absolute path.
17733 ac_srcdir=$srcdir$ac_dir_suffix;
17734 ac_top_srcdir=$srcdir ;;
17735 *) # Relative path.
17736 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17737 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17738 esac
17740 # Do not use `cd foo && pwd` to compute absolute paths, because
17741 # the directories may not exist.
17742 case `pwd` in
17743 .) ac_abs_builddir="$ac_dest_dir";;
17745 case "$ac_dest_dir" in
17746 .) ac_abs_builddir=`pwd`;;
17747 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
17748 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
17749 esac;;
17750 esac
17751 case $ac_abs_builddir in
17752 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17754 case ${ac_top_builddir}. in
17755 .) ac_abs_top_builddir=$ac_abs_builddir;;
17756 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17757 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17758 esac;;
17759 esac
17760 case $ac_abs_builddir in
17761 .) ac_abs_srcdir=$ac_srcdir;;
17763 case $ac_srcdir in
17764 .) ac_abs_srcdir=$ac_abs_builddir;;
17765 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17766 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17767 esac;;
17768 esac
17769 case $ac_abs_builddir in
17770 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17772 case $ac_top_srcdir in
17773 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17774 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17775 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17776 esac;;
17777 esac
17780 case $srcdir in
17781 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
17782 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
17783 esac
17785 # Try a symlink, then a hard link, then a copy.
17786 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
17787 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
17788 cp -p $srcdir/$ac_source $ac_dest ||
17789 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
17790 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
17791 { (exit 1); exit 1; }; }
17792 done
17793 _ACEOF
17794 cat >>$CONFIG_STATUS <<\_ACEOF
17797 # CONFIG_COMMANDS section.
17799 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17800 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17801 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17802 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17803 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17804 X"$ac_dest" : 'X\(//\)[^/]' \| \
17805 X"$ac_dest" : 'X\(//\)$' \| \
17806 X"$ac_dest" : 'X\(/\)' \| \
17807 . : '\(.\)' 2>/dev/null ||
17808 echo X"$ac_dest" |
17809 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17810 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17811 /^X\(\/\/\)$/{ s//\1/; q; }
17812 /^X\(\/\).*/{ s//\1/; q; }
17813 s/.*/./; q'`
17814 { if $as_mkdir_p; then
17815 mkdir -p "$ac_dir"
17816 else
17817 as_dir="$ac_dir"
17818 as_dirs=
17819 while test ! -d "$as_dir"; do
17820 as_dirs="$as_dir $as_dirs"
17821 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17822 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17823 X"$as_dir" : 'X\(//\)[^/]' \| \
17824 X"$as_dir" : 'X\(//\)$' \| \
17825 X"$as_dir" : 'X\(/\)' \| \
17826 . : '\(.\)' 2>/dev/null ||
17827 echo X"$as_dir" |
17828 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17829 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17830 /^X\(\/\/\)$/{ s//\1/; q; }
17831 /^X\(\/\).*/{ s//\1/; q; }
17832 s/.*/./; q'`
17833 done
17834 test ! -n "$as_dirs" || mkdir $as_dirs
17835 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17836 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17837 { (exit 1); exit 1; }; }; }
17839 ac_builddir=.
17841 if test "$ac_dir" != .; then
17842 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17843 # A "../" for each directory in $ac_dir_suffix.
17844 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17845 else
17846 ac_dir_suffix= ac_top_builddir=
17849 case $srcdir in
17850 .) # No --srcdir option. We are building in place.
17851 ac_srcdir=.
17852 if test -z "$ac_top_builddir"; then
17853 ac_top_srcdir=.
17854 else
17855 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17856 fi ;;
17857 [\\/]* | ?:[\\/]* ) # Absolute path.
17858 ac_srcdir=$srcdir$ac_dir_suffix;
17859 ac_top_srcdir=$srcdir ;;
17860 *) # Relative path.
17861 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17862 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17863 esac
17865 # Do not use `cd foo && pwd` to compute absolute paths, because
17866 # the directories may not exist.
17867 case `pwd` in
17868 .) ac_abs_builddir="$ac_dir";;
17870 case "$ac_dir" in
17871 .) ac_abs_builddir=`pwd`;;
17872 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17873 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17874 esac;;
17875 esac
17876 case $ac_abs_builddir in
17877 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17879 case ${ac_top_builddir}. in
17880 .) ac_abs_top_builddir=$ac_abs_builddir;;
17881 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17882 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17883 esac;;
17884 esac
17885 case $ac_abs_builddir in
17886 .) ac_abs_srcdir=$ac_srcdir;;
17888 case $ac_srcdir in
17889 .) ac_abs_srcdir=$ac_abs_builddir;;
17890 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17891 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17892 esac;;
17893 esac
17894 case $ac_abs_builddir in
17895 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17897 case $ac_top_srcdir in
17898 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17899 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17900 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17901 esac;;
17902 esac
17905 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17906 echo "$as_me: executing $ac_dest commands" >&6;}
17907 case $ac_dest in
17908 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
17909 # Strip MF so we end up with the name of the file.
17910 mf=`echo "$mf" | sed -e 's/:.*$//'`
17911 # Check whether this is an Automake generated Makefile or not.
17912 # We used to match only the files named `Makefile.in', but
17913 # some people rename them; so instead we look at the file content.
17914 # Grep'ing the first line is not enough: some people post-process
17915 # each Makefile.in and add a new line on top of each file to say so.
17916 # So let's grep whole file.
17917 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
17918 dirpart=`(dirname "$mf") 2>/dev/null ||
17919 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17920 X"$mf" : 'X\(//\)[^/]' \| \
17921 X"$mf" : 'X\(//\)$' \| \
17922 X"$mf" : 'X\(/\)' \| \
17923 . : '\(.\)' 2>/dev/null ||
17924 echo X"$mf" |
17925 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17926 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17927 /^X\(\/\/\)$/{ s//\1/; q; }
17928 /^X\(\/\).*/{ s//\1/; q; }
17929 s/.*/./; q'`
17930 else
17931 continue
17933 # Extract the definition of DEPDIR, am__include, and am__quote
17934 # from the Makefile without running `make'.
17935 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17936 test -z "$DEPDIR" && continue
17937 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17938 test -z "am__include" && continue
17939 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17940 # When using ansi2knr, U may be empty or an underscore; expand it
17941 U=`sed -n 's/^U = //p' < "$mf"`
17942 # Find all dependency output files, they are included files with
17943 # $(DEPDIR) in their names. We invoke sed twice because it is the
17944 # simplest approach to changing $(DEPDIR) to its actual value in the
17945 # expansion.
17946 for file in `sed -n "
17947 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17948 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17949 # Make sure the directory exists.
17950 test -f "$dirpart/$file" && continue
17951 fdir=`(dirname "$file") 2>/dev/null ||
17952 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17953 X"$file" : 'X\(//\)[^/]' \| \
17954 X"$file" : 'X\(//\)$' \| \
17955 X"$file" : 'X\(/\)' \| \
17956 . : '\(.\)' 2>/dev/null ||
17957 echo X"$file" |
17958 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17959 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17960 /^X\(\/\/\)$/{ s//\1/; q; }
17961 /^X\(\/\).*/{ s//\1/; q; }
17962 s/.*/./; q'`
17963 { if $as_mkdir_p; then
17964 mkdir -p $dirpart/$fdir
17965 else
17966 as_dir=$dirpart/$fdir
17967 as_dirs=
17968 while test ! -d "$as_dir"; do
17969 as_dirs="$as_dir $as_dirs"
17970 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17971 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17972 X"$as_dir" : 'X\(//\)[^/]' \| \
17973 X"$as_dir" : 'X\(//\)$' \| \
17974 X"$as_dir" : 'X\(/\)' \| \
17975 . : '\(.\)' 2>/dev/null ||
17976 echo X"$as_dir" |
17977 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17978 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17979 /^X\(\/\/\)$/{ s//\1/; q; }
17980 /^X\(\/\).*/{ s//\1/; q; }
17981 s/.*/./; q'`
17982 done
17983 test ! -n "$as_dirs" || mkdir $as_dirs
17984 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
17985 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
17986 { (exit 1); exit 1; }; }; }
17988 # echo "creating $dirpart/$file"
17989 echo '# dummy' > "$dirpart/$file"
17990 done
17991 done
17993 default ) # Only add multilib support code if we just rebuilt top-level Makefile.
17994 case " $CONFIG_FILES " in
17995 *" Makefile "*)
17996 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
17997 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
17999 esac
18000 for ac_multi_file in $CONFIG_FILES; do
18001 case $ac_multi_file in
18002 */Makefile)
18003 grep "^MULTI[^ ]* =" Makefile >> "$ac_multi_file" ;;
18004 esac
18005 done
18007 esac
18008 done
18009 _ACEOF
18011 cat >>$CONFIG_STATUS <<\_ACEOF
18013 { (exit 0); exit 0; }
18014 _ACEOF
18015 chmod +x $CONFIG_STATUS
18016 ac_clean_files=$ac_clean_files_save
18019 # configure is writing to config.log, and then calls config.status.
18020 # config.status does its own redirection, appending to config.log.
18021 # Unfortunately, on DOS this fails, as config.log is still kept open
18022 # by configure, so config.status won't be able to write to it; its
18023 # output is simply discarded. So we exec the FD to /dev/null,
18024 # effectively closing config.log, so it can be properly (re)opened and
18025 # appended to by config.status. When coming back to configure, we
18026 # need to make the FD available again.
18027 if test "$no_create" != yes; then
18028 ac_cs_success=:
18029 ac_config_status_args=
18030 test "$silent" = yes &&
18031 ac_config_status_args="$ac_config_status_args --quiet"
18032 exec 5>/dev/null
18033 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18034 exec 5>>config.log
18035 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18036 # would make configure fail if this is the last instruction.
18037 $ac_cs_success || { (exit 1); exit 1; }
18041 # CONFIG_SUBDIRS section.
18043 if test "$no_recursion" != yes; then
18045 # Remove --cache-file and --srcdir arguments so they do not pile up.
18046 ac_sub_configure_args=
18047 ac_prev=
18048 for ac_arg in $ac_configure_args; do
18049 if test -n "$ac_prev"; then
18050 ac_prev=
18051 continue
18053 case $ac_arg in
18054 -cache-file | --cache-file | --cache-fil | --cache-fi \
18055 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18056 ac_prev=cache_file ;;
18057 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18058 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
18059 | --c=*)
18061 --config-cache | -C)
18063 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18064 ac_prev=srcdir ;;
18065 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18067 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
18068 ac_prev=prefix ;;
18069 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
18071 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
18072 esac
18073 done
18075 # Always prepend --prefix to ensure using the same prefix
18076 # in subdir configurations.
18077 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
18079 ac_popdir=`pwd`
18080 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
18082 # Do not complain, so a configure script can configure whichever
18083 # parts of a large source tree are present.
18084 test -d $srcdir/$ac_dir || continue
18086 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
18087 echo "$as_me: configuring in $ac_dir" >&6;}
18088 { if $as_mkdir_p; then
18089 mkdir -p "$ac_dir"
18090 else
18091 as_dir="$ac_dir"
18092 as_dirs=
18093 while test ! -d "$as_dir"; do
18094 as_dirs="$as_dir $as_dirs"
18095 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18096 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18097 X"$as_dir" : 'X\(//\)[^/]' \| \
18098 X"$as_dir" : 'X\(//\)$' \| \
18099 X"$as_dir" : 'X\(/\)' \| \
18100 . : '\(.\)' 2>/dev/null ||
18101 echo X"$as_dir" |
18102 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18103 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18104 /^X\(\/\/\)$/{ s//\1/; q; }
18105 /^X\(\/\).*/{ s//\1/; q; }
18106 s/.*/./; q'`
18107 done
18108 test ! -n "$as_dirs" || mkdir $as_dirs
18109 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18110 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18111 { (exit 1); exit 1; }; }; }
18113 ac_builddir=.
18115 if test "$ac_dir" != .; then
18116 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18117 # A "../" for each directory in $ac_dir_suffix.
18118 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18119 else
18120 ac_dir_suffix= ac_top_builddir=
18123 case $srcdir in
18124 .) # No --srcdir option. We are building in place.
18125 ac_srcdir=.
18126 if test -z "$ac_top_builddir"; then
18127 ac_top_srcdir=.
18128 else
18129 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18130 fi ;;
18131 [\\/]* | ?:[\\/]* ) # Absolute path.
18132 ac_srcdir=$srcdir$ac_dir_suffix;
18133 ac_top_srcdir=$srcdir ;;
18134 *) # Relative path.
18135 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18136 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18137 esac
18139 # Do not use `cd foo && pwd` to compute absolute paths, because
18140 # the directories may not exist.
18141 case `pwd` in
18142 .) ac_abs_builddir="$ac_dir";;
18144 case "$ac_dir" in
18145 .) ac_abs_builddir=`pwd`;;
18146 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18147 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18148 esac;;
18149 esac
18150 case $ac_abs_builddir in
18151 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18153 case ${ac_top_builddir}. in
18154 .) ac_abs_top_builddir=$ac_abs_builddir;;
18155 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18156 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18157 esac;;
18158 esac
18159 case $ac_abs_builddir in
18160 .) ac_abs_srcdir=$ac_srcdir;;
18162 case $ac_srcdir in
18163 .) ac_abs_srcdir=$ac_abs_builddir;;
18164 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18165 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18166 esac;;
18167 esac
18168 case $ac_abs_builddir in
18169 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18171 case $ac_top_srcdir in
18172 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18173 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18174 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18175 esac;;
18176 esac
18179 cd $ac_dir
18181 # Check for guested configure; otherwise get Cygnus style configure.
18182 if test -f $ac_srcdir/configure.gnu; then
18183 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
18184 elif test -f $ac_srcdir/configure; then
18185 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
18186 elif test -f $ac_srcdir/configure.in; then
18187 ac_sub_configure=$ac_configure
18188 else
18189 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
18190 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
18191 ac_sub_configure=
18194 # The recursion is here.
18195 if test -n "$ac_sub_configure"; then
18196 # Make the cache file name correct relative to the subdirectory.
18197 case $cache_file in
18198 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
18199 *) # Relative path.
18200 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
18201 esac
18203 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
18204 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
18205 # The eval makes quoting arguments work.
18206 eval $ac_sub_configure $ac_sub_configure_args \
18207 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
18208 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
18209 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
18210 { (exit 1); exit 1; }; }
18213 cd $ac_popdir
18214 done