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 avoid locking (might break parallel builds)"
35 --with-pic try to use only PIC/non-PIC objects [default=use both]"
37 --enable-fast-character prefer speed over size for Character"
39 --disable-getenv-properties
40 don't set system properties from GCJ_PROPERTIES"
42 --enable-libgcj-debug enable runtime debugging code"
44 --enable-interpreter enable interpreter"
46 --enable-sjlj-exceptions use setjmp/longjmp exceptions"
48 --disable-java-net disable java.net"
50 --disable-jvmpi disable JVMPI support"
52 --with-ecos enable runtime eCos target support"
54 --with-system-zlib use installed libz"
56 --enable-java-gc=TYPE choose garbage collector [boehm]"
58 --enable-threads=TYPE choose threading package"
60 # Initialize some variables set by options.
61 # The variables have the same names as the options, with
62 # dashes changed to underlines.
64 cache_file
=.
/config.cache
73 program_transform_name
=s
,x
,x
,
81 bindir
='${exec_prefix}/bin'
82 sbindir
='${exec_prefix}/sbin'
83 libexecdir
='${exec_prefix}/libexec'
84 datadir
='${prefix}/share'
85 sysconfdir
='${prefix}/etc'
86 sharedstatedir
='${prefix}/com'
87 localstatedir
='${prefix}/var'
88 libdir
='${exec_prefix}/lib'
89 includedir
='${prefix}/include'
90 oldincludedir
='/usr/include'
91 infodir
='${prefix}/info'
92 mandir
='${prefix}/man'
94 # Initialize some other variables.
97 SHELL
=${CONFIG_SHELL-/bin/sh}
98 # Maximum number of lines to put in a shell here document.
105 # If the previous option needs an argument, assign it.
106 if test -n "$ac_prev"; then
107 eval "$ac_prev=\$ac_option"
113 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
117 # Accept the important Cygnus configure options, so we can diagnose typos.
121 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
123 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
124 bindir
="$ac_optarg" ;;
126 -build |
--build |
--buil |
--bui |
--bu)
128 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
129 build
="$ac_optarg" ;;
131 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
132 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
133 ac_prev
=cache_file
;;
134 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
135 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
136 cache_file
="$ac_optarg" ;;
138 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
140 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
142 datadir
="$ac_optarg" ;;
144 -disable-* |
--disable-*)
145 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
146 # Reject names that are not valid shell variable names.
147 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
148 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
150 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
151 eval "enable_${ac_feature}=no" ;;
153 -enable-* |
--enable-*)
154 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
155 # Reject names that are not valid shell variable names.
156 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
157 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
159 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
164 eval "enable_${ac_feature}='$ac_optarg'" ;;
166 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
167 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
168 |
--exec |
--exe |
--ex)
169 ac_prev
=exec_prefix
;;
170 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
171 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
172 |
--exec=* |
--exe=* |
--ex=*)
173 exec_prefix
="$ac_optarg" ;;
175 -gas |
--gas |
--ga |
--g)
176 # Obsolete; use --with-gas.
179 -help |
--help |
--hel |
--he)
180 # Omit some internal or obsolete options to make the list less imposing.
181 # This message is too long to be a string in the A/UX 3.1 sh.
183 Usage: configure [options] [host]
184 Options: [defaults in brackets after descriptions]
186 --cache-file=FILE cache test results in FILE
187 --help print this message
188 --no-create do not create output files
189 --quiet, --silent do not print \`checking...' messages
190 --version print the version of autoconf that created configure
191 Directory and file names:
192 --prefix=PREFIX install architecture-independent files in PREFIX
194 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
196 --bindir=DIR user executables in DIR [EPREFIX/bin]
197 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
198 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
199 --datadir=DIR read-only architecture-independent data in DIR
201 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
202 --sharedstatedir=DIR modifiable architecture-independent data in DIR
204 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
205 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
206 --includedir=DIR C header files in DIR [PREFIX/include]
207 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
208 --infodir=DIR info documentation in DIR [PREFIX/info]
209 --mandir=DIR man documentation in DIR [PREFIX/man]
210 --srcdir=DIR find the sources in DIR [configure dir or ..]
211 --program-prefix=PREFIX prepend PREFIX to installed program names
212 --program-suffix=SUFFIX append SUFFIX to installed program names
213 --program-transform-name=PROGRAM
214 run sed PROGRAM on installed program names
218 --build=BUILD configure for building on BUILD [BUILD=HOST]
219 --host=HOST configure for HOST [guessed]
220 --target=TARGET configure for TARGET [TARGET=HOST]
221 Features and packages:
222 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
223 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
224 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
225 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
226 --x-includes=DIR X include files are in DIR
227 --x-libraries=DIR X library files are in DIR
229 if test -n "$ac_help"; then
230 echo "--enable and --with options recognized:$ac_help"
234 -host |
--host |
--hos |
--ho)
236 -host=* |
--host=* |
--hos=* |
--ho=*)
239 -includedir |
--includedir |
--includedi |
--included |
--include \
240 |
--includ |
--inclu |
--incl |
--inc)
241 ac_prev
=includedir
;;
242 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
243 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
244 includedir
="$ac_optarg" ;;
246 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
248 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
249 infodir
="$ac_optarg" ;;
251 -libdir |
--libdir |
--libdi |
--libd)
253 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
254 libdir
="$ac_optarg" ;;
256 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
257 |
--libexe |
--libex |
--libe)
258 ac_prev
=libexecdir
;;
259 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
260 |
--libexe=* |
--libex=* |
--libe=*)
261 libexecdir
="$ac_optarg" ;;
263 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
264 |
--localstate |
--localstat |
--localsta |
--localst \
265 |
--locals |
--local |
--loca |
--loc |
--lo)
266 ac_prev
=localstatedir
;;
267 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
268 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
269 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
270 localstatedir
="$ac_optarg" ;;
272 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
274 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
275 mandir
="$ac_optarg" ;;
278 # Obsolete; use --without-fp.
281 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
285 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
286 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
289 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
290 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
291 |
--oldin |
--oldi |
--old |
--ol |
--o)
292 ac_prev
=oldincludedir
;;
293 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
294 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
295 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
296 oldincludedir
="$ac_optarg" ;;
298 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
300 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
301 prefix
="$ac_optarg" ;;
303 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
304 |
--program-pre |
--program-pr |
--program-p)
305 ac_prev
=program_prefix
;;
306 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
307 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
308 program_prefix
="$ac_optarg" ;;
310 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
311 |
--program-suf |
--program-su |
--program-s)
312 ac_prev
=program_suffix
;;
313 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
314 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
315 program_suffix
="$ac_optarg" ;;
317 -program-transform-name |
--program-transform-name \
318 |
--program-transform-nam |
--program-transform-na \
319 |
--program-transform-n |
--program-transform- \
320 |
--program-transform |
--program-transfor \
321 |
--program-transfo |
--program-transf \
322 |
--program-trans |
--program-tran \
323 |
--progr-tra |
--program-tr |
--program-t)
324 ac_prev
=program_transform_name
;;
325 -program-transform-name=* |
--program-transform-name=* \
326 |
--program-transform-nam=* |
--program-transform-na=* \
327 |
--program-transform-n=* |
--program-transform-=* \
328 |
--program-transform=* |
--program-transfor=* \
329 |
--program-transfo=* |
--program-transf=* \
330 |
--program-trans=* |
--program-tran=* \
331 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
332 program_transform_name
="$ac_optarg" ;;
334 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
335 |
-silent |
--silent |
--silen |
--sile |
--sil)
338 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
340 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
342 sbindir
="$ac_optarg" ;;
344 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
345 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
346 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
348 ac_prev
=sharedstatedir
;;
349 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
350 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
351 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
353 sharedstatedir
="$ac_optarg" ;;
355 -site |
--site |
--sit)
357 -site=* |
--site=* |
--sit=*)
360 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
362 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
363 srcdir
="$ac_optarg" ;;
365 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
366 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
367 ac_prev
=sysconfdir
;;
368 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
369 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
370 sysconfdir
="$ac_optarg" ;;
372 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
374 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
375 target
="$ac_optarg" ;;
377 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
380 -version |
--version |
--versio |
--versi |
--vers)
381 echo "configure generated by autoconf version 2.13"
385 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
386 # Reject names that are not valid shell variable names.
387 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
388 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
390 ac_package
=`echo $ac_package| sed 's/-/_/g'`
395 eval "with_${ac_package}='$ac_optarg'" ;;
397 -without-* |
--without-*)
398 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
399 # Reject names that are not valid shell variable names.
400 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
401 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
403 ac_package
=`echo $ac_package| sed 's/-/_/g'`
404 eval "with_${ac_package}=no" ;;
407 # Obsolete; use --with-x.
410 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
411 |
--x-incl |
--x-inc |
--x-in |
--x-i)
412 ac_prev
=x_includes
;;
413 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
414 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
415 x_includes
="$ac_optarg" ;;
417 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
418 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
419 ac_prev
=x_libraries
;;
420 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
421 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
422 x_libraries
="$ac_optarg" ;;
424 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
428 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
429 echo "configure: warning: $ac_option: invalid host type" 1>&2
431 if test "x$nonopt" != xNONE
; then
432 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
440 if test -n "$ac_prev"; then
441 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
444 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
446 # File descriptor usage:
449 # 2 errors and warnings
450 # 3 some systems may open it to /dev/tty
451 # 4 used on the Kubota Titan
452 # 6 checking for... messages and results
453 # 5 compiler messages saved in config.log
454 if test "$silent" = yes; then
462 This file contains any messages produced by compilers while
463 running configure, to aid debugging if configure makes a mistake.
466 # Strip out --no-create and --no-recursion so they do not pile up.
467 # Also quote any args containing shell metacharacters.
472 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
473 |
--no-cr |
--no-c) ;;
474 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
475 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
476 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
477 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
478 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
483 # Only set these to C if already set. These must not be set unconditionally
484 # because not all systems understand e.g. LANG=C (notably SCO).
485 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
486 # Non-C LC_CTYPE values break the ctype check.
487 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
488 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
489 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
490 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
492 # confdefs.h avoids OS command line length limits that DEFS can exceed.
493 rm -rf conftest
* confdefs.h
494 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
497 # A filename unique to this package, relative to the directory that
498 # configure is in, which we can look for to find out if srcdir is correct.
499 ac_unique_file
=java
/lang
/System.java
501 # Find the source files, if location was not specified.
502 if test -z "$srcdir"; then
503 ac_srcdir_defaulted
=yes
504 # Try the directory containing this script, then its parent.
506 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
507 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
509 if test ! -r $srcdir/$ac_unique_file; then
513 ac_srcdir_defaulted
=no
515 if test ! -r $srcdir/$ac_unique_file; then
516 if test "$ac_srcdir_defaulted" = yes; then
517 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
519 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
522 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
524 # Prefer explicitly selected file to automatically selected ones.
525 if test -z "$CONFIG_SITE"; then
526 if test "x$prefix" != xNONE
; then
527 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
529 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
532 for ac_site_file
in $CONFIG_SITE; do
533 if test -r "$ac_site_file"; then
534 echo "loading site script $ac_site_file"
539 if test -r "$cache_file"; then
540 echo "loading cache $cache_file"
543 echo "creating cache $cache_file"
548 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
549 ac_cpp
='$CPP $CPPFLAGS'
550 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
551 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
552 cross_compiling
=$ac_cv_prog_cc_cross
556 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
557 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
558 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
565 ac_n
= ac_c
='\c' ac_t
=
571 for ac_dir
in ..
$srcdir/..
; do
572 if test -f $ac_dir/install-sh
; then
574 ac_install_sh
="$ac_aux_dir/install-sh -c"
576 elif test -f $ac_dir/install.sh
; then
578 ac_install_sh
="$ac_aux_dir/install.sh -c"
582 if test -z "$ac_aux_dir"; then
583 { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
585 ac_config_guess
=$ac_aux_dir/config.guess
586 ac_config_sub
=$ac_aux_dir/config.sub
587 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
591 # Do some error checking and defaulting for the host and target type.
593 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
596 # 1. You are not allowed to specify --host, --target, and nonopt at the
598 # 2. Host defaults to nonopt.
599 # 3. If nonopt is not specified, then host defaults to the current host,
600 # as determined by config.guess.
601 # 4. Target and build default to nonopt.
602 # 5. If nonopt is not specified, then target and build default to host.
604 # The aliases save the names the user supplied, while $host etc.
605 # will get canonicalized.
606 case $host---$target---$nonopt in
607 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
608 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
612 # Make sure we can run config.sub.
613 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
614 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
617 echo $ac_n "checking host system type""... $ac_c" 1>&6
618 echo "configure:619: checking host system type" >&5
621 case "$host_alias" in
625 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
626 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
628 *) host_alias
=$nonopt ;;
632 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
633 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
634 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
635 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
636 echo "$ac_t""$host" 1>&6
638 echo $ac_n "checking target system type""... $ac_c" 1>&6
639 echo "configure:640: checking target system type" >&5
642 case "$target_alias" in
645 NONE
) target_alias
=$host_alias ;;
646 *) target_alias
=$nonopt ;;
650 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
651 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
652 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
653 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
654 echo "$ac_t""$target" 1>&6
656 echo $ac_n "checking build system type""... $ac_c" 1>&6
657 echo "configure:658: checking build system type" >&5
660 case "$build_alias" in
663 NONE
) build_alias
=$host_alias ;;
664 *) build_alias
=$nonopt ;;
668 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
669 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
670 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
671 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
672 echo "$ac_t""$build" 1>&6
674 test "$host_alias" != "$target_alias" &&
675 test "$program_prefix$program_suffix$program_transform_name" = \
677 program_prefix
=${target_alias}-
680 # Check whether --with-target-subdir or --without-target-subdir was given.
681 if test "${with_target_subdir+set}" = set; then
682 withval
="$with_target_subdir"
686 # Check whether --with-cross-host or --without-cross-host was given.
687 if test "${with_cross_host+set}" = set; then
688 withval
="$with_cross_host"
693 # Find a good install program. We prefer a C program (faster),
694 # so one script is as good as another. But avoid the broken or
695 # incompatible versions:
696 # SysV /etc/install, /usr/sbin/install
697 # SunOS /usr/etc/install
700 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
701 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
702 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
703 # ./install, which can be erroneously created by make from ./install.sh.
704 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
705 echo "configure:706: checking for a BSD compatible install" >&5
706 if test -z "$INSTALL"; then
707 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
708 echo $ac_n "(cached) $ac_c" 1>&6
710 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
711 for ac_dir
in $PATH; do
712 # Account for people who put trailing slashes in PATH elements.
714 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
716 # OSF1 and SCO ODT 3.0 have their own names for install.
717 # Don't use installbsd from OSF since it installs stuff as root
719 for ac_prog
in ginstall scoinst
install; do
720 if test -f $ac_dir/$ac_prog; then
721 if test $ac_prog = install &&
722 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
723 # AIX install. It has an incompatible calling convention.
726 ac_cv_path_install
="$ac_dir/$ac_prog -c"
737 if test "${ac_cv_path_install+set}" = set; then
738 INSTALL
="$ac_cv_path_install"
740 # As a last resort, use the slow shell script. We don't cache a
741 # path for INSTALL within a source directory, because that will
742 # break other packages using the cache if that directory is
743 # removed, or if the path is relative.
744 INSTALL
="$ac_install_sh"
747 echo "$ac_t""$INSTALL" 1>&6
749 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
750 # It thinks the first close brace ends the variable substitution.
751 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
753 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
755 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
757 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
758 echo "configure:759: checking whether build environment is sane" >&5
761 echo timestamp
> conftestfile
762 # Do `set' in a subshell so we don't clobber the current shell's
763 # arguments. Must try -L first in case configure is actually a
764 # symlink; some systems play weird games with the mod time of symlinks
765 # (eg FreeBSD returns the mod time of the symlink's containing
768 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
769 if test "$*" = "X"; then
771 set X
`ls -t $srcdir/configure conftestfile`
773 if test "$*" != "X $srcdir/configure conftestfile" \
774 && test "$*" != "X conftestfile $srcdir/configure"; then
776 # If neither matched, then we have a broken ls. This can happen
777 # if, for instance, CONFIG_SHELL is bash and it inherits a
778 # broken ls alias from the environment. This has actually
779 # happened. Such a system could not be considered "sane".
780 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
781 alias in your environment" 1>&2; exit 1; }
784 test "$2" = conftestfile
790 { echo "configure: error: newly created file is older than distributed files!
791 Check your system clock" 1>&2; exit 1; }
794 echo "$ac_t""yes" 1>&6
795 if test "$program_transform_name" = s
,x
,x
,; then
796 program_transform_name
=
798 # Double any \ or $. echo might interpret backslashes.
799 cat <<\EOF_SED
> conftestsed
800 s
,\\,\\\\,g
; s
,\$
,$$
,g
802 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
805 test "$program_prefix" != NONE
&&
806 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
807 # Use a double $ so make ignores it.
808 test "$program_suffix" != NONE
&&
809 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
811 # sed with no file args requires a program.
812 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
814 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
815 echo "configure:816: checking whether ${MAKE-make} sets \${MAKE}" >&5
816 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
817 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
818 echo $ac_n "(cached) $ac_c" 1>&6
820 cat > conftestmake
<<\EOF
822 @
echo 'ac_maketemp="${MAKE}"'
824 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
825 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
826 if test -n "$ac_maketemp"; then
827 eval ac_cv_prog_make_
${ac_make}_set
=yes
829 eval ac_cv_prog_make_
${ac_make}_set
=no
833 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
834 echo "$ac_t""yes" 1>&6
837 echo "$ac_t""no" 1>&6
838 SET_MAKE
="MAKE=${MAKE-make}"
841 if test $host != $build; then
842 ac_tool_prefix
=${host_alias}-
847 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
848 echo "configure:849: checking for Cygwin environment" >&5
849 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
850 echo $ac_n "(cached) $ac_c" 1>&6
852 cat > conftest.
$ac_ext <<EOF
853 #line 854 "configure"
854 #include "confdefs.h"
859 #define __CYGWIN__ __CYGWIN32__
864 if { (eval echo configure
:865: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
868 echo "configure: failed program was:" >&5
869 cat conftest.
$ac_ext >&5
877 echo "$ac_t""$ac_cv_cygwin" 1>&6
879 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
880 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
881 echo "configure:882: checking for mingw32 environment" >&5
882 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
883 echo $ac_n "(cached) $ac_c" 1>&6
885 cat > conftest.
$ac_ext <<EOF
886 #line 887 "configure"
887 #include "confdefs.h"
893 if { (eval echo configure
:894: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
897 echo "configure: failed program was:" >&5
898 cat conftest.
$ac_ext >&5
906 echo "$ac_t""$ac_cv_mingw32" 1>&6
908 test "$ac_cv_mingw32" = yes && MINGW32
=yes
910 # Check whether --enable-multilib or --disable-multilib was given.
911 if test "${enable_multilib+set}" = set; then
912 enableval
="$enable_multilib"
913 case "${enableval}" in
916 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
923 if test "${srcdir}" = "."; then
924 if test "${with_target_subdir}" != "."; then
925 libgcj_basedir
="${srcdir}/${with_multisrctop}../."
927 libgcj_basedir
="${srcdir}/${with_multisrctop}."
930 libgcj_basedir
="${srcdir}/."
935 # Make sure we can run config.sub.
936 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
937 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
940 echo $ac_n "checking host system type""... $ac_c" 1>&6
941 echo "configure:942: checking host system type" >&5
944 case "$host_alias" in
948 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
949 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
951 *) host_alias
=$nonopt ;;
955 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
956 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
957 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
958 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
959 echo "$ac_t""$host" 1>&6
965 # Extract the first word of "gcc", so it can be a program name with args.
966 set dummy gcc
; ac_word
=$2
967 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
968 echo "configure:969: checking for $ac_word" >&5
969 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
970 echo $ac_n "(cached) $ac_c" 1>&6
972 if test -n "$CC"; then
973 ac_cv_prog_CC
="$CC" # Let the user override the test.
975 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
977 for ac_dir
in $ac_dummy; do
978 test -z "$ac_dir" && ac_dir
=.
979 if test -f $ac_dir/$ac_word; then
988 if test -n "$CC"; then
989 echo "$ac_t""$CC" 1>&6
991 echo "$ac_t""no" 1>&6
994 if test -z "$CC"; then
995 # Extract the first word of "cc", so it can be a program name with args.
996 set dummy cc
; ac_word
=$2
997 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
998 echo "configure:999: checking for $ac_word" >&5
999 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1000 echo $ac_n "(cached) $ac_c" 1>&6
1002 if test -n "$CC"; then
1003 ac_cv_prog_CC
="$CC" # Let the user override the test.
1005 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1008 for ac_dir
in $ac_dummy; do
1009 test -z "$ac_dir" && ac_dir
=.
1010 if test -f $ac_dir/$ac_word; then
1011 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1012 ac_prog_rejected
=yes
1020 if test $ac_prog_rejected = yes; then
1021 # We found a bogon in the path, so make sure we never use it.
1022 set dummy
$ac_cv_prog_CC
1024 if test $# -gt 0; then
1025 # We chose a different compiler from the bogus one.
1026 # However, it has the same basename, so the bogon will be chosen
1027 # first if we set CC to just the basename; use the full file name.
1029 set dummy
"$ac_dir/$ac_word" "$@"
1037 if test -n "$CC"; then
1038 echo "$ac_t""$CC" 1>&6
1040 echo "$ac_t""no" 1>&6
1043 if test -z "$CC"; then
1044 case "`uname -s`" in
1046 # Extract the first word of "cl", so it can be a program name with args.
1047 set dummy cl
; ac_word
=$2
1048 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1049 echo "configure:1050: checking for $ac_word" >&5
1050 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1051 echo $ac_n "(cached) $ac_c" 1>&6
1053 if test -n "$CC"; then
1054 ac_cv_prog_CC
="$CC" # Let the user override the test.
1056 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1058 for ac_dir
in $ac_dummy; do
1059 test -z "$ac_dir" && ac_dir
=.
1060 if test -f $ac_dir/$ac_word; then
1069 if test -n "$CC"; then
1070 echo "$ac_t""$CC" 1>&6
1072 echo "$ac_t""no" 1>&6
1077 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1081 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1082 echo "configure:1083: checking whether we are using GNU C" >&5
1083 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1084 echo $ac_n "(cached) $ac_c" 1>&6
1086 cat > conftest.c
<<EOF
1091 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1092: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1098 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1100 if test $ac_cv_prog_gcc = yes; then
1106 ac_test_CFLAGS
="${CFLAGS+set}"
1107 ac_save_CFLAGS
="$CFLAGS"
1109 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1110 echo "configure:1111: checking whether ${CC-cc} accepts -g" >&5
1111 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1112 echo $ac_n "(cached) $ac_c" 1>&6
1114 echo 'void f(){}' > conftest.c
1115 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1124 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1125 if test "$ac_test_CFLAGS" = set; then
1126 CFLAGS
="$ac_save_CFLAGS"
1127 elif test $ac_cv_prog_cc_g = yes; then
1128 if test "$GCC" = yes; then
1134 if test "$GCC" = yes; then
1141 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
1143 # Extract the first word of "$ac_prog", so it can be a program name with args.
1144 set dummy
$ac_prog; ac_word
=$2
1145 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1146 echo "configure:1147: checking for $ac_word" >&5
1147 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1148 echo $ac_n "(cached) $ac_c" 1>&6
1150 if test -n "$CXX"; then
1151 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
1153 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1155 for ac_dir
in $ac_dummy; do
1156 test -z "$ac_dir" && ac_dir
=.
1157 if test -f $ac_dir/$ac_word; then
1158 ac_cv_prog_CXX
="$ac_prog"
1165 CXX
="$ac_cv_prog_CXX"
1166 if test -n "$CXX"; then
1167 echo "$ac_t""$CXX" 1>&6
1169 echo "$ac_t""no" 1>&6
1172 test -n "$CXX" && break
1174 test -n "$CXX" || CXX
="gcc"
1178 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1179 echo "configure:1180: checking whether we are using GNU C++" >&5
1180 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1181 echo $ac_n "(cached) $ac_c" 1>&6
1183 cat > conftest.C
<<EOF
1188 if { ac_try
='${CXX-g++} -E conftest.C'; { (eval echo configure
:1189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1195 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1197 if test $ac_cv_prog_gxx = yes; then
1203 ac_test_CXXFLAGS
="${CXXFLAGS+set}"
1204 ac_save_CXXFLAGS
="$CXXFLAGS"
1206 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1207 echo "configure:1208: checking whether ${CXX-g++} accepts -g" >&5
1208 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1209 echo $ac_n "(cached) $ac_c" 1>&6
1211 echo 'void f(){}' > conftest.cc
1212 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1213 ac_cv_prog_cxx_g
=yes
1221 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1222 if test "$ac_test_CXXFLAGS" = set; then
1223 CXXFLAGS
="$ac_save_CXXFLAGS"
1224 elif test $ac_cv_prog_cxx_g = yes; then
1225 if test "$GXX" = yes; then
1231 if test "$GXX" = yes; then
1245 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
1246 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
1248 cat >> confdefs.h
<<EOF
1249 #define PACKAGE "$PACKAGE"
1252 cat >> confdefs.h
<<EOF
1253 #define VERSION "$VERSION"
1258 missing_dir
=`cd $ac_aux_dir && pwd`
1259 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1260 echo "configure:1261: checking for working aclocal" >&5
1261 # Run test in a subshell; some versions of sh will print an error if
1262 # an executable is not found, even if stderr is redirected.
1263 # Redirect stdin to placate older versions of autoconf. Sigh.
1264 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
1266 echo "$ac_t""found" 1>&6
1268 ACLOCAL
="$missing_dir/missing aclocal"
1269 echo "$ac_t""missing" 1>&6
1272 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1273 echo "configure:1274: checking for working autoconf" >&5
1274 # Run test in a subshell; some versions of sh will print an error if
1275 # an executable is not found, even if stderr is redirected.
1276 # Redirect stdin to placate older versions of autoconf. Sigh.
1277 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
1279 echo "$ac_t""found" 1>&6
1281 AUTOCONF
="$missing_dir/missing autoconf"
1282 echo "$ac_t""missing" 1>&6
1285 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1286 echo "configure:1287: checking for working automake" >&5
1287 # Run test in a subshell; some versions of sh will print an error if
1288 # an executable is not found, even if stderr is redirected.
1289 # Redirect stdin to placate older versions of autoconf. Sigh.
1290 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
1292 echo "$ac_t""found" 1>&6
1294 AUTOMAKE
="$missing_dir/missing automake"
1295 echo "$ac_t""missing" 1>&6
1298 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1299 echo "configure:1300: checking for working autoheader" >&5
1300 # Run test in a subshell; some versions of sh will print an error if
1301 # an executable is not found, even if stderr is redirected.
1302 # Redirect stdin to placate older versions of autoconf. Sigh.
1303 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
1304 AUTOHEADER
=autoheader
1305 echo "$ac_t""found" 1>&6
1307 AUTOHEADER
="$missing_dir/missing autoheader"
1308 echo "$ac_t""missing" 1>&6
1311 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1312 echo "configure:1313: checking for working makeinfo" >&5
1313 # Run test in a subshell; some versions of sh will print an error if
1314 # an executable is not found, even if stderr is redirected.
1315 # Redirect stdin to placate older versions of autoconf. Sigh.
1316 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
1318 echo "$ac_t""found" 1>&6
1320 MAKEINFO
="$missing_dir/missing makeinfo"
1321 echo "$ac_t""missing" 1>&6
1326 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we dont
1327 # run it explicitly here, it will be run implicitly before
1328 # LIBGCJ_CONFIGURE, which doesn't work because that means that it will
1329 # be run before AC_CANONICAL_HOST.
1330 echo $ac_n "checking build system type""... $ac_c" 1>&6
1331 echo "configure:1332: checking build system type" >&5
1334 case "$build_alias" in
1337 NONE
) build_alias
=$host_alias ;;
1338 *) build_alias
=$nonopt ;;
1342 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1343 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1344 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1345 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1346 echo "$ac_t""$build" 1>&6
1349 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1350 set dummy
${ac_tool_prefix}as
; ac_word
=$2
1351 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1352 echo "configure:1353: checking for $ac_word" >&5
1353 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1354 echo $ac_n "(cached) $ac_c" 1>&6
1356 if test -n "$AS"; then
1357 ac_cv_prog_AS
="$AS" # Let the user override the test.
1359 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1361 for ac_dir
in $ac_dummy; do
1362 test -z "$ac_dir" && ac_dir
=.
1363 if test -f $ac_dir/$ac_word; then
1364 ac_cv_prog_AS
="${ac_tool_prefix}as"
1369 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS
="as"
1373 if test -n "$AS"; then
1374 echo "$ac_t""$AS" 1>&6
1376 echo "$ac_t""no" 1>&6
1381 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1382 set dummy
${ac_tool_prefix}ar; ac_word
=$2
1383 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1384 echo "configure:1385: checking for $ac_word" >&5
1385 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1386 echo $ac_n "(cached) $ac_c" 1>&6
1388 if test -n "$AR"; then
1389 ac_cv_prog_AR
="$AR" # Let the user override the test.
1391 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1393 for ac_dir
in $ac_dummy; do
1394 test -z "$ac_dir" && ac_dir
=.
1395 if test -f $ac_dir/$ac_word; then
1396 ac_cv_prog_AR
="${ac_tool_prefix}ar"
1401 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
1405 if test -n "$AR"; then
1406 echo "$ac_t""$AR" 1>&6
1408 echo "$ac_t""no" 1>&6
1413 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1414 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1415 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1416 echo "configure:1417: checking for $ac_word" >&5
1417 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1418 echo $ac_n "(cached) $ac_c" 1>&6
1420 if test -n "$RANLIB"; then
1421 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1423 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1425 for ac_dir
in $ac_dummy; do
1426 test -z "$ac_dir" && ac_dir
=.
1427 if test -f $ac_dir/$ac_word; then
1428 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1435 RANLIB
="$ac_cv_prog_RANLIB"
1436 if test -n "$RANLIB"; then
1437 echo "$ac_t""$RANLIB" 1>&6
1439 echo "$ac_t""no" 1>&6
1443 if test -z "$ac_cv_prog_RANLIB"; then
1444 if test -n "$ac_tool_prefix"; then
1445 # Extract the first word of "ranlib", so it can be a program name with args.
1446 set dummy ranlib
; ac_word
=$2
1447 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1448 echo "configure:1449: checking for $ac_word" >&5
1449 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1450 echo $ac_n "(cached) $ac_c" 1>&6
1452 if test -n "$RANLIB"; then
1453 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1455 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1457 for ac_dir
in $ac_dummy; do
1458 test -z "$ac_dir" && ac_dir
=.
1459 if test -f $ac_dir/$ac_word; then
1460 ac_cv_prog_RANLIB
="ranlib"
1465 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1468 RANLIB
="$ac_cv_prog_RANLIB"
1469 if test -n "$RANLIB"; then
1470 echo "$ac_t""$RANLIB" 1>&6
1472 echo "$ac_t""no" 1>&6
1481 # Find a good install program. We prefer a C program (faster),
1482 # so one script is as good as another. But avoid the broken or
1483 # incompatible versions:
1484 # SysV /etc/install, /usr/sbin/install
1485 # SunOS /usr/etc/install
1486 # IRIX /sbin/install
1488 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1489 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1490 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1491 # ./install, which can be erroneously created by make from ./install.sh.
1492 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1493 echo "configure:1494: checking for a BSD compatible install" >&5
1494 if test -z "$INSTALL"; then
1495 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1496 echo $ac_n "(cached) $ac_c" 1>&6
1498 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1499 for ac_dir
in $PATH; do
1500 # Account for people who put trailing slashes in PATH elements.
1502 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1504 # OSF1 and SCO ODT 3.0 have their own names for install.
1505 # Don't use installbsd from OSF since it installs stuff as root
1507 for ac_prog
in ginstall scoinst
install; do
1508 if test -f $ac_dir/$ac_prog; then
1509 if test $ac_prog = install &&
1510 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1511 # AIX install. It has an incompatible calling convention.
1514 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1525 if test "${ac_cv_path_install+set}" = set; then
1526 INSTALL
="$ac_cv_path_install"
1528 # As a last resort, use the slow shell script. We don't cache a
1529 # path for INSTALL within a source directory, because that will
1530 # break other packages using the cache if that directory is
1531 # removed, or if the path is relative.
1532 INSTALL
="$ac_install_sh"
1535 echo "$ac_t""$INSTALL" 1>&6
1537 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1538 # It thinks the first close brace ends the variable substitution.
1539 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1541 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1543 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1546 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1547 echo "configure:1548: checking whether to enable maintainer-specific portions of Makefiles" >&5
1548 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1549 if test "${enable_maintainer_mode+set}" = set; then
1550 enableval
="$enable_maintainer_mode"
1551 USE_MAINTAINER_MODE
=$enableval
1553 USE_MAINTAINER_MODE
=no
1556 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1559 if test $USE_MAINTAINER_MODE = yes; then
1560 MAINTAINER_MODE_TRUE
=
1561 MAINTAINER_MODE_FALSE
='#'
1563 MAINTAINER_MODE_TRUE
='#'
1564 MAINTAINER_MODE_FALSE
=
1566 MAINT
=$MAINTAINER_MODE_TRUE
1570 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1571 # at least currently, we never actually build a program, so we never
1572 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1573 # fails, because we are probably configuring with a cross compiler
1574 # which cant create executables. So we include AC_EXEEXT to keep
1575 # automake happy, but we dont execute it, since we dont care about
1580 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1581 echo "configure:1582: checking for executable suffix" >&5
1582 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1583 echo $ac_n "(cached) $ac_c" 1>&6
1585 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
1589 echo 'int main () { return 0; }' > conftest.
$ac_ext
1591 if { (eval echo configure
:1592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1592 for file in conftest.
*; do
1594 *.c |
*.o |
*.obj
) ;;
1595 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
1599 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1602 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
1607 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
1608 echo "$ac_t""${ac_cv_exeext}" 1>&6
1613 # configure.host sets the following important variables
1614 # libgcj_cflags - host specific C compiler flags
1615 # libgcj_cxxflags - host specific C++ compiler flags
1616 # libgcj_javaflags - host specific Java compiler flags
1622 .
${libgcj_basedir}/configure.
host
1624 case ${libgcj_basedir} in
1625 /* | A-Za-z
:/\\*) libgcj_flagbasedir
=${libgcj_basedir} ;;
1626 *) libgcj_flagbasedir
='$(top_builddir)/'${libgcj_basedir} ;;
1629 LIBGCJ_CFLAGS
="${libgcj_cflags}"
1630 LIBGCJ_CXXFLAGS
="${libgcj_cxxflags}"
1631 LIBGCJ_JAVAFLAGS
="${libgcj_javaflags}"
1641 # Only use libltdl for native builds.
1642 if test -z "${with_cross_host}"; then
1643 case "$enable_ltdl_convenience" in
1644 no
) { echo "configure: error: this package needs a convenience libltdl" 1>&2; exit 1; } ;;
1645 "") enable_ltdl_convenience
=yes
1646 ac_configure_args
="$ac_configure_args --enable-ltdl-convenience" ;;
1648 LIBLTDL
='${top_builddir}/''libltdl'/libltdlc.la
1649 INCLTDL
='-I${top_srcdir}/''libltdl'
1653 cat >> confdefs.h
<<\EOF
1657 # Sigh. Libtool's macro doesn't do the right thing.
1658 INCLTDL
="-I\$(top_srcdir)/libltdl $INCLTDL"
1663 # Check whether --enable-shared or --disable-shared was given.
1664 if test "${enable_shared+set}" = set; then
1665 enableval
="$enable_shared"
1666 p
=${PACKAGE-default}
1667 case "$enableval" in
1668 yes) enable_shared
=yes ;;
1669 no
) enable_shared
=no
;;
1672 # Look at the argument we got. We use all the common list separators.
1673 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1674 for pkg
in $enableval; do
1675 if test "X$pkg" = "X$p"; then
1686 # Check whether --enable-static or --disable-static was given.
1687 if test "${enable_static+set}" = set; then
1688 enableval
="$enable_static"
1689 p
=${PACKAGE-default}
1690 case "$enableval" in
1691 yes) enable_static
=yes ;;
1692 no
) enable_static
=no
;;
1695 # Look at the argument we got. We use all the common list separators.
1696 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1697 for pkg
in $enableval; do
1698 if test "X$pkg" = "X$p"; then
1709 # Check whether --enable-fast-install or --disable-fast-install was given.
1710 if test "${enable_fast_install+set}" = set; then
1711 enableval
="$enable_fast_install"
1712 p
=${PACKAGE-default}
1713 case "$enableval" in
1714 yes) enable_fast_install
=yes ;;
1715 no
) enable_fast_install
=no
;;
1717 enable_fast_install
=no
1718 # Look at the argument we got. We use all the common list separators.
1719 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1720 for pkg
in $enableval; do
1721 if test "X$pkg" = "X$p"; then
1722 enable_fast_install
=yes
1729 enable_fast_install
=yes
1732 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1733 if test "${with_gnu_ld+set}" = set; then
1734 withval
="$with_gnu_ld"
1735 test "$withval" = no || with_gnu_ld
=yes
1741 if test "$ac_cv_prog_gcc" = yes; then
1742 # Check if gcc -print-prog-name=ld gives a path.
1743 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1744 echo "configure:1745: checking for ld used by GCC" >&5
1747 # gcc leaves a trailing carriage return which upsets mingw
1748 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1750 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
1753 # Accept absolute paths.
1754 [\\/]* |
[A-Za-z
]:[\\/]*)
1755 re_direlt
='/[^/][^/]*/\.\./'
1756 # Canonicalize the path of ld
1757 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1758 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1759 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1761 test -z "$LD" && LD
="$ac_prog"
1764 # If it fails, then pretend we aren't using GCC.
1768 # If it is relative, then search for the first ld in PATH.
1772 elif test "$with_gnu_ld" = yes; then
1773 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1774 echo "configure:1775: checking for GNU ld" >&5
1776 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1777 echo "configure:1778: checking for non-GNU ld" >&5
1779 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1780 echo $ac_n "(cached) $ac_c" 1>&6
1782 if test -z "$LD"; then
1783 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1784 for ac_dir
in $PATH; do
1785 test -z "$ac_dir" && ac_dir
=.
1786 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
1787 ac_cv_path_LD
="$ac_dir/$ac_prog"
1788 # Check to see if the program is GNU ld. I'd rather use --version,
1789 # but apparently some GNU ld's only accept -v.
1790 # Break only if it was the GNU/non-GNU ld that we prefer.
1791 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1792 test "$with_gnu_ld" != no
&& break
1794 test "$with_gnu_ld" != yes && break
1800 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1805 if test -n "$LD"; then
1806 echo "$ac_t""$LD" 1>&6
1808 echo "$ac_t""no" 1>&6
1810 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1811 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1812 echo "configure:1813: checking if the linker ($LD) is GNU ld" >&5
1813 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1814 echo $ac_n "(cached) $ac_c" 1>&6
1816 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1817 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1818 ac_cv_prog_gnu_ld
=yes
1820 ac_cv_prog_gnu_ld
=no
1824 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1825 with_gnu_ld
=$ac_cv_prog_gnu_ld
1828 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1829 echo "configure:1830: checking for $LD option to reload object files" >&5
1830 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1831 echo $ac_n "(cached) $ac_c" 1>&6
1833 lt_cv_ld_reload_flag
='-r'
1836 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1837 reload_flag
=$lt_cv_ld_reload_flag
1838 test -n "$reload_flag" && reload_flag
=" $reload_flag"
1840 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1841 echo "configure:1842: checking for BSD-compatible nm" >&5
1842 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1843 echo $ac_n "(cached) $ac_c" 1>&6
1845 if test -n "$NM"; then
1846 # Let the user override the test.
1849 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1850 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1851 test -z "$ac_dir" && ac_dir
=.
1852 tmp_nm
=$ac_dir/${ac_tool_prefix}nm
1853 if test -f $tmp_nm ||
test -f $tmp_nm$ac_exeext ; then
1854 # Check to see if the nm accepts a BSD-compat flag.
1855 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1856 # nm: unknown option "B" ignored
1857 # Tru64's nm complains that /dev/null is an invalid object file
1858 if ($tmp_nm -B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep '(/dev/null|Invalid file or object type)' >/dev
/null
; then
1859 ac_cv_path_NM
="$tmp_nm -B"
1861 elif ($tmp_nm -p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1862 ac_cv_path_NM
="$tmp_nm -p"
1865 ac_cv_path_NM
=${ac_cv_path_NM="$tmp_nm"} # keep the first match, but
1866 continue # so that we can try to find one that supports BSD flags
1871 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1876 echo "$ac_t""$NM" 1>&6
1878 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1879 echo "configure:1880: checking whether ln -s works" >&5
1880 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1881 echo $ac_n "(cached) $ac_c" 1>&6
1884 if ln -s X conftestdata
2>/dev
/null
1887 ac_cv_prog_LN_S
="ln -s"
1892 LN_S
="$ac_cv_prog_LN_S"
1893 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1894 echo "$ac_t""yes" 1>&6
1896 echo "$ac_t""no" 1>&6
1899 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1900 echo "configure:1901: checking how to recognise dependant libraries" >&5
1901 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1902 echo $ac_n "(cached) $ac_c" 1>&6
1904 lt_cv_file_magic_cmd
='$MAGIC_CMD'
1905 lt_cv_file_magic_test_file
=
1906 lt_cv_deplibs_check_method
='unknown'
1907 # Need to set the preceding variable on all platforms that support
1908 # interlibrary dependencies.
1909 # 'none' -- dependencies not supported.
1910 # `unknown' -- same as none, but documents that we really don't know.
1911 # 'pass_all' -- all dependencies passed with no checks.
1912 # 'test_compile' -- check by making test program.
1913 # 'file_magic [regex]' -- check by looking for files in library path
1914 # which responds to the $file_magic_cmd with a given egrep regex.
1915 # If you have `file' or equivalent on your system and you're not sure
1916 # whether `pass_all' will *always* work, you probably want this one.
1920 lt_cv_deplibs_check_method
=pass_all
1924 lt_cv_deplibs_check_method
=pass_all
1928 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1929 lt_cv_file_magic_cmd
='/usr/bin/file -L'
1930 lt_cv_file_magic_test_file
=/shlib
/libc.so
1933 cygwin
* | mingw
* |pw32
*)
1934 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
1935 lt_cv_file_magic_cmd
='$OBJDUMP -f'
1939 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
1942 # Not sure whether the presence of OpenBSD here was a mistake.
1943 # Let's accept both of them until this is cleared up.
1944 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1945 lt_cv_file_magic_cmd
=/usr
/bin
/file
1946 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
1950 lt_cv_deplibs_check_method
=pass_all
1955 lt_cv_deplibs_check_method
=pass_all
1959 # TODO: Does this work for hpux-11 too?
1960 lt_cv_deplibs_check_method
='file_magic (s0-90-90-9|PA-RISC0-9.0-9) shared library'
1961 lt_cv_file_magic_cmd
=/usr
/bin
/file
1962 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
1968 # this will be overridden with pass_all, but let us keep it just in case
1969 lt_cv_deplibs_check_method
="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1973 *-32|
*"-32 ") libmagic
=32-bit;;
1974 *-n32|
*"-n32 ") libmagic
=N32
;;
1975 *-64|
*"-64 ") libmagic
=64-bit;;
1976 *) libmagic
=never-match
;;
1978 # this will be overridden with pass_all, but let us keep it just in case
1979 lt_cv_deplibs_check_method
="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1982 lt_cv_file_magic_test_file
=`echo /lib${libsuff}/libc.so*`
1983 lt_cv_deplibs_check_method
=pass_all
1986 # This must be Linux ELF.
1989 alpha
* | i
*86 | powerpc
* | sparc
* | ia64
* )
1990 lt_cv_deplibs_check_method
=pass_all
;;
1992 # glibc up to 2.1.1 does not perform some relocations on ARM
1993 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1995 lt_cv_file_magic_test_file
=`echo /lib/libc.so* /lib/libc-*.so`
1999 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then :
2001 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
2002 lt_cv_file_magic_cmd
='/usr/bin/file -L'
2003 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
2007 osf3
* | osf4
* | osf5
*)
2008 # this will be overridden with pass_all, but let us keep it just in case
2009 lt_cv_deplibs_check_method
='file_magic COFF format alpha shared library'
2010 lt_cv_file_magic_test_file
=/shlib
/libc.so
2011 lt_cv_deplibs_check_method
=pass_all
2015 lt_cv_deplibs_check_method
=pass_all
2019 lt_cv_deplibs_check_method
=pass_all
2020 lt_cv_file_magic_test_file
=/lib
/libc.so
2023 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
2024 case "$host_vendor" in
2026 lt_cv_deplibs_check_method
=pass_all
2029 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
2030 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
2038 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2039 file_magic_cmd
=$lt_cv_file_magic_cmd
2040 deplibs_check_method
=$lt_cv_deplibs_check_method
2042 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2043 echo "configure:2044: checking for object suffix" >&5
2044 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2045 echo $ac_n "(cached) $ac_c" 1>&6
2048 echo 'int i = 1;' > conftest.
$ac_ext
2049 if { (eval echo configure
:2050: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2050 for ac_file
in conftest.
*; do
2053 *) ac_cv_objext
=`echo $ac_file | sed -e s/conftest.//` ;;
2057 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2062 echo "$ac_t""$ac_cv_objext" 1>&6
2063 OBJEXT
=$ac_cv_objext
2064 ac_objext
=$ac_cv_objext
2066 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2068 # Only perform the check for file, if the check method requires it
2069 case "$deplibs_check_method" in
2071 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2072 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2073 echo "configure:2074: checking for ${ac_tool_prefix}file" >&5
2074 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2075 echo $ac_n "(cached) $ac_c" 1>&6
2077 case "$MAGIC_CMD" in
2079 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
2082 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
2085 ac_save_MAGIC_CMD
="$MAGIC_CMD"
2086 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2087 ac_dummy
="/usr/bin:$PATH"
2088 for ac_dir
in $ac_dummy; do
2089 test -z "$ac_dir" && ac_dir
=.
2090 if test -f $ac_dir/${ac_tool_prefix}file; then
2091 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
2092 if test -n "$file_magic_test_file"; then
2093 case "$deplibs_check_method" in
2095 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2096 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
2097 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
2098 egrep "$file_magic_regex" > /dev
/null
; then
2103 *** Warning: the command libtool uses to detect shared libraries,
2104 *** $file_magic_cmd, produces output that libtool cannot recognize.
2105 *** The result is that libtool may fail to recognize shared libraries
2106 *** as such. This will affect the creation of libtool libraries that
2107 *** depend on shared libraries, but programs linked with such libtool
2108 *** libraries will work regardless of this problem. Nevertheless, you
2109 *** may want to report the problem to your system manager and/or to
2110 *** bug-libtool@gnu.org
2120 MAGIC_CMD
="$ac_save_MAGIC_CMD"
2125 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
2126 if test -n "$MAGIC_CMD"; then
2127 echo "$ac_t""$MAGIC_CMD" 1>&6
2129 echo "$ac_t""no" 1>&6
2132 if test -z "$lt_cv_path_MAGIC_CMD"; then
2133 if test -n "$ac_tool_prefix"; then
2134 echo $ac_n "checking for file""... $ac_c" 1>&6
2135 echo "configure:2136: checking for file" >&5
2136 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2137 echo $ac_n "(cached) $ac_c" 1>&6
2139 case "$MAGIC_CMD" in
2141 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
2144 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
2147 ac_save_MAGIC_CMD
="$MAGIC_CMD"
2148 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2149 ac_dummy
="/usr/bin:$PATH"
2150 for ac_dir
in $ac_dummy; do
2151 test -z "$ac_dir" && ac_dir
=.
2152 if test -f $ac_dir/file; then
2153 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
2154 if test -n "$file_magic_test_file"; then
2155 case "$deplibs_check_method" in
2157 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2158 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
2159 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
2160 egrep "$file_magic_regex" > /dev
/null
; then
2165 *** Warning: the command libtool uses to detect shared libraries,
2166 *** $file_magic_cmd, produces output that libtool cannot recognize.
2167 *** The result is that libtool may fail to recognize shared libraries
2168 *** as such. This will affect the creation of libtool libraries that
2169 *** depend on shared libraries, but programs linked with such libtool
2170 *** libraries will work regardless of this problem. Nevertheless, you
2171 *** may want to report the problem to your system manager and/or to
2172 *** bug-libtool@gnu.org
2182 MAGIC_CMD
="$ac_save_MAGIC_CMD"
2187 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
2188 if test -n "$MAGIC_CMD"; then
2189 echo "$ac_t""$MAGIC_CMD" 1>&6
2191 echo "$ac_t""no" 1>&6
2203 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2204 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
2205 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2206 echo "configure:2207: checking for $ac_word" >&5
2207 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2208 echo $ac_n "(cached) $ac_c" 1>&6
2210 if test -n "$RANLIB"; then
2211 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2213 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2215 for ac_dir
in $ac_dummy; do
2216 test -z "$ac_dir" && ac_dir
=.
2217 if test -f $ac_dir/$ac_word; then
2218 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
2225 RANLIB
="$ac_cv_prog_RANLIB"
2226 if test -n "$RANLIB"; then
2227 echo "$ac_t""$RANLIB" 1>&6
2229 echo "$ac_t""no" 1>&6
2233 if test -z "$ac_cv_prog_RANLIB"; then
2234 if test -n "$ac_tool_prefix"; then
2235 # Extract the first word of "ranlib", so it can be a program name with args.
2236 set dummy ranlib
; ac_word
=$2
2237 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2238 echo "configure:2239: checking for $ac_word" >&5
2239 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2240 echo $ac_n "(cached) $ac_c" 1>&6
2242 if test -n "$RANLIB"; then
2243 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2245 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2247 for ac_dir
in $ac_dummy; do
2248 test -z "$ac_dir" && ac_dir
=.
2249 if test -f $ac_dir/$ac_word; then
2250 ac_cv_prog_RANLIB
="ranlib"
2255 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2258 RANLIB
="$ac_cv_prog_RANLIB"
2259 if test -n "$RANLIB"; then
2260 echo "$ac_t""$RANLIB" 1>&6
2262 echo "$ac_t""no" 1>&6
2270 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2271 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2272 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2273 echo "configure:2274: checking for $ac_word" >&5
2274 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2275 echo $ac_n "(cached) $ac_c" 1>&6
2277 if test -n "$STRIP"; then
2278 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2280 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2282 for ac_dir
in $ac_dummy; do
2283 test -z "$ac_dir" && ac_dir
=.
2284 if test -f $ac_dir/$ac_word; then
2285 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2292 STRIP
="$ac_cv_prog_STRIP"
2293 if test -n "$STRIP"; then
2294 echo "$ac_t""$STRIP" 1>&6
2296 echo "$ac_t""no" 1>&6
2300 if test -z "$ac_cv_prog_STRIP"; then
2301 if test -n "$ac_tool_prefix"; then
2302 # Extract the first word of "strip", so it can be a program name with args.
2303 set dummy strip
; ac_word
=$2
2304 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2305 echo "configure:2306: checking for $ac_word" >&5
2306 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2307 echo $ac_n "(cached) $ac_c" 1>&6
2309 if test -n "$STRIP"; then
2310 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2312 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2314 for ac_dir
in $ac_dummy; do
2315 test -z "$ac_dir" && ac_dir
=.
2316 if test -f $ac_dir/$ac_word; then
2317 ac_cv_prog_STRIP
="strip"
2322 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP
=":"
2325 STRIP
="$ac_cv_prog_STRIP"
2326 if test -n "$STRIP"; then
2327 echo "$ac_t""$STRIP" 1>&6
2329 echo "$ac_t""no" 1>&6
2338 # Check for any special flags to pass to ltconfig.
2339 libtool_flags
="--cache-file=$cache_file"
2340 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
2341 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
2342 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
2343 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
2344 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
2345 libtool_flags
="$libtool_flags --enable-dlopen"
2347 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2348 if test "${enable_libtool_lock+set}" = set; then
2349 enableval
="$enable_libtool_lock"
2353 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
2354 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
2356 # Check whether --with-pic or --without-pic was given.
2357 if test "${with_pic+set}" = set; then
2364 test x
"$pic_mode" = xyes
&& libtool_flags
="$libtool_flags --prefer-pic"
2365 test x
"$pic_mode" = xno
&& libtool_flags
="$libtool_flags --prefer-non-pic"
2367 # Some flags need to be propagated to the compiler or linker for good
2371 # Find out which ABI we are using.
2372 echo '#line 2373 "configure"' > conftest.
$ac_ext
2373 if { (eval echo configure
:2374: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2374 case "`/usr/bin/file conftest.o`" in
2390 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2391 SAVE_CFLAGS
="$CFLAGS"
2392 CFLAGS
="$CFLAGS -belf"
2393 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2394 echo "configure:2395: checking whether the C compiler needs -belf" >&5
2395 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2396 echo $ac_n "(cached) $ac_c" 1>&6
2400 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2401 ac_cpp
='$CPP $CPPFLAGS'
2402 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2403 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2404 cross_compiling
=$ac_cv_prog_cc_cross
2406 cat > conftest.
$ac_ext <<EOF
2407 #line 2408 "configure"
2408 #include "confdefs.h"
2414 if { (eval echo configure
:2415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2416 lt_cv_cc_needs_belf
=yes
2418 echo "configure: failed program was:" >&5
2419 cat conftest.
$ac_ext >&5
2421 lt_cv_cc_needs_belf
=no
2425 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2426 ac_cpp
='$CPP $CPPFLAGS'
2427 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2428 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2429 cross_compiling
=$ac_cv_prog_cc_cross
2433 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2434 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
2435 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2436 CFLAGS
="$SAVE_CFLAGS"
2443 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2444 echo "configure:2445: checking how to run the C++ preprocessor" >&5
2445 if test -z "$CXXCPP"; then
2446 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2447 echo $ac_n "(cached) $ac_c" 1>&6
2450 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2451 ac_cpp
='$CXXCPP $CPPFLAGS'
2452 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2453 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2454 cross_compiling
=$ac_cv_prog_cxx_cross
2455 CXXCPP
="${CXX-g++} -E"
2456 cat > conftest.
$ac_ext <<EOF
2457 #line 2458 "configure"
2458 #include "confdefs.h"
2461 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2462 { (eval echo configure
:2463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2463 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2464 if test -z "$ac_err"; then
2468 echo "configure: failed program was:" >&5
2469 cat conftest.
$ac_ext >&5
2474 ac_cv_prog_CXXCPP
="$CXXCPP"
2476 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2477 ac_cpp
='$CPP $CPPFLAGS'
2478 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2479 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2480 cross_compiling
=$ac_cv_prog_cc_cross
2483 CXXCPP
="$ac_cv_prog_CXXCPP"
2484 echo "$ac_t""$CXXCPP" 1>&6
2487 # Save cache, so that ltconfig can load it
2488 cat > confcache
<<\EOF
2489 # This file is a shell script that caches the results of configure
2490 # tests run on this system so they can be shared between configure
2491 # scripts and configure runs. It is not useful on other systems.
2492 # If it contains results you don't want to keep, you may remove or edit it.
2494 # By default, configure uses ./config.cache as the cache file,
2495 # creating it if it does not exist already. You can give configure
2496 # the --cache-file=FILE option to use a different cache file; that is
2497 # what configure does when it calls configure scripts in
2498 # subdirectories, so they share the cache.
2499 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2500 # config.status only pays attention to the cache file if you give it the
2501 # --recheck option to rerun configure.
2504 # The following way of writing the cache mishandles newlines in values,
2505 # but we know of no workaround that is simple, portable, and efficient.
2506 # So, don't put newlines in cache variables' values.
2507 # Ultrix sh set writes to stderr and can't be redirected directly,
2508 # and sets the high bit in the cache file unless we assign to the vars.
2510 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2512 # `set' does not quote correctly, so add quotes (double-quote substitution
2513 # turns \\\\ into \\, and sed turns \\ into \).
2515 -e "s/'/'\\\\''/g" \
2516 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2519 # `set' quotes correctly as required by POSIX, so do not add quotes.
2520 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2523 if cmp -s $cache_file confcache
; then
2526 if test -w $cache_file; then
2527 echo "updating cache $cache_file"
2528 cat confcache
> $cache_file
2530 echo "not updating unwritable cache $cache_file"
2536 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2537 AR
="$AR" LTCC
="$CC" CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
2538 MAGIC_CMD
="$MAGIC_CMD" LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
2539 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
2540 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
2541 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
2542 deplibs_check_method
="$deplibs_check_method" file_magic_cmd
="$file_magic_cmd" \
2543 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
2544 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh
$host \
2545 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2547 # Reload cache, that may have been modified by ltconfig
2548 if test -r "$cache_file"; then
2549 echo "loading cache $cache_file"
2552 echo "creating cache $cache_file"
2557 # This can be used to rebuild libtool when needed
2558 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2560 # Always use our own libtool.
2561 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
2563 # Redirect the config.log output again, so that the ltconfig log is not
2564 # clobbered by the next message.
2565 exec 5>>.
/config.log
2570 LIBTOOL_DEPS
=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2572 lt_save_CFLAGS
="$CFLAGS"
2573 AR
="$AR" LTCC
="$CC" CC
="$CXX" CXX
="$CXX" CFLAGS
="$CXXFLAGS" CPPFLAGS
="$CPPFLAGS" \
2574 MAGIC_CMD
="$MAGIC_CMD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
2575 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
2576 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
2577 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
2578 deplibs_check_method
="$deplibs_check_method" \
2579 file_magic_cmd
="$file_magic_cmd" \
2580 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
-o libtool
$libtool_flags \
2581 --build="$build" --add-tag=CXX
$ac_aux_dir/ltcf-cxx.sh
$host \
2582 ||
{ echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2584 CFLAGS
="$lt_save_CFLAGS"
2586 # Redirect the config.log output again, so that the ltconfig log is not
2587 # clobbered by the next message.
2588 exec 5>>.
/config.log
2599 if test -z "$with_target_subdir" ||
test "$with_target_subdir" = "."; then
2608 if test -d $srcdir/testsuite
; then
2610 TESTSUBDIR_FALSE
='#'
2616 # Check whether --enable-fast-character or --disable-fast-character was given.
2617 if test "${enable_fast_character+set}" = set; then
2618 enableval
="$enable_fast_character"
2622 cat >> confdefs.h
<<\EOF
2623 #define COMPACT_CHARACTER 1
2629 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
2630 if test "${enable_getenv_properties+set}" = set; then
2631 enableval
="$enable_getenv_properties"
2636 if test -n "$enable_getenv_properties"; then
2637 enable_getenv_properties
=${enable_getenv_properties_default-yes}
2639 if test "$enable_getenv_properties" = no
; then
2640 cat >> confdefs.h
<<\EOF
2641 #define DISABLE_GETENV_PROPERTIES 1
2646 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
2647 if test "${enable_libgcj_debug+set}" = set; then
2648 enableval
="$enable_libgcj_debug"
2649 if test "$enable_libgcj_debug" = yes; then
2650 cat >> confdefs.h
<<\EOF
2658 # Check whether --enable-interpreter or --disable-interpreter was given.
2659 if test "${enable_interpreter+set}" = set; then
2660 enableval
="$enable_interpreter"
2661 if test "$enable_interpreter" = yes; then
2662 # This can also be set in configure.host.
2663 libgcj_interpreter
=yes
2664 elif test "$enable_interpreter" = no
; then
2665 libgcj_interpreter
=no
2670 if test "$libgcj_interpreter" = yes; then
2671 cat >> confdefs.h
<<\EOF
2672 #define INTERPRETER 1
2678 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
2679 if test "${enable_sjlj_exceptions+set}" = set; then
2680 enableval
="$enable_sjlj_exceptions"
2681 if test "$enable_sjlj_exceptions" = yes; then
2682 # This can be set in configure.host.
2688 if test "$libgcj_sjlj" = yes; then
2689 EXCEPTIONSPEC
="-fsjlj-exceptions"
2690 cat >> confdefs.h
<<\EOF
2691 #define SJLJ_EXCEPTIONS 1
2697 if test "$ac_cv_prog_gnu_ld" = yes; then
2698 FORCELIBGCCSPEC
="-u __rethrow -u __frame_state_for -lgcc"
2701 echo $ac_n "checking for data_start""... $ac_c" 1>&6
2702 echo "configure:2703: checking for data_start" >&5
2705 cat > conftest.
$ac_ext <<EOF
2706 #line 2707 "configure"
2707 #include "confdefs.h"
2708 extern int data_start;
2710 return ((int) &data_start);
2713 if { (eval echo configure
:2714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2715 echo "$ac_t""found it" 1>&6
2717 echo "configure: failed program was:" >&5
2718 cat conftest.
$ac_ext >&5
2720 LIBDATASTARTSPEC
="-u data_start libgcjdata.a%s"
2721 NEEDS_DATA_START
=yes
2722 echo "$ac_t""missing" 1>&6
2727 # Check whether --enable-java-net or --disable-java-net was given.
2728 if test "${enable_java_net+set}" = set; then
2729 enableval
="$enable_java_net"
2734 if test -n "$enable_java_net"; then
2735 enable_java_net
=${enable_java_net_default-yes}
2737 if test "$enable_java_net" = no
; then
2738 cat >> confdefs.h
<<\EOF
2739 #define DISABLE_JAVA_NET 1
2744 # Check whether --enable-jvmpi or --disable-jvmpi was given.
2745 if test "${enable_jvmpi+set}" = set; then
2746 enableval
="$enable_jvmpi"
2751 if test "$enable_jvmpi" != no
; then
2752 cat >> confdefs.h
<<\EOF
2753 #define ENABLE_JVMPI 1
2759 # Check whether --with-ecos or --without-ecos was given.
2760 if test "${with_ecos+set}" = set; then
2761 withval
="$with_ecos"
2762 TARGET_ECOS
="$with_ecos"
2767 case "$TARGET_ECOS" in
2769 FILE_DESCRIPTOR
=natFileDescriptorPosix.cc
2770 PROCESS
=${PROCESS-Posix}
2773 FILE_DESCRIPTOR
=natFileDescriptorEcos.cc
2775 cat >> confdefs.h
<<\EOF
2782 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2783 echo "configure:2784: checking how to run the C preprocessor" >&5
2784 # On Suns, sometimes $CPP names a directory.
2785 if test -n "$CPP" && test -d "$CPP"; then
2788 if test -z "$CPP"; then
2789 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2790 echo $ac_n "(cached) $ac_c" 1>&6
2792 # This must be in double quotes, not single quotes, because CPP may get
2793 # substituted into the Makefile and "${CC-cc}" will confuse make.
2795 # On the NeXT, cc -E runs the code through the compiler's parser,
2796 # not just through cpp.
2797 cat > conftest.
$ac_ext <<EOF
2798 #line 2799 "configure"
2799 #include "confdefs.h"
2803 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2804 { (eval echo configure
:2805: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2805 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2806 if test -z "$ac_err"; then
2810 echo "configure: failed program was:" >&5
2811 cat conftest.
$ac_ext >&5
2813 CPP
="${CC-cc} -E -traditional-cpp"
2814 cat > conftest.
$ac_ext <<EOF
2815 #line 2816 "configure"
2816 #include "confdefs.h"
2820 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2821 { (eval echo configure
:2822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2822 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2823 if test -z "$ac_err"; then
2827 echo "configure: failed program was:" >&5
2828 cat conftest.
$ac_ext >&5
2830 CPP
="${CC-cc} -nologo -E"
2831 cat > conftest.
$ac_ext <<EOF
2832 #line 2833 "configure"
2833 #include "confdefs.h"
2837 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2838 { (eval echo configure
:2839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2839 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2840 if test -z "$ac_err"; then
2844 echo "configure: failed program was:" >&5
2845 cat conftest.
$ac_ext >&5
2854 ac_cv_prog_CPP
="$CPP"
2856 CPP
="$ac_cv_prog_CPP"
2858 ac_cv_prog_CPP
="$CPP"
2860 echo "$ac_t""$CPP" 1>&6
2862 cat > conftest.
$ac_ext <<EOF
2863 #line 2864 "configure"
2864 #include "confdefs.h"
2867 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2868 egrep "uint32_t" >/dev
/null
2>&1; then
2870 cat >> confdefs.h
<<\EOF
2871 #define HAVE_INT32_DEFINED 1
2877 cat > conftest.
$ac_ext <<EOF
2878 #line 2879 "configure"
2879 #include "confdefs.h"
2880 #include <inttypes.h>
2882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2883 egrep "uint32_t" >/dev
/null
2>&1; then
2885 cat >> confdefs.h
<<\EOF
2886 #define HAVE_INT32_DEFINED 1
2892 cat > conftest.
$ac_ext <<EOF
2893 #line 2894 "configure"
2894 #include "confdefs.h"
2895 #include <sys/types.h>
2897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2898 egrep "u_int32_t" >/dev
/null
2>&1; then
2900 cat >> confdefs.h
<<\EOF
2901 #define HAVE_BSD_INT32_DEFINED 1
2907 cat > conftest.
$ac_ext <<EOF
2908 #line 2909 "configure"
2909 #include "confdefs.h"
2910 #include <sys/config.h>
2912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2913 egrep "u_int32_t" >/dev
/null
2>&1; then
2915 cat >> confdefs.h
<<\EOF
2916 #define HAVE_BSD_INT32_DEFINED 1
2924 cat > conftest.
$ac_ext <<EOF
2925 #line 2926 "configure"
2926 #include "confdefs.h"
2929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2930 egrep "mktime" >/dev
/null
2>&1; then
2932 cat >> confdefs.h
<<\EOF
2933 #define HAVE_MKTIME 1
2939 cat > conftest.
$ac_ext <<EOF
2940 #line 2941 "configure"
2941 #include "confdefs.h"
2944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2945 egrep "localtime" >/dev
/null
2>&1; then
2947 cat >> confdefs.h
<<\EOF
2948 #define HAVE_LOCALTIME 1
2955 test -d java || mkdir java
2956 test -d java
/io || mkdir java
/io
2959 test -d java
/lang || mkdir java
/lang
2966 LIBGCJTESTSPEC
="-L`pwd`/.libs -rpath `pwd`/.libs"
2969 # Check whether --with-system-zlib or --without-system-zlib was given.
2970 if test "${with_system_zlib+set}" = set; then
2971 withval
="$with_system_zlib"
2982 echo $ac_n "checking for garbage collector to use""... $ac_c" 1>&6
2983 echo "configure:2984: checking for garbage collector to use" >&5
2984 # Check whether --enable-java-gc or --disable-java-gc was given.
2985 if test "${enable_java_gc+set}" = set; then
2986 enableval
="$enable_java_gc"
3001 echo "$ac_t""boehm" 1>&6
3002 GCDEPS
='$(top_builddir)/../boehm-gc/libgcjgc.la'
3003 # We include the path to the boehm-gc build directory.
3004 # See Makefile.am to understand why.
3005 GCLIBS
="$GCDEPS -L\$(here)/../boehm-gc/$libsubdir"
3006 GCINCS
='-I$(top_srcdir)/../boehm-gc -I$(top_builddir)/../boehm-gc'
3008 GCTESTSPEC
="-L`pwd`/../boehm-gc/.libs -rpath `pwd`/../boehm-gc/.libs"
3009 GCINCS
="$GCINCS `cat ../boehm-gc/boehm-cflags`"
3012 cat >> confdefs.h
<<\EOF
3013 #define HAVE_BOEHM_GC 1
3018 echo "$ac_t""none" 1>&6
3023 { echo "configure: error: unrecognized collector \"$GC\"" 1>&2; exit 1; }
3035 echo $ac_n "checking for threads package to use""... $ac_c" 1>&6
3036 echo "configure:3037: checking for threads package to use" >&5
3037 # Check whether --enable-threads or --disable-threads was given.
3038 if test "${enable_threads+set}" = set; then
3039 enableval
="$enable_threads"
3046 if test "$THREADS" = yes; then
3052 # FIXME: this isn't correct in all cases.
3059 # FIXME: for now, choose POSIX, because we implement that.
3060 # Later, choose irix threads.
3064 # FIXME: for now, choose POSIX, because we implement that.
3065 # Later, choose solaris threads.
3083 cat >> confdefs.h
<<\EOF
3084 #define LINUX_THREADS 1
3090 decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks
)
3091 { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
3094 { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
3097 echo "$ac_t""$THREADS" 1>&6
3107 THREADLIBS
=-lpthread
3108 THREADSPEC
=-lpthread
3109 THREADOBJS
=posix-threads.lo
3110 THREADH
=posix-threads.h
3111 # MIT pthreads doesn't seem to have the mutexattr functions.
3112 # But for now we don't check for it. We just assume you aren't
3113 # using MIT pthreads.
3114 cat >> confdefs.h
<<\EOF
3115 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
3119 # If we're using the Boehm GC, then we happen to know that it
3120 # defines _REENTRANT, so we don't bother. Eww.
3121 if test "$GC" != boehm
; then
3122 cat >> confdefs.h
<<\EOF
3123 #define _REENTRANT 1
3127 cat >> confdefs.h
<<\EOF
3128 #define _POSIX_PTHREAD_SEMANTICS 1
3134 THREADOBJS
=no-threads.lo
3135 THREADH
=no-threads.h
3147 if test "$GCC" = yes; then
3159 # Find eh-common.h and support headers. If we're in the tree with
3160 # gcc, then look there. Otherwise look in compat-include. If all else
3161 # fails, just hope the user has set things up somehow.
3162 if test -r $srcdir/..
/gcc
/eh-common.h
; then
3163 EH_COMMON_INCLUDE
='-I$(top_srcdir)/../gcc -I$(top_srcdir)/../include'
3165 if test -d $srcdir/..
/compat-include
; then
3166 EH_COMMON_INCLUDE
='-I$(top_srcdir)/../compat-include'
3172 if test -n "${with_cross_host}"; then
3173 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
3174 # may not work correctly, because the compiler may not be able to
3177 # We assume newlib. This lets us hard-code the functions we know
3179 cat >> confdefs.h
<<\EOF
3180 #define HAVE_MEMMOVE 1
3183 cat >> confdefs.h
<<\EOF
3184 #define HAVE_MEMCPY 1
3187 cat >> confdefs.h
<<\EOF
3188 #define HAVE_STRERROR 1
3191 cat >> confdefs.h
<<\EOF
3192 #define HAVE_GMTIME_R 1
3195 cat >> confdefs.h
<<\EOF
3196 #define HAVE_LOCALTIME_R 1
3199 cat >> confdefs.h
<<\EOF
3200 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
3203 cat >> confdefs.h
<<\EOF
3204 #define HAVE_ALLOCA 1
3208 cat >> confdefs.h
<<\EOF
3214 ZLIBTESTSPEC
="-L`pwd`/../zlib/.libs -rpath `pwd`/../zlib/.libs"
3216 # If Canadian cross, then don't pick up tools from the build
3218 if test "$build" != "$with_cross_host"; then
3221 GCJ
="${target_alias}-gcj"
3227 for ac_func
in strerror ioctl
select fstat open fsync
sleep
3229 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3230 echo "configure:3231: checking for $ac_func" >&5
3231 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3232 echo $ac_n "(cached) $ac_c" 1>&6
3234 cat > conftest.
$ac_ext <<EOF
3235 #line 3236 "configure"
3236 #include "confdefs.h"
3237 /* System header to define __stub macros and hopefully few prototypes,
3238 which can conflict with char $ac_func(); below. */
3240 /* Override any gcc2 internal prototype to avoid an error. */
3241 /* We use char because int might match the return type of a gcc2
3242 builtin and then its argument prototype would still apply. */
3247 /* The GNU C library defines this for functions which it implements
3248 to always fail with ENOSYS. Some functions are actually named
3249 something starting with __ and the normal name is an alias. */
3250 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3258 if { (eval echo configure
:3259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3260 eval "ac_cv_func_$ac_func=yes"
3262 echo "configure: failed program was:" >&5
3263 cat conftest.
$ac_ext >&5
3265 eval "ac_cv_func_$ac_func=no"
3270 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3271 echo "$ac_t""yes" 1>&6
3272 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3273 cat >> confdefs.h
<<EOF
3274 #define $ac_tr_func 1
3278 echo "$ac_t""no" 1>&6
3282 for ac_func
in gmtime_r localtime_r readdir_r getpwuid_r getcwd
3284 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3285 echo "configure:3286: checking for $ac_func" >&5
3286 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3287 echo $ac_n "(cached) $ac_c" 1>&6
3289 cat > conftest.
$ac_ext <<EOF
3290 #line 3291 "configure"
3291 #include "confdefs.h"
3292 /* System header to define __stub macros and hopefully few prototypes,
3293 which can conflict with char $ac_func(); below. */
3295 /* Override any gcc2 internal prototype to avoid an error. */
3296 /* We use char because int might match the return type of a gcc2
3297 builtin and then its argument prototype would still apply. */
3302 /* The GNU C library defines this for functions which it implements
3303 to always fail with ENOSYS. Some functions are actually named
3304 something starting with __ and the normal name is an alias. */
3305 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3313 if { (eval echo configure
:3314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3315 eval "ac_cv_func_$ac_func=yes"
3317 echo "configure: failed program was:" >&5
3318 cat conftest.
$ac_ext >&5
3320 eval "ac_cv_func_$ac_func=no"
3325 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3326 echo "$ac_t""yes" 1>&6
3327 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3328 cat >> confdefs.h
<<EOF
3329 #define $ac_tr_func 1
3333 echo "$ac_t""no" 1>&6
3337 for ac_func
in access stat mkdir rename
rmdir unlink realpath
3339 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3340 echo "configure:3341: checking for $ac_func" >&5
3341 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3342 echo $ac_n "(cached) $ac_c" 1>&6
3344 cat > conftest.
$ac_ext <<EOF
3345 #line 3346 "configure"
3346 #include "confdefs.h"
3347 /* System header to define __stub macros and hopefully few prototypes,
3348 which can conflict with char $ac_func(); below. */
3350 /* Override any gcc2 internal prototype to avoid an error. */
3351 /* We use char because int might match the return type of a gcc2
3352 builtin and then its argument prototype would still apply. */
3357 /* The GNU C library defines this for functions which it implements
3358 to always fail with ENOSYS. Some functions are actually named
3359 something starting with __ and the normal name is an alias. */
3360 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3368 if { (eval echo configure
:3369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3370 eval "ac_cv_func_$ac_func=yes"
3372 echo "configure: failed program was:" >&5
3373 cat conftest.
$ac_ext >&5
3375 eval "ac_cv_func_$ac_func=no"
3380 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3381 echo "$ac_t""yes" 1>&6
3382 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3383 cat >> confdefs.h
<<EOF
3384 #define $ac_tr_func 1
3388 echo "$ac_t""no" 1>&6
3392 for ac_func
in iconv nl_langinfo
3394 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3395 echo "configure:3396: checking for $ac_func" >&5
3396 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3397 echo $ac_n "(cached) $ac_c" 1>&6
3399 cat > conftest.
$ac_ext <<EOF
3400 #line 3401 "configure"
3401 #include "confdefs.h"
3402 /* System header to define __stub macros and hopefully few prototypes,
3403 which can conflict with char $ac_func(); below. */
3405 /* Override any gcc2 internal prototype to avoid an error. */
3406 /* We use char because int might match the return type of a gcc2
3407 builtin and then its argument prototype would still apply. */
3412 /* The GNU C library defines this for functions which it implements
3413 to always fail with ENOSYS. Some functions are actually named
3414 something starting with __ and the normal name is an alias. */
3415 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3423 if { (eval echo configure
:3424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3425 eval "ac_cv_func_$ac_func=yes"
3427 echo "configure: failed program was:" >&5
3428 cat conftest.
$ac_ext >&5
3430 eval "ac_cv_func_$ac_func=no"
3435 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3436 echo "$ac_t""yes" 1>&6
3437 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3438 cat >> confdefs.h
<<EOF
3439 #define $ac_tr_func 1
3443 echo "$ac_t""no" 1>&6
3447 for ac_func
in inet_aton inet_addr
3449 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3450 echo "configure:3451: checking for $ac_func" >&5
3451 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3452 echo $ac_n "(cached) $ac_c" 1>&6
3454 cat > conftest.
$ac_ext <<EOF
3455 #line 3456 "configure"
3456 #include "confdefs.h"
3457 /* System header to define __stub macros and hopefully few prototypes,
3458 which can conflict with char $ac_func(); below. */
3460 /* Override any gcc2 internal prototype to avoid an error. */
3461 /* We use char because int might match the return type of a gcc2
3462 builtin and then its argument prototype would still apply. */
3467 /* The GNU C library defines this for functions which it implements
3468 to always fail with ENOSYS. Some functions are actually named
3469 something starting with __ and the normal name is an alias. */
3470 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3478 if { (eval echo configure
:3479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3480 eval "ac_cv_func_$ac_func=yes"
3482 echo "configure: failed program was:" >&5
3483 cat conftest.
$ac_ext >&5
3485 eval "ac_cv_func_$ac_func=no"
3490 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3491 echo "$ac_t""yes" 1>&6
3492 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3493 cat >> confdefs.h
<<EOF
3494 #define $ac_tr_func 1
3498 echo "$ac_t""no" 1>&6
3502 for ac_func
in inet_pton uname inet_ntoa
3504 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3505 echo "configure:3506: checking for $ac_func" >&5
3506 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3507 echo $ac_n "(cached) $ac_c" 1>&6
3509 cat > conftest.
$ac_ext <<EOF
3510 #line 3511 "configure"
3511 #include "confdefs.h"
3512 /* System header to define __stub macros and hopefully few prototypes,
3513 which can conflict with char $ac_func(); below. */
3515 /* Override any gcc2 internal prototype to avoid an error. */
3516 /* We use char because int might match the return type of a gcc2
3517 builtin and then its argument prototype would still apply. */
3522 /* The GNU C library defines this for functions which it implements
3523 to always fail with ENOSYS. Some functions are actually named
3524 something starting with __ and the normal name is an alias. */
3525 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3533 if { (eval echo configure
:3534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3535 eval "ac_cv_func_$ac_func=yes"
3537 echo "configure: failed program was:" >&5
3538 cat conftest.
$ac_ext >&5
3540 eval "ac_cv_func_$ac_func=no"
3545 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3546 echo "$ac_t""yes" 1>&6
3547 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3548 cat >> confdefs.h
<<EOF
3549 #define $ac_tr_func 1
3553 echo "$ac_t""no" 1>&6
3557 for ac_func
in backtrace fork execvp pipe
3559 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3560 echo "configure:3561: checking for $ac_func" >&5
3561 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3562 echo $ac_n "(cached) $ac_c" 1>&6
3564 cat > conftest.
$ac_ext <<EOF
3565 #line 3566 "configure"
3566 #include "confdefs.h"
3567 /* System header to define __stub macros and hopefully few prototypes,
3568 which can conflict with char $ac_func(); below. */
3570 /* Override any gcc2 internal prototype to avoid an error. */
3571 /* We use char because int might match the return type of a gcc2
3572 builtin and then its argument prototype would still apply. */
3577 /* The GNU C library defines this for functions which it implements
3578 to always fail with ENOSYS. Some functions are actually named
3579 something starting with __ and the normal name is an alias. */
3580 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3588 if { (eval echo configure
:3589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3590 eval "ac_cv_func_$ac_func=yes"
3592 echo "configure: failed program was:" >&5
3593 cat conftest.
$ac_ext >&5
3595 eval "ac_cv_func_$ac_func=no"
3600 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3601 echo "$ac_t""yes" 1>&6
3602 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3603 cat >> confdefs.h
<<EOF
3604 #define $ac_tr_func 1
3608 echo "$ac_t""no" 1>&6
3612 for ac_hdr
in execinfo.h unistd.h dlfcn.h
3614 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3615 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3616 echo "configure:3617: checking for $ac_hdr" >&5
3617 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3618 echo $ac_n "(cached) $ac_c" 1>&6
3620 cat > conftest.
$ac_ext <<EOF
3621 #line 3622 "configure"
3622 #include "confdefs.h"
3625 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3626 { (eval echo configure
:3627: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3627 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3628 if test -z "$ac_err"; then
3630 eval "ac_cv_header_$ac_safe=yes"
3633 echo "configure: failed program was:" >&5
3634 cat conftest.
$ac_ext >&5
3636 eval "ac_cv_header_$ac_safe=no"
3640 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3641 echo "$ac_t""yes" 1>&6
3642 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3643 cat >> confdefs.h
<<EOF
3644 #define $ac_tr_hdr 1
3648 echo "$ac_t""no" 1>&6
3652 echo $ac_n "checking for dladdr in -ldl""... $ac_c" 1>&6
3653 echo "configure:3654: checking for dladdr in -ldl" >&5
3654 ac_lib_var
=`echo dl'_'dladdr | sed 'y%./+-%__p_%'`
3655 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3656 echo $ac_n "(cached) $ac_c" 1>&6
3658 ac_save_LIBS
="$LIBS"
3660 cat > conftest.
$ac_ext <<EOF
3661 #line 3662 "configure"
3662 #include "confdefs.h"
3663 /* Override any gcc2 internal prototype to avoid an error. */
3664 /* We use char because int might match the return type of a gcc2
3665 builtin and then its argument prototype would still apply. */
3672 if { (eval echo configure
:3673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3674 eval "ac_cv_lib_$ac_lib_var=yes"
3676 echo "configure: failed program was:" >&5
3677 cat conftest.
$ac_ext >&5
3679 eval "ac_cv_lib_$ac_lib_var=no"
3682 LIBS
="$ac_save_LIBS"
3685 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3686 echo "$ac_t""yes" 1>&6
3688 cat >> confdefs.h
<<\EOF
3689 #define HAVE_DLADDR 1
3693 echo "$ac_t""no" 1>&6
3696 for ac_file
in /proc
/self
/exe
3699 ac_safe
=`echo "$ac_file" | sed 'y%./+-%__p_%'`
3700 echo $ac_n "checking for $ac_file""... $ac_c" 1>&6
3701 echo "configure:3702: checking for $ac_file" >&5
3702 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
3703 echo $ac_n "(cached) $ac_c" 1>&6
3705 if test "$cross_compiling" = yes; then
3706 { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
3708 if test -r $ac_file; then
3709 eval "ac_cv_file_$ac_safe=yes"
3711 eval "ac_cv_file_$ac_safe=no"
3715 if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
3716 echo "$ac_t""yes" 1>&6
3717 ac_tr_file
=HAVE_
`echo $ac_file | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3718 cat >> confdefs.h
<<EOF
3719 #define $ac_tr_file 1
3722 cat >> confdefs.h
<<\EOF
3723 #define HAVE_PROC_SELF_EXE 1
3727 echo "$ac_t""no" 1>&6
3733 for ac_func
in gethostbyname_r
3735 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3736 echo "configure:3737: checking for $ac_func" >&5
3737 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3738 echo $ac_n "(cached) $ac_c" 1>&6
3740 cat > conftest.
$ac_ext <<EOF
3741 #line 3742 "configure"
3742 #include "confdefs.h"
3743 /* System header to define __stub macros and hopefully few prototypes,
3744 which can conflict with char $ac_func(); below. */
3746 /* Override any gcc2 internal prototype to avoid an error. */
3747 /* We use char because int might match the return type of a gcc2
3748 builtin and then its argument prototype would still apply. */
3753 /* The GNU C library defines this for functions which it implements
3754 to always fail with ENOSYS. Some functions are actually named
3755 something starting with __ and the normal name is an alias. */
3756 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3764 if { (eval echo configure
:3765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3766 eval "ac_cv_func_$ac_func=yes"
3768 echo "configure: failed program was:" >&5
3769 cat conftest.
$ac_ext >&5
3771 eval "ac_cv_func_$ac_func=no"
3776 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3777 echo "$ac_t""yes" 1>&6
3778 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3779 cat >> confdefs.h
<<EOF
3780 #define $ac_tr_func 1
3783 cat >> confdefs.h
<<\EOF
3784 #define HAVE_GETHOSTBYNAME_R 1
3787 # There are two different kinds of gethostbyname_r.
3788 # We look for the one that returns `int'.
3789 # Hopefully this check is robust enough.
3790 cat > conftest.
$ac_ext <<EOF
3791 #line 3792 "configure"
3792 #include "confdefs.h"
3795 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3796 egrep "int.*gethostbyname_r" >/dev
/null
2>&1; then
3799 cat >> confdefs.h
<<\EOF
3800 #define GETHOSTBYNAME_R_RETURNS_INT 1
3808 *" -D_REENTRANT "*) ;;
3810 echo $ac_n "checking whether gethostbyname_r declaration requires -D_REENTRANT""... $ac_c" 1>&6
3811 echo "configure:3812: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
3812 if eval "test \"`echo '$''{'libjava_cv_gethostbyname_r_needs_reentrant'+set}'`\" = set"; then
3813 echo $ac_n "(cached) $ac_c" 1>&6
3817 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3818 ac_cpp
='$CXXCPP $CPPFLAGS'
3819 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3820 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3821 cross_compiling
=$ac_cv_prog_cxx_cross
3823 cat > conftest.
$ac_ext <<EOF
3824 #line 3825 "configure"
3825 #include "confdefs.h"
3828 gethostbyname_r("", 0, 0);
3831 if { (eval echo configure
:3832: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3833 libjava_cv_gethostbyname_r_needs_reentrant
=no
3835 echo "configure: failed program was:" >&5
3836 cat conftest.
$ac_ext >&5
3838 CPPFLAGS_SAVE
="$CPPFLAGS"
3839 CPPFLAGS
="$CPPFLAGS -D_REENTRANT"
3840 cat > conftest.
$ac_ext <<EOF
3841 #line 3842 "configure"
3842 #include "confdefs.h"
3845 gethostbyname_r("", 0, 0);
3848 if { (eval echo configure
:3849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3850 libjava_cv_gethostbyname_r_needs_reentrant
=yes
3852 echo "configure: failed program was:" >&5
3853 cat conftest.
$ac_ext >&5
3855 libjava_cv_gethostbyname_r_needs_reentrant
=fail
3858 CPPFLAGS
="$CPPFLAGS_SAVE"
3863 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3864 ac_cpp
='$CPP $CPPFLAGS'
3865 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3866 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3867 cross_compiling
=$ac_cv_prog_cc_cross
3872 echo "$ac_t""$libjava_cv_gethostbyname_r_needs_reentrant" 1>&6
3873 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes
; then
3874 cat >> confdefs.h
<<\EOF
3875 #define _REENTRANT 1
3882 echo $ac_n "checking for struct hostent_data""... $ac_c" 1>&6
3883 echo "configure:3884: checking for struct hostent_data" >&5
3884 if eval "test \"`echo '$''{'libjava_cv_struct_hostent_data'+set}'`\" = set"; then
3885 echo $ac_n "(cached) $ac_c" 1>&6
3887 cat > conftest.
$ac_ext <<EOF
3888 #line 3889 "configure"
3889 #include "confdefs.h"
3891 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
3892 # define _REENTRANT 1
3896 struct hostent_data data;
3899 if { (eval echo configure
:3900: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3901 libjava_cv_struct_hostent_data
=yes
3903 echo "configure: failed program was:" >&5
3904 cat conftest.
$ac_ext >&5
3906 libjava_cv_struct_hostent_data
=no
3911 echo "$ac_t""$libjava_cv_struct_hostent_data" 1>&6
3912 if test "x$libjava_cv_struct_hostent_data" = xyes
; then
3913 cat >> confdefs.h
<<\EOF
3914 #define HAVE_STRUCT_HOSTENT_DATA 1
3920 echo "$ac_t""no" 1>&6
3925 for ac_func
in gethostbyaddr_r
3927 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3928 echo "configure:3929: checking for $ac_func" >&5
3929 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3930 echo $ac_n "(cached) $ac_c" 1>&6
3932 cat > conftest.
$ac_ext <<EOF
3933 #line 3934 "configure"
3934 #include "confdefs.h"
3935 /* System header to define __stub macros and hopefully few prototypes,
3936 which can conflict with char $ac_func(); below. */
3938 /* Override any gcc2 internal prototype to avoid an error. */
3939 /* We use char because int might match the return type of a gcc2
3940 builtin and then its argument prototype would still apply. */
3945 /* The GNU C library defines this for functions which it implements
3946 to always fail with ENOSYS. Some functions are actually named
3947 something starting with __ and the normal name is an alias. */
3948 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3956 if { (eval echo configure
:3957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3958 eval "ac_cv_func_$ac_func=yes"
3960 echo "configure: failed program was:" >&5
3961 cat conftest.
$ac_ext >&5
3963 eval "ac_cv_func_$ac_func=no"
3968 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3969 echo "$ac_t""yes" 1>&6
3970 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3971 cat >> confdefs.h
<<EOF
3972 #define $ac_tr_func 1
3975 cat >> confdefs.h
<<\EOF
3976 #define HAVE_GETHOSTBYADDR_R 1
3979 # There are two different kinds of gethostbyaddr_r.
3980 # We look for the one that returns `int'.
3981 # Hopefully this check is robust enough.
3982 cat > conftest.
$ac_ext <<EOF
3983 #line 3984 "configure"
3984 #include "confdefs.h"
3987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3988 egrep "int.*gethostbyaddr_r" >/dev
/null
2>&1; then
3991 cat >> confdefs.h
<<\EOF
3992 #define GETHOSTBYADDR_R_RETURNS_INT 1
3999 echo "$ac_t""no" 1>&6
4004 for ac_func
in gethostname
4006 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4007 echo "configure:4008: checking for $ac_func" >&5
4008 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4009 echo $ac_n "(cached) $ac_c" 1>&6
4011 cat > conftest.
$ac_ext <<EOF
4012 #line 4013 "configure"
4013 #include "confdefs.h"
4014 /* System header to define __stub macros and hopefully few prototypes,
4015 which can conflict with char $ac_func(); below. */
4017 /* Override any gcc2 internal prototype to avoid an error. */
4018 /* We use char because int might match the return type of a gcc2
4019 builtin and then its argument prototype would still apply. */
4024 /* The GNU C library defines this for functions which it implements
4025 to always fail with ENOSYS. Some functions are actually named
4026 something starting with __ and the normal name is an alias. */
4027 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4035 if { (eval echo configure
:4036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4037 eval "ac_cv_func_$ac_func=yes"
4039 echo "configure: failed program was:" >&5
4040 cat conftest.
$ac_ext >&5
4042 eval "ac_cv_func_$ac_func=no"
4047 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4048 echo "$ac_t""yes" 1>&6
4049 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4050 cat >> confdefs.h
<<EOF
4051 #define $ac_tr_func 1
4054 cat >> confdefs.h
<<\EOF
4055 #define HAVE_GETHOSTNAME 1
4058 cat > conftest.
$ac_ext <<EOF
4059 #line 4060 "configure"
4060 #include "confdefs.h"
4063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4064 egrep "gethostname" >/dev
/null
2>&1; then
4067 cat >> confdefs.h
<<\EOF
4068 #define HAVE_GETHOSTNAME_DECL 1
4075 echo "$ac_t""no" 1>&6
4080 # Look for these functions in the thread library, but only bother
4081 # if using POSIX threads.
4082 if test "$THREADS" = posix
; then
4084 LIBS
="$LIBS $THREADLIBS"
4085 # Some POSIX thread systems don't have pthread_mutexattr_settype.
4087 for ac_func
in pthread_mutexattr_settype pthread_mutexattr_setkind_np
4089 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4090 echo "configure:4091: checking for $ac_func" >&5
4091 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4092 echo $ac_n "(cached) $ac_c" 1>&6
4094 cat > conftest.
$ac_ext <<EOF
4095 #line 4096 "configure"
4096 #include "confdefs.h"
4097 /* System header to define __stub macros and hopefully few prototypes,
4098 which can conflict with char $ac_func(); below. */
4100 /* Override any gcc2 internal prototype to avoid an error. */
4101 /* We use char because int might match the return type of a gcc2
4102 builtin and then its argument prototype would still apply. */
4107 /* The GNU C library defines this for functions which it implements
4108 to always fail with ENOSYS. Some functions are actually named
4109 something starting with __ and the normal name is an alias. */
4110 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4118 if { (eval echo configure
:4119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4120 eval "ac_cv_func_$ac_func=yes"
4122 echo "configure: failed program was:" >&5
4123 cat conftest.
$ac_ext >&5
4125 eval "ac_cv_func_$ac_func=no"
4130 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4131 echo "$ac_t""yes" 1>&6
4132 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4133 cat >> confdefs.h
<<EOF
4134 #define $ac_tr_func 1
4138 echo "$ac_t""no" 1>&6
4143 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
4144 # Solaris 7 the name librt is preferred.
4145 for ac_func
in sched_yield
4147 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4148 echo "configure:4149: checking for $ac_func" >&5
4149 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4150 echo $ac_n "(cached) $ac_c" 1>&6
4152 cat > conftest.
$ac_ext <<EOF
4153 #line 4154 "configure"
4154 #include "confdefs.h"
4155 /* System header to define __stub macros and hopefully few prototypes,
4156 which can conflict with char $ac_func(); below. */
4158 /* Override any gcc2 internal prototype to avoid an error. */
4159 /* We use char because int might match the return type of a gcc2
4160 builtin and then its argument prototype would still apply. */
4165 /* The GNU C library defines this for functions which it implements
4166 to always fail with ENOSYS. Some functions are actually named
4167 something starting with __ and the normal name is an alias. */
4168 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4176 if { (eval echo configure
:4177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4178 eval "ac_cv_func_$ac_func=yes"
4180 echo "configure: failed program was:" >&5
4181 cat conftest.
$ac_ext >&5
4183 eval "ac_cv_func_$ac_func=no"
4188 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4189 echo "$ac_t""yes" 1>&6
4190 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4191 cat >> confdefs.h
<<EOF
4192 #define $ac_tr_func 1
4196 echo "$ac_t""no" 1>&6
4197 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
4198 echo "configure:4199: checking for sched_yield in -lrt" >&5
4199 ac_lib_var
=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
4200 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4201 echo $ac_n "(cached) $ac_c" 1>&6
4203 ac_save_LIBS
="$LIBS"
4205 cat > conftest.
$ac_ext <<EOF
4206 #line 4207 "configure"
4207 #include "confdefs.h"
4208 /* Override any gcc2 internal prototype to avoid an error. */
4209 /* We use char because int might match the return type of a gcc2
4210 builtin and then its argument prototype would still apply. */
4217 if { (eval echo configure
:4218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4219 eval "ac_cv_lib_$ac_lib_var=yes"
4221 echo "configure: failed program was:" >&5
4222 cat conftest.
$ac_ext >&5
4224 eval "ac_cv_lib_$ac_lib_var=no"
4227 LIBS
="$ac_save_LIBS"
4230 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4231 echo "$ac_t""yes" 1>&6
4233 cat >> confdefs.h
<<\EOF
4234 #define HAVE_SCHED_YIELD 1
4237 THREADLIBS
="$THREADLIBS -lrt"
4238 THREADSPEC
="$THREADSPEC -lrt"
4240 echo "$ac_t""no" 1>&6
4242 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
4243 echo "configure:4244: checking for sched_yield in -lposix4" >&5
4244 ac_lib_var
=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
4245 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4246 echo $ac_n "(cached) $ac_c" 1>&6
4248 ac_save_LIBS
="$LIBS"
4249 LIBS
="-lposix4 $LIBS"
4250 cat > conftest.
$ac_ext <<EOF
4251 #line 4252 "configure"
4252 #include "confdefs.h"
4253 /* Override any gcc2 internal prototype to avoid an error. */
4254 /* We use char because int might match the return type of a gcc2
4255 builtin and then its argument prototype would still apply. */
4262 if { (eval echo configure
:4263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4264 eval "ac_cv_lib_$ac_lib_var=yes"
4266 echo "configure: failed program was:" >&5
4267 cat conftest.
$ac_ext >&5
4269 eval "ac_cv_lib_$ac_lib_var=no"
4272 LIBS
="$ac_save_LIBS"
4275 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4276 echo "$ac_t""yes" 1>&6
4278 cat >> confdefs.h
<<\EOF
4279 #define HAVE_SCHED_YIELD 1
4282 THREADLIBS
="$THREADLIBS -lposix4"
4283 THREADSPEC
="$THREADSPEC -lposix4"
4285 echo "$ac_t""no" 1>&6
4295 # We can save a little space at runtime if the mutex has m_count
4296 # or __m_count. This is a nice hack for Linux.
4297 cat > conftest.
$ac_ext <<EOF
4298 #line 4299 "configure"
4299 #include "confdefs.h"
4300 #include <pthread.h>
4303 extern pthread_mutex_t *mutex; int q = mutex->m_count;
4307 if { (eval echo configure
:4308: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4309 cat >> confdefs.h
<<\EOF
4310 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
4314 echo "configure: failed program was:" >&5
4315 cat conftest.
$ac_ext >&5
4318 cat > conftest.
$ac_ext <<EOF
4319 #line 4320 "configure"
4320 #include "confdefs.h"
4321 #include <pthread.h>
4324 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
4328 if { (eval echo configure
:4329: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4330 cat >> confdefs.h
<<\EOF
4331 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
4335 echo "configure: failed program was:" >&5
4336 cat conftest.
$ac_ext >&5
4343 # We require a way to get the time.
4345 for ac_func
in gettimeofday
time ftime
4347 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4348 echo "configure:4349: checking for $ac_func" >&5
4349 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4350 echo $ac_n "(cached) $ac_c" 1>&6
4352 cat > conftest.
$ac_ext <<EOF
4353 #line 4354 "configure"
4354 #include "confdefs.h"
4355 /* System header to define __stub macros and hopefully few prototypes,
4356 which can conflict with char $ac_func(); below. */
4358 /* Override any gcc2 internal prototype to avoid an error. */
4359 /* We use char because int might match the return type of a gcc2
4360 builtin and then its argument prototype would still apply. */
4365 /* The GNU C library defines this for functions which it implements
4366 to always fail with ENOSYS. Some functions are actually named
4367 something starting with __ and the normal name is an alias. */
4368 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4376 if { (eval echo configure
:4377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4378 eval "ac_cv_func_$ac_func=yes"
4380 echo "configure: failed program was:" >&5
4381 cat conftest.
$ac_ext >&5
4383 eval "ac_cv_func_$ac_func=no"
4388 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4389 echo "$ac_t""yes" 1>&6
4390 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4391 cat >> confdefs.h
<<EOF
4392 #define $ac_tr_func 1
4396 echo "$ac_t""no" 1>&6
4400 if test "$time_found" = no
; then
4401 { echo "configure: error: no function found to get the time" 1>&2; exit 1; }
4404 for ac_func
in memmove
4406 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4407 echo "configure:4408: checking for $ac_func" >&5
4408 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4409 echo $ac_n "(cached) $ac_c" 1>&6
4411 cat > conftest.
$ac_ext <<EOF
4412 #line 4413 "configure"
4413 #include "confdefs.h"
4414 /* System header to define __stub macros and hopefully few prototypes,
4415 which can conflict with char $ac_func(); below. */
4417 /* Override any gcc2 internal prototype to avoid an error. */
4418 /* We use char because int might match the return type of a gcc2
4419 builtin and then its argument prototype would still apply. */
4424 /* The GNU C library defines this for functions which it implements
4425 to always fail with ENOSYS. Some functions are actually named
4426 something starting with __ and the normal name is an alias. */
4427 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4435 if { (eval echo configure
:4436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4437 eval "ac_cv_func_$ac_func=yes"
4439 echo "configure: failed program was:" >&5
4440 cat conftest.
$ac_ext >&5
4442 eval "ac_cv_func_$ac_func=no"
4447 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4448 echo "$ac_t""yes" 1>&6
4449 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4450 cat >> confdefs.h
<<EOF
4451 #define $ac_tr_func 1
4455 echo "$ac_t""no" 1>&6
4460 # We require memcpy.
4462 for ac_func
in memcpy
4464 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4465 echo "configure:4466: checking for $ac_func" >&5
4466 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4467 echo $ac_n "(cached) $ac_c" 1>&6
4469 cat > conftest.
$ac_ext <<EOF
4470 #line 4471 "configure"
4471 #include "confdefs.h"
4472 /* System header to define __stub macros and hopefully few prototypes,
4473 which can conflict with char $ac_func(); below. */
4475 /* Override any gcc2 internal prototype to avoid an error. */
4476 /* We use char because int might match the return type of a gcc2
4477 builtin and then its argument prototype would still apply. */
4482 /* The GNU C library defines this for functions which it implements
4483 to always fail with ENOSYS. Some functions are actually named
4484 something starting with __ and the normal name is an alias. */
4485 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4493 if { (eval echo configure
:4494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4495 eval "ac_cv_func_$ac_func=yes"
4497 echo "configure: failed program was:" >&5
4498 cat conftest.
$ac_ext >&5
4500 eval "ac_cv_func_$ac_func=no"
4505 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4506 echo "$ac_t""yes" 1>&6
4507 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4508 cat >> confdefs.h
<<EOF
4509 #define $ac_tr_func 1
4513 echo "$ac_t""no" 1>&6
4517 if test "$memcpy_found" = no
; then
4518 { echo "configure: error: memcpy is required" 1>&2; exit 1; }
4521 # Some library-finding code we stole from Tcl.
4522 #--------------------------------------------------------------------
4523 # Check for the existence of the -lsocket and -lnsl libraries.
4524 # The order here is important, so that they end up in the right
4525 # order in the command line generated by make. Here are some
4526 # special considerations:
4527 # 1. Use "connect" and "accept" to check for -lsocket, and
4528 # "gethostbyname" to check for -lnsl.
4529 # 2. Use each function name only once: can't redo a check because
4530 # autoconf caches the results of the last check and won't redo it.
4531 # 3. Use -lnsl and -lsocket only if they supply procedures that
4532 # aren't already present in the normal libraries. This is because
4533 # IRIX 5.2 has libraries, but they aren't needed and they're
4534 # bogus: they goof up name resolution if used.
4535 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
4536 # To get around this problem, check for both libraries together
4537 # if -lsocket doesn't work by itself.
4538 #--------------------------------------------------------------------
4540 echo $ac_n "checking for socket libraries""... $ac_c" 1>&6
4541 echo "configure:4542: checking for socket libraries" >&5
4542 if eval "test \"`echo '$''{'gcj_cv_lib_sockets'+set}'`\" = set"; then
4543 echo $ac_n "(cached) $ac_c" 1>&6
4547 unset ac_cv_func_connect
4548 echo $ac_n "checking for connect""... $ac_c" 1>&6
4549 echo "configure:4550: checking for connect" >&5
4550 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
4551 echo $ac_n "(cached) $ac_c" 1>&6
4553 cat > conftest.
$ac_ext <<EOF
4554 #line 4555 "configure"
4555 #include "confdefs.h"
4556 /* System header to define __stub macros and hopefully few prototypes,
4557 which can conflict with char connect(); below. */
4559 /* Override any gcc2 internal prototype to avoid an error. */
4560 /* We use char because int might match the return type of a gcc2
4561 builtin and then its argument prototype would still apply. */
4566 /* The GNU C library defines this for functions which it implements
4567 to always fail with ENOSYS. Some functions are actually named
4568 something starting with __ and the normal name is an alias. */
4569 #if defined (__stub_connect) || defined (__stub___connect)
4577 if { (eval echo configure
:4578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4579 eval "ac_cv_func_connect=yes"
4581 echo "configure: failed program was:" >&5
4582 cat conftest.
$ac_ext >&5
4584 eval "ac_cv_func_connect=no"
4589 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
4590 echo "$ac_t""yes" 1>&6
4593 echo "$ac_t""no" 1>&6
4597 if test "$gcj_checkSocket" = 1; then
4598 unset ac_cv_func_connect
4599 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4600 echo "configure:4601: checking for main in -lsocket" >&5
4601 ac_lib_var
=`echo socket'_'main | sed 'y%./+-%__p_%'`
4602 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4603 echo $ac_n "(cached) $ac_c" 1>&6
4605 ac_save_LIBS
="$LIBS"
4606 LIBS
="-lsocket $LIBS"
4607 cat > conftest.
$ac_ext <<EOF
4608 #line 4609 "configure"
4609 #include "confdefs.h"
4615 if { (eval echo configure
:4616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4617 eval "ac_cv_lib_$ac_lib_var=yes"
4619 echo "configure: failed program was:" >&5
4620 cat conftest.
$ac_ext >&5
4622 eval "ac_cv_lib_$ac_lib_var=no"
4625 LIBS
="$ac_save_LIBS"
4628 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4629 echo "$ac_t""yes" 1>&6
4630 gcj_cv_lib_sockets
="-lsocket"
4632 echo "$ac_t""no" 1>&6
4637 if test "$gcj_checkBoth" = 1; then
4639 LIBS
="$LIBS -lsocket -lnsl"
4640 unset ac_cv_func_accept
4641 echo $ac_n "checking for accept""... $ac_c" 1>&6
4642 echo "configure:4643: checking for accept" >&5
4643 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
4644 echo $ac_n "(cached) $ac_c" 1>&6
4646 cat > conftest.
$ac_ext <<EOF
4647 #line 4648 "configure"
4648 #include "confdefs.h"
4649 /* System header to define __stub macros and hopefully few prototypes,
4650 which can conflict with char accept(); below. */
4652 /* Override any gcc2 internal prototype to avoid an error. */
4653 /* We use char because int might match the return type of a gcc2
4654 builtin and then its argument prototype would still apply. */
4659 /* The GNU C library defines this for functions which it implements
4660 to always fail with ENOSYS. Some functions are actually named
4661 something starting with __ and the normal name is an alias. */
4662 #if defined (__stub_accept) || defined (__stub___accept)
4670 if { (eval echo configure
:4671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4672 eval "ac_cv_func_accept=yes"
4674 echo "configure: failed program was:" >&5
4675 cat conftest.
$ac_ext >&5
4677 eval "ac_cv_func_accept=no"
4682 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
4683 echo "$ac_t""yes" 1>&6
4685 gcj_cv_lib_sockets
="-lsocket -lnsl"
4687 echo "$ac_t""no" 1>&6
4690 unset ac_cv_func_accept
4693 unset ac_cv_func_gethostbyname
4695 LIBS
="$LIBS $gcj_cv_lib_sockets"
4696 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4697 echo "configure:4698: checking for gethostbyname" >&5
4698 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
4699 echo $ac_n "(cached) $ac_c" 1>&6
4701 cat > conftest.
$ac_ext <<EOF
4702 #line 4703 "configure"
4703 #include "confdefs.h"
4704 /* System header to define __stub macros and hopefully few prototypes,
4705 which can conflict with char gethostbyname(); below. */
4707 /* Override any gcc2 internal prototype to avoid an error. */
4708 /* We use char because int might match the return type of a gcc2
4709 builtin and then its argument prototype would still apply. */
4710 char gethostbyname();
4714 /* The GNU C library defines this for functions which it implements
4715 to always fail with ENOSYS. Some functions are actually named
4716 something starting with __ and the normal name is an alias. */
4717 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4725 if { (eval echo configure
:4726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4727 eval "ac_cv_func_gethostbyname=yes"
4729 echo "configure: failed program was:" >&5
4730 cat conftest.
$ac_ext >&5
4732 eval "ac_cv_func_gethostbyname=no"
4737 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
4738 echo "$ac_t""yes" 1>&6
4741 echo "$ac_t""no" 1>&6
4742 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
4743 echo "configure:4744: checking for main in -lnsl" >&5
4744 ac_lib_var
=`echo nsl'_'main | sed 'y%./+-%__p_%'`
4745 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4746 echo $ac_n "(cached) $ac_c" 1>&6
4748 ac_save_LIBS
="$LIBS"
4750 cat > conftest.
$ac_ext <<EOF
4751 #line 4752 "configure"
4752 #include "confdefs.h"
4758 if { (eval echo configure
:4759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4760 eval "ac_cv_lib_$ac_lib_var=yes"
4762 echo "configure: failed program was:" >&5
4763 cat conftest.
$ac_ext >&5
4765 eval "ac_cv_lib_$ac_lib_var=no"
4768 LIBS
="$ac_save_LIBS"
4771 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4772 echo "$ac_t""yes" 1>&6
4773 gcj_cv_lib_sockets
="$gcj_cv_lib_sockets -lnsl"
4775 echo "$ac_t""no" 1>&6
4780 unset ac_cv_func_gethostbyname
4785 echo "$ac_t""$gcj_cv_lib_sockets" 1>&6
4786 SYSTEMSPEC
="$SYSTEMSPEC $gcj_cv_lib_sockets"
4788 if test "$with_system_zlib" = yes; then
4789 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
4790 echo "configure:4791: checking for deflate in -lz" >&5
4791 ac_lib_var
=`echo z'_'deflate | sed 'y%./+-%__p_%'`
4792 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4793 echo $ac_n "(cached) $ac_c" 1>&6
4795 ac_save_LIBS
="$LIBS"
4797 cat > conftest.
$ac_ext <<EOF
4798 #line 4799 "configure"
4799 #include "confdefs.h"
4800 /* Override any gcc2 internal prototype to avoid an error. */
4801 /* We use char because int might match the return type of a gcc2
4802 builtin and then its argument prototype would still apply. */
4809 if { (eval echo configure
:4810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4811 eval "ac_cv_lib_$ac_lib_var=yes"
4813 echo "configure: failed program was:" >&5
4814 cat conftest.
$ac_ext >&5
4816 eval "ac_cv_lib_$ac_lib_var=no"
4819 LIBS
="$ac_save_LIBS"
4822 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4823 echo "$ac_t""yes" 1>&6
4826 echo "$ac_t""no" 1>&6
4832 ZLIBTESTSPEC
="-L`pwd`/../zlib/.libs -rpath `pwd`/../zlib/.libs"
4835 # On Solaris, and maybe other architectures, the Boehm collector
4837 if test "$GC" = boehm
; then
4838 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
4839 echo "configure:4840: checking for main in -ldl" >&5
4840 ac_lib_var
=`echo dl'_'main | sed 'y%./+-%__p_%'`
4841 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4842 echo $ac_n "(cached) $ac_c" 1>&6
4844 ac_save_LIBS
="$LIBS"
4846 cat > conftest.
$ac_ext <<EOF
4847 #line 4848 "configure"
4848 #include "confdefs.h"
4854 if { (eval echo configure
:4855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4856 eval "ac_cv_lib_$ac_lib_var=yes"
4858 echo "configure: failed program was:" >&5
4859 cat conftest.
$ac_ext >&5
4861 eval "ac_cv_lib_$ac_lib_var=no"
4864 LIBS
="$ac_save_LIBS"
4867 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4868 echo "$ac_t""yes" 1>&6
4869 SYSTEMSPEC
="$SYSTEMSPEC -ldl"
4871 echo "$ac_t""no" 1>&6
4876 if test -z "${with_multisubdir}"; then
4880 builddotdot
=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
4883 dir
="`cd ${builddotdot}/../../gcc && pwd`"
4884 if test -x "${dir}/gcj"; then
4885 GCJ
="$dir/gcj -B`pwd`/ -B$dir/"
4893 # Create it, so that compile/link tests don't fail
4894 test -f libgcj.spec ||
touch libgcj.spec
4895 GCJ
="$GCJ -I$srcdir"
4898 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
4899 set dummy
${ac_tool_prefix}gcj
; ac_word
=$2
4900 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4901 echo "configure:4902: checking for $ac_word" >&5
4902 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
4903 echo $ac_n "(cached) $ac_c" 1>&6
4905 if test -n "$GCJ"; then
4906 ac_cv_prog_GCJ
="$GCJ" # Let the user override the test.
4908 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4910 for ac_dir
in $ac_dummy; do
4911 test -z "$ac_dir" && ac_dir
=.
4912 if test -f $ac_dir/$ac_word; then
4913 ac_cv_prog_GCJ
="${ac_tool_prefix}gcj"
4920 GCJ
="$ac_cv_prog_GCJ"
4921 if test -n "$GCJ"; then
4922 echo "$ac_t""$GCJ" 1>&6
4924 echo "$ac_t""no" 1>&6
4928 if test -z "$ac_cv_prog_GCJ"; then
4929 if test -n "$ac_tool_prefix"; then
4930 # Extract the first word of "gcj", so it can be a program name with args.
4931 set dummy gcj
; ac_word
=$2
4932 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4933 echo "configure:4934: checking for $ac_word" >&5
4934 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
4935 echo $ac_n "(cached) $ac_c" 1>&6
4937 if test -n "$GCJ"; then
4938 ac_cv_prog_GCJ
="$GCJ" # Let the user override the test.
4940 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4942 for ac_dir
in $ac_dummy; do
4943 test -z "$ac_dir" && ac_dir
=.
4944 if test -f $ac_dir/$ac_word; then
4945 ac_cv_prog_GCJ
="gcj"
4950 test -z "$ac_cv_prog_GCJ" && ac_cv_prog_GCJ
="no"
4953 GCJ
="$ac_cv_prog_GCJ"
4954 if test -n "$GCJ"; then
4955 echo "$ac_t""$GCJ" 1>&6
4957 echo "$ac_t""no" 1>&6
4965 test "x${GCJFLAGS+set}" = xset || GCJFLAGS
="-g -O2"
4969 LIBTOOL_DEPS
=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
4971 lt_save_CFLAGS
="$CFLAGS"
4972 AR
="$AR" LTCC
="$CC" CC
="$GCJ" CFLAGS
="$GCJFLAGS" CPPFLAGS
="" \
4973 MAGIC_CMD
="$MAGIC_CMD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
4974 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
4975 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
4976 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
4977 deplibs_check_method
="$deplibs_check_method" \
4978 file_magic_cmd
="$file_magic_cmd" \
4979 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
-o libtool
$libtool_flags \
4980 --build="$build" --add-tag=GCJ
$ac_aux_dir/ltcf-gcj.sh
$host \
4981 ||
{ echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
4983 CFLAGS
="$lt_save_CFLAGS"
4985 # Redirect the config.log output again, so that the ltconfig log is not
4986 # clobbered by the next message.
4987 exec 5>>.
/config.log
4992 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4993 echo "configure:4994: checking size of void *" >&5
4994 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
4995 echo $ac_n "(cached) $ac_c" 1>&6
4997 if test "$cross_compiling" = yes; then
4998 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5000 cat > conftest.
$ac_ext <<EOF
5001 #line 5002 "configure"
5002 #include "confdefs.h"
5006 FILE *f=fopen("conftestval", "w");
5008 fprintf(f, "%d\n", sizeof(void *));
5012 if { (eval echo configure
:5013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5014 ac_cv_sizeof_void_p
=`cat conftestval`
5016 echo "configure: failed program was:" >&5
5017 cat conftest.
$ac_ext >&5
5019 ac_cv_sizeof_void_p
=0
5025 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
5026 cat >> confdefs.h
<<EOF
5027 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5035 if test "x$ZLIBSPEC" = "x-lzgcj"; then
5036 # We include the path to the zlib build directory.
5037 # See Makefile.am to understand why.
5038 ZDEPS
='$(top_builddir)/../zlib/libzgcj.la'
5039 ZLIBS
="$ZDEPS -L\$(here)/../zlib/$libsubdir"
5040 ZINCS
='-I$(top_srcdir)/../zlib'
5053 if test "$CANADIAN" = yes; then
5062 if test "$NULL_TARGET" = yes; then
5064 NULL_TARGET_FALSE
='#'
5066 NULL_TARGET_TRUE
='#'
5071 if test "$NATIVE" = yes ||
test "$NULL_TARGET" = yes; then
5080 if test -z "$with_cross_host"; then
5082 USE_LIBDIR_FALSE
='#'
5089 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
5090 NEEDS_DATA_START_TRUE
=
5091 NEEDS_DATA_START_FALSE
='#'
5093 NEEDS_DATA_START_TRUE
='#'
5094 NEEDS_DATA_START_FALSE
=
5098 # Determine gcj version number.
5100 gcjvers
="`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`"
5102 cat >> confdefs.h
<<EOF
5103 #define GCJVERSION "$gcjvers"
5107 # See if gcj supports -fuse-divide-subroutine. gcc 2.95 does not, and
5108 # we want to continue to support that version.
5109 echo $ac_n "checking whether gcj supports -fuse-divide-subroutine""... $ac_c" 1>&6
5110 echo "configure:5111: checking whether gcj supports -fuse-divide-subroutine" >&5
5111 cat > conftest.java
<< 'END'
5112 public class conftest
{ }
5115 $GCJ -classpath $srcdir -fuse-divide-subroutine -fsyntax-only \
5116 conftest.java
> /dev
/null
2>&1 \
5119 if test "$use_fuse" = no
; then
5122 echo "$ac_t""$use_fuse" 1>&6
5126 echo $ac_n "checking for g++ -ffloat-store bug""... $ac_c" 1>&6
5127 echo "configure:5128: checking for g++ -ffloat-store bug" >&5
5128 save_CFLAGS
="$CFLAGS"
5129 CFLAGS
="-x c++ -O2 -ffloat-store"
5130 cat > conftest.
$ac_ext <<EOF
5131 #line 5132 "configure"
5132 #include "confdefs.h"
5138 if { (eval echo configure
:5139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5140 echo "$ac_t""no" 1>&6
5142 echo "configure: failed program was:" >&5
5143 cat conftest.
$ac_ext >&5
5145 cat >> confdefs.h
<<\EOF
5146 #define __NO_MATH_INLINES 1
5149 echo "$ac_t""yes" 1>&6
5152 CFLAGS
="$save_CFLAGS"
5154 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 langinfo.h
5156 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5157 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5158 echo "configure:5159: checking for $ac_hdr" >&5
5159 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5160 echo $ac_n "(cached) $ac_c" 1>&6
5162 cat > conftest.
$ac_ext <<EOF
5163 #line 5164 "configure"
5164 #include "confdefs.h"
5167 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5168 { (eval echo configure
:5169: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5169 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5170 if test -z "$ac_err"; then
5172 eval "ac_cv_header_$ac_safe=yes"
5175 echo "configure: failed program was:" >&5
5176 cat conftest.
$ac_ext >&5
5178 eval "ac_cv_header_$ac_safe=no"
5182 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5183 echo "$ac_t""yes" 1>&6
5184 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5185 cat >> confdefs.h
<<EOF
5186 #define $ac_tr_hdr 1
5190 echo "$ac_t""no" 1>&6
5194 for ac_hdr
in dirent.h
5196 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5197 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5198 echo "configure:5199: checking for $ac_hdr" >&5
5199 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5200 echo $ac_n "(cached) $ac_c" 1>&6
5202 cat > conftest.
$ac_ext <<EOF
5203 #line 5204 "configure"
5204 #include "confdefs.h"
5207 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5208 { (eval echo configure
:5209: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5209 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5210 if test -z "$ac_err"; then
5212 eval "ac_cv_header_$ac_safe=yes"
5215 echo "configure: failed program was:" >&5
5216 cat conftest.
$ac_ext >&5
5218 eval "ac_cv_header_$ac_safe=no"
5222 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5223 echo "$ac_t""yes" 1>&6
5224 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5225 cat >> confdefs.h
<<EOF
5226 #define $ac_tr_hdr 1
5230 echo "$ac_t""no" 1>&6
5235 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5236 echo "configure:5237: checking for ANSI C header files" >&5
5237 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5238 echo $ac_n "(cached) $ac_c" 1>&6
5240 cat > conftest.
$ac_ext <<EOF
5241 #line 5242 "configure"
5242 #include "confdefs.h"
5248 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5249 { (eval echo configure
:5250: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5250 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5251 if test -z "$ac_err"; then
5253 ac_cv_header_stdc
=yes
5256 echo "configure: failed program was:" >&5
5257 cat conftest.
$ac_ext >&5
5259 ac_cv_header_stdc
=no
5263 if test $ac_cv_header_stdc = yes; then
5264 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5265 cat > conftest.
$ac_ext <<EOF
5266 #line 5267 "configure"
5267 #include "confdefs.h"
5270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5271 egrep "memchr" >/dev
/null
2>&1; then
5275 ac_cv_header_stdc
=no
5281 if test $ac_cv_header_stdc = yes; then
5282 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5283 cat > conftest.
$ac_ext <<EOF
5284 #line 5285 "configure"
5285 #include "confdefs.h"
5288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5289 egrep "free" >/dev
/null
2>&1; then
5293 ac_cv_header_stdc
=no
5299 if test $ac_cv_header_stdc = yes; then
5300 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5301 if test "$cross_compiling" = yes; then
5304 cat > conftest.
$ac_ext <<EOF
5305 #line 5306 "configure"
5306 #include "confdefs.h"
5308 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5309 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5310 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5311 int main () { int i; for (i = 0; i < 256; i++)
5312 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5316 if { (eval echo configure
:5317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5320 echo "configure: failed program was:" >&5
5321 cat conftest.
$ac_ext >&5
5323 ac_cv_header_stdc
=no
5331 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5332 if test $ac_cv_header_stdc = yes; then
5333 cat >> confdefs.h
<<\EOF
5334 #define STDC_HEADERS 1
5339 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
5340 echo "configure:5341: checking for ssize_t" >&5
5341 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
5342 echo $ac_n "(cached) $ac_c" 1>&6
5344 cat > conftest.
$ac_ext <<EOF
5345 #line 5346 "configure"
5346 #include "confdefs.h"
5347 #include <sys/types.h>
5353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5354 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
5356 ac_cv_type_ssize_t
=yes
5359 ac_cv_type_ssize_t
=no
5364 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
5365 if test $ac_cv_type_ssize_t = no
; then
5366 cat >> confdefs.h
<<\EOF
5373 echo $ac_n "checking for in_addr_t""... $ac_c" 1>&6
5374 echo "configure:5375: checking for in_addr_t" >&5
5375 cat > conftest.
$ac_ext <<EOF
5376 #line 5377 "configure"
5377 #include "confdefs.h"
5378 #include <sys/types.h>
5383 #if HAVE_NETINET_IN_H
5384 #include <netinet/in.h>
5390 if { (eval echo configure
:5391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5392 cat >> confdefs.h
<<\EOF
5393 #define HAVE_IN_ADDR_T 1
5396 echo "$ac_t""yes" 1>&6
5398 echo "configure: failed program was:" >&5
5399 cat conftest.
$ac_ext >&5
5401 echo "$ac_t""no" 1>&6
5405 echo $ac_n "checking whether struct ip_mreq is in netinet/in.h""... $ac_c" 1>&6
5406 echo "configure:5407: checking whether struct ip_mreq is in netinet/in.h" >&5
5407 cat > conftest.
$ac_ext <<EOF
5408 #line 5409 "configure"
5409 #include "confdefs.h"
5410 #include <netinet/in.h>
5412 struct ip_mreq mreq;
5415 if { (eval echo configure
:5416: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5417 cat >> confdefs.h
<<\EOF
5418 #define HAVE_STRUCT_IP_MREQ 1
5421 echo "$ac_t""yes" 1>&6
5423 echo "configure: failed program was:" >&5
5424 cat conftest.
$ac_ext >&5
5426 echo "$ac_t""no" 1>&6
5430 echo $ac_n "checking whether struct sockaddr_in6 is in netinet/in.h""... $ac_c" 1>&6
5431 echo "configure:5432: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
5432 cat > conftest.
$ac_ext <<EOF
5433 #line 5434 "configure"
5434 #include "confdefs.h"
5435 #include <netinet/in.h>
5437 struct sockaddr_in6 addr6;
5440 if { (eval echo configure
:5441: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5442 cat >> confdefs.h
<<\EOF
5443 #define HAVE_INET6 1
5446 echo "$ac_t""yes" 1>&6
5448 echo "configure: failed program was:" >&5
5449 cat conftest.
$ac_ext >&5
5451 echo "$ac_t""no" 1>&6
5455 echo $ac_n "checking for socklen_t in sys/socket.h""... $ac_c" 1>&6
5456 echo "configure:5457: checking for socklen_t in sys/socket.h" >&5
5457 cat > conftest.
$ac_ext <<EOF
5458 #line 5459 "configure"
5459 #include "confdefs.h"
5460 #include <sys/socket.h>
5465 if { (eval echo configure
:5466: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5467 cat >> confdefs.h
<<\EOF
5468 #define HAVE_SOCKLEN_T 1
5471 echo "$ac_t""yes" 1>&6
5473 echo "configure: failed program was:" >&5
5474 cat conftest.
$ac_ext >&5
5476 echo "$ac_t""no" 1>&6
5480 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
5481 echo "configure:5482: checking for tm_gmtoff in struct tm" >&5
5482 cat > conftest.
$ac_ext <<EOF
5483 #line 5484 "configure"
5484 #include "confdefs.h"
5487 struct tm tim; tim.tm_gmtoff = 0;
5490 if { (eval echo configure
:5491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5492 cat >> confdefs.h
<<\EOF
5493 #define STRUCT_TM_HAS_GMTOFF 1
5496 echo "$ac_t""yes" 1>&6
5498 echo "configure: failed program was:" >&5
5499 cat conftest.
$ac_ext >&5
5501 echo "$ac_t""no" 1>&6
5502 echo $ac_n "checking for global timezone variable""... $ac_c" 1>&6
5503 echo "configure:5504: checking for global timezone variable" >&5
5504 cat > conftest.
$ac_ext <<EOF
5505 #line 5506 "configure"
5506 #include "confdefs.h"
5512 if { (eval echo configure
:5513: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5514 cat >> confdefs.h
<<\EOF
5515 #define HAVE_TIMEZONE 1
5518 echo "$ac_t""yes" 1>&6
5520 echo "configure: failed program was:" >&5
5521 cat conftest.
$ac_ext >&5
5523 echo "$ac_t""no" 1>&6
5529 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5530 # for constant arguments. Useless!
5531 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5532 echo "configure:5533: checking for working alloca.h" >&5
5533 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5534 echo $ac_n "(cached) $ac_c" 1>&6
5536 cat > conftest.
$ac_ext <<EOF
5537 #line 5538 "configure"
5538 #include "confdefs.h"
5541 char *p = alloca(2 * sizeof(int));
5544 if { (eval echo configure
:5545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5546 ac_cv_header_alloca_h
=yes
5548 echo "configure: failed program was:" >&5
5549 cat conftest.
$ac_ext >&5
5551 ac_cv_header_alloca_h
=no
5556 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5557 if test $ac_cv_header_alloca_h = yes; then
5558 cat >> confdefs.h
<<\EOF
5559 #define HAVE_ALLOCA_H 1
5564 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5565 echo "configure:5566: checking for alloca" >&5
5566 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5567 echo $ac_n "(cached) $ac_c" 1>&6
5569 cat > conftest.
$ac_ext <<EOF
5570 #line 5571 "configure"
5571 #include "confdefs.h"
5574 # define alloca __builtin_alloca
5577 # include <malloc.h>
5578 # define alloca _alloca
5581 # include <alloca.h>
5586 # ifndef alloca /* predefined by HP cc +Olibcalls */
5595 char *p = (char *) alloca(1);
5598 if { (eval echo configure
:5599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5600 ac_cv_func_alloca_works
=yes
5602 echo "configure: failed program was:" >&5
5603 cat conftest.
$ac_ext >&5
5605 ac_cv_func_alloca_works
=no
5610 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5611 if test $ac_cv_func_alloca_works = yes; then
5612 cat >> confdefs.h
<<\EOF
5613 #define HAVE_ALLOCA 1
5618 if test $ac_cv_func_alloca_works = no
; then
5619 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5620 # that cause trouble. Some versions do not even contain alloca or
5621 # contain a buggy version. If you still want to use their alloca,
5622 # use ar to extract alloca.o from them instead of compiling alloca.c.
5623 ALLOCA
=alloca.
${ac_objext}
5624 cat >> confdefs.h
<<\EOF
5629 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5630 echo "configure:5631: checking whether alloca needs Cray hooks" >&5
5631 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5632 echo $ac_n "(cached) $ac_c" 1>&6
5634 cat > conftest.
$ac_ext <<EOF
5635 #line 5636 "configure"
5636 #include "confdefs.h"
5637 #if defined(CRAY) && ! defined(CRAY2)
5644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5645 egrep "webecray" >/dev
/null
2>&1; then
5656 echo "$ac_t""$ac_cv_os_cray" 1>&6
5657 if test $ac_cv_os_cray = yes; then
5658 for ac_func
in _getb67 GETB67 getb67
; do
5659 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5660 echo "configure:5661: checking for $ac_func" >&5
5661 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5662 echo $ac_n "(cached) $ac_c" 1>&6
5664 cat > conftest.
$ac_ext <<EOF
5665 #line 5666 "configure"
5666 #include "confdefs.h"
5667 /* System header to define __stub macros and hopefully few prototypes,
5668 which can conflict with char $ac_func(); below. */
5670 /* Override any gcc2 internal prototype to avoid an error. */
5671 /* We use char because int might match the return type of a gcc2
5672 builtin and then its argument prototype would still apply. */
5677 /* The GNU C library defines this for functions which it implements
5678 to always fail with ENOSYS. Some functions are actually named
5679 something starting with __ and the normal name is an alias. */
5680 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5688 if { (eval echo configure
:5689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5690 eval "ac_cv_func_$ac_func=yes"
5692 echo "configure: failed program was:" >&5
5693 cat conftest.
$ac_ext >&5
5695 eval "ac_cv_func_$ac_func=no"
5700 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5701 echo "$ac_t""yes" 1>&6
5702 cat >> confdefs.h
<<EOF
5703 #define CRAY_STACKSEG_END $ac_func
5708 echo "$ac_t""no" 1>&6
5714 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5715 echo "configure:5716: checking stack direction for C alloca" >&5
5716 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5717 echo $ac_n "(cached) $ac_c" 1>&6
5719 if test "$cross_compiling" = yes; then
5720 ac_cv_c_stack_direction
=0
5722 cat > conftest.
$ac_ext <<EOF
5723 #line 5724 "configure"
5724 #include "confdefs.h"
5725 find_stack_direction ()
5727 static char *addr = 0;
5732 return find_stack_direction ();
5735 return (&dummy > addr) ? 1 : -1;
5739 exit (find_stack_direction() < 0);
5742 if { (eval echo configure
:5743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5744 ac_cv_c_stack_direction
=1
5746 echo "configure: failed program was:" >&5
5747 cat conftest.
$ac_ext >&5
5749 ac_cv_c_stack_direction
=-1
5756 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5757 cat >> confdefs.h
<<EOF
5758 #define STACK_DIRECTION $ac_cv_c_stack_direction
5766 # Extract the first word of "$ac_prog", so it can be a program name with args.
5767 set dummy
$ac_prog; ac_word
=$2
5768 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5769 echo "configure:5770: checking for $ac_word" >&5
5770 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
5771 echo $ac_n "(cached) $ac_c" 1>&6
5773 if test -n "$PERL"; then
5774 ac_cv_prog_PERL
="$PERL" # Let the user override the test.
5776 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5778 for ac_dir
in $ac_dummy; do
5779 test -z "$ac_dir" && ac_dir
=.
5780 if test -f $ac_dir/$ac_word; then
5781 ac_cv_prog_PERL
="$ac_prog"
5788 PERL
="$ac_cv_prog_PERL"
5789 if test -n "$PERL"; then
5790 echo "$ac_t""$PERL" 1>&6
5792 echo "$ac_t""no" 1>&6
5795 test -n "$PERL" && break
5797 test -n "$PERL" || PERL
="false"
5804 SIGNAL_HANDLER
=include
/i386-signal.h
5807 SIGNAL_HANDLER
=include
/sparc-signal.h
5810 SYSDEP_SOURCES
=sysdep
/ia64.c
5811 test -d sysdep || mkdir sysdep
5814 SIGNAL_HANDLER
=include
/default-signal.h
5818 # If we're using sjlj exceptions, forget what we just learned.
5819 if test "$libgcj_sjlj" = yes; then
5820 SIGNAL_HANDLER
=include
/default-signal.h
5827 if test "${multilib}" = "yes"; then
5828 multilib_arg
="--enable-multilib"
5837 cat > confcache
<<\EOF
5838 # This file is a shell script that caches the results of configure
5839 # tests run on this system so they can be shared between configure
5840 # scripts and configure runs. It is not useful on other systems.
5841 # If it contains results you don't want to keep, you may remove or edit it.
5843 # By default, configure uses ./config.cache as the cache file,
5844 # creating it if it does not exist already. You can give configure
5845 # the --cache-file=FILE option to use a different cache file; that is
5846 # what configure does when it calls configure scripts in
5847 # subdirectories, so they share the cache.
5848 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5849 # config.status only pays attention to the cache file if you give it the
5850 # --recheck option to rerun configure.
5853 # The following way of writing the cache mishandles newlines in values,
5854 # but we know of no workaround that is simple, portable, and efficient.
5855 # So, don't put newlines in cache variables' values.
5856 # Ultrix sh set writes to stderr and can't be redirected directly,
5857 # and sets the high bit in the cache file unless we assign to the vars.
5859 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5861 # `set' does not quote correctly, so add quotes (double-quote substitution
5862 # turns \\\\ into \\, and sed turns \\ into \).
5864 -e "s/'/'\\\\''/g" \
5865 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5868 # `set' quotes correctly as required by POSIX, so do not add quotes.
5869 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5872 if cmp -s $cache_file confcache
; then
5875 if test -w $cache_file; then
5876 echo "updating cache $cache_file"
5877 cat confcache
> $cache_file
5879 echo "not updating unwritable cache $cache_file"
5884 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5886 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5887 # Let make expand exec_prefix.
5888 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5890 # Any assignment to VPATH causes Sun make to only execute
5891 # the first set of double-colon rules, so remove it if not needed.
5892 # If there is a colon in the path, we need to keep it.
5893 if test "x$srcdir" = x.
; then
5894 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
5897 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5899 DEFS
=-DHAVE_CONFIG_H
5901 # Without the "./", some shells look in PATH for config.status.
5902 : ${CONFIG_STATUS=./config.status}
5904 echo creating
$CONFIG_STATUS
5905 rm -f $CONFIG_STATUS
5906 cat > $CONFIG_STATUS <<EOF
5908 # Generated automatically by configure.
5909 # Run this file to recreate the current configuration.
5910 # This directory was configured as follows,
5911 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5913 # $0 $ac_configure_args
5915 # Compiler output produced by configure, useful for debugging
5916 # configure, is in ./config.log if it exists.
5918 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5921 case "\$ac_option" in
5922 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5923 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5924 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5925 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5926 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5928 -help | --help | --hel | --he | --h)
5929 echo "\$ac_cs_usage"; exit 0 ;;
5930 *) echo "\$ac_cs_usage"; exit 1 ;;
5934 ac_given_srcdir=$srcdir
5935 ac_given_INSTALL="$INSTALL"
5937 trap 'rm -fr `echo "Makefile libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5939 cat >> $CONFIG_STATUS <<EOF
5941 # Protect against being on the right side of a sed subst in config.status.
5942 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5943 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5947 s%@CFLAGS@%$CFLAGS%g
5948 s%@CPPFLAGS@%$CPPFLAGS%g
5949 s%@CXXFLAGS@%$CXXFLAGS%g
5950 s%@FFLAGS@%$FFLAGS%g
5952 s%@LDFLAGS@%$LDFLAGS%g
5954 s%@exec_prefix@%$exec_prefix%g
5955 s%@prefix@%$prefix%g
5956 s%@program_transform_name@%$program_transform_name%g
5957 s%@bindir@%$bindir%g
5958 s%@sbindir@%$sbindir%g
5959 s%@libexecdir@%$libexecdir%g
5960 s%@datadir@%$datadir%g
5961 s%@sysconfdir@%$sysconfdir%g
5962 s%@sharedstatedir@%$sharedstatedir%g
5963 s%@localstatedir@%$localstatedir%g
5964 s%@libdir@%$libdir%g
5965 s%@includedir@%$includedir%g
5966 s%@oldincludedir@%$oldincludedir%g
5967 s%@infodir@%$infodir%g
5968 s%@mandir@%$mandir%g
5970 s%@host_alias@%$host_alias%g
5971 s%@host_cpu@%$host_cpu%g
5972 s%@host_vendor@%$host_vendor%g
5973 s%@host_os@%$host_os%g
5974 s%@target@%$target%g
5975 s%@target_alias@%$target_alias%g
5976 s%@target_cpu@%$target_cpu%g
5977 s%@target_vendor@%$target_vendor%g
5978 s%@target_os@%$target_os%g
5980 s%@build_alias@%$build_alias%g
5981 s%@build_cpu@%$build_cpu%g
5982 s%@build_vendor@%$build_vendor%g
5983 s%@build_os@%$build_os%g
5984 s%@libgcj_basedir@%$libgcj_basedir%g
5987 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5988 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5989 s%@INSTALL_DATA@%$INSTALL_DATA%g
5990 s%@PACKAGE@%$PACKAGE%g
5991 s%@VERSION@%$VERSION%g
5992 s%@ACLOCAL@%$ACLOCAL%g
5993 s%@AUTOCONF@%$AUTOCONF%g
5994 s%@AUTOMAKE@%$AUTOMAKE%g
5995 s%@AUTOHEADER@%$AUTOHEADER%g
5996 s%@MAKEINFO@%$MAKEINFO%g
5997 s%@SET_MAKE@%$SET_MAKE%g
6000 s%@RANLIB@%$RANLIB%g
6001 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
6002 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
6004 s%@EXEEXT@%$EXEEXT%g
6005 s%@LIBGCJ_CFLAGS@%$LIBGCJ_CFLAGS%g
6006 s%@LIBGCJ_CXXFLAGS@%$LIBGCJ_CXXFLAGS%g
6007 s%@LIBGCJ_JAVAFLAGS@%$LIBGCJ_JAVAFLAGS%g
6008 s%@INCLTDL@%$INCLTDL%g
6009 s%@LIBLTDL@%$LIBLTDL%g
6010 s%@DIRLTDL@%$DIRLTDL%g
6012 s%@OBJEXT@%$OBJEXT%g
6014 s%@LIBTOOL@%$LIBTOOL%g
6015 s%@CXXCPP@%$CXXCPP%g
6016 s%@subdirs@%$subdirs%g
6017 s%@COMPPATH@%$COMPPATH%g
6018 s%@TESTSUBDIR_TRUE@%$TESTSUBDIR_TRUE%g
6019 s%@TESTSUBDIR_FALSE@%$TESTSUBDIR_FALSE%g
6020 s%@LIBDATASTARTSPEC@%$LIBDATASTARTSPEC%g
6022 s%@SYSTEMSPEC@%$SYSTEMSPEC%g
6023 s%@LIBGCJTESTSPEC@%$LIBGCJTESTSPEC%g
6024 s%@ZLIBSPEC@%$ZLIBSPEC%g
6025 s%@ZLIBTESTSPEC@%$ZLIBTESTSPEC%g
6026 s%@GCLIBS@%$GCLIBS%g
6027 s%@GCINCS@%$GCINCS%g
6028 s%@GCDEPS@%$GCDEPS%g
6029 s%@GCOBJS@%$GCOBJS%g
6030 s%@GCSPEC@%$GCSPEC%g
6031 s%@GCTESTSPEC@%$GCTESTSPEC%g
6032 s%@THREADLIBS@%$THREADLIBS%g
6033 s%@THREADINCS@%$THREADINCS%g
6034 s%@THREADDEPS@%$THREADDEPS%g
6035 s%@THREADOBJS@%$THREADOBJS%g
6036 s%@THREADSPEC@%$THREADSPEC%g
6037 s%@USING_GCC_TRUE@%$USING_GCC_TRUE%g
6038 s%@USING_GCC_FALSE@%$USING_GCC_FALSE%g
6040 s%@GCJFLAGS@%$GCJFLAGS%g
6044 s%@DIVIDESPEC@%$DIVIDESPEC%g
6045 s%@EXCEPTIONSPEC@%$EXCEPTIONSPEC%g
6046 s%@FORCELIBGCCSPEC@%$FORCELIBGCCSPEC%g
6047 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
6048 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
6049 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
6050 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
6051 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
6052 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
6053 s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
6054 s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
6055 s%@NEEDS_DATA_START_TRUE@%$NEEDS_DATA_START_TRUE%g
6056 s%@NEEDS_DATA_START_FALSE@%$NEEDS_DATA_START_FALSE%g
6057 s%@EH_COMMON_INCLUDE@%$EH_COMMON_INCLUDE%g
6058 s%@AM_RUNTESTFLAGS@%$AM_RUNTESTFLAGS%g
6059 s%@ALLOCA@%$ALLOCA%g
6061 s%@SYSDEP_SOURCES@%$SYSDEP_SOURCES%g
6067 cat >> $CONFIG_STATUS <<\EOF
6069 # Split the substitutions into bite-sized pieces for seds with
6070 # small command number limits, like on Digital OSF/1 and HP-UX.
6071 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
6072 ac_file
=1 # Number of current file.
6073 ac_beg
=1 # First line for current file.
6074 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
6077 while $ac_more_lines; do
6078 if test $ac_beg -gt 1; then
6079 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
6081 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
6083 if test ! -s conftest.s
$ac_file; then
6085 rm -f conftest.s
$ac_file
6087 if test -z "$ac_sed_cmds"; then
6088 ac_sed_cmds
="sed -f conftest.s$ac_file"
6090 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
6092 ac_file
=`expr $ac_file + 1`
6094 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
6097 if test -z "$ac_sed_cmds"; then
6102 cat >> $CONFIG_STATUS <<EOF
6104 CONFIG_FILES=\${CONFIG_FILES-"Makefile libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile"}
6106 cat >> $CONFIG_STATUS <<\EOF
6107 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
6108 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6110 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6111 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6112 *) ac_file_in
="${ac_file}.in" ;;
6115 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6117 # Remove last slash and all that follows it. Not all systems have dirname.
6118 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6119 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
6120 # The file is in a subdirectory.
6121 test ! -d "$ac_dir" && mkdir
"$ac_dir"
6122 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
6123 # A "../" for each directory in $ac_dir_suffix.
6124 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6126 ac_dir_suffix
= ac_dots
=
6129 case "$ac_given_srcdir" in
6131 if test -z "$ac_dots"; then top_srcdir
=.
6132 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6133 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
6135 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6136 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
6139 case "$ac_given_INSTALL" in
6140 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
6141 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
6144 echo creating
"$ac_file"
6146 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6148 *Makefile
*) ac_comsub
="1i\\
6149 # $configure_input" ;;
6153 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6155 s%@configure_input@%$configure_input%g
6156 s%@srcdir@%$srcdir%g
6157 s%@top_srcdir@%$top_srcdir%g
6158 s%@INSTALL@%$INSTALL%g
6159 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
6163 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6164 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6166 # ac_d sets the value in "#define NAME VALUE" lines.
6167 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6168 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
6171 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6172 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6173 ac_uB
='\([ ]\)%\1#\2define\3'
6176 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6177 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6178 ac_eB
='$%\1#\2define\3'
6182 if test "${CONFIG_HEADERS+set}" != set; then
6184 cat >> $CONFIG_STATUS <<EOF
6185 CONFIG_HEADERS="include/config.h"
6187 cat >> $CONFIG_STATUS <<\EOF
6189 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
6190 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6192 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6193 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6194 *) ac_file_in
="${ac_file}.in" ;;
6197 echo creating
$ac_file
6199 rm -f conftest.frag conftest.
in conftest.out
6200 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6201 cat $ac_file_inputs > conftest.
in
6205 # Transform confdefs.h into a sed script conftest.vals that substitutes
6206 # the proper values into config.h.in to produce config.h. And first:
6207 # Protect against being on the right side of a sed subst in config.status.
6208 # Protect against being in an unquoted here document in config.status.
6210 cat > conftest.hdr
<<\EOF
6213 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6217 sed -n -f conftest.hdr confdefs.h > conftest.vals
6220 # This sed command replaces #undef with comments. This is necessary, for
6221 # example, in the case of _POSIX_SOURCE, which is predefined and required
6222 # on some systems where configure will not decide to define it.
6223 cat >> conftest.vals <<\EOF
6224 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6227 # Break up conftest.vals because some shells have a limit on
6228 # the size of here documents, and old seds have small limits too.
6233 ac_lines=`grep -c . conftest.vals
`
6234 # grep -c gives empty output for an empty file on some AIX systems.
6235 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6236 # Write a limited-size here document to conftest.frag.
6237 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6238 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6240 sed -f conftest.frag conftest.in > conftest.out
6242 mv conftest.out conftest.in
6244 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6246 mv conftest.tail conftest.vals
6250 cat >> $CONFIG_STATUS <<\EOF
6251 rm -f conftest.frag conftest.h
6252 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6253 cat conftest.in >> conftest.h
6255 if cmp -s $ac_file conftest.h 2>/dev/null; then
6256 echo "$ac_file is unchanged"
6259 # Remove last slash and all that follows it. Not all systems have dirname.
6260 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
6261 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6262 # The file is in a subdirectory.
6263 test ! -d "$ac_dir" && mkdir "$ac_dir"
6266 mv conftest.h $ac_file
6272 cat >> $CONFIG_STATUS <<EOF
6273 ac_sources="java/io/$FILE_DESCRIPTOR java/lang/${PROCESS}Process.java java/lang/nat${PROCESS}Process.cc include/$GCHDR include/$THREADH $SIGNAL_HANDLER"
6274 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"
6277 cat >> $CONFIG_STATUS <<\EOF
6278 srcdir=$ac_given_srcdir
6279 while test -n "$ac_sources"; do
6280 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
6281 set $ac_sources; ac_source=$1; shift; ac_sources=$*
6283 echo "linking $srcdir/$ac_source to $ac_dest"
6285 if test ! -r $srcdir/$ac_source; then
6286 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
6290 # Make relative symlinks.
6291 # Remove last slash and all that follows it. Not all systems have dirname.
6292 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
6293 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
6294 # The dest file is in a subdirectory.
6295 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
6296 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
6297 # A "../" for each directory in $ac_dest_dir_suffix.
6298 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
6300 ac_dest_dir_suffix= ac_dots=
6304 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
6305 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
6308 # Make a symlink if possible; otherwise try a hard link.
6309 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
6310 ln $srcdir/$ac_source $ac_dest; then :
6312 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
6316 cat >> $CONFIG_STATUS <<EOF
6321 with_multisubdir=${with_multisubdir}
6322 ac_configure_args="${multilib_arg} ${ac_configure_args}"
6323 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
6324 libgcj_basedir=${libgcj_basedir}
6329 cat >> $CONFIG_STATUS <<\EOF
6330 test -z "$CONFIG_HEADERS" || echo timestamp > include/stamp-h
6331 if test -n "$CONFIG_FILES"; then
6332 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
6336 chmod +x $CONFIG_STATUS
6337 rm -fr confdefs* $ac_clean_files
6338 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6340 if test "$no_recursion" != yes; then
6342 # Remove --cache-file and --srcdir arguments so they do not pile up.
6343 ac_sub_configure_args=
6345 for ac_arg in $ac_configure_args; do
6346 if test -n "$ac_prev"; then
6351 -cache-file | --cache-file | --cache-fil | --cache-fi \
6352 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
6353 ac_prev=cache_file ;;
6354 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
6355 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
6357 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
6359 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
6361 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
6365 for ac_config_dir in $DIRLTDL; do
6367 # Do not complain, so a configure script can configure whichever
6368 # parts of a large source tree are present.
6369 if test ! -d $srcdir/$ac_config_dir; then
6373 echo configuring in $ac_config_dir
6378 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
6380 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
6388 # A "../" for each directory in /$ac_config_dir.
6389 ac_dots=`echo $ac_config_dir|
sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
6392 .) # No --srcdir option. We are building in place.
6393 ac_sub_srcdir=$srcdir ;;
6394 /*) # Absolute path.
6395 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
6397 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
6400 # Check for guested configure; otherwise get Cygnus style configure.
6401 if test -f $ac_sub_srcdir/configure; then
6402 ac_sub_configure=$ac_sub_srcdir/configure
6403 elif test -f $ac_sub_srcdir/configure.in; then
6404 ac_sub_configure=$ac_configure
6406 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
6410 # The recursion is here.
6411 if test -n "$ac_sub_configure"; then
6413 # Make the cache file name correct relative to the subdirectory.
6414 case "$cache_file" in
6415 /*) ac_sub_cache_file=$cache_file ;;
6417 ac_sub_cache_file="$ac_dots$cache_file" ;;
6419 case "$ac_given_INSTALL" in
6420 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6421 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6424 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
6425 # The eval makes quoting arguments work.
6426 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
6429 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }