3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --with-target-subdir=SUBDIR
16 configuring in a subdirectory"
18 --with-cross-host=HOST configuring with a cross compiler"
20 --enable-multilib build many library versions (default)"
22 --enable-maintainer-mode enable make rules and dependencies not useful
23 (and sometimes confusing) to the casual installer"
25 --enable-shared[=PKGS] build shared libraries [default=yes]"
27 --enable-static[=PKGS] build static libraries [default=yes]"
29 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
31 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
33 --disable-libtool-lock force libtool not to do file locking"
35 --enable-fast-character prefer speed over size for Character"
37 --enable-libgcj-debug enable runtime debugging code"
39 --enable-interpreter enable interpreter"
41 --with-ecos enable runtime eCos target support"
43 --with-system-zlib use installed libz"
45 --enable-java-gc=TYPE choose garbage collector [boehm]"
47 --enable-threads=TYPE choose threading package"
49 # Initialize some variables set by options.
50 # The variables have the same names as the options, with
51 # dashes changed to underlines.
53 cache_file
=.
/config.cache
62 program_transform_name
=s
,x
,x
,
71 bindir
='${exec_prefix}/bin'
72 sbindir
='${exec_prefix}/sbin'
73 libexecdir
='${exec_prefix}/libexec'
74 datadir
='${prefix}/share'
75 sysconfdir
='${prefix}/etc'
76 sharedstatedir
='${prefix}/com'
77 localstatedir
='${prefix}/var'
78 libdir
='${exec_prefix}/lib'
79 includedir
='${prefix}/include'
80 oldincludedir
='/usr/include'
81 infodir
='${prefix}/info'
82 mandir
='${prefix}/man'
84 # Initialize some other variables.
87 SHELL
=${CONFIG_SHELL-/bin/sh}
88 # Maximum number of lines to put in a shell here document.
95 # If the previous option needs an argument, assign it.
96 if test -n "$ac_prev"; then
97 eval "$ac_prev=\$ac_option"
103 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
107 # Accept the important Cygnus configure options, so we can diagnose typos.
111 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
113 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
114 bindir
="$ac_optarg" ;;
116 -build |
--build |
--buil |
--bui |
--bu)
118 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
119 build
="$ac_optarg" ;;
121 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
122 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
123 ac_prev
=cache_file
;;
124 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
125 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
126 cache_file
="$ac_optarg" ;;
128 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
130 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
132 datadir
="$ac_optarg" ;;
134 -disable-* |
--disable-*)
135 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
136 # Reject names that are not valid shell variable names.
137 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
138 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
140 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
141 eval "enable_${ac_feature}=no" ;;
143 -enable-* |
--enable-*)
144 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
145 # Reject names that are not valid shell variable names.
146 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
147 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
149 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
154 eval "enable_${ac_feature}='$ac_optarg'" ;;
156 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
157 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
158 |
--exec |
--exe |
--ex)
159 ac_prev
=exec_prefix
;;
160 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
161 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
162 |
--exec=* |
--exe=* |
--ex=*)
163 exec_prefix
="$ac_optarg" ;;
165 -gas |
--gas |
--ga |
--g)
166 # Obsolete; use --with-gas.
169 -help |
--help |
--hel |
--he)
170 # Omit some internal or obsolete options to make the list less imposing.
171 # This message is too long to be a string in the A/UX 3.1 sh.
173 Usage: configure [options] [host]
174 Options: [defaults in brackets after descriptions]
176 --cache-file=FILE cache test results in FILE
177 --help print this message
178 --no-create do not create output files
179 --quiet, --silent do not print \`checking...' messages
180 --site-file=FILE use FILE as the site file
181 --version print the version of autoconf that created configure
182 Directory and file names:
183 --prefix=PREFIX install architecture-independent files in PREFIX
185 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
187 --bindir=DIR user executables in DIR [EPREFIX/bin]
188 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
189 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
190 --datadir=DIR read-only architecture-independent data in DIR
192 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
193 --sharedstatedir=DIR modifiable architecture-independent data in DIR
195 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
196 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
197 --includedir=DIR C header files in DIR [PREFIX/include]
198 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
199 --infodir=DIR info documentation in DIR [PREFIX/info]
200 --mandir=DIR man documentation in DIR [PREFIX/man]
201 --srcdir=DIR find the sources in DIR [configure dir or ..]
202 --program-prefix=PREFIX prepend PREFIX to installed program names
203 --program-suffix=SUFFIX append SUFFIX to installed program names
204 --program-transform-name=PROGRAM
205 run sed PROGRAM on installed program names
209 --build=BUILD configure for building on BUILD [BUILD=HOST]
210 --host=HOST configure for HOST [guessed]
211 --target=TARGET configure for TARGET [TARGET=HOST]
212 Features and packages:
213 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
214 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
215 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
216 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
217 --x-includes=DIR X include files are in DIR
218 --x-libraries=DIR X library files are in DIR
220 if test -n "$ac_help"; then
221 echo "--enable and --with options recognized:$ac_help"
225 -host |
--host |
--hos |
--ho)
227 -host=* |
--host=* |
--hos=* |
--ho=*)
230 -includedir |
--includedir |
--includedi |
--included |
--include \
231 |
--includ |
--inclu |
--incl |
--inc)
232 ac_prev
=includedir
;;
233 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
234 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
235 includedir
="$ac_optarg" ;;
237 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
239 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
240 infodir
="$ac_optarg" ;;
242 -libdir |
--libdir |
--libdi |
--libd)
244 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
245 libdir
="$ac_optarg" ;;
247 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
248 |
--libexe |
--libex |
--libe)
249 ac_prev
=libexecdir
;;
250 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
251 |
--libexe=* |
--libex=* |
--libe=*)
252 libexecdir
="$ac_optarg" ;;
254 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
255 |
--localstate |
--localstat |
--localsta |
--localst \
256 |
--locals |
--local |
--loca |
--loc |
--lo)
257 ac_prev
=localstatedir
;;
258 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
259 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
260 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
261 localstatedir
="$ac_optarg" ;;
263 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
265 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
266 mandir
="$ac_optarg" ;;
269 # Obsolete; use --without-fp.
272 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
276 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
277 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
280 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
281 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
282 |
--oldin |
--oldi |
--old |
--ol |
--o)
283 ac_prev
=oldincludedir
;;
284 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
285 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
286 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
287 oldincludedir
="$ac_optarg" ;;
289 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
291 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
292 prefix
="$ac_optarg" ;;
294 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
295 |
--program-pre |
--program-pr |
--program-p)
296 ac_prev
=program_prefix
;;
297 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
298 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
299 program_prefix
="$ac_optarg" ;;
301 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
302 |
--program-suf |
--program-su |
--program-s)
303 ac_prev
=program_suffix
;;
304 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
305 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
306 program_suffix
="$ac_optarg" ;;
308 -program-transform-name |
--program-transform-name \
309 |
--program-transform-nam |
--program-transform-na \
310 |
--program-transform-n |
--program-transform- \
311 |
--program-transform |
--program-transfor \
312 |
--program-transfo |
--program-transf \
313 |
--program-trans |
--program-tran \
314 |
--progr-tra |
--program-tr |
--program-t)
315 ac_prev
=program_transform_name
;;
316 -program-transform-name=* |
--program-transform-name=* \
317 |
--program-transform-nam=* |
--program-transform-na=* \
318 |
--program-transform-n=* |
--program-transform-=* \
319 |
--program-transform=* |
--program-transfor=* \
320 |
--program-transfo=* |
--program-transf=* \
321 |
--program-trans=* |
--program-tran=* \
322 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
323 program_transform_name
="$ac_optarg" ;;
325 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
326 |
-silent |
--silent |
--silen |
--sile |
--sil)
329 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
331 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
333 sbindir
="$ac_optarg" ;;
335 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
336 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
337 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
339 ac_prev
=sharedstatedir
;;
340 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
341 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
342 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
344 sharedstatedir
="$ac_optarg" ;;
346 -site |
--site |
--sit)
348 -site=* |
--site=* |
--sit=*)
351 -site-file |
--site-file |
--site-fil |
--site-fi |
--site-f)
353 -site-file=* |
--site-file=* |
--site-fil=* |
--site-fi=* |
--site-f=*)
354 sitefile
="$ac_optarg" ;;
356 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
358 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
359 srcdir
="$ac_optarg" ;;
361 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
362 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
363 ac_prev
=sysconfdir
;;
364 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
365 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
366 sysconfdir
="$ac_optarg" ;;
368 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
370 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
371 target
="$ac_optarg" ;;
373 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
376 -version |
--version |
--versio |
--versi |
--vers)
377 echo "configure generated by autoconf version 2.13"
381 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
382 # Reject names that are not valid shell variable names.
383 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
384 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
386 ac_package
=`echo $ac_package| sed 's/-/_/g'`
391 eval "with_${ac_package}='$ac_optarg'" ;;
393 -without-* |
--without-*)
394 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
395 # Reject names that are not valid shell variable names.
396 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
397 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
399 ac_package
=`echo $ac_package| sed 's/-/_/g'`
400 eval "with_${ac_package}=no" ;;
403 # Obsolete; use --with-x.
406 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
407 |
--x-incl |
--x-inc |
--x-in |
--x-i)
408 ac_prev
=x_includes
;;
409 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
410 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
411 x_includes
="$ac_optarg" ;;
413 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
414 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
415 ac_prev
=x_libraries
;;
416 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
417 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
418 x_libraries
="$ac_optarg" ;;
420 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
424 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
425 echo "configure: warning: $ac_option: invalid host type" 1>&2
427 if test "x$nonopt" != xNONE
; then
428 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
436 if test -n "$ac_prev"; then
437 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
440 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
442 # File descriptor usage:
445 # 2 errors and warnings
446 # 3 some systems may open it to /dev/tty
447 # 4 used on the Kubota Titan
448 # 6 checking for... messages and results
449 # 5 compiler messages saved in config.log
450 if test "$silent" = yes; then
458 This file contains any messages produced by compilers while
459 running configure, to aid debugging if configure makes a mistake.
462 # Strip out --no-create and --no-recursion so they do not pile up.
463 # Also quote any args containing shell metacharacters.
468 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
469 |
--no-cr |
--no-c) ;;
470 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
471 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
472 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
473 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
474 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
479 # Only set these to C if already set. These must not be set unconditionally
480 # because not all systems understand e.g. LANG=C (notably SCO).
481 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
482 # Non-C LC_CTYPE values break the ctype check.
483 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
484 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
485 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
486 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
488 # confdefs.h avoids OS command line length limits that DEFS can exceed.
489 rm -rf conftest
* confdefs.h
490 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
493 # A filename unique to this package, relative to the directory that
494 # configure is in, which we can look for to find out if srcdir is correct.
495 ac_unique_file
=java
/lang
/System.java
497 # Find the source files, if location was not specified.
498 if test -z "$srcdir"; then
499 ac_srcdir_defaulted
=yes
500 # Try the directory containing this script, then its parent.
502 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
503 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
505 if test ! -r $srcdir/$ac_unique_file; then
509 ac_srcdir_defaulted
=no
511 if test ! -r $srcdir/$ac_unique_file; then
512 if test "$ac_srcdir_defaulted" = yes; then
513 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
515 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
518 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
520 # Prefer explicitly selected file to automatically selected ones.
521 if test -z "$sitefile"; then
522 if test -z "$CONFIG_SITE"; then
523 if test "x$prefix" != xNONE
; then
524 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
526 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
530 CONFIG_SITE
="$sitefile"
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
968 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
969 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
971 cat >> confdefs.h
<<EOF
972 #define PACKAGE "$PACKAGE"
975 cat >> confdefs.h
<<EOF
976 #define VERSION "$VERSION"
981 missing_dir
=`cd $ac_aux_dir && pwd`
982 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
983 echo "configure:984: checking for working aclocal" >&5
984 # Run test in a subshell; some versions of sh will print an error if
985 # an executable is not found, even if stderr is redirected.
986 # Redirect stdin to placate older versions of autoconf. Sigh.
987 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
989 echo "$ac_t""found" 1>&6
991 ACLOCAL
="$missing_dir/missing aclocal"
992 echo "$ac_t""missing" 1>&6
995 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
996 echo "configure:997: checking for working autoconf" >&5
997 # Run test in a subshell; some versions of sh will print an error if
998 # an executable is not found, even if stderr is redirected.
999 # Redirect stdin to placate older versions of autoconf. Sigh.
1000 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
1002 echo "$ac_t""found" 1>&6
1004 AUTOCONF
="$missing_dir/missing autoconf"
1005 echo "$ac_t""missing" 1>&6
1008 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1009 echo "configure:1010: checking for working automake" >&5
1010 # Run test in a subshell; some versions of sh will print an error if
1011 # an executable is not found, even if stderr is redirected.
1012 # Redirect stdin to placate older versions of autoconf. Sigh.
1013 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
1015 echo "$ac_t""found" 1>&6
1017 AUTOMAKE
="$missing_dir/missing automake"
1018 echo "$ac_t""missing" 1>&6
1021 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1022 echo "configure:1023: checking for working autoheader" >&5
1023 # Run test in a subshell; some versions of sh will print an error if
1024 # an executable is not found, even if stderr is redirected.
1025 # Redirect stdin to placate older versions of autoconf. Sigh.
1026 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
1027 AUTOHEADER
=autoheader
1028 echo "$ac_t""found" 1>&6
1030 AUTOHEADER
="$missing_dir/missing autoheader"
1031 echo "$ac_t""missing" 1>&6
1034 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1035 echo "configure:1036: checking for working makeinfo" >&5
1036 # Run test in a subshell; some versions of sh will print an error if
1037 # an executable is not found, even if stderr is redirected.
1038 # Redirect stdin to placate older versions of autoconf. Sigh.
1039 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
1041 echo "$ac_t""found" 1>&6
1043 MAKEINFO
="$missing_dir/missing makeinfo"
1044 echo "$ac_t""missing" 1>&6
1049 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
1050 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
1051 # are probably using a cross compiler, which will not be able to fully
1052 # link an executable. This should really be fixed in autoconf
1058 # Extract the first word of "gcc", so it can be a program name with args.
1059 set dummy gcc
; ac_word
=$2
1060 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1061 echo "configure:1062: checking for $ac_word" >&5
1062 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1063 echo $ac_n "(cached) $ac_c" 1>&6
1065 if test -n "$CC"; then
1066 ac_cv_prog_CC
="$CC" # Let the user override the test.
1068 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1070 for ac_dir
in $ac_dummy; do
1071 test -z "$ac_dir" && ac_dir
=.
1072 if test -f $ac_dir/$ac_word; then
1081 if test -n "$CC"; then
1082 echo "$ac_t""$CC" 1>&6
1084 echo "$ac_t""no" 1>&6
1087 if test -z "$CC"; then
1088 # Extract the first word of "cc", so it can be a program name with args.
1089 set dummy cc
; ac_word
=$2
1090 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1091 echo "configure:1092: checking for $ac_word" >&5
1092 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1093 echo $ac_n "(cached) $ac_c" 1>&6
1095 if test -n "$CC"; then
1096 ac_cv_prog_CC
="$CC" # Let the user override the test.
1098 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1101 for ac_dir
in $ac_dummy; do
1102 test -z "$ac_dir" && ac_dir
=.
1103 if test -f $ac_dir/$ac_word; then
1104 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1105 ac_prog_rejected
=yes
1113 if test $ac_prog_rejected = yes; then
1114 # We found a bogon in the path, so make sure we never use it.
1115 set dummy
$ac_cv_prog_CC
1117 if test $# -gt 0; then
1118 # We chose a different compiler from the bogus one.
1119 # However, it has the same basename, so the bogon will be chosen
1120 # first if we set CC to just the basename; use the full file name.
1122 set dummy
"$ac_dir/$ac_word" "$@"
1130 if test -n "$CC"; then
1131 echo "$ac_t""$CC" 1>&6
1133 echo "$ac_t""no" 1>&6
1136 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1139 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1140 echo "configure:1141: checking whether we are using GNU C" >&5
1141 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1142 echo $ac_n "(cached) $ac_c" 1>&6
1144 cat > conftest.c
<<EOF
1149 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1150: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1156 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1158 if test $ac_cv_prog_gcc = yes; then
1160 ac_test_CFLAGS
="${CFLAGS+set}"
1161 ac_save_CFLAGS
="$CFLAGS"
1163 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1164 echo "configure:1165: checking whether ${CC-cc} accepts -g" >&5
1165 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1166 echo $ac_n "(cached) $ac_c" 1>&6
1168 echo 'void f(){}' > conftest.c
1169 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1178 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1179 if test "$ac_test_CFLAGS" = set; then
1180 CFLAGS
="$ac_save_CFLAGS"
1181 elif test $ac_cv_prog_cc_g = yes; then
1188 test "${CFLAGS+set}" = set || CFLAGS
="-g"
1192 # Likewise for AC_PROG_CXX.
1196 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++
1198 # Extract the first word of "$ac_prog", so it can be a program name with args.
1199 set dummy
$ac_prog; ac_word
=$2
1200 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1201 echo "configure:1202: checking for $ac_word" >&5
1202 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1203 echo $ac_n "(cached) $ac_c" 1>&6
1205 if test -n "$CXX"; then
1206 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
1208 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1210 for ac_dir
in $ac_dummy; do
1211 test -z "$ac_dir" && ac_dir
=.
1212 if test -f $ac_dir/$ac_word; then
1213 ac_cv_prog_CXX
="$ac_prog"
1220 CXX
="$ac_cv_prog_CXX"
1221 if test -n "$CXX"; then
1222 echo "$ac_t""$CXX" 1>&6
1224 echo "$ac_t""no" 1>&6
1227 test -n "$CXX" && break
1229 test -n "$CXX" || CXX
="gcc"
1231 test -z "$CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1233 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1234 echo "configure:1235: checking whether we are using GNU C++" >&5
1235 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1236 echo $ac_n "(cached) $ac_c" 1>&6
1238 cat > conftest.C
<<EOF
1243 if { ac_try
='${CXX-g++} -E conftest.C'; { (eval echo configure
:1244: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1250 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1252 if test $ac_cv_prog_gxx = yes; then
1254 ac_test_CXXFLAGS
="${CXXFLAGS+set}"
1255 ac_save_CXXFLAGS
="$CXXFLAGS"
1257 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1258 echo "configure:1259: checking whether ${CXX-g++} accepts -g" >&5
1259 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1260 echo $ac_n "(cached) $ac_c" 1>&6
1262 echo 'void f(){}' > conftest.cc
1263 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1264 ac_cv_prog_cxx_g
=yes
1272 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1273 if test "$ac_test_CXXFLAGS" = set; then
1274 CXXFLAGS
="$ac_save_CXXFLAGS"
1275 elif test $ac_cv_prog_cxx_g = yes; then
1282 test "${CXXFLAGS+set}" = set || CXXFLAGS
="-g"
1286 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we dont
1287 # run it explicitly here, it will be run implicitly before
1288 # LIBGCJ_CONFIGURE, which doesn't work because that means that it will
1289 # be run before AC_CANONICAL_HOST.
1290 echo $ac_n "checking build system type""... $ac_c" 1>&6
1291 echo "configure:1292: checking build system type" >&5
1294 case "$build_alias" in
1297 NONE
) build_alias
=$host_alias ;;
1298 *) build_alias
=$nonopt ;;
1302 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1303 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1304 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1305 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1306 echo "$ac_t""$build" 1>&6
1309 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1310 set dummy
${ac_tool_prefix}as
; ac_word
=$2
1311 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1312 echo "configure:1313: checking for $ac_word" >&5
1313 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1314 echo $ac_n "(cached) $ac_c" 1>&6
1316 if test -n "$AS"; then
1317 ac_cv_prog_AS
="$AS" # Let the user override the test.
1319 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1321 for ac_dir
in $ac_dummy; do
1322 test -z "$ac_dir" && ac_dir
=.
1323 if test -f $ac_dir/$ac_word; then
1324 ac_cv_prog_AS
="${ac_tool_prefix}as"
1329 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS
="as"
1333 if test -n "$AS"; then
1334 echo "$ac_t""$AS" 1>&6
1336 echo "$ac_t""no" 1>&6
1341 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1342 set dummy
${ac_tool_prefix}ar; ac_word
=$2
1343 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1344 echo "configure:1345: checking for $ac_word" >&5
1345 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1346 echo $ac_n "(cached) $ac_c" 1>&6
1348 if test -n "$AR"; then
1349 ac_cv_prog_AR
="$AR" # Let the user override the test.
1351 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1353 for ac_dir
in $ac_dummy; do
1354 test -z "$ac_dir" && ac_dir
=.
1355 if test -f $ac_dir/$ac_word; then
1356 ac_cv_prog_AR
="${ac_tool_prefix}ar"
1361 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
1365 if test -n "$AR"; then
1366 echo "$ac_t""$AR" 1>&6
1368 echo "$ac_t""no" 1>&6
1373 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1374 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1375 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1376 echo "configure:1377: checking for $ac_word" >&5
1377 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1378 echo $ac_n "(cached) $ac_c" 1>&6
1380 if test -n "$RANLIB"; then
1381 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1383 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1385 for ac_dir
in $ac_dummy; do
1386 test -z "$ac_dir" && ac_dir
=.
1387 if test -f $ac_dir/$ac_word; then
1388 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1395 RANLIB
="$ac_cv_prog_RANLIB"
1396 if test -n "$RANLIB"; then
1397 echo "$ac_t""$RANLIB" 1>&6
1399 echo "$ac_t""no" 1>&6
1403 if test -z "$ac_cv_prog_RANLIB"; then
1404 if test -n "$ac_tool_prefix"; then
1405 # Extract the first word of "ranlib", so it can be a program name with args.
1406 set dummy ranlib
; ac_word
=$2
1407 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1408 echo "configure:1409: checking for $ac_word" >&5
1409 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1410 echo $ac_n "(cached) $ac_c" 1>&6
1412 if test -n "$RANLIB"; then
1413 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1415 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1417 for ac_dir
in $ac_dummy; do
1418 test -z "$ac_dir" && ac_dir
=.
1419 if test -f $ac_dir/$ac_word; then
1420 ac_cv_prog_RANLIB
="ranlib"
1425 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1428 RANLIB
="$ac_cv_prog_RANLIB"
1429 if test -n "$RANLIB"; then
1430 echo "$ac_t""$RANLIB" 1>&6
1432 echo "$ac_t""no" 1>&6
1441 # Find a good install program. We prefer a C program (faster),
1442 # so one script is as good as another. But avoid the broken or
1443 # incompatible versions:
1444 # SysV /etc/install, /usr/sbin/install
1445 # SunOS /usr/etc/install
1446 # IRIX /sbin/install
1448 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1449 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1450 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1451 # ./install, which can be erroneously created by make from ./install.sh.
1452 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1453 echo "configure:1454: checking for a BSD compatible install" >&5
1454 if test -z "$INSTALL"; then
1455 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1456 echo $ac_n "(cached) $ac_c" 1>&6
1458 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1459 for ac_dir
in $PATH; do
1460 # Account for people who put trailing slashes in PATH elements.
1462 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1464 # OSF1 and SCO ODT 3.0 have their own names for install.
1465 # Don't use installbsd from OSF since it installs stuff as root
1467 for ac_prog
in ginstall scoinst
install; do
1468 if test -f $ac_dir/$ac_prog; then
1469 if test $ac_prog = install &&
1470 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1471 # AIX install. It has an incompatible calling convention.
1474 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1485 if test "${ac_cv_path_install+set}" = set; then
1486 INSTALL
="$ac_cv_path_install"
1488 # As a last resort, use the slow shell script. We don't cache a
1489 # path for INSTALL within a source directory, because that will
1490 # break other packages using the cache if that directory is
1491 # removed, or if the path is relative.
1492 INSTALL
="$ac_install_sh"
1495 echo "$ac_t""$INSTALL" 1>&6
1497 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1498 # It thinks the first close brace ends the variable substitution.
1499 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1501 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1503 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1506 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1507 echo "configure:1508: checking whether to enable maintainer-specific portions of Makefiles" >&5
1508 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1509 if test "${enable_maintainer_mode+set}" = set; then
1510 enableval
="$enable_maintainer_mode"
1511 USE_MAINTAINER_MODE
=$enableval
1513 USE_MAINTAINER_MODE
=no
1516 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1519 if test $USE_MAINTAINER_MODE = yes; then
1520 MAINTAINER_MODE_TRUE
=
1521 MAINTAINER_MODE_FALSE
='#'
1523 MAINTAINER_MODE_TRUE
='#'
1524 MAINTAINER_MODE_FALSE
=
1526 MAINT
=$MAINTAINER_MODE_TRUE
1530 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1531 # at least currently, we never actually build a program, so we never
1532 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1533 # fails, because we are probably configuring with a cross compiler
1534 # which cant create executables. So we include AC_EXEEXT to keep
1535 # automake happy, but we dont execute it, since we dont care about
1540 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1541 echo "configure:1542: checking for executable suffix" >&5
1542 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1543 echo $ac_n "(cached) $ac_c" 1>&6
1545 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
1549 echo 'int main () { return 0; }' > conftest.
$ac_ext
1551 if { (eval echo configure
:1552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1552 for file in conftest.
*; do
1554 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
1555 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
1559 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1562 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
1567 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
1568 echo "$ac_t""${ac_cv_exeext}" 1>&6
1573 # configure.host sets the following important variables
1574 # libgcj_cflags - host specific C compiler flags
1575 # libgcj_cxxflags - host specific C++ compiler flags
1576 # libgcj_javaflags - host specific Java compiler flags
1582 .
${libgcj_basedir}/configure.
host
1584 case ${libgcj_basedir} in
1585 /* | A-Za-z
:/\\*) libgcj_flagbasedir
=${libgcj_basedir} ;;
1586 *) libgcj_flagbasedir
='$(top_builddir)/'${libgcj_basedir} ;;
1589 LIBGCJ_CFLAGS
="${libgcj_cflags}"
1590 LIBGCJ_CXXFLAGS
="${libgcj_cxxflags}"
1591 LIBGCJ_JAVAFLAGS
="${libgcj_javaflags}"
1601 # Check whether --enable-shared or --disable-shared was given.
1602 if test "${enable_shared+set}" = set; then
1603 enableval
="$enable_shared"
1604 p
=${PACKAGE-default}
1605 case "$enableval" in
1606 yes) enable_shared
=yes ;;
1607 no
) enable_shared
=no
;;
1610 # Look at the argument we got. We use all the common list separators.
1611 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1612 for pkg
in $enableval; do
1613 if test "X$pkg" = "X$p"; then
1624 # Check whether --enable-static or --disable-static was given.
1625 if test "${enable_static+set}" = set; then
1626 enableval
="$enable_static"
1627 p
=${PACKAGE-default}
1628 case "$enableval" in
1629 yes) enable_static
=yes ;;
1630 no
) enable_static
=no
;;
1633 # Look at the argument we got. We use all the common list separators.
1634 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1635 for pkg
in $enableval; do
1636 if test "X$pkg" = "X$p"; then
1647 # Check whether --enable-fast-install or --disable-fast-install was given.
1648 if test "${enable_fast_install+set}" = set; then
1649 enableval
="$enable_fast_install"
1650 p
=${PACKAGE-default}
1651 case "$enableval" in
1652 yes) enable_fast_install
=yes ;;
1653 no
) enable_fast_install
=no
;;
1655 enable_fast_install
=no
1656 # Look at the argument we got. We use all the common list separators.
1657 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1658 for pkg
in $enableval; do
1659 if test "X$pkg" = "X$p"; then
1660 enable_fast_install
=yes
1667 enable_fast_install
=yes
1670 # Extract the first word of "ranlib", so it can be a program name with args.
1671 set dummy ranlib
; ac_word
=$2
1672 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1673 echo "configure:1674: checking for $ac_word" >&5
1674 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1675 echo $ac_n "(cached) $ac_c" 1>&6
1677 if test -n "$RANLIB"; then
1678 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1680 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1682 for ac_dir
in $ac_dummy; do
1683 test -z "$ac_dir" && ac_dir
=.
1684 if test -f $ac_dir/$ac_word; then
1685 ac_cv_prog_RANLIB
="ranlib"
1690 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1693 RANLIB
="$ac_cv_prog_RANLIB"
1694 if test -n "$RANLIB"; then
1695 echo "$ac_t""$RANLIB" 1>&6
1697 echo "$ac_t""no" 1>&6
1700 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1701 if test "${with_gnu_ld+set}" = set; then
1702 withval
="$with_gnu_ld"
1703 test "$withval" = no || with_gnu_ld
=yes
1709 if test "$ac_cv_prog_gcc" = yes; then
1710 # Check if gcc -print-prog-name=ld gives a path.
1711 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1712 echo "configure:1713: checking for ld used by GCC" >&5
1713 ac_prog
=`($CC -print-prog-name=ld) 2>&5`
1715 # Accept absolute paths.
1716 /* |
[A-Za-z
]:[\\/]*)
1717 re_direlt
='/[^/][^/]*/\.\./'
1718 # Canonicalize the path of ld
1719 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1720 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1721 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1723 test -z "$LD" && LD
="$ac_prog"
1726 # If it fails, then pretend we aren't using GCC.
1730 # If it is relative, then search for the first ld in PATH.
1734 elif test "$with_gnu_ld" = yes; then
1735 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1736 echo "configure:1737: checking for GNU ld" >&5
1738 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1739 echo "configure:1740: checking for non-GNU ld" >&5
1741 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1742 echo $ac_n "(cached) $ac_c" 1>&6
1744 if test -z "$LD"; then
1745 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1746 for ac_dir
in $PATH; do
1747 test -z "$ac_dir" && ac_dir
=.
1748 if test -f "$ac_dir/$ac_prog"; then
1749 ac_cv_path_LD
="$ac_dir/$ac_prog"
1750 # Check to see if the program is GNU ld. I'd rather use --version,
1751 # but apparently some GNU ld's only accept -v.
1752 # Break only if it was the GNU/non-GNU ld that we prefer.
1753 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1754 test "$with_gnu_ld" != no
&& break
1756 test "$with_gnu_ld" != yes && break
1762 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1767 if test -n "$LD"; then
1768 echo "$ac_t""$LD" 1>&6
1770 echo "$ac_t""no" 1>&6
1772 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1774 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1775 echo "configure:1776: checking if the linker ($LD) is GNU ld" >&5
1776 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1777 echo $ac_n "(cached) $ac_c" 1>&6
1779 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1780 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1781 ac_cv_prog_gnu_ld
=yes
1783 ac_cv_prog_gnu_ld
=no
1787 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1790 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1791 echo "configure:1792: checking for BSD-compatible nm" >&5
1792 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1793 echo $ac_n "(cached) $ac_c" 1>&6
1795 if test -n "$NM"; then
1796 # Let the user override the test.
1799 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1800 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1801 test -z "$ac_dir" && ac_dir
=.
1802 if test -f $ac_dir/nm
; then
1803 # Check to see if the nm accepts a BSD-compat flag.
1804 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1805 # nm: unknown option "B" ignored
1806 if ($ac_dir/nm
-B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1807 ac_cv_path_NM
="$ac_dir/nm -B"
1809 elif ($ac_dir/nm
-p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1810 ac_cv_path_NM
="$ac_dir/nm -p"
1813 ac_cv_path_NM
=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1814 continue # so that we can try to find one that supports BSD flags
1819 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1824 echo "$ac_t""$NM" 1>&6
1827 # Check for command to grab the raw symbol name followed by C symbol from nm.
1828 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
1829 echo "configure:1830: checking command to parse $NM output" >&5
1830 if eval "test \"`echo '$''{'ac_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
1831 echo $ac_n "(cached) $ac_c" 1>&6
1833 # These are sane defaults that work on at least a few old systems.
1834 # {They come from Ultrix. What could be older than Ultrix?!! ;)}
1836 # Character class describing NM global symbol codes.
1837 ac_symcode
='[BCDEGRST]'
1839 # Regexp to match symbols that can be accessed directly from C.
1840 ac_sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
1842 # Transform the above into a raw symbol and a C symbol.
1843 ac_symxfrm
='\1 \2\3 \3'
1845 # Transform an extracted symbol line into a proper C declaration
1846 ac_global_symbol_to_cdecl
="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
1848 # Define system-specific variables.
1854 ac_symcode
='[ABCDGISTW]'
1857 ac_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'"
1860 ac_symcode
='[BCDEGRST]'
1867 # If we're using GNU nm, then use its standard symbol codes.
1868 if $NM -V 2>&1 |
egrep '(GNU|with BFD)' > /dev
/null
; then
1869 ac_symcode
='[ABCDGISTW]'
1872 # Try without a prefix undercore, then with it.
1873 for ac_symprfx
in "" "_"; do
1875 ac_cv_sys_global_symbol_pipe
="sed -n -e 's/^.* \($ac_symcode\) *\($ac_symprfx\)$ac_sympat$/$ac_symxfrm/p'"
1877 # Check to see that the pipe works correctly.
1879 rm -f conftest.
$ac_ext
1880 cat > conftest.
$ac_ext <<EOF
1885 void nm_test_func(){}
1889 int main(){nm_test_var='a';nm_test_func;return 0;}
1892 if { (eval echo configure
:1893: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1893 # Now try to grab the symbols.
1894 ac_nlist
=conftest.nm
1896 if { (eval echo configure
:1897: \"$NM conftest.
$ac_objext \|
$ac_cv_sys_global_symbol_pipe \
> $ac_nlist\") 1>&5; (eval $NM conftest.
$ac_objext \|
$ac_cv_sys_global_symbol_pipe \
> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then
1898 # Try sorting and uniquifying the output.
1899 if sort "$ac_nlist" |
uniq > "$ac_nlist"T
; then
1900 mv -f "$ac_nlist"T
"$ac_nlist"
1905 # Make sure that we snagged all the symbols we need.
1906 if egrep ' nm_test_var$' "$ac_nlist" >/dev
/null
; then
1907 if egrep ' nm_test_func$' "$ac_nlist" >/dev
/null
; then
1908 cat <<EOF > conftest.c
1914 # Now generate the symbol file.
1915 eval "$ac_global_symbol_to_cdecl"' < "$ac_nlist" >> conftest.c'
1917 cat <<EOF >> conftest.c
1918 #if defined (__STDC__) && __STDC__
1919 # define lt_ptr_t void *
1921 # define lt_ptr_t char *
1925 /* The mapping between symbol names and symbols. */
1930 lt_preloaded_symbols[] =
1933 sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$ac_nlist" >> conftest.c
1934 cat <<\EOF
>> conftest.c
1942 # Now try linking the two files.
1943 mv conftest.
$ac_objext conftestm.
$ac_objext
1944 ac_save_LIBS
="$LIBS"
1945 ac_save_CFLAGS
="$CFLAGS"
1946 LIBS
="conftestm.$ac_objext"
1947 CFLAGS
="$CFLAGS$no_builtin_flag"
1948 if { (eval echo configure
:1949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1951 echo "configure: failed program was:" >&5
1954 LIBS
="$ac_save_LIBS"
1955 CFLAGS
="$ac_save_CFLAGS"
1957 echo "cannot find nm_test_func in $ac_nlist" >&5
1960 echo "cannot find nm_test_var in $ac_nlist" >&5
1963 echo "cannot run $ac_cv_sys_global_symbol_pipe" >&5
1966 echo "$progname: failed program was:" >&5
1971 # Do not use the global_symbol_pipe unless it works.
1972 if test "$ac_pipe_works" = yes; then
1973 if test x
"$ac_symprfx" = x
"_"; then
1974 ac_cv_sys_symbol_underscore
=yes
1976 ac_cv_sys_symbol_underscore
=no
1980 ac_cv_sys_global_symbol_pipe
=
1988 if test -z "$ac_cv_sys_global_symbol_pipe"; then
1991 echo "$ac_t""$ac_result" 1>&6
1993 echo $ac_n "checking for _ prefix in compiled symbols""... $ac_c" 1>&6
1994 echo "configure:1995: checking for _ prefix in compiled symbols" >&5
1995 if eval "test \"`echo '$''{'ac_cv_sys_symbol_underscore'+set}'`\" = set"; then
1996 echo $ac_n "(cached) $ac_c" 1>&6
1998 ac_cv_sys_symbol_underscore
=no
1999 cat > conftest.
$ac_ext <<EOF
2000 void nm_test_func(){}
2001 int main(){nm_test_func;return 0;}
2003 if { (eval echo configure
:2004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2004 # Now try to grab the symbols.
2005 ac_nlist
=conftest.nm
2006 if { (eval echo configure
:2007: \"$NM conftest.
$ac_objext \|
$ac_cv_sys_global_symbol_pipe \
> $ac_nlist\") 1>&5; (eval $NM conftest.
$ac_objext \|
$ac_cv_sys_global_symbol_pipe \
> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then
2007 # See whether the symbols have a leading underscore.
2008 if egrep '^. _nm_test_func' "$ac_nlist" >/dev
/null
; then
2009 ac_cv_sys_symbol_underscore
=yes
2011 if egrep '^. nm_test_func ' "$ac_nlist" >/dev
/null
; then
2014 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
2018 echo "configure: cannot run $ac_cv_sys_global_symbol_pipe" >&5
2021 echo "configure: failed program was:" >&5
2028 echo "$ac_t""$ac_cv_sys_symbol_underscore" 1>&6
2029 USE_SYMBOL_UNDERSCORE
=${ac_cv_sys_symbol_underscore=no}
2031 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2032 echo "configure:2033: checking whether ln -s works" >&5
2033 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2034 echo $ac_n "(cached) $ac_c" 1>&6
2037 if ln -s X conftestdata
2>/dev
/null
2040 ac_cv_prog_LN_S
="ln -s"
2045 LN_S
="$ac_cv_prog_LN_S"
2046 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2047 echo "$ac_t""yes" 1>&6
2049 echo "$ac_t""no" 1>&6
2053 # Check for any special flags to pass to ltconfig.
2054 libtool_flags
="--cache-file=$cache_file"
2055 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
2056 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
2057 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
2058 test "$lt_dlopen" = yes && libtool_flags
="$libtool_flags --enable-dlopen"
2059 test "$silent" = yes && libtool_flags
="$libtool_flags --silent"
2060 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
2061 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
2063 # Some flags need to be propagated to the compiler or linker for good
2067 # Find out which ABI we are using.
2068 echo '#line 2069 "configure"' > conftest.
$ac_ext
2069 if { (eval echo configure
:2070: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2070 case "`/usr/bin/file conftest.o`" in
2086 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2087 SAVE_CFLAGS
="$CFLAGS"
2088 CFLAGS
="$CFLAGS -belf"
2089 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2090 echo "configure:2091: checking whether the C compiler needs -belf" >&5
2091 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2092 echo $ac_n "(cached) $ac_c" 1>&6
2094 cat > conftest.
$ac_ext <<EOF
2095 #line 2096 "configure"
2096 #include "confdefs.h"
2102 if { (eval echo configure
:2103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2104 lt_cv_cc_needs_belf
=yes
2106 echo "configure: failed program was:" >&5
2107 cat conftest.
$ac_ext >&5
2109 lt_cv_cc_needs_belf
=no
2114 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2115 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
2116 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2117 CFLAGS
="$SAVE_CFLAGS"
2122 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
2123 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
2124 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2125 echo "configure:2126: checking for $ac_word" >&5
2126 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2127 echo $ac_n "(cached) $ac_c" 1>&6
2129 if test -n "$DLLTOOL"; then
2130 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
2132 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2134 for ac_dir
in $ac_dummy; do
2135 test -z "$ac_dir" && ac_dir
=.
2136 if test -f $ac_dir/$ac_word; then
2137 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
2144 DLLTOOL
="$ac_cv_prog_DLLTOOL"
2145 if test -n "$DLLTOOL"; then
2146 echo "$ac_t""$DLLTOOL" 1>&6
2148 echo "$ac_t""no" 1>&6
2152 if test -z "$ac_cv_prog_DLLTOOL"; then
2153 if test -n "$ac_tool_prefix"; then
2154 # Extract the first word of "dlltool", so it can be a program name with args.
2155 set dummy dlltool
; ac_word
=$2
2156 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2157 echo "configure:2158: checking for $ac_word" >&5
2158 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2159 echo $ac_n "(cached) $ac_c" 1>&6
2161 if test -n "$DLLTOOL"; then
2162 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
2164 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2166 for ac_dir
in $ac_dummy; do
2167 test -z "$ac_dir" && ac_dir
=.
2168 if test -f $ac_dir/$ac_word; then
2169 ac_cv_prog_DLLTOOL
="dlltool"
2174 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL
="false"
2177 DLLTOOL
="$ac_cv_prog_DLLTOOL"
2178 if test -n "$DLLTOOL"; then
2179 echo "$ac_t""$DLLTOOL" 1>&6
2181 echo "$ac_t""no" 1>&6
2189 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2190 set dummy
${ac_tool_prefix}as
; ac_word
=$2
2191 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2192 echo "configure:2193: checking for $ac_word" >&5
2193 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2194 echo $ac_n "(cached) $ac_c" 1>&6
2196 if test -n "$AS"; then
2197 ac_cv_prog_AS
="$AS" # Let the user override the test.
2199 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2201 for ac_dir
in $ac_dummy; do
2202 test -z "$ac_dir" && ac_dir
=.
2203 if test -f $ac_dir/$ac_word; then
2204 ac_cv_prog_AS
="${ac_tool_prefix}as"
2212 if test -n "$AS"; then
2213 echo "$ac_t""$AS" 1>&6
2215 echo "$ac_t""no" 1>&6
2219 if test -z "$ac_cv_prog_AS"; then
2220 if test -n "$ac_tool_prefix"; then
2221 # Extract the first word of "as", so it can be a program name with args.
2222 set dummy as
; ac_word
=$2
2223 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2224 echo "configure:2225: checking for $ac_word" >&5
2225 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2226 echo $ac_n "(cached) $ac_c" 1>&6
2228 if test -n "$AS"; then
2229 ac_cv_prog_AS
="$AS" # Let the user override the test.
2231 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2233 for ac_dir
in $ac_dummy; do
2234 test -z "$ac_dir" && ac_dir
=.
2235 if test -f $ac_dir/$ac_word; then
2241 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS
="false"
2245 if test -n "$AS"; then
2246 echo "$ac_t""$AS" 1>&6
2248 echo "$ac_t""no" 1>&6
2261 # enable the --disable-libtool-lock switch
2263 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2264 if test "${enable_libtool_lock+set}" = set; then
2265 enableval
="$enable_libtool_lock"
2266 need_locks
=$enableval
2272 if test x
"$need_locks" = xno
; then
2273 libtool_flags
="$libtool_flags --disable-lock"
2277 # Save cache, so that ltconfig can load it
2278 cat > confcache
<<\EOF
2279 # This file is a shell script that caches the results of configure
2280 # tests run on this system so they can be shared between configure
2281 # scripts and configure runs. It is not useful on other systems.
2282 # If it contains results you don't want to keep, you may remove or edit it.
2284 # By default, configure uses ./config.cache as the cache file,
2285 # creating it if it does not exist already. You can give configure
2286 # the --cache-file=FILE option to use a different cache file; that is
2287 # what configure does when it calls configure scripts in
2288 # subdirectories, so they share the cache.
2289 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2290 # config.status only pays attention to the cache file if you give it the
2291 # --recheck option to rerun configure.
2294 # The following way of writing the cache mishandles newlines in values,
2295 # but we know of no workaround that is simple, portable, and efficient.
2296 # So, don't put newlines in cache variables' values.
2297 # Ultrix sh set writes to stderr and can't be redirected directly,
2298 # and sets the high bit in the cache file unless we assign to the vars.
2300 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2302 # `set' does not quote correctly, so add quotes (double-quote substitution
2303 # turns \\\\ into \\, and sed turns \\ into \).
2305 -e "s/'/'\\\\''/g" \
2306 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2309 # `set' quotes correctly as required by POSIX, so do not add quotes.
2310 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2313 if cmp -s $cache_file confcache
; then
2316 if test -w $cache_file; then
2317 echo "updating cache $cache_file"
2318 cat confcache
> $cache_file
2320 echo "not updating unwritable cache $cache_file"
2326 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2327 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
2328 LD
="$LD" NM
="$NM" RANLIB
="$RANLIB" LN_S
="$LN_S" \
2329 DLLTOOL
="$DLLTOOL" AS
="$AS" \
2330 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
2331 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$host \
2332 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2334 # Reload cache, that may have been modified by ltconfig
2335 if test -r "$cache_file"; then
2336 echo "loading cache $cache_file"
2339 echo "creating cache $cache_file"
2344 # This can be used to rebuild libtool when needed
2345 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
2347 # Always use our own libtool.
2348 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
2350 # Redirect the config.log output again, so that the ltconfig log is not
2351 # clobbered by the next message.
2352 exec 5>>.
/config.log
2355 if test -z "$with_target_subdir" ||
test "$with_target_subdir" = "."; then
2364 if test -d $srcdir/testsuite
; then
2366 TESTSUBDIR_FALSE
='#'
2372 # Check whether --enable-fast-character or --disable-fast-character was given.
2373 if test "${enable_fast_character+set}" = set; then
2374 enableval
="$enable_fast_character"
2378 cat >> confdefs.h
<<\EOF
2379 #define COMPACT_CHARACTER 1
2385 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
2386 if test "${enable_libgcj_debug+set}" = set; then
2387 enableval
="$enable_libgcj_debug"
2388 if test "$enable_libgcj_debug" = yes; then
2389 cat >> confdefs.h
<<\EOF
2397 # Check whether --enable-interpreter or --disable-interpreter was given.
2398 if test "${enable_interpreter+set}" = set; then
2399 enableval
="$enable_interpreter"
2400 if test "$enable_interpreter" = yes; then
2401 cat >> confdefs.h
<<\EOF
2402 #define INTERPRETER 1
2410 # Check whether --with-ecos or --without-ecos was given.
2411 if test "${with_ecos+set}" = set; then
2412 withval
="$with_ecos"
2413 TARGET_ECOS
="$with_ecos"
2418 case "$TARGET_ECOS" in
2420 FILE_DESCRIPTOR
=natFileDescriptorPosix.cc
2421 PROCESS
=${PROCESS-Posix}
2424 FILE_DESCRIPTOR
=natFileDescriptorEcos.cc
2426 cat >> confdefs.h
<<\EOF
2433 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2434 echo "configure:2435: checking how to run the C preprocessor" >&5
2435 # On Suns, sometimes $CPP names a directory.
2436 if test -n "$CPP" && test -d "$CPP"; then
2439 if test -z "$CPP"; then
2440 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2441 echo $ac_n "(cached) $ac_c" 1>&6
2443 # This must be in double quotes, not single quotes, because CPP may get
2444 # substituted into the Makefile and "${CC-cc}" will confuse make.
2446 # On the NeXT, cc -E runs the code through the compiler's parser,
2447 # not just through cpp.
2448 cat > conftest.
$ac_ext <<EOF
2449 #line 2450 "configure"
2450 #include "confdefs.h"
2454 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2455 { (eval echo configure
:2456: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2456 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2457 if test -z "$ac_err"; then
2461 echo "configure: failed program was:" >&5
2462 cat conftest.
$ac_ext >&5
2464 CPP
="${CC-cc} -E -traditional-cpp"
2465 cat > conftest.
$ac_ext <<EOF
2466 #line 2467 "configure"
2467 #include "confdefs.h"
2471 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2472 { (eval echo configure
:2473: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2473 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2474 if test -z "$ac_err"; then
2478 echo "configure: failed program was:" >&5
2479 cat conftest.
$ac_ext >&5
2481 CPP
="${CC-cc} -nologo -E"
2482 cat > conftest.
$ac_ext <<EOF
2483 #line 2484 "configure"
2484 #include "confdefs.h"
2488 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2489 { (eval echo configure
:2490: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2490 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2491 if test -z "$ac_err"; then
2495 echo "configure: failed program was:" >&5
2496 cat conftest.
$ac_ext >&5
2505 ac_cv_prog_CPP
="$CPP"
2507 CPP
="$ac_cv_prog_CPP"
2509 ac_cv_prog_CPP
="$CPP"
2511 echo "$ac_t""$CPP" 1>&6
2513 cat > conftest.
$ac_ext <<EOF
2514 #line 2515 "configure"
2515 #include "confdefs.h"
2518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2519 egrep "uint32_t" >/dev
/null
2>&1; then
2521 cat >> confdefs.h
<<\EOF
2522 #define HAVE_INT32_DEFINED 1
2528 cat > conftest.
$ac_ext <<EOF
2529 #line 2530 "configure"
2530 #include "confdefs.h"
2531 #include <inttypes.h>
2533 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2534 egrep "uint32_t" >/dev
/null
2>&1; then
2536 cat >> confdefs.h
<<\EOF
2537 #define HAVE_INT32_DEFINED 1
2543 cat > conftest.
$ac_ext <<EOF
2544 #line 2545 "configure"
2545 #include "confdefs.h"
2546 #include <sys/types.h>
2548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2549 egrep "u_int32_t" >/dev
/null
2>&1; then
2551 cat >> confdefs.h
<<\EOF
2552 #define HAVE_BSD_INT32_DEFINED 1
2558 cat > conftest.
$ac_ext <<EOF
2559 #line 2560 "configure"
2560 #include "confdefs.h"
2561 #include <sys/config.h>
2563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2564 egrep "u_int32_t" >/dev
/null
2>&1; then
2566 cat >> confdefs.h
<<\EOF
2567 #define HAVE_BSD_INT32_DEFINED 1
2575 cat > conftest.
$ac_ext <<EOF
2576 #line 2577 "configure"
2577 #include "confdefs.h"
2580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2581 egrep "mktime" >/dev
/null
2>&1; then
2583 cat >> confdefs.h
<<\EOF
2584 #define HAVE_MKTIME 1
2590 cat > conftest.
$ac_ext <<EOF
2591 #line 2592 "configure"
2592 #include "confdefs.h"
2595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2596 egrep "localtime" >/dev
/null
2>&1; then
2598 cat >> confdefs.h
<<\EOF
2599 #define HAVE_LOCALTIME 1
2606 test -d java || mkdir java
2607 test -d java
/io || mkdir java
/io
2610 test -d java
/lang || mkdir java
/lang
2617 # Check whether --with-system-zlib or --without-system-zlib was given.
2618 if test "${with_system_zlib+set}" = set; then
2619 withval
="$with_system_zlib"
2628 echo $ac_n "checking for garbage collector to use""... $ac_c" 1>&6
2629 echo "configure:2630: checking for garbage collector to use" >&5
2630 # Check whether --enable-java-gc or --disable-java-gc was given.
2631 if test "${enable_java_gc+set}" = set; then
2632 enableval
="$enable_java_gc"
2646 echo "$ac_t""boehm" 1>&6
2647 GCDEPS
='$(top_builddir)/../boehm-gc/libgcjgc.la'
2648 # We include the path to the boehm-gc build directory.
2649 # See Makefile.am to understand why.
2650 GCLIBS
="$GCDEPS -L\$(here)/../boehm-gc/$libsubdir"
2651 GCINCS
='-I$(top_srcdir)/../boehm-gc -I$(top_builddir)/../boehm-gc'
2653 GCINCS
="$GCINCS `cat ../boehm-gc/boehm-cflags`"
2656 cat >> confdefs.h
<<\EOF
2657 #define HAVE_BOEHM_GC 1
2662 echo "$ac_t""none" 1>&6
2667 { echo "configure: error: unrecognized collector \"$GC\"" 1>&2; exit 1; }
2678 echo $ac_n "checking for threads package to use""... $ac_c" 1>&6
2679 echo "configure:2680: checking for threads package to use" >&5
2680 # Check whether --enable-threads or --disable-threads was given.
2681 if test "${enable_threads+set}" = set; then
2682 enableval
="$enable_threads"
2689 if test "$THREADS" = yes; then
2695 # FIXME: this isn't correct in all cases.
2702 # FIXME: for now, choose POSIX, because we implement that.
2703 # Later, choose irix threads.
2707 # FIXME: for now, choose POSIX, because we implement that.
2708 # Later, choose solaris threads.
2726 cat >> confdefs.h
<<\EOF
2727 #define LINUX_THREADS 1
2735 decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks
)
2736 { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
2739 { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
2742 echo "$ac_t""$THREADS" 1>&6
2752 THREADLIBS
=-lpthread
2753 THREADSPEC
=-lpthread
2754 THREADOBJS
=posix-threads.lo
2755 THREADH
=posix-threads.h
2756 # MIT pthreads doesn't seem to have the mutexattr functions.
2757 # But for now we don't check for it. We just assume you aren't
2758 # using MIT pthreads.
2759 cat >> confdefs.h
<<\EOF
2760 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
2766 THREADDEPS
='$(top_builddir)/../qthreads/libgcjcoop.la'
2767 # We include the path to the qthreads build directory.
2768 # See Makefile.am to understand why.
2769 THREADLIBS
="$THREADDEPS -L\$(here)/../qthreads/$libsubdir"
2770 THREADSPEC
='-lgcjcoop'
2771 THREADOBJS
=quick-threads.lo
2772 THREADINCS
='-I$(top_srcdir)/../qthreads'
2773 THREADH
=quick-threads.h
2777 THREADOBJS
=no-threads.lo
2778 THREADH
=no-threads.h
2790 if test "$GCC" = yes; then
2801 # Find eh-common.h and support headers. If we're in the tree with
2802 # gcc, then look there. Otherwise look in compat-include. If all else
2803 # fails, just hope the user has set things up somehow.
2804 if test -r $srcdir/..
/gcc
/eh-common.h
; then
2805 EH_COMMON_INCLUDE
='-I$(top_srcdir)/../gcc -I$(top_srcdir)/../include'
2807 if test -d $srcdir/..
/compat-include
; then
2808 EH_COMMON_INCLUDE
='-I$(top_srcdir)/../compat-include'
2814 if test -n "${with_cross_host}"; then
2815 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
2816 # may not work correctly, because the compiler may not be able to
2819 # We assume newlib. This lets us hard-code the functions we know
2821 cat >> confdefs.h
<<\EOF
2822 #define HAVE_MEMMOVE 1
2825 cat >> confdefs.h
<<\EOF
2826 #define HAVE_MEMCPY 1
2829 cat >> confdefs.h
<<\EOF
2830 #define HAVE_STRERROR 1
2833 cat >> confdefs.h
<<\EOF
2834 #define HAVE_GMTIME_R 1
2837 cat >> confdefs.h
<<\EOF
2838 #define HAVE_LOCALTIME_R 1
2841 cat >> confdefs.h
<<\EOF
2842 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
2845 cat >> confdefs.h
<<\EOF
2846 #define HAVE_ALLOCA 1
2852 # If Canadian cross, then don't pick up tools from the build
2854 if test "$build" != "$with_cross_host"; then
2857 GCJ
="${target_alias}/gcj"
2862 for ac_func
in strerror ioctl
select fstat open fsync
sleep
2864 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2865 echo "configure:2866: checking for $ac_func" >&5
2866 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2867 echo $ac_n "(cached) $ac_c" 1>&6
2869 cat > conftest.
$ac_ext <<EOF
2870 #line 2871 "configure"
2871 #include "confdefs.h"
2872 /* System header to define __stub macros and hopefully few prototypes,
2873 which can conflict with char $ac_func(); below. */
2875 /* Override any gcc2 internal prototype to avoid an error. */
2876 /* We use char because int might match the return type of a gcc2
2877 builtin and then its argument prototype would still apply. */
2882 /* The GNU C library defines this for functions which it implements
2883 to always fail with ENOSYS. Some functions are actually named
2884 something starting with __ and the normal name is an alias. */
2885 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2893 if { (eval echo configure
:2894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2895 eval "ac_cv_func_$ac_func=yes"
2897 echo "configure: failed program was:" >&5
2898 cat conftest.
$ac_ext >&5
2900 eval "ac_cv_func_$ac_func=no"
2905 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2906 echo "$ac_t""yes" 1>&6
2907 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2908 cat >> confdefs.h
<<EOF
2909 #define $ac_tr_func 1
2913 echo "$ac_t""no" 1>&6
2917 for ac_func
in gmtime_r localtime_r readdir_r getpwuid_r
2919 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2920 echo "configure:2921: checking for $ac_func" >&5
2921 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2922 echo $ac_n "(cached) $ac_c" 1>&6
2924 cat > conftest.
$ac_ext <<EOF
2925 #line 2926 "configure"
2926 #include "confdefs.h"
2927 /* System header to define __stub macros and hopefully few prototypes,
2928 which can conflict with char $ac_func(); below. */
2930 /* Override any gcc2 internal prototype to avoid an error. */
2931 /* We use char because int might match the return type of a gcc2
2932 builtin and then its argument prototype would still apply. */
2937 /* The GNU C library defines this for functions which it implements
2938 to always fail with ENOSYS. Some functions are actually named
2939 something starting with __ and the normal name is an alias. */
2940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2948 if { (eval echo configure
:2949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2950 eval "ac_cv_func_$ac_func=yes"
2952 echo "configure: failed program was:" >&5
2953 cat conftest.
$ac_ext >&5
2955 eval "ac_cv_func_$ac_func=no"
2960 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2961 echo "$ac_t""yes" 1>&6
2962 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2963 cat >> confdefs.h
<<EOF
2964 #define $ac_tr_func 1
2968 echo "$ac_t""no" 1>&6
2972 for ac_func
in access stat mkdir rename
rmdir unlink realpath
2974 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2975 echo "configure:2976: checking for $ac_func" >&5
2976 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2977 echo $ac_n "(cached) $ac_c" 1>&6
2979 cat > conftest.
$ac_ext <<EOF
2980 #line 2981 "configure"
2981 #include "confdefs.h"
2982 /* System header to define __stub macros and hopefully few prototypes,
2983 which can conflict with char $ac_func(); below. */
2985 /* Override any gcc2 internal prototype to avoid an error. */
2986 /* We use char because int might match the return type of a gcc2
2987 builtin and then its argument prototype would still apply. */
2992 /* The GNU C library defines this for functions which it implements
2993 to always fail with ENOSYS. Some functions are actually named
2994 something starting with __ and the normal name is an alias. */
2995 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3003 if { (eval echo configure
:3004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3005 eval "ac_cv_func_$ac_func=yes"
3007 echo "configure: failed program was:" >&5
3008 cat conftest.
$ac_ext >&5
3010 eval "ac_cv_func_$ac_func=no"
3015 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3016 echo "$ac_t""yes" 1>&6
3017 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3018 cat >> confdefs.h
<<EOF
3019 #define $ac_tr_func 1
3023 echo "$ac_t""no" 1>&6
3027 for ac_func
in inet_aton inet_addr
3029 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3030 echo "configure:3031: checking for $ac_func" >&5
3031 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3032 echo $ac_n "(cached) $ac_c" 1>&6
3034 cat > conftest.
$ac_ext <<EOF
3035 #line 3036 "configure"
3036 #include "confdefs.h"
3037 /* System header to define __stub macros and hopefully few prototypes,
3038 which can conflict with char $ac_func(); below. */
3040 /* Override any gcc2 internal prototype to avoid an error. */
3041 /* We use char because int might match the return type of a gcc2
3042 builtin and then its argument prototype would still apply. */
3047 /* The GNU C library defines this for functions which it implements
3048 to always fail with ENOSYS. Some functions are actually named
3049 something starting with __ and the normal name is an alias. */
3050 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3058 if { (eval echo configure
:3059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3060 eval "ac_cv_func_$ac_func=yes"
3062 echo "configure: failed program was:" >&5
3063 cat conftest.
$ac_ext >&5
3065 eval "ac_cv_func_$ac_func=no"
3070 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3071 echo "$ac_t""yes" 1>&6
3072 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3073 cat >> confdefs.h
<<EOF
3074 #define $ac_tr_func 1
3078 echo "$ac_t""no" 1>&6
3082 for ac_func
in inet_pton uname inet_ntoa
3084 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3085 echo "configure:3086: checking for $ac_func" >&5
3086 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3087 echo $ac_n "(cached) $ac_c" 1>&6
3089 cat > conftest.
$ac_ext <<EOF
3090 #line 3091 "configure"
3091 #include "confdefs.h"
3092 /* System header to define __stub macros and hopefully few prototypes,
3093 which can conflict with char $ac_func(); below. */
3095 /* Override any gcc2 internal prototype to avoid an error. */
3096 /* We use char because int might match the return type of a gcc2
3097 builtin and then its argument prototype would still apply. */
3102 /* The GNU C library defines this for functions which it implements
3103 to always fail with ENOSYS. Some functions are actually named
3104 something starting with __ and the normal name is an alias. */
3105 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3113 if { (eval echo configure
:3114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3115 eval "ac_cv_func_$ac_func=yes"
3117 echo "configure: failed program was:" >&5
3118 cat conftest.
$ac_ext >&5
3120 eval "ac_cv_func_$ac_func=no"
3125 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3126 echo "$ac_t""yes" 1>&6
3127 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3128 cat >> confdefs.h
<<EOF
3129 #define $ac_tr_func 1
3133 echo "$ac_t""no" 1>&6
3138 for ac_func
in gethostbyname_r
3140 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3141 echo "configure:3142: checking for $ac_func" >&5
3142 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3143 echo $ac_n "(cached) $ac_c" 1>&6
3145 cat > conftest.
$ac_ext <<EOF
3146 #line 3147 "configure"
3147 #include "confdefs.h"
3148 /* System header to define __stub macros and hopefully few prototypes,
3149 which can conflict with char $ac_func(); below. */
3151 /* Override any gcc2 internal prototype to avoid an error. */
3152 /* We use char because int might match the return type of a gcc2
3153 builtin and then its argument prototype would still apply. */
3158 /* The GNU C library defines this for functions which it implements
3159 to always fail with ENOSYS. Some functions are actually named
3160 something starting with __ and the normal name is an alias. */
3161 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3169 if { (eval echo configure
:3170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3171 eval "ac_cv_func_$ac_func=yes"
3173 echo "configure: failed program was:" >&5
3174 cat conftest.
$ac_ext >&5
3176 eval "ac_cv_func_$ac_func=no"
3181 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3182 echo "$ac_t""yes" 1>&6
3183 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3184 cat >> confdefs.h
<<EOF
3185 #define $ac_tr_func 1
3188 cat >> confdefs.h
<<\EOF
3189 #define HAVE_GETHOSTBYNAME_R 1
3192 # There are two different kinds of gethostbyname_r.
3193 # We look for the one that returns `int'.
3194 # Hopefully this check is robust enough.
3195 cat > conftest.
$ac_ext <<EOF
3196 #line 3197 "configure"
3197 #include "confdefs.h"
3200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3201 egrep "int.*gethostbyname_r" >/dev
/null
2>&1; then
3204 cat >> confdefs.h
<<\EOF
3205 #define GETHOSTBYNAME_R_RETURNS_INT 1
3213 *" -D_REENTRANT "*) ;;
3215 echo $ac_n "checking whether gethostbyname_r declaration requires -D_REENTRANT""... $ac_c" 1>&6
3216 echo "configure:3217: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
3217 if eval "test \"`echo '$''{'libjava_cv_gethostbyname_r_needs_reentrant'+set}'`\" = set"; then
3218 echo $ac_n "(cached) $ac_c" 1>&6
3222 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3223 ac_cpp
='$CXXCPP $CPPFLAGS'
3224 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3225 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3226 cross_compiling
=$ac_cv_prog_cxx_cross
3228 cat > conftest.
$ac_ext <<EOF
3229 #line 3230 "configure"
3230 #include "confdefs.h"
3233 gethostbyname_r("", 0, 0);
3236 if { (eval echo configure
:3237: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3238 libjava_cv_gethostbyname_r_needs_reentrant
=no
3240 echo "configure: failed program was:" >&5
3241 cat conftest.
$ac_ext >&5
3243 CPPFLAGS_SAVE
="$CPPFLAGS"
3244 CPPFLAGS
="$CPPFLAGS -D_REENTRANT"
3245 cat > conftest.
$ac_ext <<EOF
3246 #line 3247 "configure"
3247 #include "confdefs.h"
3250 gethostbyname_r("", 0, 0);
3253 if { (eval echo configure
:3254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3255 libjava_cv_gethostbyname_r_needs_reentrant
=yes
3257 echo "configure: failed program was:" >&5
3258 cat conftest.
$ac_ext >&5
3260 libjava_cv_gethostbyname_r_needs_reentrant
=fail
3263 CPPFLAGS
="$CPPFLAGS_SAVE"
3268 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3269 ac_cpp
='$CPP $CPPFLAGS'
3270 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3271 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3272 cross_compiling
=$ac_cv_prog_cc_cross
3277 echo "$ac_t""$libjava_cv_gethostbyname_r_needs_reentrant" 1>&6
3278 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes
; then
3279 cat >> confdefs.h
<<\EOF
3280 #define GETHOSTBYNAME_R_NEEDS_REENTRANT 1
3287 echo $ac_n "checking for struct hostent_data""... $ac_c" 1>&6
3288 echo "configure:3289: checking for struct hostent_data" >&5
3289 if eval "test \"`echo '$''{'libjava_cv_struct_hostent_data'+set}'`\" = set"; then
3290 echo $ac_n "(cached) $ac_c" 1>&6
3292 cat > conftest.
$ac_ext <<EOF
3293 #line 3294 "configure"
3294 #include "confdefs.h"
3296 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
3297 # define _REENTRANT 1
3301 struct hostent_data data;
3304 if { (eval echo configure
:3305: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3306 libjava_cv_struct_hostent_data
=yes
3308 echo "configure: failed program was:" >&5
3309 cat conftest.
$ac_ext >&5
3311 libjava_cv_struct_hostent_data
=no
3316 echo "$ac_t""$libjava_cv_struct_hostent_data" 1>&6
3317 if test "x$libjava_cv_struct_hostent_data" = xyes
; then
3318 cat >> confdefs.h
<<\EOF
3319 #define HAVE_STRUCT_HOSTENT_DATA 1
3325 echo "$ac_t""no" 1>&6
3330 for ac_func
in gethostbyaddr_r
3332 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3333 echo "configure:3334: checking for $ac_func" >&5
3334 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3335 echo $ac_n "(cached) $ac_c" 1>&6
3337 cat > conftest.
$ac_ext <<EOF
3338 #line 3339 "configure"
3339 #include "confdefs.h"
3340 /* System header to define __stub macros and hopefully few prototypes,
3341 which can conflict with char $ac_func(); below. */
3343 /* Override any gcc2 internal prototype to avoid an error. */
3344 /* We use char because int might match the return type of a gcc2
3345 builtin and then its argument prototype would still apply. */
3350 /* The GNU C library defines this for functions which it implements
3351 to always fail with ENOSYS. Some functions are actually named
3352 something starting with __ and the normal name is an alias. */
3353 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3361 if { (eval echo configure
:3362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3363 eval "ac_cv_func_$ac_func=yes"
3365 echo "configure: failed program was:" >&5
3366 cat conftest.
$ac_ext >&5
3368 eval "ac_cv_func_$ac_func=no"
3373 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3374 echo "$ac_t""yes" 1>&6
3375 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3376 cat >> confdefs.h
<<EOF
3377 #define $ac_tr_func 1
3380 cat >> confdefs.h
<<\EOF
3381 #define HAVE_GETHOSTBYADDR_R 1
3384 # There are two different kinds of gethostbyaddr_r.
3385 # We look for the one that returns `int'.
3386 # Hopefully this check is robust enough.
3387 cat > conftest.
$ac_ext <<EOF
3388 #line 3389 "configure"
3389 #include "confdefs.h"
3392 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3393 egrep "int.*gethostbyaddr_r" >/dev
/null
2>&1; then
3396 cat >> confdefs.h
<<\EOF
3397 #define GETHOSTBYADDR_R_RETURNS_INT 1
3404 echo "$ac_t""no" 1>&6
3409 for ac_func
in gethostname
3411 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3412 echo "configure:3413: checking for $ac_func" >&5
3413 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3414 echo $ac_n "(cached) $ac_c" 1>&6
3416 cat > conftest.
$ac_ext <<EOF
3417 #line 3418 "configure"
3418 #include "confdefs.h"
3419 /* System header to define __stub macros and hopefully few prototypes,
3420 which can conflict with char $ac_func(); below. */
3422 /* Override any gcc2 internal prototype to avoid an error. */
3423 /* We use char because int might match the return type of a gcc2
3424 builtin and then its argument prototype would still apply. */
3429 /* The GNU C library defines this for functions which it implements
3430 to always fail with ENOSYS. Some functions are actually named
3431 something starting with __ and the normal name is an alias. */
3432 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3440 if { (eval echo configure
:3441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3442 eval "ac_cv_func_$ac_func=yes"
3444 echo "configure: failed program was:" >&5
3445 cat conftest.
$ac_ext >&5
3447 eval "ac_cv_func_$ac_func=no"
3452 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3453 echo "$ac_t""yes" 1>&6
3454 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3455 cat >> confdefs.h
<<EOF
3456 #define $ac_tr_func 1
3459 cat >> confdefs.h
<<\EOF
3460 #define HAVE_GETHOSTNAME 1
3463 cat > conftest.
$ac_ext <<EOF
3464 #line 3465 "configure"
3465 #include "confdefs.h"
3468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3469 egrep "gethostname" >/dev
/null
2>&1; then
3472 cat >> confdefs.h
<<\EOF
3473 #define HAVE_GETHOSTNAME_DECL 1
3480 echo "$ac_t""no" 1>&6
3485 # Look for these functions in the thread library, but only bother
3486 # if using POSIX threads.
3487 if test "$THREADS" = posix
; then
3489 LIBS
="$LIBS $THREADLIBS"
3490 # Some POSIX thread systems don't have pthread_mutexattr_settype.
3492 for ac_func
in pthread_mutexattr_settype pthread_mutexattr_setkind_np
3494 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3495 echo "configure:3496: checking for $ac_func" >&5
3496 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3497 echo $ac_n "(cached) $ac_c" 1>&6
3499 cat > conftest.
$ac_ext <<EOF
3500 #line 3501 "configure"
3501 #include "confdefs.h"
3502 /* System header to define __stub macros and hopefully few prototypes,
3503 which can conflict with char $ac_func(); below. */
3505 /* Override any gcc2 internal prototype to avoid an error. */
3506 /* We use char because int might match the return type of a gcc2
3507 builtin and then its argument prototype would still apply. */
3512 /* The GNU C library defines this for functions which it implements
3513 to always fail with ENOSYS. Some functions are actually named
3514 something starting with __ and the normal name is an alias. */
3515 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3523 if { (eval echo configure
:3524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3525 eval "ac_cv_func_$ac_func=yes"
3527 echo "configure: failed program was:" >&5
3528 cat conftest.
$ac_ext >&5
3530 eval "ac_cv_func_$ac_func=no"
3535 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3536 echo "$ac_t""yes" 1>&6
3537 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3538 cat >> confdefs.h
<<EOF
3539 #define $ac_tr_func 1
3543 echo "$ac_t""no" 1>&6
3548 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
3549 # Solaris 7 the name librt is preferred.
3550 for ac_func
in sched_yield
3552 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3553 echo "configure:3554: checking for $ac_func" >&5
3554 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3555 echo $ac_n "(cached) $ac_c" 1>&6
3557 cat > conftest.
$ac_ext <<EOF
3558 #line 3559 "configure"
3559 #include "confdefs.h"
3560 /* System header to define __stub macros and hopefully few prototypes,
3561 which can conflict with char $ac_func(); below. */
3563 /* Override any gcc2 internal prototype to avoid an error. */
3564 /* We use char because int might match the return type of a gcc2
3565 builtin and then its argument prototype would still apply. */
3570 /* The GNU C library defines this for functions which it implements
3571 to always fail with ENOSYS. Some functions are actually named
3572 something starting with __ and the normal name is an alias. */
3573 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3581 if { (eval echo configure
:3582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3583 eval "ac_cv_func_$ac_func=yes"
3585 echo "configure: failed program was:" >&5
3586 cat conftest.
$ac_ext >&5
3588 eval "ac_cv_func_$ac_func=no"
3593 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3594 echo "$ac_t""yes" 1>&6
3595 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3596 cat >> confdefs.h
<<EOF
3597 #define $ac_tr_func 1
3601 echo "$ac_t""no" 1>&6
3602 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
3603 echo "configure:3604: checking for sched_yield in -lrt" >&5
3604 ac_lib_var
=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
3605 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3606 echo $ac_n "(cached) $ac_c" 1>&6
3608 ac_save_LIBS
="$LIBS"
3610 cat > conftest.
$ac_ext <<EOF
3611 #line 3612 "configure"
3612 #include "confdefs.h"
3613 /* Override any gcc2 internal prototype to avoid an error. */
3614 /* We use char because int might match the return type of a gcc2
3615 builtin and then its argument prototype would still apply. */
3622 if { (eval echo configure
:3623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3624 eval "ac_cv_lib_$ac_lib_var=yes"
3626 echo "configure: failed program was:" >&5
3627 cat conftest.
$ac_ext >&5
3629 eval "ac_cv_lib_$ac_lib_var=no"
3632 LIBS
="$ac_save_LIBS"
3635 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3636 echo "$ac_t""yes" 1>&6
3638 cat >> confdefs.h
<<\EOF
3639 #define HAVE_SCHED_YIELD 1
3642 THREADLIBS
="$THREADLIBS -lrt"
3643 THREADSPEC
="$THREADSPEC -lrt"
3645 echo "$ac_t""no" 1>&6
3647 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
3648 echo "configure:3649: checking for sched_yield in -lposix4" >&5
3649 ac_lib_var
=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
3650 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3651 echo $ac_n "(cached) $ac_c" 1>&6
3653 ac_save_LIBS
="$LIBS"
3654 LIBS
="-lposix4 $LIBS"
3655 cat > conftest.
$ac_ext <<EOF
3656 #line 3657 "configure"
3657 #include "confdefs.h"
3658 /* Override any gcc2 internal prototype to avoid an error. */
3659 /* We use char because int might match the return type of a gcc2
3660 builtin and then its argument prototype would still apply. */
3667 if { (eval echo configure
:3668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3669 eval "ac_cv_lib_$ac_lib_var=yes"
3671 echo "configure: failed program was:" >&5
3672 cat conftest.
$ac_ext >&5
3674 eval "ac_cv_lib_$ac_lib_var=no"
3677 LIBS
="$ac_save_LIBS"
3680 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3681 echo "$ac_t""yes" 1>&6
3683 cat >> confdefs.h
<<\EOF
3684 #define HAVE_SCHED_YIELD 1
3687 THREADLIBS
="$THREADLIBS -lposix4"
3688 THREADSPEC
="$THREADSPEC -lposix4"
3690 echo "$ac_t""no" 1>&6
3700 # We can save a little space at runtime if the mutex has m_count
3701 # or __m_count. This is a nice hack for Linux.
3702 cat > conftest.
$ac_ext <<EOF
3703 #line 3704 "configure"
3704 #include "confdefs.h"
3705 #include <pthread.h>
3708 extern pthread_mutex_t *mutex; int q = mutex->m_count;
3712 if { (eval echo configure
:3713: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3714 cat >> confdefs.h
<<\EOF
3715 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
3719 echo "configure: failed program was:" >&5
3720 cat conftest.
$ac_ext >&5
3723 cat > conftest.
$ac_ext <<EOF
3724 #line 3725 "configure"
3725 #include "confdefs.h"
3726 #include <pthread.h>
3729 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
3733 if { (eval echo configure
:3734: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3735 cat >> confdefs.h
<<\EOF
3736 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
3740 echo "configure: failed program was:" >&5
3741 cat conftest.
$ac_ext >&5
3748 # We require a way to get the time.
3750 for ac_func
in gettimeofday
time ftime
3752 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3753 echo "configure:3754: checking for $ac_func" >&5
3754 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3755 echo $ac_n "(cached) $ac_c" 1>&6
3757 cat > conftest.
$ac_ext <<EOF
3758 #line 3759 "configure"
3759 #include "confdefs.h"
3760 /* System header to define __stub macros and hopefully few prototypes,
3761 which can conflict with char $ac_func(); below. */
3763 /* Override any gcc2 internal prototype to avoid an error. */
3764 /* We use char because int might match the return type of a gcc2
3765 builtin and then its argument prototype would still apply. */
3770 /* The GNU C library defines this for functions which it implements
3771 to always fail with ENOSYS. Some functions are actually named
3772 something starting with __ and the normal name is an alias. */
3773 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3781 if { (eval echo configure
:3782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3783 eval "ac_cv_func_$ac_func=yes"
3785 echo "configure: failed program was:" >&5
3786 cat conftest.
$ac_ext >&5
3788 eval "ac_cv_func_$ac_func=no"
3793 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3794 echo "$ac_t""yes" 1>&6
3795 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3796 cat >> confdefs.h
<<EOF
3797 #define $ac_tr_func 1
3801 echo "$ac_t""no" 1>&6
3805 if test "$time_found" = no
; then
3806 { echo "configure: error: no function found to get the time" 1>&2; exit 1; }
3809 for ac_func
in memmove
3811 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3812 echo "configure:3813: checking for $ac_func" >&5
3813 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3814 echo $ac_n "(cached) $ac_c" 1>&6
3816 cat > conftest.
$ac_ext <<EOF
3817 #line 3818 "configure"
3818 #include "confdefs.h"
3819 /* System header to define __stub macros and hopefully few prototypes,
3820 which can conflict with char $ac_func(); below. */
3822 /* Override any gcc2 internal prototype to avoid an error. */
3823 /* We use char because int might match the return type of a gcc2
3824 builtin and then its argument prototype would still apply. */
3829 /* The GNU C library defines this for functions which it implements
3830 to always fail with ENOSYS. Some functions are actually named
3831 something starting with __ and the normal name is an alias. */
3832 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3840 if { (eval echo configure
:3841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3842 eval "ac_cv_func_$ac_func=yes"
3844 echo "configure: failed program was:" >&5
3845 cat conftest.
$ac_ext >&5
3847 eval "ac_cv_func_$ac_func=no"
3852 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3853 echo "$ac_t""yes" 1>&6
3854 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3855 cat >> confdefs.h
<<EOF
3856 #define $ac_tr_func 1
3860 echo "$ac_t""no" 1>&6
3865 # We require memcpy.
3867 for ac_func
in memcpy
3869 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3870 echo "configure:3871: checking for $ac_func" >&5
3871 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3872 echo $ac_n "(cached) $ac_c" 1>&6
3874 cat > conftest.
$ac_ext <<EOF
3875 #line 3876 "configure"
3876 #include "confdefs.h"
3877 /* System header to define __stub macros and hopefully few prototypes,
3878 which can conflict with char $ac_func(); below. */
3880 /* Override any gcc2 internal prototype to avoid an error. */
3881 /* We use char because int might match the return type of a gcc2
3882 builtin and then its argument prototype would still apply. */
3887 /* The GNU C library defines this for functions which it implements
3888 to always fail with ENOSYS. Some functions are actually named
3889 something starting with __ and the normal name is an alias. */
3890 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3898 if { (eval echo configure
:3899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3900 eval "ac_cv_func_$ac_func=yes"
3902 echo "configure: failed program was:" >&5
3903 cat conftest.
$ac_ext >&5
3905 eval "ac_cv_func_$ac_func=no"
3910 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3911 echo "$ac_t""yes" 1>&6
3912 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3913 cat >> confdefs.h
<<EOF
3914 #define $ac_tr_func 1
3918 echo "$ac_t""no" 1>&6
3922 if test "$memcpy_found" = no
; then
3923 { echo "configure: error: memcpy is required" 1>&2; exit 1; }
3926 # Some library-finding code we stole from Tcl.
3927 #--------------------------------------------------------------------
3928 # Check for the existence of the -lsocket and -lnsl libraries.
3929 # The order here is important, so that they end up in the right
3930 # order in the command line generated by make. Here are some
3931 # special considerations:
3932 # 1. Use "connect" and "accept" to check for -lsocket, and
3933 # "gethostbyname" to check for -lnsl.
3934 # 2. Use each function name only once: can't redo a check because
3935 # autoconf caches the results of the last check and won't redo it.
3936 # 3. Use -lnsl and -lsocket only if they supply procedures that
3937 # aren't already present in the normal libraries. This is because
3938 # IRIX 5.2 has libraries, but they aren't needed and they're
3939 # bogus: they goof up name resolution if used.
3940 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
3941 # To get around this problem, check for both libraries together
3942 # if -lsocket doesn't work by itself.
3943 #--------------------------------------------------------------------
3945 echo $ac_n "checking for socket libraries""... $ac_c" 1>&6
3946 echo "configure:3947: checking for socket libraries" >&5
3947 if eval "test \"`echo '$''{'gcj_cv_lib_sockets'+set}'`\" = set"; then
3948 echo $ac_n "(cached) $ac_c" 1>&6
3952 unset ac_cv_func_connect
3953 echo $ac_n "checking for connect""... $ac_c" 1>&6
3954 echo "configure:3955: checking for connect" >&5
3955 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3956 echo $ac_n "(cached) $ac_c" 1>&6
3958 cat > conftest.
$ac_ext <<EOF
3959 #line 3960 "configure"
3960 #include "confdefs.h"
3961 /* System header to define __stub macros and hopefully few prototypes,
3962 which can conflict with char connect(); below. */
3964 /* Override any gcc2 internal prototype to avoid an error. */
3965 /* We use char because int might match the return type of a gcc2
3966 builtin and then its argument prototype would still apply. */
3971 /* The GNU C library defines this for functions which it implements
3972 to always fail with ENOSYS. Some functions are actually named
3973 something starting with __ and the normal name is an alias. */
3974 #if defined (__stub_connect) || defined (__stub___connect)
3982 if { (eval echo configure
:3983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3984 eval "ac_cv_func_connect=yes"
3986 echo "configure: failed program was:" >&5
3987 cat conftest.
$ac_ext >&5
3989 eval "ac_cv_func_connect=no"
3994 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3995 echo "$ac_t""yes" 1>&6
3998 echo "$ac_t""no" 1>&6
4002 if test "$gcj_checkSocket" = 1; then
4003 unset ac_cv_func_connect
4004 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4005 echo "configure:4006: checking for main in -lsocket" >&5
4006 ac_lib_var
=`echo socket'_'main | sed 'y%./+-%__p_%'`
4007 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4008 echo $ac_n "(cached) $ac_c" 1>&6
4010 ac_save_LIBS
="$LIBS"
4011 LIBS
="-lsocket $LIBS"
4012 cat > conftest.
$ac_ext <<EOF
4013 #line 4014 "configure"
4014 #include "confdefs.h"
4020 if { (eval echo configure
:4021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4022 eval "ac_cv_lib_$ac_lib_var=yes"
4024 echo "configure: failed program was:" >&5
4025 cat conftest.
$ac_ext >&5
4027 eval "ac_cv_lib_$ac_lib_var=no"
4030 LIBS
="$ac_save_LIBS"
4033 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4034 echo "$ac_t""yes" 1>&6
4035 gcj_cv_lib_sockets
="-lsocket"
4037 echo "$ac_t""no" 1>&6
4042 if test "$gcj_checkBoth" = 1; then
4044 LIBS
="$LIBS -lsocket -lnsl"
4045 unset ac_cv_func_accept
4046 echo $ac_n "checking for accept""... $ac_c" 1>&6
4047 echo "configure:4048: checking for accept" >&5
4048 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
4049 echo $ac_n "(cached) $ac_c" 1>&6
4051 cat > conftest.
$ac_ext <<EOF
4052 #line 4053 "configure"
4053 #include "confdefs.h"
4054 /* System header to define __stub macros and hopefully few prototypes,
4055 which can conflict with char accept(); below. */
4057 /* Override any gcc2 internal prototype to avoid an error. */
4058 /* We use char because int might match the return type of a gcc2
4059 builtin and then its argument prototype would still apply. */
4064 /* The GNU C library defines this for functions which it implements
4065 to always fail with ENOSYS. Some functions are actually named
4066 something starting with __ and the normal name is an alias. */
4067 #if defined (__stub_accept) || defined (__stub___accept)
4075 if { (eval echo configure
:4076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4077 eval "ac_cv_func_accept=yes"
4079 echo "configure: failed program was:" >&5
4080 cat conftest.
$ac_ext >&5
4082 eval "ac_cv_func_accept=no"
4087 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
4088 echo "$ac_t""yes" 1>&6
4090 gcj_cv_lib_sockets
="-lsocket -lnsl"
4092 echo "$ac_t""no" 1>&6
4095 unset ac_cv_func_accept
4098 unset ac_cv_func_gethostbyname
4100 LIBS
="$LIBS $gcj_cv_lib_sockets"
4101 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4102 echo "configure:4103: checking for gethostbyname" >&5
4103 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
4104 echo $ac_n "(cached) $ac_c" 1>&6
4106 cat > conftest.
$ac_ext <<EOF
4107 #line 4108 "configure"
4108 #include "confdefs.h"
4109 /* System header to define __stub macros and hopefully few prototypes,
4110 which can conflict with char gethostbyname(); below. */
4112 /* Override any gcc2 internal prototype to avoid an error. */
4113 /* We use char because int might match the return type of a gcc2
4114 builtin and then its argument prototype would still apply. */
4115 char gethostbyname();
4119 /* The GNU C library defines this for functions which it implements
4120 to always fail with ENOSYS. Some functions are actually named
4121 something starting with __ and the normal name is an alias. */
4122 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4130 if { (eval echo configure
:4131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4132 eval "ac_cv_func_gethostbyname=yes"
4134 echo "configure: failed program was:" >&5
4135 cat conftest.
$ac_ext >&5
4137 eval "ac_cv_func_gethostbyname=no"
4142 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
4143 echo "$ac_t""yes" 1>&6
4146 echo "$ac_t""no" 1>&6
4147 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
4148 echo "configure:4149: checking for main in -lnsl" >&5
4149 ac_lib_var
=`echo nsl'_'main | sed 'y%./+-%__p_%'`
4150 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4151 echo $ac_n "(cached) $ac_c" 1>&6
4153 ac_save_LIBS
="$LIBS"
4155 cat > conftest.
$ac_ext <<EOF
4156 #line 4157 "configure"
4157 #include "confdefs.h"
4163 if { (eval echo configure
:4164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4165 eval "ac_cv_lib_$ac_lib_var=yes"
4167 echo "configure: failed program was:" >&5
4168 cat conftest.
$ac_ext >&5
4170 eval "ac_cv_lib_$ac_lib_var=no"
4173 LIBS
="$ac_save_LIBS"
4176 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4177 echo "$ac_t""yes" 1>&6
4178 gcj_cv_lib_sockets
="$gcj_cv_lib_sockets -lnsl"
4180 echo "$ac_t""no" 1>&6
4185 unset ac_cv_func_gethostbyname
4190 echo "$ac_t""$gcj_cv_lib_sockets" 1>&6
4191 SYSTEMSPEC
="$SYSTEMSPEC $gcj_cv_lib_sockets"
4193 if test "$with_system_zlib" = yes; then
4194 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
4195 echo "configure:4196: checking for deflate in -lz" >&5
4196 ac_lib_var
=`echo z'_'deflate | sed 'y%./+-%__p_%'`
4197 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4198 echo $ac_n "(cached) $ac_c" 1>&6
4200 ac_save_LIBS
="$LIBS"
4202 cat > conftest.
$ac_ext <<EOF
4203 #line 4204 "configure"
4204 #include "confdefs.h"
4205 /* Override any gcc2 internal prototype to avoid an error. */
4206 /* We use char because int might match the return type of a gcc2
4207 builtin and then its argument prototype would still apply. */
4214 if { (eval echo configure
:4215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4216 eval "ac_cv_lib_$ac_lib_var=yes"
4218 echo "configure: failed program was:" >&5
4219 cat conftest.
$ac_ext >&5
4221 eval "ac_cv_lib_$ac_lib_var=no"
4224 LIBS
="$ac_save_LIBS"
4227 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4228 echo "$ac_t""yes" 1>&6
4231 echo "$ac_t""no" 1>&6
4239 # On Solaris, and maybe other architectures, the Boehm collector
4241 if test "$GC" = boehm
; then
4242 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
4243 echo "configure:4244: checking for main in -ldl" >&5
4244 ac_lib_var
=`echo dl'_'main | 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"
4250 cat > conftest.
$ac_ext <<EOF
4251 #line 4252 "configure"
4252 #include "confdefs.h"
4258 if { (eval echo configure
:4259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4260 eval "ac_cv_lib_$ac_lib_var=yes"
4262 echo "configure: failed program was:" >&5
4263 cat conftest.
$ac_ext >&5
4265 eval "ac_cv_lib_$ac_lib_var=no"
4268 LIBS
="$ac_save_LIBS"
4271 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4272 echo "$ac_t""yes" 1>&6
4273 SYSTEMSPEC
="$SYSTEMSPEC -ldl"
4275 echo "$ac_t""no" 1>&6
4280 if test -d "$libgcj_basedir/../gcc/java"; then
4292 if test "x$ZLIBSPEC" = "x-lzgcj"; then
4293 # We include the path to the zlib build directory.
4294 # See Makefile.am to understand why.
4295 ZDEPS
='$(top_builddir)/../zlib/libzgcj.la'
4296 ZLIBS
="$ZDEPS -L\$(here)/../zlib/$libsubdir"
4297 ZINCS
='-I$(top_srcdir)/../zlib'
4308 if test "$CANADIAN" = yes; then
4317 if test "$NULL_TARGET" = yes; then
4319 NULL_TARGET_FALSE
='#'
4321 NULL_TARGET_TRUE
='#'
4326 if test "$CANADIAN" = no ||
test "$NULL_TARGET" = yes; then
4335 if test -z "$with_cross_host"; then
4337 USE_LIBDIR_FALSE
='#'
4344 # Determine gcj version number.
4345 if test "$GCJ" = ""; then
4346 if test -z "${with_multisubdir}"; then
4349 builddotdot
=`echo ${with_multisubdir} | sed -e 's:^/^/*:..:g'`
4351 dir
="`cd ${builddotdot}/../../gcc && pwd`"
4352 GCJ
="$dir/gcj -B$dir/"
4355 gcjvers
="`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`"
4357 cat >> confdefs.h
<<EOF
4358 #define GCJVERSION "$gcjvers"
4362 # See if gcj supports -fuse-divide-subroutine. gcc 2.95 does not, and
4363 # we want to continue to support that version.
4364 echo $ac_n "checking whether gcj supports -fuse-divide-subroutine""... $ac_c" 1>&6
4365 echo "configure:4366: checking whether gcj supports -fuse-divide-subroutine" >&5
4366 cat > conftest.java
<< 'END'
4367 public class conftest
{ }
4370 $GCJ -fuse-divide-subroutine -fsyntax-only conftest.java
> /dev
/null
2>&1 \
4373 if test "$use_fuse" = no
; then
4376 echo "$ac_t""$use_fuse" 1>&6
4380 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
4382 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4383 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4384 echo "configure:4385: checking for $ac_hdr" >&5
4385 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4386 echo $ac_n "(cached) $ac_c" 1>&6
4388 cat > conftest.
$ac_ext <<EOF
4389 #line 4390 "configure"
4390 #include "confdefs.h"
4393 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4394 { (eval echo configure
:4395: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4395 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4396 if test -z "$ac_err"; then
4398 eval "ac_cv_header_$ac_safe=yes"
4401 echo "configure: failed program was:" >&5
4402 cat conftest.
$ac_ext >&5
4404 eval "ac_cv_header_$ac_safe=no"
4408 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4409 echo "$ac_t""yes" 1>&6
4410 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4411 cat >> confdefs.h
<<EOF
4412 #define $ac_tr_hdr 1
4416 echo "$ac_t""no" 1>&6
4420 for ac_hdr
in dirent.h
4422 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4423 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4424 echo "configure:4425: checking for $ac_hdr" >&5
4425 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4426 echo $ac_n "(cached) $ac_c" 1>&6
4428 cat > conftest.
$ac_ext <<EOF
4429 #line 4430 "configure"
4430 #include "confdefs.h"
4433 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4434 { (eval echo configure
:4435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4435 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4436 if test -z "$ac_err"; then
4438 eval "ac_cv_header_$ac_safe=yes"
4441 echo "configure: failed program was:" >&5
4442 cat conftest.
$ac_ext >&5
4444 eval "ac_cv_header_$ac_safe=no"
4448 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4449 echo "$ac_t""yes" 1>&6
4450 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4451 cat >> confdefs.h
<<EOF
4452 #define $ac_tr_hdr 1
4456 echo "$ac_t""no" 1>&6
4461 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4462 echo "configure:4463: checking for ANSI C header files" >&5
4463 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
4464 echo $ac_n "(cached) $ac_c" 1>&6
4466 cat > conftest.
$ac_ext <<EOF
4467 #line 4468 "configure"
4468 #include "confdefs.h"
4474 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4475 { (eval echo configure
:4476: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4476 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4477 if test -z "$ac_err"; then
4479 ac_cv_header_stdc
=yes
4482 echo "configure: failed program was:" >&5
4483 cat conftest.
$ac_ext >&5
4485 ac_cv_header_stdc
=no
4489 if test $ac_cv_header_stdc = yes; then
4490 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4491 cat > conftest.
$ac_ext <<EOF
4492 #line 4493 "configure"
4493 #include "confdefs.h"
4496 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4497 egrep "memchr" >/dev
/null
2>&1; then
4501 ac_cv_header_stdc
=no
4507 if test $ac_cv_header_stdc = yes; then
4508 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4509 cat > conftest.
$ac_ext <<EOF
4510 #line 4511 "configure"
4511 #include "confdefs.h"
4514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4515 egrep "free" >/dev
/null
2>&1; then
4519 ac_cv_header_stdc
=no
4525 if test $ac_cv_header_stdc = yes; then
4526 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4527 if test "$cross_compiling" = yes; then
4530 cat > conftest.
$ac_ext <<EOF
4531 #line 4532 "configure"
4532 #include "confdefs.h"
4534 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4535 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4536 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4537 int main () { int i; for (i = 0; i < 256; i++)
4538 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4542 if { (eval echo configure
:4543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4546 echo "configure: failed program was:" >&5
4547 cat conftest.
$ac_ext >&5
4549 ac_cv_header_stdc
=no
4557 echo "$ac_t""$ac_cv_header_stdc" 1>&6
4558 if test $ac_cv_header_stdc = yes; then
4559 cat >> confdefs.h
<<\EOF
4560 #define STDC_HEADERS 1
4565 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
4566 echo "configure:4567: checking for ssize_t" >&5
4567 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
4568 echo $ac_n "(cached) $ac_c" 1>&6
4570 cat > conftest.
$ac_ext <<EOF
4571 #line 4572 "configure"
4572 #include "confdefs.h"
4573 #include <sys/types.h>
4579 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4580 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
4582 ac_cv_type_ssize_t
=yes
4585 ac_cv_type_ssize_t
=no
4590 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
4591 if test $ac_cv_type_ssize_t = no
; then
4592 cat >> confdefs.h
<<\EOF
4599 echo $ac_n "checking for in_addr_t""... $ac_c" 1>&6
4600 echo "configure:4601: checking for in_addr_t" >&5
4601 cat > conftest.
$ac_ext <<EOF
4602 #line 4603 "configure"
4603 #include "confdefs.h"
4604 #include <sys/types.h>
4609 #if HAVE_NETINET_IN_H
4610 #include <netinet/in.h>
4616 if { (eval echo configure
:4617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4618 cat >> confdefs.h
<<\EOF
4619 #define HAVE_IN_ADDR_T 1
4622 echo "$ac_t""yes" 1>&6
4624 echo "configure: failed program was:" >&5
4625 cat conftest.
$ac_ext >&5
4627 echo "$ac_t""no" 1>&6
4631 echo $ac_n "checking whether struct ip_mreq is in netinet/in.h""... $ac_c" 1>&6
4632 echo "configure:4633: checking whether struct ip_mreq is in netinet/in.h" >&5
4633 cat > conftest.
$ac_ext <<EOF
4634 #line 4635 "configure"
4635 #include "confdefs.h"
4636 #include <netinet/in.h>
4638 struct ip_mreq mreq;
4641 if { (eval echo configure
:4642: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4643 cat >> confdefs.h
<<\EOF
4644 #define HAVE_STRUCT_IP_MREQ 1
4647 echo "$ac_t""yes" 1>&6
4649 echo "configure: failed program was:" >&5
4650 cat conftest.
$ac_ext >&5
4652 echo "$ac_t""no" 1>&6
4656 echo $ac_n "checking whether struct sockaddr_in6 is in netinet/in.h""... $ac_c" 1>&6
4657 echo "configure:4658: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
4658 cat > conftest.
$ac_ext <<EOF
4659 #line 4660 "configure"
4660 #include "confdefs.h"
4661 #include <netinet/in.h>
4663 struct sockaddr_in6 addr6;
4666 if { (eval echo configure
:4667: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4668 cat >> confdefs.h
<<\EOF
4669 #define HAVE_INET6 1
4672 echo "$ac_t""yes" 1>&6
4674 echo "configure: failed program was:" >&5
4675 cat conftest.
$ac_ext >&5
4677 echo "$ac_t""no" 1>&6
4681 echo $ac_n "checking for socklen_t in sys/socket.h""... $ac_c" 1>&6
4682 echo "configure:4683: checking for socklen_t in sys/socket.h" >&5
4683 cat > conftest.
$ac_ext <<EOF
4684 #line 4685 "configure"
4685 #include "confdefs.h"
4686 #include <sys/socket.h>
4691 if { (eval echo configure
:4692: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4693 cat >> confdefs.h
<<\EOF
4694 #define HAVE_SOCKLEN_T 1
4697 echo "$ac_t""yes" 1>&6
4699 echo "configure: failed program was:" >&5
4700 cat conftest.
$ac_ext >&5
4702 echo "$ac_t""no" 1>&6
4706 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
4707 echo "configure:4708: checking for tm_gmtoff in struct tm" >&5
4708 cat > conftest.
$ac_ext <<EOF
4709 #line 4710 "configure"
4710 #include "confdefs.h"
4713 struct tm tim; tim.tm_gmtoff = 0;
4716 if { (eval echo configure
:4717: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4718 cat >> confdefs.h
<<\EOF
4719 #define STRUCT_TM_HAS_GMTOFF 1
4722 echo "$ac_t""yes" 1>&6
4724 echo "configure: failed program was:" >&5
4725 cat conftest.
$ac_ext >&5
4727 echo "$ac_t""no" 1>&6
4728 echo $ac_n "checking for global timezone variable""... $ac_c" 1>&6
4729 echo "configure:4730: checking for global timezone variable" >&5
4730 cat > conftest.
$ac_ext <<EOF
4731 #line 4732 "configure"
4732 #include "confdefs.h"
4738 if { (eval echo configure
:4739: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4740 cat >> confdefs.h
<<\EOF
4741 #define HAVE_TIMEZONE 1
4744 echo "$ac_t""yes" 1>&6
4746 echo "configure: failed program was:" >&5
4747 cat conftest.
$ac_ext >&5
4749 echo "$ac_t""no" 1>&6
4755 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4756 # for constant arguments. Useless!
4757 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4758 echo "configure:4759: checking for working alloca.h" >&5
4759 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4760 echo $ac_n "(cached) $ac_c" 1>&6
4762 cat > conftest.
$ac_ext <<EOF
4763 #line 4764 "configure"
4764 #include "confdefs.h"
4767 char *p = alloca(2 * sizeof(int));
4770 if { (eval echo configure
:4771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4772 ac_cv_header_alloca_h
=yes
4774 echo "configure: failed program was:" >&5
4775 cat conftest.
$ac_ext >&5
4777 ac_cv_header_alloca_h
=no
4782 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4783 if test $ac_cv_header_alloca_h = yes; then
4784 cat >> confdefs.h
<<\EOF
4785 #define HAVE_ALLOCA_H 1
4790 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4791 echo "configure:4792: checking for alloca" >&5
4792 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4793 echo $ac_n "(cached) $ac_c" 1>&6
4795 cat > conftest.
$ac_ext <<EOF
4796 #line 4797 "configure"
4797 #include "confdefs.h"
4800 # define alloca __builtin_alloca
4803 # include <malloc.h>
4804 # define alloca _alloca
4807 # include <alloca.h>
4812 # ifndef alloca /* predefined by HP cc +Olibcalls */
4821 char *p = (char *) alloca(1);
4824 if { (eval echo configure
:4825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4826 ac_cv_func_alloca_works
=yes
4828 echo "configure: failed program was:" >&5
4829 cat conftest.
$ac_ext >&5
4831 ac_cv_func_alloca_works
=no
4836 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4837 if test $ac_cv_func_alloca_works = yes; then
4838 cat >> confdefs.h
<<\EOF
4839 #define HAVE_ALLOCA 1
4844 if test $ac_cv_func_alloca_works = no
; then
4845 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4846 # that cause trouble. Some versions do not even contain alloca or
4847 # contain a buggy version. If you still want to use their alloca,
4848 # use ar to extract alloca.o from them instead of compiling alloca.c.
4849 ALLOCA
=alloca.
${ac_objext}
4850 cat >> confdefs.h
<<\EOF
4855 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4856 echo "configure:4857: checking whether alloca needs Cray hooks" >&5
4857 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4858 echo $ac_n "(cached) $ac_c" 1>&6
4860 cat > conftest.
$ac_ext <<EOF
4861 #line 4862 "configure"
4862 #include "confdefs.h"
4863 #if defined(CRAY) && ! defined(CRAY2)
4870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4871 egrep "webecray" >/dev
/null
2>&1; then
4882 echo "$ac_t""$ac_cv_os_cray" 1>&6
4883 if test $ac_cv_os_cray = yes; then
4884 for ac_func
in _getb67 GETB67 getb67
; do
4885 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4886 echo "configure:4887: checking for $ac_func" >&5
4887 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4888 echo $ac_n "(cached) $ac_c" 1>&6
4890 cat > conftest.
$ac_ext <<EOF
4891 #line 4892 "configure"
4892 #include "confdefs.h"
4893 /* System header to define __stub macros and hopefully few prototypes,
4894 which can conflict with char $ac_func(); below. */
4896 /* Override any gcc2 internal prototype to avoid an error. */
4897 /* We use char because int might match the return type of a gcc2
4898 builtin and then its argument prototype would still apply. */
4903 /* The GNU C library defines this for functions which it implements
4904 to always fail with ENOSYS. Some functions are actually named
4905 something starting with __ and the normal name is an alias. */
4906 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4914 if { (eval echo configure
:4915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4916 eval "ac_cv_func_$ac_func=yes"
4918 echo "configure: failed program was:" >&5
4919 cat conftest.
$ac_ext >&5
4921 eval "ac_cv_func_$ac_func=no"
4926 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4927 echo "$ac_t""yes" 1>&6
4928 cat >> confdefs.h
<<EOF
4929 #define CRAY_STACKSEG_END $ac_func
4934 echo "$ac_t""no" 1>&6
4940 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4941 echo "configure:4942: checking stack direction for C alloca" >&5
4942 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4943 echo $ac_n "(cached) $ac_c" 1>&6
4945 if test "$cross_compiling" = yes; then
4946 ac_cv_c_stack_direction
=0
4948 cat > conftest.
$ac_ext <<EOF
4949 #line 4950 "configure"
4950 #include "confdefs.h"
4951 find_stack_direction ()
4953 static char *addr = 0;
4958 return find_stack_direction ();
4961 return (&dummy > addr) ? 1 : -1;
4965 exit (find_stack_direction() < 0);
4968 if { (eval echo configure
:4969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4970 ac_cv_c_stack_direction
=1
4972 echo "configure: failed program was:" >&5
4973 cat conftest.
$ac_ext >&5
4975 ac_cv_c_stack_direction
=-1
4982 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
4983 cat >> confdefs.h
<<EOF
4984 #define STACK_DIRECTION $ac_cv_c_stack_direction
4992 # Extract the first word of "$ac_prog", so it can be a program name with args.
4993 set dummy
$ac_prog; ac_word
=$2
4994 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4995 echo "configure:4996: checking for $ac_word" >&5
4996 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
4997 echo $ac_n "(cached) $ac_c" 1>&6
4999 if test -n "$PERL"; then
5000 ac_cv_prog_PERL
="$PERL" # Let the user override the test.
5002 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5004 for ac_dir
in $ac_dummy; do
5005 test -z "$ac_dir" && ac_dir
=.
5006 if test -f $ac_dir/$ac_word; then
5007 ac_cv_prog_PERL
="$ac_prog"
5014 PERL
="$ac_cv_prog_PERL"
5015 if test -n "$PERL"; then
5016 echo "$ac_t""$PERL" 1>&6
5018 echo "$ac_t""no" 1>&6
5021 test -n "$PERL" && break
5023 test -n "$PERL" || PERL
="false"
5028 SIGNAL_HANDLER
=include
/i386-signal.h
5031 SIGNAL_HANDLER
=include
/sparc-signal.h
5034 SIGNAL_HANDLER
=include
/default-signal.h
5040 if test "${multilib}" = "yes"; then
5041 multilib_arg
="--enable-multilib"
5050 cat > confcache
<<\EOF
5051 # This file is a shell script that caches the results of configure
5052 # tests run on this system so they can be shared between configure
5053 # scripts and configure runs. It is not useful on other systems.
5054 # If it contains results you don't want to keep, you may remove or edit it.
5056 # By default, configure uses ./config.cache as the cache file,
5057 # creating it if it does not exist already. You can give configure
5058 # the --cache-file=FILE option to use a different cache file; that is
5059 # what configure does when it calls configure scripts in
5060 # subdirectories, so they share the cache.
5061 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5062 # config.status only pays attention to the cache file if you give it the
5063 # --recheck option to rerun configure.
5066 # The following way of writing the cache mishandles newlines in values,
5067 # but we know of no workaround that is simple, portable, and efficient.
5068 # So, don't put newlines in cache variables' values.
5069 # Ultrix sh set writes to stderr and can't be redirected directly,
5070 # and sets the high bit in the cache file unless we assign to the vars.
5072 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5074 # `set' does not quote correctly, so add quotes (double-quote substitution
5075 # turns \\\\ into \\, and sed turns \\ into \).
5077 -e "s/'/'\\\\''/g" \
5078 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5081 # `set' quotes correctly as required by POSIX, so do not add quotes.
5082 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5085 if cmp -s $cache_file confcache
; then
5088 if test -w $cache_file; then
5089 echo "updating cache $cache_file"
5090 cat confcache
> $cache_file
5092 echo "not updating unwritable cache $cache_file"
5097 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5099 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5100 # Let make expand exec_prefix.
5101 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5103 # Any assignment to VPATH causes Sun make to only execute
5104 # the first set of double-colon rules, so remove it if not needed.
5105 # If there is a colon in the path, we need to keep it.
5106 if test "x$srcdir" = x.
; then
5107 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
5110 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5112 DEFS
=-DHAVE_CONFIG_H
5114 # Without the "./", some shells look in PATH for config.status.
5115 : ${CONFIG_STATUS=./config.status}
5117 echo creating
$CONFIG_STATUS
5118 rm -f $CONFIG_STATUS
5119 cat > $CONFIG_STATUS <<EOF
5121 # Generated automatically by configure.
5122 # Run this file to recreate the current configuration.
5123 # This directory was configured as follows,
5124 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5126 # $0 $ac_configure_args
5128 # Compiler output produced by configure, useful for debugging
5129 # configure, is in ./config.log if it exists.
5131 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5134 case "\$ac_option" in
5135 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5136 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5137 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5138 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5139 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5141 -help | --help | --hel | --he | --h)
5142 echo "\$ac_cs_usage"; exit 0 ;;
5143 *) echo "\$ac_cs_usage"; exit 1 ;;
5147 ac_given_srcdir=$srcdir
5148 ac_given_INSTALL="$INSTALL"
5150 trap 'rm -fr `echo "Makefile libgcj.spec gcj/Makefile include/Makefile testsuite/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5152 cat >> $CONFIG_STATUS <<EOF
5154 # Protect against being on the right side of a sed subst in config.status.
5155 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5156 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5160 s%@CFLAGS@%$CFLAGS%g
5161 s%@CPPFLAGS@%$CPPFLAGS%g
5162 s%@CXXFLAGS@%$CXXFLAGS%g
5163 s%@FFLAGS@%$FFLAGS%g
5165 s%@LDFLAGS@%$LDFLAGS%g
5167 s%@exec_prefix@%$exec_prefix%g
5168 s%@prefix@%$prefix%g
5169 s%@program_transform_name@%$program_transform_name%g
5170 s%@bindir@%$bindir%g
5171 s%@sbindir@%$sbindir%g
5172 s%@libexecdir@%$libexecdir%g
5173 s%@datadir@%$datadir%g
5174 s%@sysconfdir@%$sysconfdir%g
5175 s%@sharedstatedir@%$sharedstatedir%g
5176 s%@localstatedir@%$localstatedir%g
5177 s%@libdir@%$libdir%g
5178 s%@includedir@%$includedir%g
5179 s%@oldincludedir@%$oldincludedir%g
5180 s%@infodir@%$infodir%g
5181 s%@mandir@%$mandir%g
5183 s%@host_alias@%$host_alias%g
5184 s%@host_cpu@%$host_cpu%g
5185 s%@host_vendor@%$host_vendor%g
5186 s%@host_os@%$host_os%g
5187 s%@target@%$target%g
5188 s%@target_alias@%$target_alias%g
5189 s%@target_cpu@%$target_cpu%g
5190 s%@target_vendor@%$target_vendor%g
5191 s%@target_os@%$target_os%g
5193 s%@build_alias@%$build_alias%g
5194 s%@build_cpu@%$build_cpu%g
5195 s%@build_vendor@%$build_vendor%g
5196 s%@build_os@%$build_os%g
5197 s%@libgcj_basedir@%$libgcj_basedir%g
5198 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5199 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5200 s%@INSTALL_DATA@%$INSTALL_DATA%g
5201 s%@PACKAGE@%$PACKAGE%g
5202 s%@VERSION@%$VERSION%g
5203 s%@ACLOCAL@%$ACLOCAL%g
5204 s%@AUTOCONF@%$AUTOCONF%g
5205 s%@AUTOMAKE@%$AUTOMAKE%g
5206 s%@AUTOHEADER@%$AUTOHEADER%g
5207 s%@MAKEINFO@%$MAKEINFO%g
5208 s%@SET_MAKE@%$SET_MAKE%g
5213 s%@RANLIB@%$RANLIB%g
5214 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
5215 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
5217 s%@EXEEXT@%$EXEEXT%g
5218 s%@LIBGCJ_CFLAGS@%$LIBGCJ_CFLAGS%g
5219 s%@LIBGCJ_CXXFLAGS@%$LIBGCJ_CXXFLAGS%g
5220 s%@LIBGCJ_JAVAFLAGS@%$LIBGCJ_JAVAFLAGS%g
5223 s%@USE_SYMBOL_UNDERSCORE@%$USE_SYMBOL_UNDERSCORE%g
5225 s%@DLLTOOL@%$DLLTOOL%g
5226 s%@LIBTOOL@%$LIBTOOL%g
5227 s%@COMPPATH@%$COMPPATH%g
5228 s%@TESTSUBDIR_TRUE@%$TESTSUBDIR_TRUE%g
5229 s%@TESTSUBDIR_FALSE@%$TESTSUBDIR_FALSE%g
5231 s%@SYSTEMSPEC@%$SYSTEMSPEC%g
5232 s%@ZLIBSPEC@%$ZLIBSPEC%g
5233 s%@GCLIBS@%$GCLIBS%g
5234 s%@GCINCS@%$GCINCS%g
5235 s%@GCDEPS@%$GCDEPS%g
5236 s%@GCOBJS@%$GCOBJS%g
5237 s%@GCSPEC@%$GCSPEC%g
5238 s%@THREADLIBS@%$THREADLIBS%g
5239 s%@THREADINCS@%$THREADINCS%g
5240 s%@THREADDEPS@%$THREADDEPS%g
5241 s%@THREADOBJS@%$THREADOBJS%g
5242 s%@THREADSPEC@%$THREADSPEC%g
5243 s%@USING_GCC_TRUE@%$USING_GCC_TRUE%g
5244 s%@USING_GCC_FALSE@%$USING_GCC_FALSE%g
5248 s%@DIVIDESPEC@%$DIVIDESPEC%g
5249 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
5250 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
5251 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
5252 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
5253 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
5254 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
5255 s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
5256 s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
5257 s%@EH_COMMON_INCLUDE@%$EH_COMMON_INCLUDE%g
5258 s%@AM_RUNTESTFLAGS@%$AM_RUNTESTFLAGS%g
5259 s%@ALLOCA@%$ALLOCA%g
5266 cat >> $CONFIG_STATUS <<\EOF
5268 # Split the substitutions into bite-sized pieces for seds with
5269 # small command number limits, like on Digital OSF/1 and HP-UX.
5270 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5271 ac_file
=1 # Number of current file.
5272 ac_beg
=1 # First line for current file.
5273 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5276 while $ac_more_lines; do
5277 if test $ac_beg -gt 1; then
5278 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5280 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5282 if test ! -s conftest.s
$ac_file; then
5284 rm -f conftest.s
$ac_file
5286 if test -z "$ac_sed_cmds"; then
5287 ac_sed_cmds
="sed -f conftest.s$ac_file"
5289 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5291 ac_file
=`expr $ac_file + 1`
5293 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5296 if test -z "$ac_sed_cmds"; then
5301 cat >> $CONFIG_STATUS <<EOF
5303 CONFIG_FILES=\${CONFIG_FILES-"Makefile libgcj.spec gcj/Makefile include/Makefile testsuite/Makefile"}
5305 cat >> $CONFIG_STATUS <<\EOF
5306 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5307 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5309 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5310 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5311 *) ac_file_in
="${ac_file}.in" ;;
5314 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5316 # Remove last slash and all that follows it. Not all systems have dirname.
5317 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5318 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5319 # The file is in a subdirectory.
5320 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5321 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5322 # A "../" for each directory in $ac_dir_suffix.
5323 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5325 ac_dir_suffix
= ac_dots
=
5328 case "$ac_given_srcdir" in
5330 if test -z "$ac_dots"; then top_srcdir
=.
5331 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5332 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5334 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5335 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5338 case "$ac_given_INSTALL" in
5339 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
5340 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
5343 echo creating
"$ac_file"
5345 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5347 *Makefile
*) ac_comsub
="1i\\
5348 # $configure_input" ;;
5352 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5354 s%@configure_input@%$configure_input%g
5355 s%@srcdir@%$srcdir%g
5356 s%@top_srcdir@%$top_srcdir%g
5357 s%@INSTALL@%$INSTALL%g
5358 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5362 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5363 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5365 # ac_d sets the value in "#define NAME VALUE" lines.
5366 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5367 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
5370 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5371 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5372 ac_uB
='\([ ]\)%\1#\2define\3'
5375 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5376 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5377 ac_eB
='$%\1#\2define\3'
5381 if test "${CONFIG_HEADERS+set}" != set; then
5383 cat >> $CONFIG_STATUS <<EOF
5384 CONFIG_HEADERS="include/config.h"
5386 cat >> $CONFIG_STATUS <<\EOF
5388 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
5389 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5391 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5392 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5393 *) ac_file_in
="${ac_file}.in" ;;
5396 echo creating
$ac_file
5398 rm -f conftest.frag conftest.
in conftest.out
5399 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5400 cat $ac_file_inputs > conftest.
in
5404 # Transform confdefs.h into a sed script conftest.vals that substitutes
5405 # the proper values into config.h.in to produce config.h. And first:
5406 # Protect against being on the right side of a sed subst in config.status.
5407 # Protect against being in an unquoted here document in config.status.
5409 cat > conftest.hdr
<<\EOF
5412 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5416 sed -n -f conftest.hdr confdefs.h > conftest.vals
5419 # This sed command replaces #undef with comments. This is necessary, for
5420 # example, in the case of _POSIX_SOURCE, which is predefined and required
5421 # on some systems where configure will not decide to define it.
5422 cat >> conftest.vals <<\EOF
5423 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5426 # Break up conftest.vals because some shells have a limit on
5427 # the size of here documents, and old seds have small limits too.
5432 ac_lines=`grep -c . conftest.vals
`
5433 # grep -c gives empty output for an empty file on some AIX systems.
5434 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5435 # Write a limited-size here document to conftest.frag.
5436 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5437 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5439 sed -f conftest.frag conftest.in > conftest.out
5441 mv conftest.out conftest.in
5443 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5445 mv conftest.tail conftest.vals
5449 cat >> $CONFIG_STATUS <<\EOF
5450 rm -f conftest.frag conftest.h
5451 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5452 cat conftest.in >> conftest.h
5454 if cmp -s $ac_file conftest.h 2>/dev/null; then
5455 echo "$ac_file is unchanged"
5458 # Remove last slash and all that follows it. Not all systems have dirname.
5459 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
5460 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5461 # The file is in a subdirectory.
5462 test ! -d "$ac_dir" && mkdir "$ac_dir"
5465 mv conftest.h $ac_file
5471 cat >> $CONFIG_STATUS <<EOF
5472 ac_sources="java/io/$FILE_DESCRIPTOR java/lang/${PROCESS}Process.java java/lang/nat${PROCESS}Process.cc include/$GCHDR include/$THREADH $SIGNAL_HANDLER"
5473 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"
5476 cat >> $CONFIG_STATUS <<\EOF
5477 srcdir=$ac_given_srcdir
5478 while test -n "$ac_sources"; do
5479 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
5480 set $ac_sources; ac_source=$1; shift; ac_sources=$*
5482 echo "linking $srcdir/$ac_source to $ac_dest"
5484 if test ! -r $srcdir/$ac_source; then
5485 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
5489 # Make relative symlinks.
5490 # Remove last slash and all that follows it. Not all systems have dirname.
5491 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
5492 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
5493 # The dest file is in a subdirectory.
5494 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
5495 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
5496 # A "../" for each directory in $ac_dest_dir_suffix.
5497 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
5499 ac_dest_dir_suffix= ac_dots=
5503 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
5504 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
5507 # Make a symlink if possible; otherwise try a hard link.
5508 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
5509 ln $srcdir/$ac_source $ac_dest; then :
5511 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
5515 cat >> $CONFIG_STATUS <<EOF
5520 with_multisubdir=${with_multisubdir}
5521 ac_configure_args="${multilib_arg} ${ac_configure_args}"
5522 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
5523 libgcj_basedir=${libgcj_basedir}
5528 cat >> $CONFIG_STATUS <<\EOF
5529 test -z "$CONFIG_HEADERS" || echo timestamp > include/stamp-h
5530 if test -n "$CONFIG_FILES"; then
5531 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
5535 chmod +x $CONFIG_STATUS
5536 rm -fr confdefs* $ac_clean_files
5537 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1