3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --with-target-subdir=SUBDIR
16 configuring in a subdirectory"
18 --with-cross-host=HOST configuring with a cross compiler"
20 --enable-multilib build many library versions (default)"
22 --enable-maintainer-mode enable make rules and dependencies not useful
23 (and sometimes confusing) to the casual installer"
25 --enable-shared[=PKGS] build shared libraries [default=yes]"
27 --enable-static[=PKGS] build static libraries [default=yes]"
29 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
31 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
33 --disable-libtool-lock force libtool not to do file locking"
35 --enable-fast-character prefer speed over size for Character"
37 --disable-getenv-properties
38 don't set system properties from GCJ_PROPERTIES"
40 --enable-libgcj-debug enable runtime debugging code"
42 --enable-interpreter enable interpreter"
44 --disable-java-net disable java.net"
46 --with-ecos enable runtime eCos target support"
48 --with-system-zlib use installed libz"
50 --enable-java-gc=TYPE choose garbage collector [boehm]"
52 --enable-threads=TYPE choose threading package"
54 # Initialize some variables set by options.
55 # The variables have the same names as the options, with
56 # dashes changed to underlines.
58 cache_file
=.
/config.cache
67 program_transform_name
=s
,x
,x
,
75 bindir
='${exec_prefix}/bin'
76 sbindir
='${exec_prefix}/sbin'
77 libexecdir
='${exec_prefix}/libexec'
78 datadir
='${prefix}/share'
79 sysconfdir
='${prefix}/etc'
80 sharedstatedir
='${prefix}/com'
81 localstatedir
='${prefix}/var'
82 libdir
='${exec_prefix}/lib'
83 includedir
='${prefix}/include'
84 oldincludedir
='/usr/include'
85 infodir
='${prefix}/info'
86 mandir
='${prefix}/man'
88 # Initialize some other variables.
91 SHELL
=${CONFIG_SHELL-/bin/sh}
92 # Maximum number of lines to put in a shell here document.
99 # If the previous option needs an argument, assign it.
100 if test -n "$ac_prev"; then
101 eval "$ac_prev=\$ac_option"
107 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
111 # Accept the important Cygnus configure options, so we can diagnose typos.
115 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
117 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
118 bindir
="$ac_optarg" ;;
120 -build |
--build |
--buil |
--bui |
--bu)
122 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
123 build
="$ac_optarg" ;;
125 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
126 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
127 ac_prev
=cache_file
;;
128 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
129 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
130 cache_file
="$ac_optarg" ;;
132 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
134 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
136 datadir
="$ac_optarg" ;;
138 -disable-* |
--disable-*)
139 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
140 # Reject names that are not valid shell variable names.
141 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
142 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
144 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
145 eval "enable_${ac_feature}=no" ;;
147 -enable-* |
--enable-*)
148 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
149 # Reject names that are not valid shell variable names.
150 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
151 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
153 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
158 eval "enable_${ac_feature}='$ac_optarg'" ;;
160 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
161 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
162 |
--exec |
--exe |
--ex)
163 ac_prev
=exec_prefix
;;
164 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
165 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
166 |
--exec=* |
--exe=* |
--ex=*)
167 exec_prefix
="$ac_optarg" ;;
169 -gas |
--gas |
--ga |
--g)
170 # Obsolete; use --with-gas.
173 -help |
--help |
--hel |
--he)
174 # Omit some internal or obsolete options to make the list less imposing.
175 # This message is too long to be a string in the A/UX 3.1 sh.
177 Usage: configure [options] [host]
178 Options: [defaults in brackets after descriptions]
180 --cache-file=FILE cache test results in FILE
181 --help print this message
182 --no-create do not create output files
183 --quiet, --silent do not print \`checking...' messages
184 --version print the version of autoconf that created configure
185 Directory and file names:
186 --prefix=PREFIX install architecture-independent files in PREFIX
188 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
190 --bindir=DIR user executables in DIR [EPREFIX/bin]
191 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
192 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
193 --datadir=DIR read-only architecture-independent data in DIR
195 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
196 --sharedstatedir=DIR modifiable architecture-independent data in DIR
198 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
199 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
200 --includedir=DIR C header files in DIR [PREFIX/include]
201 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
202 --infodir=DIR info documentation in DIR [PREFIX/info]
203 --mandir=DIR man documentation in DIR [PREFIX/man]
204 --srcdir=DIR find the sources in DIR [configure dir or ..]
205 --program-prefix=PREFIX prepend PREFIX to installed program names
206 --program-suffix=SUFFIX append SUFFIX to installed program names
207 --program-transform-name=PROGRAM
208 run sed PROGRAM on installed program names
212 --build=BUILD configure for building on BUILD [BUILD=HOST]
213 --host=HOST configure for HOST [guessed]
214 --target=TARGET configure for TARGET [TARGET=HOST]
215 Features and packages:
216 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
217 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
218 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
219 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
220 --x-includes=DIR X include files are in DIR
221 --x-libraries=DIR X library files are in DIR
223 if test -n "$ac_help"; then
224 echo "--enable and --with options recognized:$ac_help"
228 -host |
--host |
--hos |
--ho)
230 -host=* |
--host=* |
--hos=* |
--ho=*)
233 -includedir |
--includedir |
--includedi |
--included |
--include \
234 |
--includ |
--inclu |
--incl |
--inc)
235 ac_prev
=includedir
;;
236 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
237 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
238 includedir
="$ac_optarg" ;;
240 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
242 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
243 infodir
="$ac_optarg" ;;
245 -libdir |
--libdir |
--libdi |
--libd)
247 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
248 libdir
="$ac_optarg" ;;
250 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
251 |
--libexe |
--libex |
--libe)
252 ac_prev
=libexecdir
;;
253 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
254 |
--libexe=* |
--libex=* |
--libe=*)
255 libexecdir
="$ac_optarg" ;;
257 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
258 |
--localstate |
--localstat |
--localsta |
--localst \
259 |
--locals |
--local |
--loca |
--loc |
--lo)
260 ac_prev
=localstatedir
;;
261 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
262 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
263 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
264 localstatedir
="$ac_optarg" ;;
266 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
268 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
269 mandir
="$ac_optarg" ;;
272 # Obsolete; use --without-fp.
275 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
279 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
280 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
283 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
284 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
285 |
--oldin |
--oldi |
--old |
--ol |
--o)
286 ac_prev
=oldincludedir
;;
287 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
288 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
289 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
290 oldincludedir
="$ac_optarg" ;;
292 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
294 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
295 prefix
="$ac_optarg" ;;
297 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
298 |
--program-pre |
--program-pr |
--program-p)
299 ac_prev
=program_prefix
;;
300 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
301 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
302 program_prefix
="$ac_optarg" ;;
304 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
305 |
--program-suf |
--program-su |
--program-s)
306 ac_prev
=program_suffix
;;
307 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
308 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
309 program_suffix
="$ac_optarg" ;;
311 -program-transform-name |
--program-transform-name \
312 |
--program-transform-nam |
--program-transform-na \
313 |
--program-transform-n |
--program-transform- \
314 |
--program-transform |
--program-transfor \
315 |
--program-transfo |
--program-transf \
316 |
--program-trans |
--program-tran \
317 |
--progr-tra |
--program-tr |
--program-t)
318 ac_prev
=program_transform_name
;;
319 -program-transform-name=* |
--program-transform-name=* \
320 |
--program-transform-nam=* |
--program-transform-na=* \
321 |
--program-transform-n=* |
--program-transform-=* \
322 |
--program-transform=* |
--program-transfor=* \
323 |
--program-transfo=* |
--program-transf=* \
324 |
--program-trans=* |
--program-tran=* \
325 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
326 program_transform_name
="$ac_optarg" ;;
328 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
329 |
-silent |
--silent |
--silen |
--sile |
--sil)
332 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
334 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
336 sbindir
="$ac_optarg" ;;
338 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
339 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
340 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
342 ac_prev
=sharedstatedir
;;
343 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
344 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
345 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
347 sharedstatedir
="$ac_optarg" ;;
349 -site |
--site |
--sit)
351 -site=* |
--site=* |
--sit=*)
354 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
356 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
357 srcdir
="$ac_optarg" ;;
359 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
360 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
361 ac_prev
=sysconfdir
;;
362 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
363 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
364 sysconfdir
="$ac_optarg" ;;
366 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
368 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
369 target
="$ac_optarg" ;;
371 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
374 -version |
--version |
--versio |
--versi |
--vers)
375 echo "configure generated by autoconf version 2.13"
379 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
380 # Reject names that are not valid shell variable names.
381 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
382 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
384 ac_package
=`echo $ac_package| sed 's/-/_/g'`
389 eval "with_${ac_package}='$ac_optarg'" ;;
391 -without-* |
--without-*)
392 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
393 # Reject names that are not valid shell variable names.
394 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
395 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
397 ac_package
=`echo $ac_package| sed 's/-/_/g'`
398 eval "with_${ac_package}=no" ;;
401 # Obsolete; use --with-x.
404 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
405 |
--x-incl |
--x-inc |
--x-in |
--x-i)
406 ac_prev
=x_includes
;;
407 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
408 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
409 x_includes
="$ac_optarg" ;;
411 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
412 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
413 ac_prev
=x_libraries
;;
414 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
415 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
416 x_libraries
="$ac_optarg" ;;
418 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
422 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
423 echo "configure: warning: $ac_option: invalid host type" 1>&2
425 if test "x$nonopt" != xNONE
; then
426 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
434 if test -n "$ac_prev"; then
435 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
438 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
440 # File descriptor usage:
443 # 2 errors and warnings
444 # 3 some systems may open it to /dev/tty
445 # 4 used on the Kubota Titan
446 # 6 checking for... messages and results
447 # 5 compiler messages saved in config.log
448 if test "$silent" = yes; then
456 This file contains any messages produced by compilers while
457 running configure, to aid debugging if configure makes a mistake.
460 # Strip out --no-create and --no-recursion so they do not pile up.
461 # Also quote any args containing shell metacharacters.
466 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
467 |
--no-cr |
--no-c) ;;
468 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
469 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
470 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
471 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
472 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
477 # Only set these to C if already set. These must not be set unconditionally
478 # because not all systems understand e.g. LANG=C (notably SCO).
479 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
480 # Non-C LC_CTYPE values break the ctype check.
481 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
482 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
483 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
484 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
486 # confdefs.h avoids OS command line length limits that DEFS can exceed.
487 rm -rf conftest
* confdefs.h
488 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
491 # A filename unique to this package, relative to the directory that
492 # configure is in, which we can look for to find out if srcdir is correct.
493 ac_unique_file
=java
/lang
/System.java
495 # Find the source files, if location was not specified.
496 if test -z "$srcdir"; then
497 ac_srcdir_defaulted
=yes
498 # Try the directory containing this script, then its parent.
500 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
501 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
503 if test ! -r $srcdir/$ac_unique_file; then
507 ac_srcdir_defaulted
=no
509 if test ! -r $srcdir/$ac_unique_file; then
510 if test "$ac_srcdir_defaulted" = yes; then
511 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
513 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
516 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
518 # Prefer explicitly selected file to automatically selected ones.
519 if test -z "$CONFIG_SITE"; then
520 if test "x$prefix" != xNONE
; then
521 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
523 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
526 for ac_site_file
in $CONFIG_SITE; do
527 if test -r "$ac_site_file"; then
528 echo "loading site script $ac_site_file"
533 if test -r "$cache_file"; then
534 echo "loading cache $cache_file"
537 echo "creating cache $cache_file"
542 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
543 ac_cpp
='$CPP $CPPFLAGS'
544 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
545 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
546 cross_compiling
=$ac_cv_prog_cc_cross
550 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
551 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
552 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
559 ac_n
= ac_c
='\c' ac_t
=
565 for ac_dir
in ..
$srcdir/..
; do
566 if test -f $ac_dir/install-sh
; then
568 ac_install_sh
="$ac_aux_dir/install-sh -c"
570 elif test -f $ac_dir/install.sh
; then
572 ac_install_sh
="$ac_aux_dir/install.sh -c"
576 if test -z "$ac_aux_dir"; then
577 { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
579 ac_config_guess
=$ac_aux_dir/config.guess
580 ac_config_sub
=$ac_aux_dir/config.sub
581 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
585 # Do some error checking and defaulting for the host and target type.
587 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
590 # 1. You are not allowed to specify --host, --target, and nonopt at the
592 # 2. Host defaults to nonopt.
593 # 3. If nonopt is not specified, then host defaults to the current host,
594 # as determined by config.guess.
595 # 4. Target and build default to nonopt.
596 # 5. If nonopt is not specified, then target and build default to host.
598 # The aliases save the names the user supplied, while $host etc.
599 # will get canonicalized.
600 case $host---$target---$nonopt in
601 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
602 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
606 # Make sure we can run config.sub.
607 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
608 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
611 echo $ac_n "checking host system type""... $ac_c" 1>&6
612 echo "configure:613: checking host system type" >&5
615 case "$host_alias" in
619 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
620 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
622 *) host_alias
=$nonopt ;;
626 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
627 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
628 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
629 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
630 echo "$ac_t""$host" 1>&6
632 echo $ac_n "checking target system type""... $ac_c" 1>&6
633 echo "configure:634: checking target system type" >&5
636 case "$target_alias" in
639 NONE
) target_alias
=$host_alias ;;
640 *) target_alias
=$nonopt ;;
644 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
645 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
646 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
647 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
648 echo "$ac_t""$target" 1>&6
650 echo $ac_n "checking build system type""... $ac_c" 1>&6
651 echo "configure:652: checking build system type" >&5
654 case "$build_alias" in
657 NONE
) build_alias
=$host_alias ;;
658 *) build_alias
=$nonopt ;;
662 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
663 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
664 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
665 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
666 echo "$ac_t""$build" 1>&6
668 test "$host_alias" != "$target_alias" &&
669 test "$program_prefix$program_suffix$program_transform_name" = \
671 program_prefix
=${target_alias}-
674 # Check whether --with-target-subdir or --without-target-subdir was given.
675 if test "${with_target_subdir+set}" = set; then
676 withval
="$with_target_subdir"
680 # Check whether --with-cross-host or --without-cross-host was given.
681 if test "${with_cross_host+set}" = set; then
682 withval
="$with_cross_host"
687 # Find a good install program. We prefer a C program (faster),
688 # so one script is as good as another. But avoid the broken or
689 # incompatible versions:
690 # SysV /etc/install, /usr/sbin/install
691 # SunOS /usr/etc/install
694 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
695 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
696 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
697 # ./install, which can be erroneously created by make from ./install.sh.
698 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
699 echo "configure:700: checking for a BSD compatible install" >&5
700 if test -z "$INSTALL"; then
701 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
702 echo $ac_n "(cached) $ac_c" 1>&6
704 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
705 for ac_dir
in $PATH; do
706 # Account for people who put trailing slashes in PATH elements.
708 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
710 # OSF1 and SCO ODT 3.0 have their own names for install.
711 # Don't use installbsd from OSF since it installs stuff as root
713 for ac_prog
in ginstall scoinst
install; do
714 if test -f $ac_dir/$ac_prog; then
715 if test $ac_prog = install &&
716 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
717 # AIX install. It has an incompatible calling convention.
720 ac_cv_path_install
="$ac_dir/$ac_prog -c"
731 if test "${ac_cv_path_install+set}" = set; then
732 INSTALL
="$ac_cv_path_install"
734 # As a last resort, use the slow shell script. We don't cache a
735 # path for INSTALL within a source directory, because that will
736 # break other packages using the cache if that directory is
737 # removed, or if the path is relative.
738 INSTALL
="$ac_install_sh"
741 echo "$ac_t""$INSTALL" 1>&6
743 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
744 # It thinks the first close brace ends the variable substitution.
745 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
747 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
749 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
751 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
752 echo "configure:753: checking whether build environment is sane" >&5
755 echo timestamp
> conftestfile
756 # Do `set' in a subshell so we don't clobber the current shell's
757 # arguments. Must try -L first in case configure is actually a
758 # symlink; some systems play weird games with the mod time of symlinks
759 # (eg FreeBSD returns the mod time of the symlink's containing
762 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
763 if test "$*" = "X"; then
765 set X
`ls -t $srcdir/configure conftestfile`
767 if test "$*" != "X $srcdir/configure conftestfile" \
768 && test "$*" != "X conftestfile $srcdir/configure"; then
770 # If neither matched, then we have a broken ls. This can happen
771 # if, for instance, CONFIG_SHELL is bash and it inherits a
772 # broken ls alias from the environment. This has actually
773 # happened. Such a system could not be considered "sane".
774 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
775 alias in your environment" 1>&2; exit 1; }
778 test "$2" = conftestfile
784 { echo "configure: error: newly created file is older than distributed files!
785 Check your system clock" 1>&2; exit 1; }
788 echo "$ac_t""yes" 1>&6
789 if test "$program_transform_name" = s
,x
,x
,; then
790 program_transform_name
=
792 # Double any \ or $. echo might interpret backslashes.
793 cat <<\EOF_SED
> conftestsed
794 s
,\\,\\\\,g
; s
,\$
,$$
,g
796 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
799 test "$program_prefix" != NONE
&&
800 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
801 # Use a double $ so make ignores it.
802 test "$program_suffix" != NONE
&&
803 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
805 # sed with no file args requires a program.
806 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
808 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
809 echo "configure:810: checking whether ${MAKE-make} sets \${MAKE}" >&5
810 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
811 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
812 echo $ac_n "(cached) $ac_c" 1>&6
814 cat > conftestmake
<<\EOF
816 @
echo 'ac_maketemp="${MAKE}"'
818 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
819 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
820 if test -n "$ac_maketemp"; then
821 eval ac_cv_prog_make_
${ac_make}_set
=yes
823 eval ac_cv_prog_make_
${ac_make}_set
=no
827 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
828 echo "$ac_t""yes" 1>&6
831 echo "$ac_t""no" 1>&6
832 SET_MAKE
="MAKE=${MAKE-make}"
835 if test $host != $build; then
836 ac_tool_prefix
=${host_alias}-
841 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
842 echo "configure:843: checking for Cygwin environment" >&5
843 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
844 echo $ac_n "(cached) $ac_c" 1>&6
846 cat > conftest.
$ac_ext <<EOF
847 #line 848 "configure"
848 #include "confdefs.h"
853 #define __CYGWIN__ __CYGWIN32__
858 if { (eval echo configure
:859: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
862 echo "configure: failed program was:" >&5
863 cat conftest.
$ac_ext >&5
871 echo "$ac_t""$ac_cv_cygwin" 1>&6
873 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
874 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
875 echo "configure:876: checking for mingw32 environment" >&5
876 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
877 echo $ac_n "(cached) $ac_c" 1>&6
879 cat > conftest.
$ac_ext <<EOF
880 #line 881 "configure"
881 #include "confdefs.h"
887 if { (eval echo configure
:888: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
891 echo "configure: failed program was:" >&5
892 cat conftest.
$ac_ext >&5
900 echo "$ac_t""$ac_cv_mingw32" 1>&6
902 test "$ac_cv_mingw32" = yes && MINGW32
=yes
904 # Check whether --enable-multilib or --disable-multilib was given.
905 if test "${enable_multilib+set}" = set; then
906 enableval
="$enable_multilib"
907 case "${enableval}" in
910 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
917 if test "${srcdir}" = "."; then
918 if test "${with_target_subdir}" != "."; then
919 libgcj_basedir
="${srcdir}/${with_multisrctop}../."
921 libgcj_basedir
="${srcdir}/${with_multisrctop}."
924 libgcj_basedir
="${srcdir}/."
929 # Make sure we can run config.sub.
930 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
931 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
934 echo $ac_n "checking host system type""... $ac_c" 1>&6
935 echo "configure:936: checking host system type" >&5
938 case "$host_alias" in
942 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
943 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
945 *) host_alias
=$nonopt ;;
949 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
950 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
951 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
952 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
953 echo "$ac_t""$host" 1>&6
962 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
963 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
965 cat >> confdefs.h
<<EOF
966 #define PACKAGE "$PACKAGE"
969 cat >> confdefs.h
<<EOF
970 #define VERSION "$VERSION"
975 missing_dir
=`cd $ac_aux_dir && pwd`
976 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
977 echo "configure:978: checking for working aclocal" >&5
978 # Run test in a subshell; some versions of sh will print an error if
979 # an executable is not found, even if stderr is redirected.
980 # Redirect stdin to placate older versions of autoconf. Sigh.
981 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
983 echo "$ac_t""found" 1>&6
985 ACLOCAL
="$missing_dir/missing aclocal"
986 echo "$ac_t""missing" 1>&6
989 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
990 echo "configure:991: checking for working autoconf" >&5
991 # Run test in a subshell; some versions of sh will print an error if
992 # an executable is not found, even if stderr is redirected.
993 # Redirect stdin to placate older versions of autoconf. Sigh.
994 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
996 echo "$ac_t""found" 1>&6
998 AUTOCONF
="$missing_dir/missing autoconf"
999 echo "$ac_t""missing" 1>&6
1002 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1003 echo "configure:1004: checking for working automake" >&5
1004 # Run test in a subshell; some versions of sh will print an error if
1005 # an executable is not found, even if stderr is redirected.
1006 # Redirect stdin to placate older versions of autoconf. Sigh.
1007 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
1009 echo "$ac_t""found" 1>&6
1011 AUTOMAKE
="$missing_dir/missing automake"
1012 echo "$ac_t""missing" 1>&6
1015 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1016 echo "configure:1017: checking for working autoheader" >&5
1017 # Run test in a subshell; some versions of sh will print an error if
1018 # an executable is not found, even if stderr is redirected.
1019 # Redirect stdin to placate older versions of autoconf. Sigh.
1020 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
1021 AUTOHEADER
=autoheader
1022 echo "$ac_t""found" 1>&6
1024 AUTOHEADER
="$missing_dir/missing autoheader"
1025 echo "$ac_t""missing" 1>&6
1028 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1029 echo "configure:1030: checking for working makeinfo" >&5
1030 # Run test in a subshell; some versions of sh will print an error if
1031 # an executable is not found, even if stderr is redirected.
1032 # Redirect stdin to placate older versions of autoconf. Sigh.
1033 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
1035 echo "$ac_t""found" 1>&6
1037 MAKEINFO
="$missing_dir/missing makeinfo"
1038 echo "$ac_t""missing" 1>&6
1043 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
1044 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
1045 # are probably using a cross compiler, which will not be able to fully
1046 # link an executable. This should really be fixed in autoconf
1052 # Extract the first word of "gcc", so it can be a program name with args.
1053 set dummy gcc
; ac_word
=$2
1054 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1055 echo "configure:1056: checking for $ac_word" >&5
1056 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1057 echo $ac_n "(cached) $ac_c" 1>&6
1059 if test -n "$CC"; then
1060 ac_cv_prog_CC
="$CC" # Let the user override the test.
1062 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1064 for ac_dir
in $ac_dummy; do
1065 test -z "$ac_dir" && ac_dir
=.
1066 if test -f $ac_dir/$ac_word; then
1075 if test -n "$CC"; then
1076 echo "$ac_t""$CC" 1>&6
1078 echo "$ac_t""no" 1>&6
1081 if test -z "$CC"; then
1082 # Extract the first word of "cc", so it can be a program name with args.
1083 set dummy cc
; ac_word
=$2
1084 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1085 echo "configure:1086: checking for $ac_word" >&5
1086 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1087 echo $ac_n "(cached) $ac_c" 1>&6
1089 if test -n "$CC"; then
1090 ac_cv_prog_CC
="$CC" # Let the user override the test.
1092 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1095 for ac_dir
in $ac_dummy; do
1096 test -z "$ac_dir" && ac_dir
=.
1097 if test -f $ac_dir/$ac_word; then
1098 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1099 ac_prog_rejected
=yes
1107 if test $ac_prog_rejected = yes; then
1108 # We found a bogon in the path, so make sure we never use it.
1109 set dummy
$ac_cv_prog_CC
1111 if test $# -gt 0; then
1112 # We chose a different compiler from the bogus one.
1113 # However, it has the same basename, so the bogon will be chosen
1114 # first if we set CC to just the basename; use the full file name.
1116 set dummy
"$ac_dir/$ac_word" "$@"
1124 if test -n "$CC"; then
1125 echo "$ac_t""$CC" 1>&6
1127 echo "$ac_t""no" 1>&6
1130 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1133 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1134 echo "configure:1135: checking whether we are using GNU C" >&5
1135 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1136 echo $ac_n "(cached) $ac_c" 1>&6
1138 cat > conftest.c
<<EOF
1143 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1144: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1150 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1152 if test $ac_cv_prog_gcc = yes; then
1154 ac_test_CFLAGS
="${CFLAGS+set}"
1155 ac_save_CFLAGS
="$CFLAGS"
1157 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1158 echo "configure:1159: checking whether ${CC-cc} accepts -g" >&5
1159 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1160 echo $ac_n "(cached) $ac_c" 1>&6
1162 echo 'void f(){}' > conftest.c
1163 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1172 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1173 if test "$ac_test_CFLAGS" = set; then
1174 CFLAGS
="$ac_save_CFLAGS"
1175 elif test $ac_cv_prog_cc_g = yes; then
1182 test "${CFLAGS+set}" = set || CFLAGS
="-g"
1186 # Likewise for AC_PROG_CXX.
1190 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++
1192 # Extract the first word of "$ac_prog", so it can be a program name with args.
1193 set dummy
$ac_prog; ac_word
=$2
1194 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1195 echo "configure:1196: checking for $ac_word" >&5
1196 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1197 echo $ac_n "(cached) $ac_c" 1>&6
1199 if test -n "$CXX"; then
1200 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
1202 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1204 for ac_dir
in $ac_dummy; do
1205 test -z "$ac_dir" && ac_dir
=.
1206 if test -f $ac_dir/$ac_word; then
1207 ac_cv_prog_CXX
="$ac_prog"
1214 CXX
="$ac_cv_prog_CXX"
1215 if test -n "$CXX"; then
1216 echo "$ac_t""$CXX" 1>&6
1218 echo "$ac_t""no" 1>&6
1221 test -n "$CXX" && break
1223 test -n "$CXX" || CXX
="gcc"
1225 test -z "$CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1227 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1228 echo "configure:1229: checking whether we are using GNU C++" >&5
1229 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1230 echo $ac_n "(cached) $ac_c" 1>&6
1232 cat > conftest.C
<<EOF
1237 if { ac_try
='${CXX-g++} -E conftest.C'; { (eval echo configure
:1238: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1244 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1246 if test $ac_cv_prog_gxx = yes; then
1248 ac_test_CXXFLAGS
="${CXXFLAGS+set}"
1249 ac_save_CXXFLAGS
="$CXXFLAGS"
1251 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1252 echo "configure:1253: checking whether ${CXX-g++} accepts -g" >&5
1253 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1254 echo $ac_n "(cached) $ac_c" 1>&6
1256 echo 'void f(){}' > conftest.cc
1257 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1258 ac_cv_prog_cxx_g
=yes
1266 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1267 if test "$ac_test_CXXFLAGS" = set; then
1268 CXXFLAGS
="$ac_save_CXXFLAGS"
1269 elif test $ac_cv_prog_cxx_g = yes; then
1276 test "${CXXFLAGS+set}" = set || CXXFLAGS
="-g"
1280 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we dont
1281 # run it explicitly here, it will be run implicitly before
1282 # LIBGCJ_CONFIGURE, which doesn't work because that means that it will
1283 # be run before AC_CANONICAL_HOST.
1284 echo $ac_n "checking build system type""... $ac_c" 1>&6
1285 echo "configure:1286: checking build system type" >&5
1288 case "$build_alias" in
1291 NONE
) build_alias
=$host_alias ;;
1292 *) build_alias
=$nonopt ;;
1296 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1297 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1298 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1299 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1300 echo "$ac_t""$build" 1>&6
1303 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1304 set dummy
${ac_tool_prefix}as
; ac_word
=$2
1305 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1306 echo "configure:1307: checking for $ac_word" >&5
1307 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1308 echo $ac_n "(cached) $ac_c" 1>&6
1310 if test -n "$AS"; then
1311 ac_cv_prog_AS
="$AS" # Let the user override the test.
1313 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1315 for ac_dir
in $ac_dummy; do
1316 test -z "$ac_dir" && ac_dir
=.
1317 if test -f $ac_dir/$ac_word; then
1318 ac_cv_prog_AS
="${ac_tool_prefix}as"
1323 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS
="as"
1327 if test -n "$AS"; then
1328 echo "$ac_t""$AS" 1>&6
1330 echo "$ac_t""no" 1>&6
1335 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1336 set dummy
${ac_tool_prefix}ar; ac_word
=$2
1337 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1338 echo "configure:1339: checking for $ac_word" >&5
1339 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1340 echo $ac_n "(cached) $ac_c" 1>&6
1342 if test -n "$AR"; then
1343 ac_cv_prog_AR
="$AR" # Let the user override the test.
1345 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1347 for ac_dir
in $ac_dummy; do
1348 test -z "$ac_dir" && ac_dir
=.
1349 if test -f $ac_dir/$ac_word; then
1350 ac_cv_prog_AR
="${ac_tool_prefix}ar"
1355 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
1359 if test -n "$AR"; then
1360 echo "$ac_t""$AR" 1>&6
1362 echo "$ac_t""no" 1>&6
1367 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1368 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1369 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1370 echo "configure:1371: checking for $ac_word" >&5
1371 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1372 echo $ac_n "(cached) $ac_c" 1>&6
1374 if test -n "$RANLIB"; then
1375 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1377 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1379 for ac_dir
in $ac_dummy; do
1380 test -z "$ac_dir" && ac_dir
=.
1381 if test -f $ac_dir/$ac_word; then
1382 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1389 RANLIB
="$ac_cv_prog_RANLIB"
1390 if test -n "$RANLIB"; then
1391 echo "$ac_t""$RANLIB" 1>&6
1393 echo "$ac_t""no" 1>&6
1397 if test -z "$ac_cv_prog_RANLIB"; then
1398 if test -n "$ac_tool_prefix"; then
1399 # Extract the first word of "ranlib", so it can be a program name with args.
1400 set dummy ranlib
; ac_word
=$2
1401 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1402 echo "configure:1403: checking for $ac_word" >&5
1403 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1404 echo $ac_n "(cached) $ac_c" 1>&6
1406 if test -n "$RANLIB"; then
1407 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1409 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1411 for ac_dir
in $ac_dummy; do
1412 test -z "$ac_dir" && ac_dir
=.
1413 if test -f $ac_dir/$ac_word; then
1414 ac_cv_prog_RANLIB
="ranlib"
1419 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1422 RANLIB
="$ac_cv_prog_RANLIB"
1423 if test -n "$RANLIB"; then
1424 echo "$ac_t""$RANLIB" 1>&6
1426 echo "$ac_t""no" 1>&6
1435 # Find a good install program. We prefer a C program (faster),
1436 # so one script is as good as another. But avoid the broken or
1437 # incompatible versions:
1438 # SysV /etc/install, /usr/sbin/install
1439 # SunOS /usr/etc/install
1440 # IRIX /sbin/install
1442 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1443 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1444 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1445 # ./install, which can be erroneously created by make from ./install.sh.
1446 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1447 echo "configure:1448: checking for a BSD compatible install" >&5
1448 if test -z "$INSTALL"; then
1449 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1450 echo $ac_n "(cached) $ac_c" 1>&6
1452 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1453 for ac_dir
in $PATH; do
1454 # Account for people who put trailing slashes in PATH elements.
1456 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1458 # OSF1 and SCO ODT 3.0 have their own names for install.
1459 # Don't use installbsd from OSF since it installs stuff as root
1461 for ac_prog
in ginstall scoinst
install; do
1462 if test -f $ac_dir/$ac_prog; then
1463 if test $ac_prog = install &&
1464 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1465 # AIX install. It has an incompatible calling convention.
1468 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1479 if test "${ac_cv_path_install+set}" = set; then
1480 INSTALL
="$ac_cv_path_install"
1482 # As a last resort, use the slow shell script. We don't cache a
1483 # path for INSTALL within a source directory, because that will
1484 # break other packages using the cache if that directory is
1485 # removed, or if the path is relative.
1486 INSTALL
="$ac_install_sh"
1489 echo "$ac_t""$INSTALL" 1>&6
1491 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1492 # It thinks the first close brace ends the variable substitution.
1493 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1495 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1497 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1500 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1501 echo "configure:1502: checking whether to enable maintainer-specific portions of Makefiles" >&5
1502 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1503 if test "${enable_maintainer_mode+set}" = set; then
1504 enableval
="$enable_maintainer_mode"
1505 USE_MAINTAINER_MODE
=$enableval
1507 USE_MAINTAINER_MODE
=no
1510 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1513 if test $USE_MAINTAINER_MODE = yes; then
1514 MAINTAINER_MODE_TRUE
=
1515 MAINTAINER_MODE_FALSE
='#'
1517 MAINTAINER_MODE_TRUE
='#'
1518 MAINTAINER_MODE_FALSE
=
1520 MAINT
=$MAINTAINER_MODE_TRUE
1524 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1525 # at least currently, we never actually build a program, so we never
1526 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1527 # fails, because we are probably configuring with a cross compiler
1528 # which cant create executables. So we include AC_EXEEXT to keep
1529 # automake happy, but we dont execute it, since we dont care about
1534 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1535 echo "configure:1536: checking for executable suffix" >&5
1536 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1537 echo $ac_n "(cached) $ac_c" 1>&6
1539 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
1543 echo 'int main () { return 0; }' > conftest.
$ac_ext
1545 if { (eval echo configure
:1546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1546 for file in conftest.
*; do
1548 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
1549 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
1553 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1556 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
1561 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
1562 echo "$ac_t""${ac_cv_exeext}" 1>&6
1567 # configure.host sets the following important variables
1568 # libgcj_cflags - host specific C compiler flags
1569 # libgcj_cxxflags - host specific C++ compiler flags
1570 # libgcj_javaflags - host specific Java compiler flags
1576 .
${libgcj_basedir}/configure.
host
1578 case ${libgcj_basedir} in
1579 /* | A-Za-z
:/\\*) libgcj_flagbasedir
=${libgcj_basedir} ;;
1580 *) libgcj_flagbasedir
='$(top_builddir)/'${libgcj_basedir} ;;
1583 LIBGCJ_CFLAGS
="${libgcj_cflags}"
1584 LIBGCJ_CXXFLAGS
="${libgcj_cxxflags}"
1585 LIBGCJ_JAVAFLAGS
="${libgcj_javaflags}"
1595 # Check whether --enable-shared or --disable-shared was given.
1596 if test "${enable_shared+set}" = set; then
1597 enableval
="$enable_shared"
1598 p
=${PACKAGE-default}
1599 case "$enableval" in
1600 yes) enable_shared
=yes ;;
1601 no
) enable_shared
=no
;;
1604 # Look at the argument we got. We use all the common list separators.
1605 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1606 for pkg
in $enableval; do
1607 if test "X$pkg" = "X$p"; then
1618 # Check whether --enable-static or --disable-static was given.
1619 if test "${enable_static+set}" = set; then
1620 enableval
="$enable_static"
1621 p
=${PACKAGE-default}
1622 case "$enableval" in
1623 yes) enable_static
=yes ;;
1624 no
) enable_static
=no
;;
1627 # Look at the argument we got. We use all the common list separators.
1628 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1629 for pkg
in $enableval; do
1630 if test "X$pkg" = "X$p"; then
1641 # Check whether --enable-fast-install or --disable-fast-install was given.
1642 if test "${enable_fast_install+set}" = set; then
1643 enableval
="$enable_fast_install"
1644 p
=${PACKAGE-default}
1645 case "$enableval" in
1646 yes) enable_fast_install
=yes ;;
1647 no
) enable_fast_install
=no
;;
1649 enable_fast_install
=no
1650 # Look at the argument we got. We use all the common list separators.
1651 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1652 for pkg
in $enableval; do
1653 if test "X$pkg" = "X$p"; then
1654 enable_fast_install
=yes
1661 enable_fast_install
=yes
1664 # Extract the first word of "ranlib", so it can be a program name with args.
1665 set dummy ranlib
; ac_word
=$2
1666 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1667 echo "configure:1668: checking for $ac_word" >&5
1668 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1669 echo $ac_n "(cached) $ac_c" 1>&6
1671 if test -n "$RANLIB"; then
1672 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1674 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1676 for ac_dir
in $ac_dummy; do
1677 test -z "$ac_dir" && ac_dir
=.
1678 if test -f $ac_dir/$ac_word; then
1679 ac_cv_prog_RANLIB
="ranlib"
1684 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1687 RANLIB
="$ac_cv_prog_RANLIB"
1688 if test -n "$RANLIB"; then
1689 echo "$ac_t""$RANLIB" 1>&6
1691 echo "$ac_t""no" 1>&6
1694 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1695 if test "${with_gnu_ld+set}" = set; then
1696 withval
="$with_gnu_ld"
1697 test "$withval" = no || with_gnu_ld
=yes
1703 if test "$ac_cv_prog_gcc" = yes; then
1704 # Check if gcc -print-prog-name=ld gives a path.
1705 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1706 echo "configure:1707: checking for ld used by GCC" >&5
1707 ac_prog
=`($CC -print-prog-name=ld) 2>&5`
1709 # Accept absolute paths.
1710 /* |
[A-Za-z
]:[\\/]*)
1711 re_direlt
='/[^/][^/]*/\.\./'
1712 # Canonicalize the path of ld
1713 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1714 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1715 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1717 test -z "$LD" && LD
="$ac_prog"
1720 # If it fails, then pretend we aren't using GCC.
1724 # If it is relative, then search for the first ld in PATH.
1728 elif test "$with_gnu_ld" = yes; then
1729 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1730 echo "configure:1731: checking for GNU ld" >&5
1732 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1733 echo "configure:1734: checking for non-GNU ld" >&5
1735 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1736 echo $ac_n "(cached) $ac_c" 1>&6
1738 if test -z "$LD"; then
1739 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1740 for ac_dir
in $PATH; do
1741 test -z "$ac_dir" && ac_dir
=.
1742 if test -f "$ac_dir/$ac_prog"; then
1743 ac_cv_path_LD
="$ac_dir/$ac_prog"
1744 # Check to see if the program is GNU ld. I'd rather use --version,
1745 # but apparently some GNU ld's only accept -v.
1746 # Break only if it was the GNU/non-GNU ld that we prefer.
1747 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1748 test "$with_gnu_ld" != no
&& break
1750 test "$with_gnu_ld" != yes && break
1756 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1761 if test -n "$LD"; then
1762 echo "$ac_t""$LD" 1>&6
1764 echo "$ac_t""no" 1>&6
1766 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1768 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1769 echo "configure:1770: checking if the linker ($LD) is GNU ld" >&5
1770 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1771 echo $ac_n "(cached) $ac_c" 1>&6
1773 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1774 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1775 ac_cv_prog_gnu_ld
=yes
1777 ac_cv_prog_gnu_ld
=no
1781 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1784 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1785 echo "configure:1786: checking for BSD-compatible nm" >&5
1786 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1787 echo $ac_n "(cached) $ac_c" 1>&6
1789 if test -n "$NM"; then
1790 # Let the user override the test.
1793 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1794 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1795 test -z "$ac_dir" && ac_dir
=.
1796 if test -f $ac_dir/nm
; then
1797 # Check to see if the nm accepts a BSD-compat flag.
1798 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1799 # nm: unknown option "B" ignored
1800 if ($ac_dir/nm
-B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1801 ac_cv_path_NM
="$ac_dir/nm -B"
1803 elif ($ac_dir/nm
-p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1804 ac_cv_path_NM
="$ac_dir/nm -p"
1807 ac_cv_path_NM
=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1808 continue # so that we can try to find one that supports BSD flags
1813 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1818 echo "$ac_t""$NM" 1>&6
1821 # Check for command to grab the raw symbol name followed by C symbol from nm.
1822 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
1823 echo "configure:1824: checking command to parse $NM output" >&5
1824 if eval "test \"`echo '$''{'ac_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
1825 echo $ac_n "(cached) $ac_c" 1>&6
1827 # These are sane defaults that work on at least a few old systems.
1828 # {They come from Ultrix. What could be older than Ultrix?!! ;)}
1830 # Character class describing NM global symbol codes.
1831 ac_symcode
='[BCDEGRST]'
1833 # Regexp to match symbols that can be accessed directly from C.
1834 ac_sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
1836 # Transform the above into a raw symbol and a C symbol.
1837 ac_symxfrm
='\1 \2\3 \3'
1839 # Transform an extracted symbol line into a proper C declaration
1840 ac_global_symbol_to_cdecl
="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
1842 # Define system-specific variables.
1848 ac_symcode
='[ABCDGISTW]'
1851 ac_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'"
1854 ac_symcode
='[BCDEGRST]'
1861 # If we're using GNU nm, then use its standard symbol codes.
1862 if $NM -V 2>&1 |
egrep '(GNU|with BFD)' > /dev
/null
; then
1863 ac_symcode
='[ABCDGISTW]'
1866 # Try without a prefix undercore, then with it.
1867 for ac_symprfx
in "" "_"; do
1869 ac_cv_sys_global_symbol_pipe
="sed -n -e 's/^.* \($ac_symcode\) *\($ac_symprfx\)$ac_sympat$/$ac_symxfrm/p'"
1871 # Check to see that the pipe works correctly.
1873 rm -f conftest.
$ac_ext
1874 cat > conftest.
$ac_ext <<EOF
1879 void nm_test_func(){}
1883 int main(){nm_test_var='a';nm_test_func;return 0;}
1886 if { (eval echo configure
:1887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1887 # Now try to grab the symbols.
1888 ac_nlist
=conftest.nm
1890 if { (eval echo configure
:1891: \"$NM conftest.
$ac_objext \|
$ac_cv_sys_global_symbol_pipe \
> $ac_nlist\") 1>&5; (eval $NM conftest.
$ac_objext \|
$ac_cv_sys_global_symbol_pipe \
> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then
1892 # Try sorting and uniquifying the output.
1893 if sort "$ac_nlist" |
uniq > "$ac_nlist"T
; then
1894 mv -f "$ac_nlist"T
"$ac_nlist"
1899 # Make sure that we snagged all the symbols we need.
1900 if egrep ' nm_test_var$' "$ac_nlist" >/dev
/null
; then
1901 if egrep ' nm_test_func$' "$ac_nlist" >/dev
/null
; then
1902 cat <<EOF > conftest.c
1908 # Now generate the symbol file.
1909 eval "$ac_global_symbol_to_cdecl"' < "$ac_nlist" >> conftest.c'
1911 cat <<EOF >> conftest.c
1912 #if defined (__STDC__) && __STDC__
1913 # define lt_ptr_t void *
1915 # define lt_ptr_t char *
1919 /* The mapping between symbol names and symbols. */
1924 lt_preloaded_symbols[] =
1927 sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$ac_nlist" >> conftest.c
1928 cat <<\EOF
>> conftest.c
1936 # Now try linking the two files.
1937 mv conftest.
$ac_objext conftestm.
$ac_objext
1938 ac_save_LIBS
="$LIBS"
1939 ac_save_CFLAGS
="$CFLAGS"
1940 LIBS
="conftestm.$ac_objext"
1941 CFLAGS
="$CFLAGS$no_builtin_flag"
1942 if { (eval echo configure
:1943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1945 echo "configure: failed program was:" >&5
1948 LIBS
="$ac_save_LIBS"
1949 CFLAGS
="$ac_save_CFLAGS"
1951 echo "cannot find nm_test_func in $ac_nlist" >&5
1954 echo "cannot find nm_test_var in $ac_nlist" >&5
1957 echo "cannot run $ac_cv_sys_global_symbol_pipe" >&5
1960 echo "$progname: failed program was:" >&5
1965 # Do not use the global_symbol_pipe unless it works.
1966 if test "$ac_pipe_works" = yes; then
1967 if test x
"$ac_symprfx" = x
"_"; then
1968 ac_cv_sys_symbol_underscore
=yes
1970 ac_cv_sys_symbol_underscore
=no
1974 ac_cv_sys_global_symbol_pipe
=
1982 if test -z "$ac_cv_sys_global_symbol_pipe"; then
1985 echo "$ac_t""$ac_result" 1>&6
1987 echo $ac_n "checking for _ prefix in compiled symbols""... $ac_c" 1>&6
1988 echo "configure:1989: checking for _ prefix in compiled symbols" >&5
1989 if eval "test \"`echo '$''{'ac_cv_sys_symbol_underscore'+set}'`\" = set"; then
1990 echo $ac_n "(cached) $ac_c" 1>&6
1992 ac_cv_sys_symbol_underscore
=no
1993 cat > conftest.
$ac_ext <<EOF
1994 void nm_test_func(){}
1995 int main(){nm_test_func;return 0;}
1997 if { (eval echo configure
:1998: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1998 # Now try to grab the symbols.
1999 ac_nlist
=conftest.nm
2000 if { (eval echo configure
:2001: \"$NM conftest.
$ac_objext \|
$ac_cv_sys_global_symbol_pipe \
> $ac_nlist\") 1>&5; (eval $NM conftest.
$ac_objext \|
$ac_cv_sys_global_symbol_pipe \
> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then
2001 # See whether the symbols have a leading underscore.
2002 if egrep '^. _nm_test_func' "$ac_nlist" >/dev
/null
; then
2003 ac_cv_sys_symbol_underscore
=yes
2005 if egrep '^. nm_test_func ' "$ac_nlist" >/dev
/null
; then
2008 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
2012 echo "configure: cannot run $ac_cv_sys_global_symbol_pipe" >&5
2015 echo "configure: failed program was:" >&5
2022 echo "$ac_t""$ac_cv_sys_symbol_underscore" 1>&6
2023 USE_SYMBOL_UNDERSCORE
=${ac_cv_sys_symbol_underscore=no}
2025 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2026 echo "configure:2027: checking whether ln -s works" >&5
2027 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2028 echo $ac_n "(cached) $ac_c" 1>&6
2031 if ln -s X conftestdata
2>/dev
/null
2034 ac_cv_prog_LN_S
="ln -s"
2039 LN_S
="$ac_cv_prog_LN_S"
2040 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2041 echo "$ac_t""yes" 1>&6
2043 echo "$ac_t""no" 1>&6
2047 # Check for any special flags to pass to ltconfig.
2048 libtool_flags
="--cache-file=$cache_file"
2049 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
2050 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
2051 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
2052 test "$lt_dlopen" = yes && libtool_flags
="$libtool_flags --enable-dlopen"
2053 test "$silent" = yes && libtool_flags
="$libtool_flags --silent"
2054 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
2055 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
2057 # Some flags need to be propagated to the compiler or linker for good
2061 # Find out which ABI we are using.
2062 echo '#line 2063 "configure"' > conftest.
$ac_ext
2063 if { (eval echo configure
:2064: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2064 case "`/usr/bin/file conftest.o`" in
2080 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2081 SAVE_CFLAGS
="$CFLAGS"
2082 CFLAGS
="$CFLAGS -belf"
2083 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2084 echo "configure:2085: checking whether the C compiler needs -belf" >&5
2085 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2086 echo $ac_n "(cached) $ac_c" 1>&6
2088 cat > conftest.
$ac_ext <<EOF
2089 #line 2090 "configure"
2090 #include "confdefs.h"
2096 if { (eval echo configure
:2097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2098 lt_cv_cc_needs_belf
=yes
2100 echo "configure: failed program was:" >&5
2101 cat conftest.
$ac_ext >&5
2103 lt_cv_cc_needs_belf
=no
2108 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2109 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
2110 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2111 CFLAGS
="$SAVE_CFLAGS"
2116 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
2117 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
2118 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2119 echo "configure:2120: checking for $ac_word" >&5
2120 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2121 echo $ac_n "(cached) $ac_c" 1>&6
2123 if test -n "$DLLTOOL"; then
2124 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
2126 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2128 for ac_dir
in $ac_dummy; do
2129 test -z "$ac_dir" && ac_dir
=.
2130 if test -f $ac_dir/$ac_word; then
2131 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
2138 DLLTOOL
="$ac_cv_prog_DLLTOOL"
2139 if test -n "$DLLTOOL"; then
2140 echo "$ac_t""$DLLTOOL" 1>&6
2142 echo "$ac_t""no" 1>&6
2146 if test -z "$ac_cv_prog_DLLTOOL"; then
2147 if test -n "$ac_tool_prefix"; then
2148 # Extract the first word of "dlltool", so it can be a program name with args.
2149 set dummy dlltool
; ac_word
=$2
2150 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2151 echo "configure:2152: checking for $ac_word" >&5
2152 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2153 echo $ac_n "(cached) $ac_c" 1>&6
2155 if test -n "$DLLTOOL"; then
2156 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
2158 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2160 for ac_dir
in $ac_dummy; do
2161 test -z "$ac_dir" && ac_dir
=.
2162 if test -f $ac_dir/$ac_word; then
2163 ac_cv_prog_DLLTOOL
="dlltool"
2168 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL
="false"
2171 DLLTOOL
="$ac_cv_prog_DLLTOOL"
2172 if test -n "$DLLTOOL"; then
2173 echo "$ac_t""$DLLTOOL" 1>&6
2175 echo "$ac_t""no" 1>&6
2183 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2184 set dummy
${ac_tool_prefix}as
; ac_word
=$2
2185 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2186 echo "configure:2187: checking for $ac_word" >&5
2187 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2188 echo $ac_n "(cached) $ac_c" 1>&6
2190 if test -n "$AS"; then
2191 ac_cv_prog_AS
="$AS" # Let the user override the test.
2193 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2195 for ac_dir
in $ac_dummy; do
2196 test -z "$ac_dir" && ac_dir
=.
2197 if test -f $ac_dir/$ac_word; then
2198 ac_cv_prog_AS
="${ac_tool_prefix}as"
2206 if test -n "$AS"; then
2207 echo "$ac_t""$AS" 1>&6
2209 echo "$ac_t""no" 1>&6
2213 if test -z "$ac_cv_prog_AS"; then
2214 if test -n "$ac_tool_prefix"; then
2215 # Extract the first word of "as", so it can be a program name with args.
2216 set dummy as
; ac_word
=$2
2217 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2218 echo "configure:2219: checking for $ac_word" >&5
2219 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2220 echo $ac_n "(cached) $ac_c" 1>&6
2222 if test -n "$AS"; then
2223 ac_cv_prog_AS
="$AS" # Let the user override the test.
2225 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2227 for ac_dir
in $ac_dummy; do
2228 test -z "$ac_dir" && ac_dir
=.
2229 if test -f $ac_dir/$ac_word; then
2235 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS
="false"
2239 if test -n "$AS"; then
2240 echo "$ac_t""$AS" 1>&6
2242 echo "$ac_t""no" 1>&6
2255 # enable the --disable-libtool-lock switch
2257 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2258 if test "${enable_libtool_lock+set}" = set; then
2259 enableval
="$enable_libtool_lock"
2260 need_locks
=$enableval
2266 if test x
"$need_locks" = xno
; then
2267 libtool_flags
="$libtool_flags --disable-lock"
2271 # Save cache, so that ltconfig can load it
2272 cat > confcache
<<\EOF
2273 # This file is a shell script that caches the results of configure
2274 # tests run on this system so they can be shared between configure
2275 # scripts and configure runs. It is not useful on other systems.
2276 # If it contains results you don't want to keep, you may remove or edit it.
2278 # By default, configure uses ./config.cache as the cache file,
2279 # creating it if it does not exist already. You can give configure
2280 # the --cache-file=FILE option to use a different cache file; that is
2281 # what configure does when it calls configure scripts in
2282 # subdirectories, so they share the cache.
2283 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2284 # config.status only pays attention to the cache file if you give it the
2285 # --recheck option to rerun configure.
2288 # The following way of writing the cache mishandles newlines in values,
2289 # but we know of no workaround that is simple, portable, and efficient.
2290 # So, don't put newlines in cache variables' values.
2291 # Ultrix sh set writes to stderr and can't be redirected directly,
2292 # and sets the high bit in the cache file unless we assign to the vars.
2294 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2296 # `set' does not quote correctly, so add quotes (double-quote substitution
2297 # turns \\\\ into \\, and sed turns \\ into \).
2299 -e "s/'/'\\\\''/g" \
2300 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2303 # `set' quotes correctly as required by POSIX, so do not add quotes.
2304 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2307 if cmp -s $cache_file confcache
; then
2310 if test -w $cache_file; then
2311 echo "updating cache $cache_file"
2312 cat confcache
> $cache_file
2314 echo "not updating unwritable cache $cache_file"
2320 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2321 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
2322 LD
="$LD" NM
="$NM" RANLIB
="$RANLIB" LN_S
="$LN_S" \
2323 DLLTOOL
="$DLLTOOL" AS
="$AS" \
2324 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
2325 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$host \
2326 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2328 # Reload cache, that may have been modified by ltconfig
2329 if test -r "$cache_file"; then
2330 echo "loading cache $cache_file"
2333 echo "creating cache $cache_file"
2338 # This can be used to rebuild libtool when needed
2339 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
2341 # Always use our own libtool.
2342 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
2344 # Redirect the config.log output again, so that the ltconfig log is not
2345 # clobbered by the next message.
2346 exec 5>>.
/config.log
2349 if test -z "$with_target_subdir" ||
test "$with_target_subdir" = "."; then
2358 if test -d $srcdir/testsuite
; then
2360 TESTSUBDIR_FALSE
='#'
2366 # Check whether --enable-fast-character or --disable-fast-character was given.
2367 if test "${enable_fast_character+set}" = set; then
2368 enableval
="$enable_fast_character"
2372 cat >> confdefs.h
<<\EOF
2373 #define COMPACT_CHARACTER 1
2379 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
2380 if test "${enable_getenv_properties+set}" = set; then
2381 enableval
="$enable_getenv_properties"
2386 if test -n "$enable_getenv_properties"; then
2387 enable_getenv_properties
=${enable_getenv_properties_default-yes}
2389 if test "$enable_getenv_properties" = no
; then
2390 cat >> confdefs.h
<<\EOF
2391 #define DISABLE_GETENV_PROPERTIES 1
2396 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
2397 if test "${enable_libgcj_debug+set}" = set; then
2398 enableval
="$enable_libgcj_debug"
2399 if test "$enable_libgcj_debug" = yes; then
2400 cat >> confdefs.h
<<\EOF
2408 # Check whether --enable-interpreter or --disable-interpreter was given.
2409 if test "${enable_interpreter+set}" = set; then
2410 enableval
="$enable_interpreter"
2411 if test "$enable_interpreter" = yes; then
2412 cat >> confdefs.h
<<\EOF
2413 #define INTERPRETER 1
2420 # Check whether --enable-java-net or --disable-java-net was given.
2421 if test "${enable_java_net+set}" = set; then
2422 enableval
="$enable_java_net"
2427 if test -n "$enable_java_net"; then
2428 enable_java_net
=${enable_java_net_default-yes}
2430 if test "$enable_java_net" = no
; then
2431 cat >> confdefs.h
<<\EOF
2432 #define DISABLE_JAVA_NET 1
2438 # Check whether --with-ecos or --without-ecos was given.
2439 if test "${with_ecos+set}" = set; then
2440 withval
="$with_ecos"
2441 TARGET_ECOS
="$with_ecos"
2446 case "$TARGET_ECOS" in
2448 FILE_DESCRIPTOR
=natFileDescriptorPosix.cc
2449 PROCESS
=${PROCESS-Posix}
2452 FILE_DESCRIPTOR
=natFileDescriptorEcos.cc
2454 cat >> confdefs.h
<<\EOF
2461 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2462 echo "configure:2463: checking how to run the C preprocessor" >&5
2463 # On Suns, sometimes $CPP names a directory.
2464 if test -n "$CPP" && test -d "$CPP"; then
2467 if test -z "$CPP"; then
2468 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2469 echo $ac_n "(cached) $ac_c" 1>&6
2471 # This must be in double quotes, not single quotes, because CPP may get
2472 # substituted into the Makefile and "${CC-cc}" will confuse make.
2474 # On the NeXT, cc -E runs the code through the compiler's parser,
2475 # not just through cpp.
2476 cat > conftest.
$ac_ext <<EOF
2477 #line 2478 "configure"
2478 #include "confdefs.h"
2482 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2483 { (eval echo configure
:2484: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2484 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2485 if test -z "$ac_err"; then
2489 echo "configure: failed program was:" >&5
2490 cat conftest.
$ac_ext >&5
2492 CPP
="${CC-cc} -E -traditional-cpp"
2493 cat > conftest.
$ac_ext <<EOF
2494 #line 2495 "configure"
2495 #include "confdefs.h"
2499 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2500 { (eval echo configure
:2501: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2501 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2502 if test -z "$ac_err"; then
2506 echo "configure: failed program was:" >&5
2507 cat conftest.
$ac_ext >&5
2509 CPP
="${CC-cc} -nologo -E"
2510 cat > conftest.
$ac_ext <<EOF
2511 #line 2512 "configure"
2512 #include "confdefs.h"
2516 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2517 { (eval echo configure
:2518: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2518 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2519 if test -z "$ac_err"; then
2523 echo "configure: failed program was:" >&5
2524 cat conftest.
$ac_ext >&5
2533 ac_cv_prog_CPP
="$CPP"
2535 CPP
="$ac_cv_prog_CPP"
2537 ac_cv_prog_CPP
="$CPP"
2539 echo "$ac_t""$CPP" 1>&6
2541 cat > conftest.
$ac_ext <<EOF
2542 #line 2543 "configure"
2543 #include "confdefs.h"
2546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2547 egrep "uint32_t" >/dev
/null
2>&1; then
2549 cat >> confdefs.h
<<\EOF
2550 #define HAVE_INT32_DEFINED 1
2556 cat > conftest.
$ac_ext <<EOF
2557 #line 2558 "configure"
2558 #include "confdefs.h"
2559 #include <inttypes.h>
2561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2562 egrep "uint32_t" >/dev
/null
2>&1; then
2564 cat >> confdefs.h
<<\EOF
2565 #define HAVE_INT32_DEFINED 1
2571 cat > conftest.
$ac_ext <<EOF
2572 #line 2573 "configure"
2573 #include "confdefs.h"
2574 #include <sys/types.h>
2576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2577 egrep "u_int32_t" >/dev
/null
2>&1; then
2579 cat >> confdefs.h
<<\EOF
2580 #define HAVE_BSD_INT32_DEFINED 1
2586 cat > conftest.
$ac_ext <<EOF
2587 #line 2588 "configure"
2588 #include "confdefs.h"
2589 #include <sys/config.h>
2591 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2592 egrep "u_int32_t" >/dev
/null
2>&1; then
2594 cat >> confdefs.h
<<\EOF
2595 #define HAVE_BSD_INT32_DEFINED 1
2603 cat > conftest.
$ac_ext <<EOF
2604 #line 2605 "configure"
2605 #include "confdefs.h"
2608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2609 egrep "mktime" >/dev
/null
2>&1; then
2611 cat >> confdefs.h
<<\EOF
2612 #define HAVE_MKTIME 1
2618 cat > conftest.
$ac_ext <<EOF
2619 #line 2620 "configure"
2620 #include "confdefs.h"
2623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2624 egrep "localtime" >/dev
/null
2>&1; then
2626 cat >> confdefs.h
<<\EOF
2627 #define HAVE_LOCALTIME 1
2634 test -d java || mkdir java
2635 test -d java
/io || mkdir java
/io
2638 test -d java
/lang || mkdir java
/lang
2645 # Check whether --with-system-zlib or --without-system-zlib was given.
2646 if test "${with_system_zlib+set}" = set; then
2647 withval
="$with_system_zlib"
2656 echo $ac_n "checking for garbage collector to use""... $ac_c" 1>&6
2657 echo "configure:2658: checking for garbage collector to use" >&5
2658 # Check whether --enable-java-gc or --disable-java-gc was given.
2659 if test "${enable_java_gc+set}" = set; then
2660 enableval
="$enable_java_gc"
2674 echo "$ac_t""boehm" 1>&6
2675 GCDEPS
='$(top_builddir)/../boehm-gc/libgcjgc.la'
2676 # We include the path to the boehm-gc build directory.
2677 # See Makefile.am to understand why.
2678 GCLIBS
="$GCDEPS -L\$(here)/../boehm-gc/$libsubdir"
2679 GCINCS
='-I$(top_srcdir)/../boehm-gc -I$(top_builddir)/../boehm-gc'
2681 GCINCS
="$GCINCS `cat ../boehm-gc/boehm-cflags`"
2684 cat >> confdefs.h
<<\EOF
2685 #define HAVE_BOEHM_GC 1
2690 echo "$ac_t""none" 1>&6
2695 { echo "configure: error: unrecognized collector \"$GC\"" 1>&2; exit 1; }
2706 echo $ac_n "checking for threads package to use""... $ac_c" 1>&6
2707 echo "configure:2708: checking for threads package to use" >&5
2708 # Check whether --enable-threads or --disable-threads was given.
2709 if test "${enable_threads+set}" = set; then
2710 enableval
="$enable_threads"
2717 if test "$THREADS" = yes; then
2723 # FIXME: this isn't correct in all cases.
2730 # FIXME: for now, choose POSIX, because we implement that.
2731 # Later, choose irix threads.
2735 # FIXME: for now, choose POSIX, because we implement that.
2736 # Later, choose solaris threads.
2754 cat >> confdefs.h
<<\EOF
2755 #define LINUX_THREADS 1
2761 decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks
)
2762 { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
2765 { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
2768 echo "$ac_t""$THREADS" 1>&6
2778 THREADLIBS
=-lpthread
2779 THREADSPEC
=-lpthread
2780 THREADOBJS
=posix-threads.lo
2781 THREADH
=posix-threads.h
2782 # MIT pthreads doesn't seem to have the mutexattr functions.
2783 # But for now we don't check for it. We just assume you aren't
2784 # using MIT pthreads.
2785 cat >> confdefs.h
<<\EOF
2786 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
2792 THREADOBJS
=no-threads.lo
2793 THREADH
=no-threads.h
2805 if test "$GCC" = yes; then
2817 # Find eh-common.h and support headers. If we're in the tree with
2818 # gcc, then look there. Otherwise look in compat-include. If all else
2819 # fails, just hope the user has set things up somehow.
2820 if test -r $srcdir/..
/gcc
/eh-common.h
; then
2821 EH_COMMON_INCLUDE
='-I$(top_srcdir)/../gcc -I$(top_srcdir)/../include'
2823 if test -d $srcdir/..
/compat-include
; then
2824 EH_COMMON_INCLUDE
='-I$(top_srcdir)/../compat-include'
2830 if test -n "${with_cross_host}"; then
2831 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
2832 # may not work correctly, because the compiler may not be able to
2835 # We assume newlib. This lets us hard-code the functions we know
2837 cat >> confdefs.h
<<\EOF
2838 #define HAVE_MEMMOVE 1
2841 cat >> confdefs.h
<<\EOF
2842 #define HAVE_MEMCPY 1
2845 cat >> confdefs.h
<<\EOF
2846 #define HAVE_STRERROR 1
2849 cat >> confdefs.h
<<\EOF
2850 #define HAVE_GMTIME_R 1
2853 cat >> confdefs.h
<<\EOF
2854 #define HAVE_LOCALTIME_R 1
2857 cat >> confdefs.h
<<\EOF
2858 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
2861 cat >> confdefs.h
<<\EOF
2862 #define HAVE_ALLOCA 1
2868 # If Canadian cross, then don't pick up tools from the build
2870 if test "$build" != "$with_cross_host"; then
2873 GCJ
="${target_alias}-gcj"
2879 for ac_func
in strerror ioctl
select fstat open fsync
sleep
2881 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2882 echo "configure:2883: checking for $ac_func" >&5
2883 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2884 echo $ac_n "(cached) $ac_c" 1>&6
2886 cat > conftest.
$ac_ext <<EOF
2887 #line 2888 "configure"
2888 #include "confdefs.h"
2889 /* System header to define __stub macros and hopefully few prototypes,
2890 which can conflict with char $ac_func(); below. */
2892 /* Override any gcc2 internal prototype to avoid an error. */
2893 /* We use char because int might match the return type of a gcc2
2894 builtin and then its argument prototype would still apply. */
2899 /* The GNU C library defines this for functions which it implements
2900 to always fail with ENOSYS. Some functions are actually named
2901 something starting with __ and the normal name is an alias. */
2902 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2910 if { (eval echo configure
:2911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2912 eval "ac_cv_func_$ac_func=yes"
2914 echo "configure: failed program was:" >&5
2915 cat conftest.
$ac_ext >&5
2917 eval "ac_cv_func_$ac_func=no"
2922 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2923 echo "$ac_t""yes" 1>&6
2924 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2925 cat >> confdefs.h
<<EOF
2926 #define $ac_tr_func 1
2930 echo "$ac_t""no" 1>&6
2934 for ac_func
in gmtime_r localtime_r readdir_r getpwuid_r
2936 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2937 echo "configure:2938: checking for $ac_func" >&5
2938 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2939 echo $ac_n "(cached) $ac_c" 1>&6
2941 cat > conftest.
$ac_ext <<EOF
2942 #line 2943 "configure"
2943 #include "confdefs.h"
2944 /* System header to define __stub macros and hopefully few prototypes,
2945 which can conflict with char $ac_func(); below. */
2947 /* Override any gcc2 internal prototype to avoid an error. */
2948 /* We use char because int might match the return type of a gcc2
2949 builtin and then its argument prototype would still apply. */
2954 /* The GNU C library defines this for functions which it implements
2955 to always fail with ENOSYS. Some functions are actually named
2956 something starting with __ and the normal name is an alias. */
2957 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2965 if { (eval echo configure
:2966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2967 eval "ac_cv_func_$ac_func=yes"
2969 echo "configure: failed program was:" >&5
2970 cat conftest.
$ac_ext >&5
2972 eval "ac_cv_func_$ac_func=no"
2977 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2978 echo "$ac_t""yes" 1>&6
2979 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2980 cat >> confdefs.h
<<EOF
2981 #define $ac_tr_func 1
2985 echo "$ac_t""no" 1>&6
2989 for ac_func
in access stat mkdir rename
rmdir unlink realpath
2991 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2992 echo "configure:2993: checking for $ac_func" >&5
2993 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2994 echo $ac_n "(cached) $ac_c" 1>&6
2996 cat > conftest.
$ac_ext <<EOF
2997 #line 2998 "configure"
2998 #include "confdefs.h"
2999 /* System header to define __stub macros and hopefully few prototypes,
3000 which can conflict with char $ac_func(); below. */
3002 /* Override any gcc2 internal prototype to avoid an error. */
3003 /* We use char because int might match the return type of a gcc2
3004 builtin and then its argument prototype would still apply. */
3009 /* The GNU C library defines this for functions which it implements
3010 to always fail with ENOSYS. Some functions are actually named
3011 something starting with __ and the normal name is an alias. */
3012 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3020 if { (eval echo configure
:3021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3022 eval "ac_cv_func_$ac_func=yes"
3024 echo "configure: failed program was:" >&5
3025 cat conftest.
$ac_ext >&5
3027 eval "ac_cv_func_$ac_func=no"
3032 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3033 echo "$ac_t""yes" 1>&6
3034 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3035 cat >> confdefs.h
<<EOF
3036 #define $ac_tr_func 1
3040 echo "$ac_t""no" 1>&6
3044 for ac_func
in inet_aton inet_addr
3046 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3047 echo "configure:3048: checking for $ac_func" >&5
3048 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3049 echo $ac_n "(cached) $ac_c" 1>&6
3051 cat > conftest.
$ac_ext <<EOF
3052 #line 3053 "configure"
3053 #include "confdefs.h"
3054 /* System header to define __stub macros and hopefully few prototypes,
3055 which can conflict with char $ac_func(); below. */
3057 /* Override any gcc2 internal prototype to avoid an error. */
3058 /* We use char because int might match the return type of a gcc2
3059 builtin and then its argument prototype would still apply. */
3064 /* The GNU C library defines this for functions which it implements
3065 to always fail with ENOSYS. Some functions are actually named
3066 something starting with __ and the normal name is an alias. */
3067 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3075 if { (eval echo configure
:3076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3077 eval "ac_cv_func_$ac_func=yes"
3079 echo "configure: failed program was:" >&5
3080 cat conftest.
$ac_ext >&5
3082 eval "ac_cv_func_$ac_func=no"
3087 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3088 echo "$ac_t""yes" 1>&6
3089 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3090 cat >> confdefs.h
<<EOF
3091 #define $ac_tr_func 1
3095 echo "$ac_t""no" 1>&6
3099 for ac_func
in inet_pton uname inet_ntoa
3101 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3102 echo "configure:3103: checking for $ac_func" >&5
3103 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3104 echo $ac_n "(cached) $ac_c" 1>&6
3106 cat > conftest.
$ac_ext <<EOF
3107 #line 3108 "configure"
3108 #include "confdefs.h"
3109 /* System header to define __stub macros and hopefully few prototypes,
3110 which can conflict with char $ac_func(); below. */
3112 /* Override any gcc2 internal prototype to avoid an error. */
3113 /* We use char because int might match the return type of a gcc2
3114 builtin and then its argument prototype would still apply. */
3119 /* The GNU C library defines this for functions which it implements
3120 to always fail with ENOSYS. Some functions are actually named
3121 something starting with __ and the normal name is an alias. */
3122 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3130 if { (eval echo configure
:3131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3132 eval "ac_cv_func_$ac_func=yes"
3134 echo "configure: failed program was:" >&5
3135 cat conftest.
$ac_ext >&5
3137 eval "ac_cv_func_$ac_func=no"
3142 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3143 echo "$ac_t""yes" 1>&6
3144 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3145 cat >> confdefs.h
<<EOF
3146 #define $ac_tr_func 1
3150 echo "$ac_t""no" 1>&6
3155 for ac_func
in gethostbyname_r
3157 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3158 echo "configure:3159: checking for $ac_func" >&5
3159 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3160 echo $ac_n "(cached) $ac_c" 1>&6
3162 cat > conftest.
$ac_ext <<EOF
3163 #line 3164 "configure"
3164 #include "confdefs.h"
3165 /* System header to define __stub macros and hopefully few prototypes,
3166 which can conflict with char $ac_func(); below. */
3168 /* Override any gcc2 internal prototype to avoid an error. */
3169 /* We use char because int might match the return type of a gcc2
3170 builtin and then its argument prototype would still apply. */
3175 /* The GNU C library defines this for functions which it implements
3176 to always fail with ENOSYS. Some functions are actually named
3177 something starting with __ and the normal name is an alias. */
3178 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3186 if { (eval echo configure
:3187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3188 eval "ac_cv_func_$ac_func=yes"
3190 echo "configure: failed program was:" >&5
3191 cat conftest.
$ac_ext >&5
3193 eval "ac_cv_func_$ac_func=no"
3198 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3199 echo "$ac_t""yes" 1>&6
3200 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3201 cat >> confdefs.h
<<EOF
3202 #define $ac_tr_func 1
3205 cat >> confdefs.h
<<\EOF
3206 #define HAVE_GETHOSTBYNAME_R 1
3209 # There are two different kinds of gethostbyname_r.
3210 # We look for the one that returns `int'.
3211 # Hopefully this check is robust enough.
3212 cat > conftest.
$ac_ext <<EOF
3213 #line 3214 "configure"
3214 #include "confdefs.h"
3217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3218 egrep "int.*gethostbyname_r" >/dev
/null
2>&1; then
3221 cat >> confdefs.h
<<\EOF
3222 #define GETHOSTBYNAME_R_RETURNS_INT 1
3230 *" -D_REENTRANT "*) ;;
3232 echo $ac_n "checking whether gethostbyname_r declaration requires -D_REENTRANT""... $ac_c" 1>&6
3233 echo "configure:3234: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
3234 if eval "test \"`echo '$''{'libjava_cv_gethostbyname_r_needs_reentrant'+set}'`\" = set"; then
3235 echo $ac_n "(cached) $ac_c" 1>&6
3239 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3240 ac_cpp
='$CXXCPP $CPPFLAGS'
3241 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3242 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3243 cross_compiling
=$ac_cv_prog_cxx_cross
3245 cat > conftest.
$ac_ext <<EOF
3246 #line 3247 "configure"
3247 #include "confdefs.h"
3250 gethostbyname_r("", 0, 0);
3253 if { (eval echo configure
:3254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3255 libjava_cv_gethostbyname_r_needs_reentrant
=no
3257 echo "configure: failed program was:" >&5
3258 cat conftest.
$ac_ext >&5
3260 CPPFLAGS_SAVE
="$CPPFLAGS"
3261 CPPFLAGS
="$CPPFLAGS -D_REENTRANT"
3262 cat > conftest.
$ac_ext <<EOF
3263 #line 3264 "configure"
3264 #include "confdefs.h"
3267 gethostbyname_r("", 0, 0);
3270 if { (eval echo configure
:3271: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3272 libjava_cv_gethostbyname_r_needs_reentrant
=yes
3274 echo "configure: failed program was:" >&5
3275 cat conftest.
$ac_ext >&5
3277 libjava_cv_gethostbyname_r_needs_reentrant
=fail
3280 CPPFLAGS
="$CPPFLAGS_SAVE"
3285 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3286 ac_cpp
='$CPP $CPPFLAGS'
3287 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3288 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3289 cross_compiling
=$ac_cv_prog_cc_cross
3294 echo "$ac_t""$libjava_cv_gethostbyname_r_needs_reentrant" 1>&6
3295 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes
; then
3296 cat >> confdefs.h
<<\EOF
3297 #define GETHOSTBYNAME_R_NEEDS_REENTRANT 1
3304 echo $ac_n "checking for struct hostent_data""... $ac_c" 1>&6
3305 echo "configure:3306: checking for struct hostent_data" >&5
3306 if eval "test \"`echo '$''{'libjava_cv_struct_hostent_data'+set}'`\" = set"; then
3307 echo $ac_n "(cached) $ac_c" 1>&6
3309 cat > conftest.
$ac_ext <<EOF
3310 #line 3311 "configure"
3311 #include "confdefs.h"
3313 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
3314 # define _REENTRANT 1
3318 struct hostent_data data;
3321 if { (eval echo configure
:3322: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3323 libjava_cv_struct_hostent_data
=yes
3325 echo "configure: failed program was:" >&5
3326 cat conftest.
$ac_ext >&5
3328 libjava_cv_struct_hostent_data
=no
3333 echo "$ac_t""$libjava_cv_struct_hostent_data" 1>&6
3334 if test "x$libjava_cv_struct_hostent_data" = xyes
; then
3335 cat >> confdefs.h
<<\EOF
3336 #define HAVE_STRUCT_HOSTENT_DATA 1
3342 echo "$ac_t""no" 1>&6
3347 for ac_func
in gethostbyaddr_r
3349 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3350 echo "configure:3351: checking for $ac_func" >&5
3351 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3352 echo $ac_n "(cached) $ac_c" 1>&6
3354 cat > conftest.
$ac_ext <<EOF
3355 #line 3356 "configure"
3356 #include "confdefs.h"
3357 /* System header to define __stub macros and hopefully few prototypes,
3358 which can conflict with char $ac_func(); below. */
3360 /* Override any gcc2 internal prototype to avoid an error. */
3361 /* We use char because int might match the return type of a gcc2
3362 builtin and then its argument prototype would still apply. */
3367 /* The GNU C library defines this for functions which it implements
3368 to always fail with ENOSYS. Some functions are actually named
3369 something starting with __ and the normal name is an alias. */
3370 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3378 if { (eval echo configure
:3379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3380 eval "ac_cv_func_$ac_func=yes"
3382 echo "configure: failed program was:" >&5
3383 cat conftest.
$ac_ext >&5
3385 eval "ac_cv_func_$ac_func=no"
3390 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3391 echo "$ac_t""yes" 1>&6
3392 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3393 cat >> confdefs.h
<<EOF
3394 #define $ac_tr_func 1
3397 cat >> confdefs.h
<<\EOF
3398 #define HAVE_GETHOSTBYADDR_R 1
3401 # There are two different kinds of gethostbyaddr_r.
3402 # We look for the one that returns `int'.
3403 # Hopefully this check is robust enough.
3404 cat > conftest.
$ac_ext <<EOF
3405 #line 3406 "configure"
3406 #include "confdefs.h"
3409 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3410 egrep "int.*gethostbyaddr_r" >/dev
/null
2>&1; then
3413 cat >> confdefs.h
<<\EOF
3414 #define GETHOSTBYADDR_R_RETURNS_INT 1
3421 echo "$ac_t""no" 1>&6
3426 for ac_func
in gethostname
3428 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3429 echo "configure:3430: checking for $ac_func" >&5
3430 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3431 echo $ac_n "(cached) $ac_c" 1>&6
3433 cat > conftest.
$ac_ext <<EOF
3434 #line 3435 "configure"
3435 #include "confdefs.h"
3436 /* System header to define __stub macros and hopefully few prototypes,
3437 which can conflict with char $ac_func(); below. */
3439 /* Override any gcc2 internal prototype to avoid an error. */
3440 /* We use char because int might match the return type of a gcc2
3441 builtin and then its argument prototype would still apply. */
3446 /* The GNU C library defines this for functions which it implements
3447 to always fail with ENOSYS. Some functions are actually named
3448 something starting with __ and the normal name is an alias. */
3449 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3457 if { (eval echo configure
:3458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3459 eval "ac_cv_func_$ac_func=yes"
3461 echo "configure: failed program was:" >&5
3462 cat conftest.
$ac_ext >&5
3464 eval "ac_cv_func_$ac_func=no"
3469 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3470 echo "$ac_t""yes" 1>&6
3471 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3472 cat >> confdefs.h
<<EOF
3473 #define $ac_tr_func 1
3476 cat >> confdefs.h
<<\EOF
3477 #define HAVE_GETHOSTNAME 1
3480 cat > conftest.
$ac_ext <<EOF
3481 #line 3482 "configure"
3482 #include "confdefs.h"
3485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3486 egrep "gethostname" >/dev
/null
2>&1; then
3489 cat >> confdefs.h
<<\EOF
3490 #define HAVE_GETHOSTNAME_DECL 1
3497 echo "$ac_t""no" 1>&6
3502 # Look for these functions in the thread library, but only bother
3503 # if using POSIX threads.
3504 if test "$THREADS" = posix
; then
3506 LIBS
="$LIBS $THREADLIBS"
3507 # Some POSIX thread systems don't have pthread_mutexattr_settype.
3509 for ac_func
in pthread_mutexattr_settype pthread_mutexattr_setkind_np
3511 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3512 echo "configure:3513: checking for $ac_func" >&5
3513 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3514 echo $ac_n "(cached) $ac_c" 1>&6
3516 cat > conftest.
$ac_ext <<EOF
3517 #line 3518 "configure"
3518 #include "confdefs.h"
3519 /* System header to define __stub macros and hopefully few prototypes,
3520 which can conflict with char $ac_func(); below. */
3522 /* Override any gcc2 internal prototype to avoid an error. */
3523 /* We use char because int might match the return type of a gcc2
3524 builtin and then its argument prototype would still apply. */
3529 /* The GNU C library defines this for functions which it implements
3530 to always fail with ENOSYS. Some functions are actually named
3531 something starting with __ and the normal name is an alias. */
3532 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3540 if { (eval echo configure
:3541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3542 eval "ac_cv_func_$ac_func=yes"
3544 echo "configure: failed program was:" >&5
3545 cat conftest.
$ac_ext >&5
3547 eval "ac_cv_func_$ac_func=no"
3552 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3553 echo "$ac_t""yes" 1>&6
3554 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3555 cat >> confdefs.h
<<EOF
3556 #define $ac_tr_func 1
3560 echo "$ac_t""no" 1>&6
3565 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
3566 # Solaris 7 the name librt is preferred.
3567 for ac_func
in sched_yield
3569 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3570 echo "configure:3571: checking for $ac_func" >&5
3571 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3572 echo $ac_n "(cached) $ac_c" 1>&6
3574 cat > conftest.
$ac_ext <<EOF
3575 #line 3576 "configure"
3576 #include "confdefs.h"
3577 /* System header to define __stub macros and hopefully few prototypes,
3578 which can conflict with char $ac_func(); below. */
3580 /* Override any gcc2 internal prototype to avoid an error. */
3581 /* We use char because int might match the return type of a gcc2
3582 builtin and then its argument prototype would still apply. */
3587 /* The GNU C library defines this for functions which it implements
3588 to always fail with ENOSYS. Some functions are actually named
3589 something starting with __ and the normal name is an alias. */
3590 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3598 if { (eval echo configure
:3599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3600 eval "ac_cv_func_$ac_func=yes"
3602 echo "configure: failed program was:" >&5
3603 cat conftest.
$ac_ext >&5
3605 eval "ac_cv_func_$ac_func=no"
3610 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3611 echo "$ac_t""yes" 1>&6
3612 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3613 cat >> confdefs.h
<<EOF
3614 #define $ac_tr_func 1
3618 echo "$ac_t""no" 1>&6
3619 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
3620 echo "configure:3621: checking for sched_yield in -lrt" >&5
3621 ac_lib_var
=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
3622 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3623 echo $ac_n "(cached) $ac_c" 1>&6
3625 ac_save_LIBS
="$LIBS"
3627 cat > conftest.
$ac_ext <<EOF
3628 #line 3629 "configure"
3629 #include "confdefs.h"
3630 /* Override any gcc2 internal prototype to avoid an error. */
3631 /* We use char because int might match the return type of a gcc2
3632 builtin and then its argument prototype would still apply. */
3639 if { (eval echo configure
:3640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3641 eval "ac_cv_lib_$ac_lib_var=yes"
3643 echo "configure: failed program was:" >&5
3644 cat conftest.
$ac_ext >&5
3646 eval "ac_cv_lib_$ac_lib_var=no"
3649 LIBS
="$ac_save_LIBS"
3652 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3653 echo "$ac_t""yes" 1>&6
3655 cat >> confdefs.h
<<\EOF
3656 #define HAVE_SCHED_YIELD 1
3659 THREADLIBS
="$THREADLIBS -lrt"
3660 THREADSPEC
="$THREADSPEC -lrt"
3662 echo "$ac_t""no" 1>&6
3664 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
3665 echo "configure:3666: checking for sched_yield in -lposix4" >&5
3666 ac_lib_var
=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
3667 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3668 echo $ac_n "(cached) $ac_c" 1>&6
3670 ac_save_LIBS
="$LIBS"
3671 LIBS
="-lposix4 $LIBS"
3672 cat > conftest.
$ac_ext <<EOF
3673 #line 3674 "configure"
3674 #include "confdefs.h"
3675 /* Override any gcc2 internal prototype to avoid an error. */
3676 /* We use char because int might match the return type of a gcc2
3677 builtin and then its argument prototype would still apply. */
3684 if { (eval echo configure
:3685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3686 eval "ac_cv_lib_$ac_lib_var=yes"
3688 echo "configure: failed program was:" >&5
3689 cat conftest.
$ac_ext >&5
3691 eval "ac_cv_lib_$ac_lib_var=no"
3694 LIBS
="$ac_save_LIBS"
3697 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3698 echo "$ac_t""yes" 1>&6
3700 cat >> confdefs.h
<<\EOF
3701 #define HAVE_SCHED_YIELD 1
3704 THREADLIBS
="$THREADLIBS -lposix4"
3705 THREADSPEC
="$THREADSPEC -lposix4"
3707 echo "$ac_t""no" 1>&6
3717 # We can save a little space at runtime if the mutex has m_count
3718 # or __m_count. This is a nice hack for Linux.
3719 cat > conftest.
$ac_ext <<EOF
3720 #line 3721 "configure"
3721 #include "confdefs.h"
3722 #include <pthread.h>
3725 extern pthread_mutex_t *mutex; int q = mutex->m_count;
3729 if { (eval echo configure
:3730: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3731 cat >> confdefs.h
<<\EOF
3732 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
3736 echo "configure: failed program was:" >&5
3737 cat conftest.
$ac_ext >&5
3740 cat > conftest.
$ac_ext <<EOF
3741 #line 3742 "configure"
3742 #include "confdefs.h"
3743 #include <pthread.h>
3746 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
3750 if { (eval echo configure
:3751: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3752 cat >> confdefs.h
<<\EOF
3753 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
3757 echo "configure: failed program was:" >&5
3758 cat conftest.
$ac_ext >&5
3765 # We require a way to get the time.
3767 for ac_func
in gettimeofday
time ftime
3769 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3770 echo "configure:3771: checking for $ac_func" >&5
3771 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3772 echo $ac_n "(cached) $ac_c" 1>&6
3774 cat > conftest.
$ac_ext <<EOF
3775 #line 3776 "configure"
3776 #include "confdefs.h"
3777 /* System header to define __stub macros and hopefully few prototypes,
3778 which can conflict with char $ac_func(); below. */
3780 /* Override any gcc2 internal prototype to avoid an error. */
3781 /* We use char because int might match the return type of a gcc2
3782 builtin and then its argument prototype would still apply. */
3787 /* The GNU C library defines this for functions which it implements
3788 to always fail with ENOSYS. Some functions are actually named
3789 something starting with __ and the normal name is an alias. */
3790 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3798 if { (eval echo configure
:3799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3800 eval "ac_cv_func_$ac_func=yes"
3802 echo "configure: failed program was:" >&5
3803 cat conftest.
$ac_ext >&5
3805 eval "ac_cv_func_$ac_func=no"
3810 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3811 echo "$ac_t""yes" 1>&6
3812 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3813 cat >> confdefs.h
<<EOF
3814 #define $ac_tr_func 1
3818 echo "$ac_t""no" 1>&6
3822 if test "$time_found" = no
; then
3823 { echo "configure: error: no function found to get the time" 1>&2; exit 1; }
3826 for ac_func
in memmove
3828 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3829 echo "configure:3830: checking for $ac_func" >&5
3830 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3831 echo $ac_n "(cached) $ac_c" 1>&6
3833 cat > conftest.
$ac_ext <<EOF
3834 #line 3835 "configure"
3835 #include "confdefs.h"
3836 /* System header to define __stub macros and hopefully few prototypes,
3837 which can conflict with char $ac_func(); below. */
3839 /* Override any gcc2 internal prototype to avoid an error. */
3840 /* We use char because int might match the return type of a gcc2
3841 builtin and then its argument prototype would still apply. */
3846 /* The GNU C library defines this for functions which it implements
3847 to always fail with ENOSYS. Some functions are actually named
3848 something starting with __ and the normal name is an alias. */
3849 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3857 if { (eval echo configure
:3858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3859 eval "ac_cv_func_$ac_func=yes"
3861 echo "configure: failed program was:" >&5
3862 cat conftest.
$ac_ext >&5
3864 eval "ac_cv_func_$ac_func=no"
3869 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3870 echo "$ac_t""yes" 1>&6
3871 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3872 cat >> confdefs.h
<<EOF
3873 #define $ac_tr_func 1
3877 echo "$ac_t""no" 1>&6
3882 # We require memcpy.
3884 for ac_func
in memcpy
3886 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3887 echo "configure:3888: checking for $ac_func" >&5
3888 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3889 echo $ac_n "(cached) $ac_c" 1>&6
3891 cat > conftest.
$ac_ext <<EOF
3892 #line 3893 "configure"
3893 #include "confdefs.h"
3894 /* System header to define __stub macros and hopefully few prototypes,
3895 which can conflict with char $ac_func(); below. */
3897 /* Override any gcc2 internal prototype to avoid an error. */
3898 /* We use char because int might match the return type of a gcc2
3899 builtin and then its argument prototype would still apply. */
3904 /* The GNU C library defines this for functions which it implements
3905 to always fail with ENOSYS. Some functions are actually named
3906 something starting with __ and the normal name is an alias. */
3907 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3915 if { (eval echo configure
:3916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3917 eval "ac_cv_func_$ac_func=yes"
3919 echo "configure: failed program was:" >&5
3920 cat conftest.
$ac_ext >&5
3922 eval "ac_cv_func_$ac_func=no"
3927 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3928 echo "$ac_t""yes" 1>&6
3929 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3930 cat >> confdefs.h
<<EOF
3931 #define $ac_tr_func 1
3935 echo "$ac_t""no" 1>&6
3939 if test "$memcpy_found" = no
; then
3940 { echo "configure: error: memcpy is required" 1>&2; exit 1; }
3943 # Some library-finding code we stole from Tcl.
3944 #--------------------------------------------------------------------
3945 # Check for the existence of the -lsocket and -lnsl libraries.
3946 # The order here is important, so that they end up in the right
3947 # order in the command line generated by make. Here are some
3948 # special considerations:
3949 # 1. Use "connect" and "accept" to check for -lsocket, and
3950 # "gethostbyname" to check for -lnsl.
3951 # 2. Use each function name only once: can't redo a check because
3952 # autoconf caches the results of the last check and won't redo it.
3953 # 3. Use -lnsl and -lsocket only if they supply procedures that
3954 # aren't already present in the normal libraries. This is because
3955 # IRIX 5.2 has libraries, but they aren't needed and they're
3956 # bogus: they goof up name resolution if used.
3957 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
3958 # To get around this problem, check for both libraries together
3959 # if -lsocket doesn't work by itself.
3960 #--------------------------------------------------------------------
3962 echo $ac_n "checking for socket libraries""... $ac_c" 1>&6
3963 echo "configure:3964: checking for socket libraries" >&5
3964 if eval "test \"`echo '$''{'gcj_cv_lib_sockets'+set}'`\" = set"; then
3965 echo $ac_n "(cached) $ac_c" 1>&6
3969 unset ac_cv_func_connect
3970 echo $ac_n "checking for connect""... $ac_c" 1>&6
3971 echo "configure:3972: checking for connect" >&5
3972 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3973 echo $ac_n "(cached) $ac_c" 1>&6
3975 cat > conftest.
$ac_ext <<EOF
3976 #line 3977 "configure"
3977 #include "confdefs.h"
3978 /* System header to define __stub macros and hopefully few prototypes,
3979 which can conflict with char connect(); below. */
3981 /* Override any gcc2 internal prototype to avoid an error. */
3982 /* We use char because int might match the return type of a gcc2
3983 builtin and then its argument prototype would still apply. */
3988 /* The GNU C library defines this for functions which it implements
3989 to always fail with ENOSYS. Some functions are actually named
3990 something starting with __ and the normal name is an alias. */
3991 #if defined (__stub_connect) || defined (__stub___connect)
3999 if { (eval echo configure
:4000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4001 eval "ac_cv_func_connect=yes"
4003 echo "configure: failed program was:" >&5
4004 cat conftest.
$ac_ext >&5
4006 eval "ac_cv_func_connect=no"
4011 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
4012 echo "$ac_t""yes" 1>&6
4015 echo "$ac_t""no" 1>&6
4019 if test "$gcj_checkSocket" = 1; then
4020 unset ac_cv_func_connect
4021 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4022 echo "configure:4023: checking for main in -lsocket" >&5
4023 ac_lib_var
=`echo socket'_'main | sed 'y%./+-%__p_%'`
4024 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4025 echo $ac_n "(cached) $ac_c" 1>&6
4027 ac_save_LIBS
="$LIBS"
4028 LIBS
="-lsocket $LIBS"
4029 cat > conftest.
$ac_ext <<EOF
4030 #line 4031 "configure"
4031 #include "confdefs.h"
4037 if { (eval echo configure
:4038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4039 eval "ac_cv_lib_$ac_lib_var=yes"
4041 echo "configure: failed program was:" >&5
4042 cat conftest.
$ac_ext >&5
4044 eval "ac_cv_lib_$ac_lib_var=no"
4047 LIBS
="$ac_save_LIBS"
4050 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4051 echo "$ac_t""yes" 1>&6
4052 gcj_cv_lib_sockets
="-lsocket"
4054 echo "$ac_t""no" 1>&6
4059 if test "$gcj_checkBoth" = 1; then
4061 LIBS
="$LIBS -lsocket -lnsl"
4062 unset ac_cv_func_accept
4063 echo $ac_n "checking for accept""... $ac_c" 1>&6
4064 echo "configure:4065: checking for accept" >&5
4065 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
4066 echo $ac_n "(cached) $ac_c" 1>&6
4068 cat > conftest.
$ac_ext <<EOF
4069 #line 4070 "configure"
4070 #include "confdefs.h"
4071 /* System header to define __stub macros and hopefully few prototypes,
4072 which can conflict with char accept(); below. */
4074 /* Override any gcc2 internal prototype to avoid an error. */
4075 /* We use char because int might match the return type of a gcc2
4076 builtin and then its argument prototype would still apply. */
4081 /* The GNU C library defines this for functions which it implements
4082 to always fail with ENOSYS. Some functions are actually named
4083 something starting with __ and the normal name is an alias. */
4084 #if defined (__stub_accept) || defined (__stub___accept)
4092 if { (eval echo configure
:4093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4094 eval "ac_cv_func_accept=yes"
4096 echo "configure: failed program was:" >&5
4097 cat conftest.
$ac_ext >&5
4099 eval "ac_cv_func_accept=no"
4104 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
4105 echo "$ac_t""yes" 1>&6
4107 gcj_cv_lib_sockets
="-lsocket -lnsl"
4109 echo "$ac_t""no" 1>&6
4112 unset ac_cv_func_accept
4115 unset ac_cv_func_gethostbyname
4117 LIBS
="$LIBS $gcj_cv_lib_sockets"
4118 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4119 echo "configure:4120: checking for gethostbyname" >&5
4120 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
4121 echo $ac_n "(cached) $ac_c" 1>&6
4123 cat > conftest.
$ac_ext <<EOF
4124 #line 4125 "configure"
4125 #include "confdefs.h"
4126 /* System header to define __stub macros and hopefully few prototypes,
4127 which can conflict with char gethostbyname(); below. */
4129 /* Override any gcc2 internal prototype to avoid an error. */
4130 /* We use char because int might match the return type of a gcc2
4131 builtin and then its argument prototype would still apply. */
4132 char gethostbyname();
4136 /* The GNU C library defines this for functions which it implements
4137 to always fail with ENOSYS. Some functions are actually named
4138 something starting with __ and the normal name is an alias. */
4139 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4147 if { (eval echo configure
:4148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4149 eval "ac_cv_func_gethostbyname=yes"
4151 echo "configure: failed program was:" >&5
4152 cat conftest.
$ac_ext >&5
4154 eval "ac_cv_func_gethostbyname=no"
4159 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
4160 echo "$ac_t""yes" 1>&6
4163 echo "$ac_t""no" 1>&6
4164 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
4165 echo "configure:4166: checking for main in -lnsl" >&5
4166 ac_lib_var
=`echo nsl'_'main | sed 'y%./+-%__p_%'`
4167 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4168 echo $ac_n "(cached) $ac_c" 1>&6
4170 ac_save_LIBS
="$LIBS"
4172 cat > conftest.
$ac_ext <<EOF
4173 #line 4174 "configure"
4174 #include "confdefs.h"
4180 if { (eval echo configure
:4181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4182 eval "ac_cv_lib_$ac_lib_var=yes"
4184 echo "configure: failed program was:" >&5
4185 cat conftest.
$ac_ext >&5
4187 eval "ac_cv_lib_$ac_lib_var=no"
4190 LIBS
="$ac_save_LIBS"
4193 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4194 echo "$ac_t""yes" 1>&6
4195 gcj_cv_lib_sockets
="$gcj_cv_lib_sockets -lnsl"
4197 echo "$ac_t""no" 1>&6
4202 unset ac_cv_func_gethostbyname
4207 echo "$ac_t""$gcj_cv_lib_sockets" 1>&6
4208 SYSTEMSPEC
="$SYSTEMSPEC $gcj_cv_lib_sockets"
4210 if test "$with_system_zlib" = yes; then
4211 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
4212 echo "configure:4213: checking for deflate in -lz" >&5
4213 ac_lib_var
=`echo z'_'deflate | sed 'y%./+-%__p_%'`
4214 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4215 echo $ac_n "(cached) $ac_c" 1>&6
4217 ac_save_LIBS
="$LIBS"
4219 cat > conftest.
$ac_ext <<EOF
4220 #line 4221 "configure"
4221 #include "confdefs.h"
4222 /* Override any gcc2 internal prototype to avoid an error. */
4223 /* We use char because int might match the return type of a gcc2
4224 builtin and then its argument prototype would still apply. */
4231 if { (eval echo configure
:4232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4233 eval "ac_cv_lib_$ac_lib_var=yes"
4235 echo "configure: failed program was:" >&5
4236 cat conftest.
$ac_ext >&5
4238 eval "ac_cv_lib_$ac_lib_var=no"
4241 LIBS
="$ac_save_LIBS"
4244 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4245 echo "$ac_t""yes" 1>&6
4248 echo "$ac_t""no" 1>&6
4256 # On Solaris, and maybe other architectures, the Boehm collector
4258 if test "$GC" = boehm
; then
4259 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
4260 echo "configure:4261: checking for main in -ldl" >&5
4261 ac_lib_var
=`echo dl'_'main | sed 'y%./+-%__p_%'`
4262 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4263 echo $ac_n "(cached) $ac_c" 1>&6
4265 ac_save_LIBS
="$LIBS"
4267 cat > conftest.
$ac_ext <<EOF
4268 #line 4269 "configure"
4269 #include "confdefs.h"
4275 if { (eval echo configure
:4276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4277 eval "ac_cv_lib_$ac_lib_var=yes"
4279 echo "configure: failed program was:" >&5
4280 cat conftest.
$ac_ext >&5
4282 eval "ac_cv_lib_$ac_lib_var=no"
4285 LIBS
="$ac_save_LIBS"
4288 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4289 echo "$ac_t""yes" 1>&6
4290 SYSTEMSPEC
="$SYSTEMSPEC -ldl"
4292 echo "$ac_t""no" 1>&6
4297 if test -d "$libgcj_basedir/../gcc/java"; then
4309 if test "x$ZLIBSPEC" = "x-lzgcj"; then
4310 # We include the path to the zlib build directory.
4311 # See Makefile.am to understand why.
4312 ZDEPS
='$(top_builddir)/../zlib/libzgcj.la'
4313 ZLIBS
="$ZDEPS -L\$(here)/../zlib/$libsubdir"
4314 ZINCS
='-I$(top_srcdir)/../zlib'
4325 if test "$CANADIAN" = yes; then
4334 if test "$NULL_TARGET" = yes; then
4336 NULL_TARGET_FALSE
='#'
4338 NULL_TARGET_TRUE
='#'
4343 if test "$NATIVE" = yes ||
test "$NULL_TARGET" = yes; then
4352 if test -z "$with_cross_host"; then
4354 USE_LIBDIR_FALSE
='#'
4361 # Determine gcj version number.
4362 if test "$GCJ" = ""; then
4363 if test -z "${with_multisubdir}"; then
4367 builddotdot
=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
4370 dir
="`cd ${builddotdot}/../../gcc && pwd`"
4371 GCJ
="$dir/gcj -B$dir/"
4374 gcjvers
="`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`"
4376 cat >> confdefs.h
<<EOF
4377 #define GCJVERSION "$gcjvers"
4381 # See if gcj supports -fuse-divide-subroutine. gcc 2.95 does not, and
4382 # we want to continue to support that version.
4383 echo $ac_n "checking whether gcj supports -fuse-divide-subroutine""... $ac_c" 1>&6
4384 echo "configure:4385: checking whether gcj supports -fuse-divide-subroutine" >&5
4385 cat > conftest.java
<< 'END'
4386 public class conftest
{ }
4389 $GCJ -classpath $srcdir -fuse-divide-subroutine -fsyntax-only \
4390 conftest.java
> /dev
/null
2>&1 \
4393 if test "$use_fuse" = no
; then
4396 echo "$ac_t""$use_fuse" 1>&6
4400 for ac_hdr
in unistd.h bstring.h sys
/time.h sys
/types.h fcntl.h sys
/ioctl.h sys
/filio.h sys
/stat.h sys
/select.h sys
/socket.h netinet
/in.h arpa
/inet.h netdb.h
pwd.h sys
/config.h inttypes.h stdint.h
4402 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4403 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4404 echo "configure:4405: checking for $ac_hdr" >&5
4405 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4406 echo $ac_n "(cached) $ac_c" 1>&6
4408 cat > conftest.
$ac_ext <<EOF
4409 #line 4410 "configure"
4410 #include "confdefs.h"
4413 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4414 { (eval echo configure
:4415: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4415 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4416 if test -z "$ac_err"; then
4418 eval "ac_cv_header_$ac_safe=yes"
4421 echo "configure: failed program was:" >&5
4422 cat conftest.
$ac_ext >&5
4424 eval "ac_cv_header_$ac_safe=no"
4428 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4429 echo "$ac_t""yes" 1>&6
4430 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4431 cat >> confdefs.h
<<EOF
4432 #define $ac_tr_hdr 1
4436 echo "$ac_t""no" 1>&6
4440 for ac_hdr
in dirent.h
4442 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4443 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4444 echo "configure:4445: checking for $ac_hdr" >&5
4445 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4446 echo $ac_n "(cached) $ac_c" 1>&6
4448 cat > conftest.
$ac_ext <<EOF
4449 #line 4450 "configure"
4450 #include "confdefs.h"
4453 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4454 { (eval echo configure
:4455: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4455 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4456 if test -z "$ac_err"; then
4458 eval "ac_cv_header_$ac_safe=yes"
4461 echo "configure: failed program was:" >&5
4462 cat conftest.
$ac_ext >&5
4464 eval "ac_cv_header_$ac_safe=no"
4468 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4469 echo "$ac_t""yes" 1>&6
4470 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4471 cat >> confdefs.h
<<EOF
4472 #define $ac_tr_hdr 1
4476 echo "$ac_t""no" 1>&6
4481 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4482 echo "configure:4483: checking for ANSI C header files" >&5
4483 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
4484 echo $ac_n "(cached) $ac_c" 1>&6
4486 cat > conftest.
$ac_ext <<EOF
4487 #line 4488 "configure"
4488 #include "confdefs.h"
4494 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4495 { (eval echo configure
:4496: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4496 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4497 if test -z "$ac_err"; then
4499 ac_cv_header_stdc
=yes
4502 echo "configure: failed program was:" >&5
4503 cat conftest.
$ac_ext >&5
4505 ac_cv_header_stdc
=no
4509 if test $ac_cv_header_stdc = yes; then
4510 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4511 cat > conftest.
$ac_ext <<EOF
4512 #line 4513 "configure"
4513 #include "confdefs.h"
4516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4517 egrep "memchr" >/dev
/null
2>&1; then
4521 ac_cv_header_stdc
=no
4527 if test $ac_cv_header_stdc = yes; then
4528 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4529 cat > conftest.
$ac_ext <<EOF
4530 #line 4531 "configure"
4531 #include "confdefs.h"
4534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4535 egrep "free" >/dev
/null
2>&1; then
4539 ac_cv_header_stdc
=no
4545 if test $ac_cv_header_stdc = yes; then
4546 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4547 if test "$cross_compiling" = yes; then
4550 cat > conftest.
$ac_ext <<EOF
4551 #line 4552 "configure"
4552 #include "confdefs.h"
4554 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4555 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4556 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4557 int main () { int i; for (i = 0; i < 256; i++)
4558 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4562 if { (eval echo configure
:4563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4566 echo "configure: failed program was:" >&5
4567 cat conftest.
$ac_ext >&5
4569 ac_cv_header_stdc
=no
4577 echo "$ac_t""$ac_cv_header_stdc" 1>&6
4578 if test $ac_cv_header_stdc = yes; then
4579 cat >> confdefs.h
<<\EOF
4580 #define STDC_HEADERS 1
4585 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
4586 echo "configure:4587: checking for ssize_t" >&5
4587 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
4588 echo $ac_n "(cached) $ac_c" 1>&6
4590 cat > conftest.
$ac_ext <<EOF
4591 #line 4592 "configure"
4592 #include "confdefs.h"
4593 #include <sys/types.h>
4599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4600 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
4602 ac_cv_type_ssize_t
=yes
4605 ac_cv_type_ssize_t
=no
4610 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
4611 if test $ac_cv_type_ssize_t = no
; then
4612 cat >> confdefs.h
<<\EOF
4619 echo $ac_n "checking for in_addr_t""... $ac_c" 1>&6
4620 echo "configure:4621: checking for in_addr_t" >&5
4621 cat > conftest.
$ac_ext <<EOF
4622 #line 4623 "configure"
4623 #include "confdefs.h"
4624 #include <sys/types.h>
4629 #if HAVE_NETINET_IN_H
4630 #include <netinet/in.h>
4636 if { (eval echo configure
:4637: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4638 cat >> confdefs.h
<<\EOF
4639 #define HAVE_IN_ADDR_T 1
4642 echo "$ac_t""yes" 1>&6
4644 echo "configure: failed program was:" >&5
4645 cat conftest.
$ac_ext >&5
4647 echo "$ac_t""no" 1>&6
4651 echo $ac_n "checking whether struct ip_mreq is in netinet/in.h""... $ac_c" 1>&6
4652 echo "configure:4653: checking whether struct ip_mreq is in netinet/in.h" >&5
4653 cat > conftest.
$ac_ext <<EOF
4654 #line 4655 "configure"
4655 #include "confdefs.h"
4656 #include <netinet/in.h>
4658 struct ip_mreq mreq;
4661 if { (eval echo configure
:4662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4663 cat >> confdefs.h
<<\EOF
4664 #define HAVE_STRUCT_IP_MREQ 1
4667 echo "$ac_t""yes" 1>&6
4669 echo "configure: failed program was:" >&5
4670 cat conftest.
$ac_ext >&5
4672 echo "$ac_t""no" 1>&6
4676 echo $ac_n "checking whether struct sockaddr_in6 is in netinet/in.h""... $ac_c" 1>&6
4677 echo "configure:4678: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
4678 cat > conftest.
$ac_ext <<EOF
4679 #line 4680 "configure"
4680 #include "confdefs.h"
4681 #include <netinet/in.h>
4683 struct sockaddr_in6 addr6;
4686 if { (eval echo configure
:4687: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4688 cat >> confdefs.h
<<\EOF
4689 #define HAVE_INET6 1
4692 echo "$ac_t""yes" 1>&6
4694 echo "configure: failed program was:" >&5
4695 cat conftest.
$ac_ext >&5
4697 echo "$ac_t""no" 1>&6
4701 echo $ac_n "checking for socklen_t in sys/socket.h""... $ac_c" 1>&6
4702 echo "configure:4703: checking for socklen_t in sys/socket.h" >&5
4703 cat > conftest.
$ac_ext <<EOF
4704 #line 4705 "configure"
4705 #include "confdefs.h"
4706 #include <sys/socket.h>
4711 if { (eval echo configure
:4712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4713 cat >> confdefs.h
<<\EOF
4714 #define HAVE_SOCKLEN_T 1
4717 echo "$ac_t""yes" 1>&6
4719 echo "configure: failed program was:" >&5
4720 cat conftest.
$ac_ext >&5
4722 echo "$ac_t""no" 1>&6
4726 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
4727 echo "configure:4728: checking for tm_gmtoff in struct tm" >&5
4728 cat > conftest.
$ac_ext <<EOF
4729 #line 4730 "configure"
4730 #include "confdefs.h"
4733 struct tm tim; tim.tm_gmtoff = 0;
4736 if { (eval echo configure
:4737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4738 cat >> confdefs.h
<<\EOF
4739 #define STRUCT_TM_HAS_GMTOFF 1
4742 echo "$ac_t""yes" 1>&6
4744 echo "configure: failed program was:" >&5
4745 cat conftest.
$ac_ext >&5
4747 echo "$ac_t""no" 1>&6
4748 echo $ac_n "checking for global timezone variable""... $ac_c" 1>&6
4749 echo "configure:4750: checking for global timezone variable" >&5
4750 cat > conftest.
$ac_ext <<EOF
4751 #line 4752 "configure"
4752 #include "confdefs.h"
4758 if { (eval echo configure
:4759: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4760 cat >> confdefs.h
<<\EOF
4761 #define HAVE_TIMEZONE 1
4764 echo "$ac_t""yes" 1>&6
4766 echo "configure: failed program was:" >&5
4767 cat conftest.
$ac_ext >&5
4769 echo "$ac_t""no" 1>&6
4775 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4776 # for constant arguments. Useless!
4777 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4778 echo "configure:4779: checking for working alloca.h" >&5
4779 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4780 echo $ac_n "(cached) $ac_c" 1>&6
4782 cat > conftest.
$ac_ext <<EOF
4783 #line 4784 "configure"
4784 #include "confdefs.h"
4787 char *p = alloca(2 * sizeof(int));
4790 if { (eval echo configure
:4791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4792 ac_cv_header_alloca_h
=yes
4794 echo "configure: failed program was:" >&5
4795 cat conftest.
$ac_ext >&5
4797 ac_cv_header_alloca_h
=no
4802 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4803 if test $ac_cv_header_alloca_h = yes; then
4804 cat >> confdefs.h
<<\EOF
4805 #define HAVE_ALLOCA_H 1
4810 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4811 echo "configure:4812: checking for alloca" >&5
4812 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4813 echo $ac_n "(cached) $ac_c" 1>&6
4815 cat > conftest.
$ac_ext <<EOF
4816 #line 4817 "configure"
4817 #include "confdefs.h"
4820 # define alloca __builtin_alloca
4823 # include <malloc.h>
4824 # define alloca _alloca
4827 # include <alloca.h>
4832 # ifndef alloca /* predefined by HP cc +Olibcalls */
4841 char *p = (char *) alloca(1);
4844 if { (eval echo configure
:4845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4846 ac_cv_func_alloca_works
=yes
4848 echo "configure: failed program was:" >&5
4849 cat conftest.
$ac_ext >&5
4851 ac_cv_func_alloca_works
=no
4856 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4857 if test $ac_cv_func_alloca_works = yes; then
4858 cat >> confdefs.h
<<\EOF
4859 #define HAVE_ALLOCA 1
4864 if test $ac_cv_func_alloca_works = no
; then
4865 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4866 # that cause trouble. Some versions do not even contain alloca or
4867 # contain a buggy version. If you still want to use their alloca,
4868 # use ar to extract alloca.o from them instead of compiling alloca.c.
4869 ALLOCA
=alloca.
${ac_objext}
4870 cat >> confdefs.h
<<\EOF
4875 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4876 echo "configure:4877: checking whether alloca needs Cray hooks" >&5
4877 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4878 echo $ac_n "(cached) $ac_c" 1>&6
4880 cat > conftest.
$ac_ext <<EOF
4881 #line 4882 "configure"
4882 #include "confdefs.h"
4883 #if defined(CRAY) && ! defined(CRAY2)
4890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4891 egrep "webecray" >/dev
/null
2>&1; then
4902 echo "$ac_t""$ac_cv_os_cray" 1>&6
4903 if test $ac_cv_os_cray = yes; then
4904 for ac_func
in _getb67 GETB67 getb67
; do
4905 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4906 echo "configure:4907: checking for $ac_func" >&5
4907 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4908 echo $ac_n "(cached) $ac_c" 1>&6
4910 cat > conftest.
$ac_ext <<EOF
4911 #line 4912 "configure"
4912 #include "confdefs.h"
4913 /* System header to define __stub macros and hopefully few prototypes,
4914 which can conflict with char $ac_func(); below. */
4916 /* Override any gcc2 internal prototype to avoid an error. */
4917 /* We use char because int might match the return type of a gcc2
4918 builtin and then its argument prototype would still apply. */
4923 /* The GNU C library defines this for functions which it implements
4924 to always fail with ENOSYS. Some functions are actually named
4925 something starting with __ and the normal name is an alias. */
4926 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4934 if { (eval echo configure
:4935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4936 eval "ac_cv_func_$ac_func=yes"
4938 echo "configure: failed program was:" >&5
4939 cat conftest.
$ac_ext >&5
4941 eval "ac_cv_func_$ac_func=no"
4946 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4947 echo "$ac_t""yes" 1>&6
4948 cat >> confdefs.h
<<EOF
4949 #define CRAY_STACKSEG_END $ac_func
4954 echo "$ac_t""no" 1>&6
4960 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4961 echo "configure:4962: checking stack direction for C alloca" >&5
4962 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4963 echo $ac_n "(cached) $ac_c" 1>&6
4965 if test "$cross_compiling" = yes; then
4966 ac_cv_c_stack_direction
=0
4968 cat > conftest.
$ac_ext <<EOF
4969 #line 4970 "configure"
4970 #include "confdefs.h"
4971 find_stack_direction ()
4973 static char *addr = 0;
4978 return find_stack_direction ();
4981 return (&dummy > addr) ? 1 : -1;
4985 exit (find_stack_direction() < 0);
4988 if { (eval echo configure
:4989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4990 ac_cv_c_stack_direction
=1
4992 echo "configure: failed program was:" >&5
4993 cat conftest.
$ac_ext >&5
4995 ac_cv_c_stack_direction
=-1
5002 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5003 cat >> confdefs.h
<<EOF
5004 #define STACK_DIRECTION $ac_cv_c_stack_direction
5012 # Extract the first word of "$ac_prog", so it can be a program name with args.
5013 set dummy
$ac_prog; ac_word
=$2
5014 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5015 echo "configure:5016: checking for $ac_word" >&5
5016 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
5017 echo $ac_n "(cached) $ac_c" 1>&6
5019 if test -n "$PERL"; then
5020 ac_cv_prog_PERL
="$PERL" # Let the user override the test.
5022 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5024 for ac_dir
in $ac_dummy; do
5025 test -z "$ac_dir" && ac_dir
=.
5026 if test -f $ac_dir/$ac_word; then
5027 ac_cv_prog_PERL
="$ac_prog"
5034 PERL
="$ac_cv_prog_PERL"
5035 if test -n "$PERL"; then
5036 echo "$ac_t""$PERL" 1>&6
5038 echo "$ac_t""no" 1>&6
5041 test -n "$PERL" && break
5043 test -n "$PERL" || PERL
="false"
5048 SIGNAL_HANDLER
=include
/i386-signal.h
5051 SIGNAL_HANDLER
=include
/sparc-signal.h
5054 SIGNAL_HANDLER
=include
/default-signal.h
5060 if test "${multilib}" = "yes"; then
5061 multilib_arg
="--enable-multilib"
5070 cat > confcache
<<\EOF
5071 # This file is a shell script that caches the results of configure
5072 # tests run on this system so they can be shared between configure
5073 # scripts and configure runs. It is not useful on other systems.
5074 # If it contains results you don't want to keep, you may remove or edit it.
5076 # By default, configure uses ./config.cache as the cache file,
5077 # creating it if it does not exist already. You can give configure
5078 # the --cache-file=FILE option to use a different cache file; that is
5079 # what configure does when it calls configure scripts in
5080 # subdirectories, so they share the cache.
5081 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5082 # config.status only pays attention to the cache file if you give it the
5083 # --recheck option to rerun configure.
5086 # The following way of writing the cache mishandles newlines in values,
5087 # but we know of no workaround that is simple, portable, and efficient.
5088 # So, don't put newlines in cache variables' values.
5089 # Ultrix sh set writes to stderr and can't be redirected directly,
5090 # and sets the high bit in the cache file unless we assign to the vars.
5092 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5094 # `set' does not quote correctly, so add quotes (double-quote substitution
5095 # turns \\\\ into \\, and sed turns \\ into \).
5097 -e "s/'/'\\\\''/g" \
5098 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5101 # `set' quotes correctly as required by POSIX, so do not add quotes.
5102 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5105 if cmp -s $cache_file confcache
; then
5108 if test -w $cache_file; then
5109 echo "updating cache $cache_file"
5110 cat confcache
> $cache_file
5112 echo "not updating unwritable cache $cache_file"
5117 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5119 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5120 # Let make expand exec_prefix.
5121 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5123 # Any assignment to VPATH causes Sun make to only execute
5124 # the first set of double-colon rules, so remove it if not needed.
5125 # If there is a colon in the path, we need to keep it.
5126 if test "x$srcdir" = x.
; then
5127 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
5130 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5132 DEFS
=-DHAVE_CONFIG_H
5134 # Without the "./", some shells look in PATH for config.status.
5135 : ${CONFIG_STATUS=./config.status}
5137 echo creating
$CONFIG_STATUS
5138 rm -f $CONFIG_STATUS
5139 cat > $CONFIG_STATUS <<EOF
5141 # Generated automatically by configure.
5142 # Run this file to recreate the current configuration.
5143 # This directory was configured as follows,
5144 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5146 # $0 $ac_configure_args
5148 # Compiler output produced by configure, useful for debugging
5149 # configure, is in ./config.log if it exists.
5151 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5154 case "\$ac_option" in
5155 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5156 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5157 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5158 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5159 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5161 -help | --help | --hel | --he | --h)
5162 echo "\$ac_cs_usage"; exit 0 ;;
5163 *) echo "\$ac_cs_usage"; exit 1 ;;
5167 ac_given_srcdir=$srcdir
5168 ac_given_INSTALL="$INSTALL"
5170 trap 'rm -fr `echo "Makefile libgcj.spec gcj/Makefile include/Makefile testsuite/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5172 cat >> $CONFIG_STATUS <<EOF
5174 # Protect against being on the right side of a sed subst in config.status.
5175 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5176 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5180 s%@CFLAGS@%$CFLAGS%g
5181 s%@CPPFLAGS@%$CPPFLAGS%g
5182 s%@CXXFLAGS@%$CXXFLAGS%g
5183 s%@FFLAGS@%$FFLAGS%g
5185 s%@LDFLAGS@%$LDFLAGS%g
5187 s%@exec_prefix@%$exec_prefix%g
5188 s%@prefix@%$prefix%g
5189 s%@program_transform_name@%$program_transform_name%g
5190 s%@bindir@%$bindir%g
5191 s%@sbindir@%$sbindir%g
5192 s%@libexecdir@%$libexecdir%g
5193 s%@datadir@%$datadir%g
5194 s%@sysconfdir@%$sysconfdir%g
5195 s%@sharedstatedir@%$sharedstatedir%g
5196 s%@localstatedir@%$localstatedir%g
5197 s%@libdir@%$libdir%g
5198 s%@includedir@%$includedir%g
5199 s%@oldincludedir@%$oldincludedir%g
5200 s%@infodir@%$infodir%g
5201 s%@mandir@%$mandir%g
5203 s%@host_alias@%$host_alias%g
5204 s%@host_cpu@%$host_cpu%g
5205 s%@host_vendor@%$host_vendor%g
5206 s%@host_os@%$host_os%g
5207 s%@target@%$target%g
5208 s%@target_alias@%$target_alias%g
5209 s%@target_cpu@%$target_cpu%g
5210 s%@target_vendor@%$target_vendor%g
5211 s%@target_os@%$target_os%g
5213 s%@build_alias@%$build_alias%g
5214 s%@build_cpu@%$build_cpu%g
5215 s%@build_vendor@%$build_vendor%g
5216 s%@build_os@%$build_os%g
5217 s%@libgcj_basedir@%$libgcj_basedir%g
5218 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5219 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5220 s%@INSTALL_DATA@%$INSTALL_DATA%g
5221 s%@PACKAGE@%$PACKAGE%g
5222 s%@VERSION@%$VERSION%g
5223 s%@ACLOCAL@%$ACLOCAL%g
5224 s%@AUTOCONF@%$AUTOCONF%g
5225 s%@AUTOMAKE@%$AUTOMAKE%g
5226 s%@AUTOHEADER@%$AUTOHEADER%g
5227 s%@MAKEINFO@%$MAKEINFO%g
5228 s%@SET_MAKE@%$SET_MAKE%g
5233 s%@RANLIB@%$RANLIB%g
5234 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
5235 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
5237 s%@EXEEXT@%$EXEEXT%g
5238 s%@LIBGCJ_CFLAGS@%$LIBGCJ_CFLAGS%g
5239 s%@LIBGCJ_CXXFLAGS@%$LIBGCJ_CXXFLAGS%g
5240 s%@LIBGCJ_JAVAFLAGS@%$LIBGCJ_JAVAFLAGS%g
5243 s%@USE_SYMBOL_UNDERSCORE@%$USE_SYMBOL_UNDERSCORE%g
5245 s%@DLLTOOL@%$DLLTOOL%g
5246 s%@LIBTOOL@%$LIBTOOL%g
5247 s%@COMPPATH@%$COMPPATH%g
5248 s%@TESTSUBDIR_TRUE@%$TESTSUBDIR_TRUE%g
5249 s%@TESTSUBDIR_FALSE@%$TESTSUBDIR_FALSE%g
5251 s%@SYSTEMSPEC@%$SYSTEMSPEC%g
5252 s%@ZLIBSPEC@%$ZLIBSPEC%g
5253 s%@GCLIBS@%$GCLIBS%g
5254 s%@GCINCS@%$GCINCS%g
5255 s%@GCDEPS@%$GCDEPS%g
5256 s%@GCOBJS@%$GCOBJS%g
5257 s%@GCSPEC@%$GCSPEC%g
5258 s%@THREADLIBS@%$THREADLIBS%g
5259 s%@THREADINCS@%$THREADINCS%g
5260 s%@THREADDEPS@%$THREADDEPS%g
5261 s%@THREADOBJS@%$THREADOBJS%g
5262 s%@THREADSPEC@%$THREADSPEC%g
5263 s%@USING_GCC_TRUE@%$USING_GCC_TRUE%g
5264 s%@USING_GCC_FALSE@%$USING_GCC_FALSE%g
5268 s%@DIVIDESPEC@%$DIVIDESPEC%g
5269 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
5270 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
5271 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
5272 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
5273 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
5274 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
5275 s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
5276 s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
5277 s%@EH_COMMON_INCLUDE@%$EH_COMMON_INCLUDE%g
5278 s%@AM_RUNTESTFLAGS@%$AM_RUNTESTFLAGS%g
5279 s%@ALLOCA@%$ALLOCA%g
5286 cat >> $CONFIG_STATUS <<\EOF
5288 # Split the substitutions into bite-sized pieces for seds with
5289 # small command number limits, like on Digital OSF/1 and HP-UX.
5290 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5291 ac_file
=1 # Number of current file.
5292 ac_beg
=1 # First line for current file.
5293 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5296 while $ac_more_lines; do
5297 if test $ac_beg -gt 1; then
5298 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5300 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5302 if test ! -s conftest.s
$ac_file; then
5304 rm -f conftest.s
$ac_file
5306 if test -z "$ac_sed_cmds"; then
5307 ac_sed_cmds
="sed -f conftest.s$ac_file"
5309 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5311 ac_file
=`expr $ac_file + 1`
5313 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5316 if test -z "$ac_sed_cmds"; then
5321 cat >> $CONFIG_STATUS <<EOF
5323 CONFIG_FILES=\${CONFIG_FILES-"Makefile libgcj.spec gcj/Makefile include/Makefile testsuite/Makefile"}
5325 cat >> $CONFIG_STATUS <<\EOF
5326 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5327 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5329 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5330 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5331 *) ac_file_in
="${ac_file}.in" ;;
5334 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5336 # Remove last slash and all that follows it. Not all systems have dirname.
5337 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5338 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5339 # The file is in a subdirectory.
5340 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5341 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5342 # A "../" for each directory in $ac_dir_suffix.
5343 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5345 ac_dir_suffix
= ac_dots
=
5348 case "$ac_given_srcdir" in
5350 if test -z "$ac_dots"; then top_srcdir
=.
5351 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5352 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5354 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5355 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5358 case "$ac_given_INSTALL" in
5359 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
5360 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
5363 echo creating
"$ac_file"
5365 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5367 *Makefile
*) ac_comsub
="1i\\
5368 # $configure_input" ;;
5372 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5374 s%@configure_input@%$configure_input%g
5375 s%@srcdir@%$srcdir%g
5376 s%@top_srcdir@%$top_srcdir%g
5377 s%@INSTALL@%$INSTALL%g
5378 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5382 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5383 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5385 # ac_d sets the value in "#define NAME VALUE" lines.
5386 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5387 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
5390 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5391 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5392 ac_uB
='\([ ]\)%\1#\2define\3'
5395 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5396 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5397 ac_eB
='$%\1#\2define\3'
5401 if test "${CONFIG_HEADERS+set}" != set; then
5403 cat >> $CONFIG_STATUS <<EOF
5404 CONFIG_HEADERS="include/config.h"
5406 cat >> $CONFIG_STATUS <<\EOF
5408 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
5409 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5411 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5412 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5413 *) ac_file_in
="${ac_file}.in" ;;
5416 echo creating
$ac_file
5418 rm -f conftest.frag conftest.
in conftest.out
5419 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5420 cat $ac_file_inputs > conftest.
in
5424 # Transform confdefs.h into a sed script conftest.vals that substitutes
5425 # the proper values into config.h.in to produce config.h. And first:
5426 # Protect against being on the right side of a sed subst in config.status.
5427 # Protect against being in an unquoted here document in config.status.
5429 cat > conftest.hdr
<<\EOF
5432 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5436 sed -n -f conftest.hdr confdefs.h > conftest.vals
5439 # This sed command replaces #undef with comments. This is necessary, for
5440 # example, in the case of _POSIX_SOURCE, which is predefined and required
5441 # on some systems where configure will not decide to define it.
5442 cat >> conftest.vals <<\EOF
5443 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5446 # Break up conftest.vals because some shells have a limit on
5447 # the size of here documents, and old seds have small limits too.
5452 ac_lines=`grep -c . conftest.vals
`
5453 # grep -c gives empty output for an empty file on some AIX systems.
5454 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5455 # Write a limited-size here document to conftest.frag.
5456 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5457 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5459 sed -f conftest.frag conftest.in > conftest.out
5461 mv conftest.out conftest.in
5463 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5465 mv conftest.tail conftest.vals
5469 cat >> $CONFIG_STATUS <<\EOF
5470 rm -f conftest.frag conftest.h
5471 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5472 cat conftest.in >> conftest.h
5474 if cmp -s $ac_file conftest.h 2>/dev/null; then
5475 echo "$ac_file is unchanged"
5478 # Remove last slash and all that follows it. Not all systems have dirname.
5479 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
5480 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5481 # The file is in a subdirectory.
5482 test ! -d "$ac_dir" && mkdir "$ac_dir"
5485 mv conftest.h $ac_file
5491 cat >> $CONFIG_STATUS <<EOF
5492 ac_sources="java/io/$FILE_DESCRIPTOR java/lang/${PROCESS}Process.java java/lang/nat${PROCESS}Process.cc include/$GCHDR include/$THREADH $SIGNAL_HANDLER"
5493 ac_dests="java/io/natFileDescriptor.cc java/lang/ConcreteProcess.java java/lang/natConcreteProcess.cc include/java-gc.h include/java-threads.h include/java-signal.h"
5496 cat >> $CONFIG_STATUS <<\EOF
5497 srcdir=$ac_given_srcdir
5498 while test -n "$ac_sources"; do
5499 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
5500 set $ac_sources; ac_source=$1; shift; ac_sources=$*
5502 echo "linking $srcdir/$ac_source to $ac_dest"
5504 if test ! -r $srcdir/$ac_source; then
5505 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
5509 # Make relative symlinks.
5510 # Remove last slash and all that follows it. Not all systems have dirname.
5511 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
5512 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
5513 # The dest file is in a subdirectory.
5514 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
5515 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
5516 # A "../" for each directory in $ac_dest_dir_suffix.
5517 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
5519 ac_dest_dir_suffix= ac_dots=
5523 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
5524 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
5527 # Make a symlink if possible; otherwise try a hard link.
5528 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
5529 ln $srcdir/$ac_source $ac_dest; then :
5531 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
5535 cat >> $CONFIG_STATUS <<EOF
5540 with_multisubdir=${with_multisubdir}
5541 ac_configure_args="${multilib_arg} ${ac_configure_args}"
5542 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
5543 libgcj_basedir=${libgcj_basedir}
5548 cat >> $CONFIG_STATUS <<\EOF
5549 test -z "$CONFIG_HEADERS" || echo timestamp > include/stamp-h
5550 if test -n "$CONFIG_FILES"; then
5551 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
5555 chmod +x $CONFIG_STATUS
5556 rm -fr confdefs* $ac_clean_files
5557 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1