3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --with-target-subdir=SUBDIR
16 configuring in a subdirectory"
18 --with-cross-host=HOST configuring with a cross compiler"
20 --enable-multilib build many library versions (default)"
22 --enable-maintainer-mode enable make rules and dependencies not useful
23 (and sometimes confusing) to the casual installer"
25 --enable-shared[=PKGS] build shared libraries [default=yes]"
27 --enable-static[=PKGS] build static libraries [default=yes]"
29 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
31 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
33 --disable-libtool-lock force libtool not to do file locking"
35 --enable-fast-character prefer speed over size for Character"
37 --disable-getenv-properties
38 don't set system properties from GCJ_PROPERTIES"
40 --enable-libgcj-debug enable runtime debugging code"
42 --enable-interpreter enable interpreter"
44 --disable-java-net disable java.net"
46 --with-ecos enable runtime eCos target support"
48 --with-system-zlib use installed libz"
50 --enable-java-gc=TYPE choose garbage collector [boehm]"
52 --enable-threads=TYPE choose threading package"
54 # Initialize some variables set by options.
55 # The variables have the same names as the options, with
56 # dashes changed to underlines.
58 cache_file
=.
/config.cache
67 program_transform_name
=s
,x
,x
,
76 bindir
='${exec_prefix}/bin'
77 sbindir
='${exec_prefix}/sbin'
78 libexecdir
='${exec_prefix}/libexec'
79 datadir
='${prefix}/share'
80 sysconfdir
='${prefix}/etc'
81 sharedstatedir
='${prefix}/com'
82 localstatedir
='${prefix}/var'
83 libdir
='${exec_prefix}/lib'
84 includedir
='${prefix}/include'
85 oldincludedir
='/usr/include'
86 infodir
='${prefix}/info'
87 mandir
='${prefix}/man'
89 # Initialize some other variables.
92 SHELL
=${CONFIG_SHELL-/bin/sh}
93 # Maximum number of lines to put in a shell here document.
100 # If the previous option needs an argument, assign it.
101 if test -n "$ac_prev"; then
102 eval "$ac_prev=\$ac_option"
108 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
112 # Accept the important Cygnus configure options, so we can diagnose typos.
116 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
118 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
119 bindir
="$ac_optarg" ;;
121 -build |
--build |
--buil |
--bui |
--bu)
123 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
124 build
="$ac_optarg" ;;
126 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
127 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
128 ac_prev
=cache_file
;;
129 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
130 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
131 cache_file
="$ac_optarg" ;;
133 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
135 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
137 datadir
="$ac_optarg" ;;
139 -disable-* |
--disable-*)
140 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
141 # Reject names that are not valid shell variable names.
142 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
143 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
145 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
146 eval "enable_${ac_feature}=no" ;;
148 -enable-* |
--enable-*)
149 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
150 # Reject names that are not valid shell variable names.
151 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
152 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
154 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
159 eval "enable_${ac_feature}='$ac_optarg'" ;;
161 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
162 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
163 |
--exec |
--exe |
--ex)
164 ac_prev
=exec_prefix
;;
165 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
166 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
167 |
--exec=* |
--exe=* |
--ex=*)
168 exec_prefix
="$ac_optarg" ;;
170 -gas |
--gas |
--ga |
--g)
171 # Obsolete; use --with-gas.
174 -help |
--help |
--hel |
--he)
175 # Omit some internal or obsolete options to make the list less imposing.
176 # This message is too long to be a string in the A/UX 3.1 sh.
178 Usage: configure [options] [host]
179 Options: [defaults in brackets after descriptions]
181 --cache-file=FILE cache test results in FILE
182 --help print this message
183 --no-create do not create output files
184 --quiet, --silent do not print \`checking...' messages
185 --site-file=FILE use FILE as the site file
186 --version print the version of autoconf that created configure
187 Directory and file names:
188 --prefix=PREFIX install architecture-independent files in PREFIX
190 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
192 --bindir=DIR user executables in DIR [EPREFIX/bin]
193 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
194 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
195 --datadir=DIR read-only architecture-independent data in DIR
197 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
198 --sharedstatedir=DIR modifiable architecture-independent data in DIR
200 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
201 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
202 --includedir=DIR C header files in DIR [PREFIX/include]
203 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
204 --infodir=DIR info documentation in DIR [PREFIX/info]
205 --mandir=DIR man documentation in DIR [PREFIX/man]
206 --srcdir=DIR find the sources in DIR [configure dir or ..]
207 --program-prefix=PREFIX prepend PREFIX to installed program names
208 --program-suffix=SUFFIX append SUFFIX to installed program names
209 --program-transform-name=PROGRAM
210 run sed PROGRAM on installed program names
214 --build=BUILD configure for building on BUILD [BUILD=HOST]
215 --host=HOST configure for HOST [guessed]
216 --target=TARGET configure for TARGET [TARGET=HOST]
217 Features and packages:
218 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
219 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
220 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
221 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
222 --x-includes=DIR X include files are in DIR
223 --x-libraries=DIR X library files are in DIR
225 if test -n "$ac_help"; then
226 echo "--enable and --with options recognized:$ac_help"
230 -host |
--host |
--hos |
--ho)
232 -host=* |
--host=* |
--hos=* |
--ho=*)
235 -includedir |
--includedir |
--includedi |
--included |
--include \
236 |
--includ |
--inclu |
--incl |
--inc)
237 ac_prev
=includedir
;;
238 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
239 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
240 includedir
="$ac_optarg" ;;
242 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
244 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
245 infodir
="$ac_optarg" ;;
247 -libdir |
--libdir |
--libdi |
--libd)
249 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
250 libdir
="$ac_optarg" ;;
252 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
253 |
--libexe |
--libex |
--libe)
254 ac_prev
=libexecdir
;;
255 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
256 |
--libexe=* |
--libex=* |
--libe=*)
257 libexecdir
="$ac_optarg" ;;
259 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
260 |
--localstate |
--localstat |
--localsta |
--localst \
261 |
--locals |
--local |
--loca |
--loc |
--lo)
262 ac_prev
=localstatedir
;;
263 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
264 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
265 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
266 localstatedir
="$ac_optarg" ;;
268 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
270 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
271 mandir
="$ac_optarg" ;;
274 # Obsolete; use --without-fp.
277 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
281 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
282 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
285 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
286 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
287 |
--oldin |
--oldi |
--old |
--ol |
--o)
288 ac_prev
=oldincludedir
;;
289 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
290 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
291 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
292 oldincludedir
="$ac_optarg" ;;
294 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
296 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
297 prefix
="$ac_optarg" ;;
299 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
300 |
--program-pre |
--program-pr |
--program-p)
301 ac_prev
=program_prefix
;;
302 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
303 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
304 program_prefix
="$ac_optarg" ;;
306 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
307 |
--program-suf |
--program-su |
--program-s)
308 ac_prev
=program_suffix
;;
309 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
310 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
311 program_suffix
="$ac_optarg" ;;
313 -program-transform-name |
--program-transform-name \
314 |
--program-transform-nam |
--program-transform-na \
315 |
--program-transform-n |
--program-transform- \
316 |
--program-transform |
--program-transfor \
317 |
--program-transfo |
--program-transf \
318 |
--program-trans |
--program-tran \
319 |
--progr-tra |
--program-tr |
--program-t)
320 ac_prev
=program_transform_name
;;
321 -program-transform-name=* |
--program-transform-name=* \
322 |
--program-transform-nam=* |
--program-transform-na=* \
323 |
--program-transform-n=* |
--program-transform-=* \
324 |
--program-transform=* |
--program-transfor=* \
325 |
--program-transfo=* |
--program-transf=* \
326 |
--program-trans=* |
--program-tran=* \
327 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
328 program_transform_name
="$ac_optarg" ;;
330 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
331 |
-silent |
--silent |
--silen |
--sile |
--sil)
334 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
336 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
338 sbindir
="$ac_optarg" ;;
340 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
341 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
342 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
344 ac_prev
=sharedstatedir
;;
345 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
346 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
347 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
349 sharedstatedir
="$ac_optarg" ;;
351 -site |
--site |
--sit)
353 -site=* |
--site=* |
--sit=*)
356 -site-file |
--site-file |
--site-fil |
--site-fi |
--site-f)
358 -site-file=* |
--site-file=* |
--site-fil=* |
--site-fi=* |
--site-f=*)
359 sitefile
="$ac_optarg" ;;
361 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
363 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
364 srcdir
="$ac_optarg" ;;
366 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
367 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
368 ac_prev
=sysconfdir
;;
369 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
370 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
371 sysconfdir
="$ac_optarg" ;;
373 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
375 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
376 target
="$ac_optarg" ;;
378 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
381 -version |
--version |
--versio |
--versi |
--vers)
382 echo "configure generated by autoconf version 2.13"
386 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
387 # Reject names that are not valid shell variable names.
388 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
389 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
391 ac_package
=`echo $ac_package| sed 's/-/_/g'`
396 eval "with_${ac_package}='$ac_optarg'" ;;
398 -without-* |
--without-*)
399 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
400 # Reject names that are not valid shell variable names.
401 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
402 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
404 ac_package
=`echo $ac_package| sed 's/-/_/g'`
405 eval "with_${ac_package}=no" ;;
408 # Obsolete; use --with-x.
411 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
412 |
--x-incl |
--x-inc |
--x-in |
--x-i)
413 ac_prev
=x_includes
;;
414 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
415 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
416 x_includes
="$ac_optarg" ;;
418 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
419 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
420 ac_prev
=x_libraries
;;
421 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
422 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
423 x_libraries
="$ac_optarg" ;;
425 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
429 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
430 echo "configure: warning: $ac_option: invalid host type" 1>&2
432 if test "x$nonopt" != xNONE
; then
433 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
441 if test -n "$ac_prev"; then
442 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
445 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
447 # File descriptor usage:
450 # 2 errors and warnings
451 # 3 some systems may open it to /dev/tty
452 # 4 used on the Kubota Titan
453 # 6 checking for... messages and results
454 # 5 compiler messages saved in config.log
455 if test "$silent" = yes; then
463 This file contains any messages produced by compilers while
464 running configure, to aid debugging if configure makes a mistake.
467 # Strip out --no-create and --no-recursion so they do not pile up.
468 # Also quote any args containing shell metacharacters.
473 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
474 |
--no-cr |
--no-c) ;;
475 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
476 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
477 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
478 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
479 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
484 # Only set these to C if already set. These must not be set unconditionally
485 # because not all systems understand e.g. LANG=C (notably SCO).
486 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
487 # Non-C LC_CTYPE values break the ctype check.
488 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
489 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
490 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
491 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
493 # confdefs.h avoids OS command line length limits that DEFS can exceed.
494 rm -rf conftest
* confdefs.h
495 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
498 # A filename unique to this package, relative to the directory that
499 # configure is in, which we can look for to find out if srcdir is correct.
500 ac_unique_file
=java
/lang
/System.java
502 # Find the source files, if location was not specified.
503 if test -z "$srcdir"; then
504 ac_srcdir_defaulted
=yes
505 # Try the directory containing this script, then its parent.
507 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
508 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
510 if test ! -r $srcdir/$ac_unique_file; then
514 ac_srcdir_defaulted
=no
516 if test ! -r $srcdir/$ac_unique_file; then
517 if test "$ac_srcdir_defaulted" = yes; then
518 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
520 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
523 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
525 # Prefer explicitly selected file to automatically selected ones.
526 if test -z "$sitefile"; then
527 if test -z "$CONFIG_SITE"; then
528 if test "x$prefix" != xNONE
; then
529 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
531 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
535 CONFIG_SITE
="$sitefile"
537 for ac_site_file
in $CONFIG_SITE; do
538 if test -r "$ac_site_file"; then
539 echo "loading site script $ac_site_file"
544 if test -r "$cache_file"; then
545 echo "loading cache $cache_file"
548 echo "creating cache $cache_file"
553 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
554 ac_cpp
='$CPP $CPPFLAGS'
555 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
556 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
557 cross_compiling
=$ac_cv_prog_cc_cross
561 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
562 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
563 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
570 ac_n
= ac_c
='\c' ac_t
=
576 for ac_dir
in ..
$srcdir/..
; do
577 if test -f $ac_dir/install-sh
; then
579 ac_install_sh
="$ac_aux_dir/install-sh -c"
581 elif test -f $ac_dir/install.sh
; then
583 ac_install_sh
="$ac_aux_dir/install.sh -c"
587 if test -z "$ac_aux_dir"; then
588 { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
590 ac_config_guess
=$ac_aux_dir/config.guess
591 ac_config_sub
=$ac_aux_dir/config.sub
592 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
596 # Do some error checking and defaulting for the host and target type.
598 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
601 # 1. You are not allowed to specify --host, --target, and nonopt at the
603 # 2. Host defaults to nonopt.
604 # 3. If nonopt is not specified, then host defaults to the current host,
605 # as determined by config.guess.
606 # 4. Target and build default to nonopt.
607 # 5. If nonopt is not specified, then target and build default to host.
609 # The aliases save the names the user supplied, while $host etc.
610 # will get canonicalized.
611 case $host---$target---$nonopt in
612 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
613 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
617 # Make sure we can run config.sub.
618 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
619 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
622 echo $ac_n "checking host system type""... $ac_c" 1>&6
623 echo "configure:624: checking host system type" >&5
626 case "$host_alias" in
630 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
631 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
633 *) host_alias
=$nonopt ;;
637 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
638 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
639 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
640 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
641 echo "$ac_t""$host" 1>&6
643 echo $ac_n "checking target system type""... $ac_c" 1>&6
644 echo "configure:645: checking target system type" >&5
647 case "$target_alias" in
650 NONE
) target_alias
=$host_alias ;;
651 *) target_alias
=$nonopt ;;
655 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
656 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
657 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
658 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
659 echo "$ac_t""$target" 1>&6
661 echo $ac_n "checking build system type""... $ac_c" 1>&6
662 echo "configure:663: checking build system type" >&5
665 case "$build_alias" in
668 NONE
) build_alias
=$host_alias ;;
669 *) build_alias
=$nonopt ;;
673 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
674 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
675 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
676 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
677 echo "$ac_t""$build" 1>&6
679 test "$host_alias" != "$target_alias" &&
680 test "$program_prefix$program_suffix$program_transform_name" = \
682 program_prefix
=${target_alias}-
685 # Check whether --with-target-subdir or --without-target-subdir was given.
686 if test "${with_target_subdir+set}" = set; then
687 withval
="$with_target_subdir"
691 # Check whether --with-cross-host or --without-cross-host was given.
692 if test "${with_cross_host+set}" = set; then
693 withval
="$with_cross_host"
698 # Find a good install program. We prefer a C program (faster),
699 # so one script is as good as another. But avoid the broken or
700 # incompatible versions:
701 # SysV /etc/install, /usr/sbin/install
702 # SunOS /usr/etc/install
705 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
706 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
707 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
708 # ./install, which can be erroneously created by make from ./install.sh.
709 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
710 echo "configure:711: checking for a BSD compatible install" >&5
711 if test -z "$INSTALL"; then
712 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
713 echo $ac_n "(cached) $ac_c" 1>&6
715 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
716 for ac_dir
in $PATH; do
717 # Account for people who put trailing slashes in PATH elements.
719 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
721 # OSF1 and SCO ODT 3.0 have their own names for install.
722 # Don't use installbsd from OSF since it installs stuff as root
724 for ac_prog
in ginstall scoinst
install; do
725 if test -f $ac_dir/$ac_prog; then
726 if test $ac_prog = install &&
727 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
728 # AIX install. It has an incompatible calling convention.
731 ac_cv_path_install
="$ac_dir/$ac_prog -c"
742 if test "${ac_cv_path_install+set}" = set; then
743 INSTALL
="$ac_cv_path_install"
745 # As a last resort, use the slow shell script. We don't cache a
746 # path for INSTALL within a source directory, because that will
747 # break other packages using the cache if that directory is
748 # removed, or if the path is relative.
749 INSTALL
="$ac_install_sh"
752 echo "$ac_t""$INSTALL" 1>&6
754 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
755 # It thinks the first close brace ends the variable substitution.
756 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
758 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
760 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
762 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
763 echo "configure:764: checking whether build environment is sane" >&5
766 echo timestamp
> conftestfile
767 # Do `set' in a subshell so we don't clobber the current shell's
768 # arguments. Must try -L first in case configure is actually a
769 # symlink; some systems play weird games with the mod time of symlinks
770 # (eg FreeBSD returns the mod time of the symlink's containing
773 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
774 if test "$*" = "X"; then
776 set X
`ls -t $srcdir/configure conftestfile`
778 if test "$*" != "X $srcdir/configure conftestfile" \
779 && test "$*" != "X conftestfile $srcdir/configure"; then
781 # If neither matched, then we have a broken ls. This can happen
782 # if, for instance, CONFIG_SHELL is bash and it inherits a
783 # broken ls alias from the environment. This has actually
784 # happened. Such a system could not be considered "sane".
785 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
786 alias in your environment" 1>&2; exit 1; }
789 test "$2" = conftestfile
795 { echo "configure: error: newly created file is older than distributed files!
796 Check your system clock" 1>&2; exit 1; }
799 echo "$ac_t""yes" 1>&6
800 if test "$program_transform_name" = s
,x
,x
,; then
801 program_transform_name
=
803 # Double any \ or $. echo might interpret backslashes.
804 cat <<\EOF_SED
> conftestsed
805 s
,\\,\\\\,g
; s
,\$
,$$
,g
807 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
810 test "$program_prefix" != NONE
&&
811 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
812 # Use a double $ so make ignores it.
813 test "$program_suffix" != NONE
&&
814 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
816 # sed with no file args requires a program.
817 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
819 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
820 echo "configure:821: checking whether ${MAKE-make} sets \${MAKE}" >&5
821 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
822 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
823 echo $ac_n "(cached) $ac_c" 1>&6
825 cat > conftestmake
<<\EOF
827 @
echo 'ac_maketemp="${MAKE}"'
829 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
830 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
831 if test -n "$ac_maketemp"; then
832 eval ac_cv_prog_make_
${ac_make}_set
=yes
834 eval ac_cv_prog_make_
${ac_make}_set
=no
838 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
839 echo "$ac_t""yes" 1>&6
842 echo "$ac_t""no" 1>&6
843 SET_MAKE
="MAKE=${MAKE-make}"
846 if test $host != $build; then
847 ac_tool_prefix
=${host_alias}-
852 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
853 echo "configure:854: checking for Cygwin environment" >&5
854 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
855 echo $ac_n "(cached) $ac_c" 1>&6
857 cat > conftest.
$ac_ext <<EOF
858 #line 859 "configure"
859 #include "confdefs.h"
864 #define __CYGWIN__ __CYGWIN32__
869 if { (eval echo configure
:870: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
873 echo "configure: failed program was:" >&5
874 cat conftest.
$ac_ext >&5
882 echo "$ac_t""$ac_cv_cygwin" 1>&6
884 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
885 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
886 echo "configure:887: checking for mingw32 environment" >&5
887 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
888 echo $ac_n "(cached) $ac_c" 1>&6
890 cat > conftest.
$ac_ext <<EOF
891 #line 892 "configure"
892 #include "confdefs.h"
898 if { (eval echo configure
:899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
902 echo "configure: failed program was:" >&5
903 cat conftest.
$ac_ext >&5
911 echo "$ac_t""$ac_cv_mingw32" 1>&6
913 test "$ac_cv_mingw32" = yes && MINGW32
=yes
915 # Check whether --enable-multilib or --disable-multilib was given.
916 if test "${enable_multilib+set}" = set; then
917 enableval
="$enable_multilib"
918 case "${enableval}" in
921 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
928 if test "${srcdir}" = "."; then
929 if test "${with_target_subdir}" != "."; then
930 libgcj_basedir
="${srcdir}/${with_multisrctop}../."
932 libgcj_basedir
="${srcdir}/${with_multisrctop}."
935 libgcj_basedir
="${srcdir}/."
940 # Make sure we can run config.sub.
941 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
942 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
945 echo $ac_n "checking host system type""... $ac_c" 1>&6
946 echo "configure:947: checking host system type" >&5
949 case "$host_alias" in
953 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
954 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
956 *) host_alias
=$nonopt ;;
960 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
961 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
962 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
963 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
964 echo "$ac_t""$host" 1>&6
973 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
974 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
976 cat >> confdefs.h
<<EOF
977 #define PACKAGE "$PACKAGE"
980 cat >> confdefs.h
<<EOF
981 #define VERSION "$VERSION"
986 missing_dir
=`cd $ac_aux_dir && pwd`
987 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
988 echo "configure:989: checking for working aclocal" >&5
989 # Run test in a subshell; some versions of sh will print an error if
990 # an executable is not found, even if stderr is redirected.
991 # Redirect stdin to placate older versions of autoconf. Sigh.
992 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
994 echo "$ac_t""found" 1>&6
996 ACLOCAL
="$missing_dir/missing aclocal"
997 echo "$ac_t""missing" 1>&6
1000 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1001 echo "configure:1002: checking for working autoconf" >&5
1002 # Run test in a subshell; some versions of sh will print an error if
1003 # an executable is not found, even if stderr is redirected.
1004 # Redirect stdin to placate older versions of autoconf. Sigh.
1005 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
1007 echo "$ac_t""found" 1>&6
1009 AUTOCONF
="$missing_dir/missing autoconf"
1010 echo "$ac_t""missing" 1>&6
1013 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1014 echo "configure:1015: checking for working automake" >&5
1015 # Run test in a subshell; some versions of sh will print an error if
1016 # an executable is not found, even if stderr is redirected.
1017 # Redirect stdin to placate older versions of autoconf. Sigh.
1018 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
1020 echo "$ac_t""found" 1>&6
1022 AUTOMAKE
="$missing_dir/missing automake"
1023 echo "$ac_t""missing" 1>&6
1026 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1027 echo "configure:1028: checking for working autoheader" >&5
1028 # Run test in a subshell; some versions of sh will print an error if
1029 # an executable is not found, even if stderr is redirected.
1030 # Redirect stdin to placate older versions of autoconf. Sigh.
1031 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
1032 AUTOHEADER
=autoheader
1033 echo "$ac_t""found" 1>&6
1035 AUTOHEADER
="$missing_dir/missing autoheader"
1036 echo "$ac_t""missing" 1>&6
1039 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1040 echo "configure:1041: checking for working makeinfo" >&5
1041 # Run test in a subshell; some versions of sh will print an error if
1042 # an executable is not found, even if stderr is redirected.
1043 # Redirect stdin to placate older versions of autoconf. Sigh.
1044 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
1046 echo "$ac_t""found" 1>&6
1048 MAKEINFO
="$missing_dir/missing makeinfo"
1049 echo "$ac_t""missing" 1>&6
1054 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
1055 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
1056 # are probably using a cross compiler, which will not be able to fully
1057 # link an executable. This should really be fixed in autoconf
1063 # Extract the first word of "gcc", so it can be a program name with args.
1064 set dummy gcc
; ac_word
=$2
1065 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1066 echo "configure:1067: checking for $ac_word" >&5
1067 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1068 echo $ac_n "(cached) $ac_c" 1>&6
1070 if test -n "$CC"; then
1071 ac_cv_prog_CC
="$CC" # Let the user override the test.
1073 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1075 for ac_dir
in $ac_dummy; do
1076 test -z "$ac_dir" && ac_dir
=.
1077 if test -f $ac_dir/$ac_word; then
1086 if test -n "$CC"; then
1087 echo "$ac_t""$CC" 1>&6
1089 echo "$ac_t""no" 1>&6
1092 if test -z "$CC"; then
1093 # Extract the first word of "cc", so it can be a program name with args.
1094 set dummy cc
; ac_word
=$2
1095 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1096 echo "configure:1097: checking for $ac_word" >&5
1097 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1098 echo $ac_n "(cached) $ac_c" 1>&6
1100 if test -n "$CC"; then
1101 ac_cv_prog_CC
="$CC" # Let the user override the test.
1103 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1106 for ac_dir
in $ac_dummy; do
1107 test -z "$ac_dir" && ac_dir
=.
1108 if test -f $ac_dir/$ac_word; then
1109 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1110 ac_prog_rejected
=yes
1118 if test $ac_prog_rejected = yes; then
1119 # We found a bogon in the path, so make sure we never use it.
1120 set dummy
$ac_cv_prog_CC
1122 if test $# -gt 0; then
1123 # We chose a different compiler from the bogus one.
1124 # However, it has the same basename, so the bogon will be chosen
1125 # first if we set CC to just the basename; use the full file name.
1127 set dummy
"$ac_dir/$ac_word" "$@"
1135 if test -n "$CC"; then
1136 echo "$ac_t""$CC" 1>&6
1138 echo "$ac_t""no" 1>&6
1141 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1144 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1145 echo "configure:1146: checking whether we are using GNU C" >&5
1146 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1147 echo $ac_n "(cached) $ac_c" 1>&6
1149 cat > conftest.c
<<EOF
1154 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1155: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1161 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1163 if test $ac_cv_prog_gcc = yes; then
1165 ac_test_CFLAGS
="${CFLAGS+set}"
1166 ac_save_CFLAGS
="$CFLAGS"
1168 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1169 echo "configure:1170: checking whether ${CC-cc} accepts -g" >&5
1170 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1171 echo $ac_n "(cached) $ac_c" 1>&6
1173 echo 'void f(){}' > conftest.c
1174 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1183 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1184 if test "$ac_test_CFLAGS" = set; then
1185 CFLAGS
="$ac_save_CFLAGS"
1186 elif test $ac_cv_prog_cc_g = yes; then
1193 test "${CFLAGS+set}" = set || CFLAGS
="-g"
1197 # Likewise for AC_PROG_CXX.
1201 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++
1203 # Extract the first word of "$ac_prog", so it can be a program name with args.
1204 set dummy
$ac_prog; ac_word
=$2
1205 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1206 echo "configure:1207: checking for $ac_word" >&5
1207 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1208 echo $ac_n "(cached) $ac_c" 1>&6
1210 if test -n "$CXX"; then
1211 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
1213 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1215 for ac_dir
in $ac_dummy; do
1216 test -z "$ac_dir" && ac_dir
=.
1217 if test -f $ac_dir/$ac_word; then
1218 ac_cv_prog_CXX
="$ac_prog"
1225 CXX
="$ac_cv_prog_CXX"
1226 if test -n "$CXX"; then
1227 echo "$ac_t""$CXX" 1>&6
1229 echo "$ac_t""no" 1>&6
1232 test -n "$CXX" && break
1234 test -n "$CXX" || CXX
="gcc"
1236 test -z "$CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1238 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1239 echo "configure:1240: checking whether we are using GNU C++" >&5
1240 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1241 echo $ac_n "(cached) $ac_c" 1>&6
1243 cat > conftest.C
<<EOF
1248 if { ac_try
='${CXX-g++} -E conftest.C'; { (eval echo configure
:1249: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1255 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1257 if test $ac_cv_prog_gxx = yes; then
1259 ac_test_CXXFLAGS
="${CXXFLAGS+set}"
1260 ac_save_CXXFLAGS
="$CXXFLAGS"
1262 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1263 echo "configure:1264: checking whether ${CXX-g++} accepts -g" >&5
1264 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1265 echo $ac_n "(cached) $ac_c" 1>&6
1267 echo 'void f(){}' > conftest.cc
1268 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1269 ac_cv_prog_cxx_g
=yes
1277 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1278 if test "$ac_test_CXXFLAGS" = set; then
1279 CXXFLAGS
="$ac_save_CXXFLAGS"
1280 elif test $ac_cv_prog_cxx_g = yes; then
1287 test "${CXXFLAGS+set}" = set || CXXFLAGS
="-g"
1291 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we dont
1292 # run it explicitly here, it will be run implicitly before
1293 # LIBGCJ_CONFIGURE, which doesn't work because that means that it will
1294 # be run before AC_CANONICAL_HOST.
1295 echo $ac_n "checking build system type""... $ac_c" 1>&6
1296 echo "configure:1297: checking build system type" >&5
1299 case "$build_alias" in
1302 NONE
) build_alias
=$host_alias ;;
1303 *) build_alias
=$nonopt ;;
1307 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1308 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1309 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1310 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1311 echo "$ac_t""$build" 1>&6
1314 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1315 set dummy
${ac_tool_prefix}as
; ac_word
=$2
1316 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1317 echo "configure:1318: checking for $ac_word" >&5
1318 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1319 echo $ac_n "(cached) $ac_c" 1>&6
1321 if test -n "$AS"; then
1322 ac_cv_prog_AS
="$AS" # Let the user override the test.
1324 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1326 for ac_dir
in $ac_dummy; do
1327 test -z "$ac_dir" && ac_dir
=.
1328 if test -f $ac_dir/$ac_word; then
1329 ac_cv_prog_AS
="${ac_tool_prefix}as"
1334 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS
="as"
1338 if test -n "$AS"; then
1339 echo "$ac_t""$AS" 1>&6
1341 echo "$ac_t""no" 1>&6
1346 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1347 set dummy
${ac_tool_prefix}ar; ac_word
=$2
1348 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1349 echo "configure:1350: checking for $ac_word" >&5
1350 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1351 echo $ac_n "(cached) $ac_c" 1>&6
1353 if test -n "$AR"; then
1354 ac_cv_prog_AR
="$AR" # Let the user override the test.
1356 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1358 for ac_dir
in $ac_dummy; do
1359 test -z "$ac_dir" && ac_dir
=.
1360 if test -f $ac_dir/$ac_word; then
1361 ac_cv_prog_AR
="${ac_tool_prefix}ar"
1366 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
1370 if test -n "$AR"; then
1371 echo "$ac_t""$AR" 1>&6
1373 echo "$ac_t""no" 1>&6
1378 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1379 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1380 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1381 echo "configure:1382: checking for $ac_word" >&5
1382 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1383 echo $ac_n "(cached) $ac_c" 1>&6
1385 if test -n "$RANLIB"; then
1386 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1388 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1390 for ac_dir
in $ac_dummy; do
1391 test -z "$ac_dir" && ac_dir
=.
1392 if test -f $ac_dir/$ac_word; then
1393 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1400 RANLIB
="$ac_cv_prog_RANLIB"
1401 if test -n "$RANLIB"; then
1402 echo "$ac_t""$RANLIB" 1>&6
1404 echo "$ac_t""no" 1>&6
1408 if test -z "$ac_cv_prog_RANLIB"; then
1409 if test -n "$ac_tool_prefix"; then
1410 # Extract the first word of "ranlib", so it can be a program name with args.
1411 set dummy ranlib
; ac_word
=$2
1412 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1413 echo "configure:1414: checking for $ac_word" >&5
1414 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1415 echo $ac_n "(cached) $ac_c" 1>&6
1417 if test -n "$RANLIB"; then
1418 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1420 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1422 for ac_dir
in $ac_dummy; do
1423 test -z "$ac_dir" && ac_dir
=.
1424 if test -f $ac_dir/$ac_word; then
1425 ac_cv_prog_RANLIB
="ranlib"
1430 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1433 RANLIB
="$ac_cv_prog_RANLIB"
1434 if test -n "$RANLIB"; then
1435 echo "$ac_t""$RANLIB" 1>&6
1437 echo "$ac_t""no" 1>&6
1446 # Find a good install program. We prefer a C program (faster),
1447 # so one script is as good as another. But avoid the broken or
1448 # incompatible versions:
1449 # SysV /etc/install, /usr/sbin/install
1450 # SunOS /usr/etc/install
1451 # IRIX /sbin/install
1453 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1454 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1455 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1456 # ./install, which can be erroneously created by make from ./install.sh.
1457 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1458 echo "configure:1459: checking for a BSD compatible install" >&5
1459 if test -z "$INSTALL"; then
1460 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1461 echo $ac_n "(cached) $ac_c" 1>&6
1463 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1464 for ac_dir
in $PATH; do
1465 # Account for people who put trailing slashes in PATH elements.
1467 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1469 # OSF1 and SCO ODT 3.0 have their own names for install.
1470 # Don't use installbsd from OSF since it installs stuff as root
1472 for ac_prog
in ginstall scoinst
install; do
1473 if test -f $ac_dir/$ac_prog; then
1474 if test $ac_prog = install &&
1475 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1476 # AIX install. It has an incompatible calling convention.
1479 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1490 if test "${ac_cv_path_install+set}" = set; then
1491 INSTALL
="$ac_cv_path_install"
1493 # As a last resort, use the slow shell script. We don't cache a
1494 # path for INSTALL within a source directory, because that will
1495 # break other packages using the cache if that directory is
1496 # removed, or if the path is relative.
1497 INSTALL
="$ac_install_sh"
1500 echo "$ac_t""$INSTALL" 1>&6
1502 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1503 # It thinks the first close brace ends the variable substitution.
1504 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1506 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1508 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1511 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1512 echo "configure:1513: checking whether to enable maintainer-specific portions of Makefiles" >&5
1513 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1514 if test "${enable_maintainer_mode+set}" = set; then
1515 enableval
="$enable_maintainer_mode"
1516 USE_MAINTAINER_MODE
=$enableval
1518 USE_MAINTAINER_MODE
=no
1521 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1524 if test $USE_MAINTAINER_MODE = yes; then
1525 MAINTAINER_MODE_TRUE
=
1526 MAINTAINER_MODE_FALSE
='#'
1528 MAINTAINER_MODE_TRUE
='#'
1529 MAINTAINER_MODE_FALSE
=
1531 MAINT
=$MAINTAINER_MODE_TRUE
1535 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1536 # at least currently, we never actually build a program, so we never
1537 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1538 # fails, because we are probably configuring with a cross compiler
1539 # which cant create executables. So we include AC_EXEEXT to keep
1540 # automake happy, but we dont execute it, since we dont care about
1545 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1546 echo "configure:1547: checking for executable suffix" >&5
1547 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1548 echo $ac_n "(cached) $ac_c" 1>&6
1550 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
1554 echo 'int main () { return 0; }' > conftest.
$ac_ext
1556 if { (eval echo configure
:1557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1557 for file in conftest.
*; do
1559 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
1560 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
1564 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1567 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
1572 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
1573 echo "$ac_t""${ac_cv_exeext}" 1>&6
1578 # configure.host sets the following important variables
1579 # libgcj_cflags - host specific C compiler flags
1580 # libgcj_cxxflags - host specific C++ compiler flags
1581 # libgcj_javaflags - host specific Java compiler flags
1587 .
${libgcj_basedir}/configure.
host
1589 case ${libgcj_basedir} in
1590 /* | A-Za-z
:/\\*) libgcj_flagbasedir
=${libgcj_basedir} ;;
1591 *) libgcj_flagbasedir
='$(top_builddir)/'${libgcj_basedir} ;;
1594 LIBGCJ_CFLAGS
="${libgcj_cflags}"
1595 LIBGCJ_CXXFLAGS
="${libgcj_cxxflags}"
1596 LIBGCJ_JAVAFLAGS
="${libgcj_javaflags}"
1606 # Check whether --enable-shared or --disable-shared was given.
1607 if test "${enable_shared+set}" = set; then
1608 enableval
="$enable_shared"
1609 p
=${PACKAGE-default}
1610 case "$enableval" in
1611 yes) enable_shared
=yes ;;
1612 no
) enable_shared
=no
;;
1615 # Look at the argument we got. We use all the common list separators.
1616 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1617 for pkg
in $enableval; do
1618 if test "X$pkg" = "X$p"; then
1629 # Check whether --enable-static or --disable-static was given.
1630 if test "${enable_static+set}" = set; then
1631 enableval
="$enable_static"
1632 p
=${PACKAGE-default}
1633 case "$enableval" in
1634 yes) enable_static
=yes ;;
1635 no
) enable_static
=no
;;
1638 # Look at the argument we got. We use all the common list separators.
1639 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1640 for pkg
in $enableval; do
1641 if test "X$pkg" = "X$p"; then
1652 # Check whether --enable-fast-install or --disable-fast-install was given.
1653 if test "${enable_fast_install+set}" = set; then
1654 enableval
="$enable_fast_install"
1655 p
=${PACKAGE-default}
1656 case "$enableval" in
1657 yes) enable_fast_install
=yes ;;
1658 no
) enable_fast_install
=no
;;
1660 enable_fast_install
=no
1661 # Look at the argument we got. We use all the common list separators.
1662 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1663 for pkg
in $enableval; do
1664 if test "X$pkg" = "X$p"; then
1665 enable_fast_install
=yes
1672 enable_fast_install
=yes
1675 # Extract the first word of "ranlib", so it can be a program name with args.
1676 set dummy ranlib
; ac_word
=$2
1677 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1678 echo "configure:1679: checking for $ac_word" >&5
1679 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1680 echo $ac_n "(cached) $ac_c" 1>&6
1682 if test -n "$RANLIB"; then
1683 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1685 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1687 for ac_dir
in $ac_dummy; do
1688 test -z "$ac_dir" && ac_dir
=.
1689 if test -f $ac_dir/$ac_word; then
1690 ac_cv_prog_RANLIB
="ranlib"
1695 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1698 RANLIB
="$ac_cv_prog_RANLIB"
1699 if test -n "$RANLIB"; then
1700 echo "$ac_t""$RANLIB" 1>&6
1702 echo "$ac_t""no" 1>&6
1705 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1706 if test "${with_gnu_ld+set}" = set; then
1707 withval
="$with_gnu_ld"
1708 test "$withval" = no || with_gnu_ld
=yes
1714 if test "$ac_cv_prog_gcc" = yes; then
1715 # Check if gcc -print-prog-name=ld gives a path.
1716 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1717 echo "configure:1718: checking for ld used by GCC" >&5
1718 ac_prog
=`($CC -print-prog-name=ld) 2>&5`
1720 # Accept absolute paths.
1721 /* |
[A-Za-z
]:[\\/]*)
1722 re_direlt
='/[^/][^/]*/\.\./'
1723 # Canonicalize the path of ld
1724 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1725 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1726 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1728 test -z "$LD" && LD
="$ac_prog"
1731 # If it fails, then pretend we aren't using GCC.
1735 # If it is relative, then search for the first ld in PATH.
1739 elif test "$with_gnu_ld" = yes; then
1740 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1741 echo "configure:1742: checking for GNU ld" >&5
1743 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1744 echo "configure:1745: checking for non-GNU ld" >&5
1746 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1747 echo $ac_n "(cached) $ac_c" 1>&6
1749 if test -z "$LD"; then
1750 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1751 for ac_dir
in $PATH; do
1752 test -z "$ac_dir" && ac_dir
=.
1753 if test -f "$ac_dir/$ac_prog"; then
1754 ac_cv_path_LD
="$ac_dir/$ac_prog"
1755 # Check to see if the program is GNU ld. I'd rather use --version,
1756 # but apparently some GNU ld's only accept -v.
1757 # Break only if it was the GNU/non-GNU ld that we prefer.
1758 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1759 test "$with_gnu_ld" != no
&& break
1761 test "$with_gnu_ld" != yes && break
1767 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1772 if test -n "$LD"; then
1773 echo "$ac_t""$LD" 1>&6
1775 echo "$ac_t""no" 1>&6
1777 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1779 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1780 echo "configure:1781: checking if the linker ($LD) is GNU ld" >&5
1781 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1782 echo $ac_n "(cached) $ac_c" 1>&6
1784 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1785 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1786 ac_cv_prog_gnu_ld
=yes
1788 ac_cv_prog_gnu_ld
=no
1792 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1795 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1796 echo "configure:1797: checking for BSD-compatible nm" >&5
1797 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1798 echo $ac_n "(cached) $ac_c" 1>&6
1800 if test -n "$NM"; then
1801 # Let the user override the test.
1804 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1805 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1806 test -z "$ac_dir" && ac_dir
=.
1807 if test -f $ac_dir/nm
; then
1808 # Check to see if the nm accepts a BSD-compat flag.
1809 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1810 # nm: unknown option "B" ignored
1811 if ($ac_dir/nm
-B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1812 ac_cv_path_NM
="$ac_dir/nm -B"
1814 elif ($ac_dir/nm
-p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1815 ac_cv_path_NM
="$ac_dir/nm -p"
1818 ac_cv_path_NM
=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1819 continue # so that we can try to find one that supports BSD flags
1824 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1829 echo "$ac_t""$NM" 1>&6
1832 # Check for command to grab the raw symbol name followed by C symbol from nm.
1833 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
1834 echo "configure:1835: checking command to parse $NM output" >&5
1835 if eval "test \"`echo '$''{'ac_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
1836 echo $ac_n "(cached) $ac_c" 1>&6
1838 # These are sane defaults that work on at least a few old systems.
1839 # {They come from Ultrix. What could be older than Ultrix?!! ;)}
1841 # Character class describing NM global symbol codes.
1842 ac_symcode
='[BCDEGRST]'
1844 # Regexp to match symbols that can be accessed directly from C.
1845 ac_sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
1847 # Transform the above into a raw symbol and a C symbol.
1848 ac_symxfrm
='\1 \2\3 \3'
1850 # Transform an extracted symbol line into a proper C declaration
1851 ac_global_symbol_to_cdecl
="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
1853 # Define system-specific variables.
1859 ac_symcode
='[ABCDGISTW]'
1862 ac_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'"
1865 ac_symcode
='[BCDEGRST]'
1872 # If we're using GNU nm, then use its standard symbol codes.
1873 if $NM -V 2>&1 |
egrep '(GNU|with BFD)' > /dev
/null
; then
1874 ac_symcode
='[ABCDGISTW]'
1877 # Try without a prefix undercore, then with it.
1878 for ac_symprfx
in "" "_"; do
1880 ac_cv_sys_global_symbol_pipe
="sed -n -e 's/^.* \($ac_symcode\) *\($ac_symprfx\)$ac_sympat$/$ac_symxfrm/p'"
1882 # Check to see that the pipe works correctly.
1884 rm -f conftest.
$ac_ext
1885 cat > conftest.
$ac_ext <<EOF
1890 void nm_test_func(){}
1894 int main(){nm_test_var='a';nm_test_func;return 0;}
1897 if { (eval echo configure
:1898: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1898 # Now try to grab the symbols.
1899 ac_nlist
=conftest.nm
1901 if { (eval echo configure
:1902: \"$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
1903 # Try sorting and uniquifying the output.
1904 if sort "$ac_nlist" |
uniq > "$ac_nlist"T
; then
1905 mv -f "$ac_nlist"T
"$ac_nlist"
1910 # Make sure that we snagged all the symbols we need.
1911 if egrep ' nm_test_var$' "$ac_nlist" >/dev
/null
; then
1912 if egrep ' nm_test_func$' "$ac_nlist" >/dev
/null
; then
1913 cat <<EOF > conftest.c
1919 # Now generate the symbol file.
1920 eval "$ac_global_symbol_to_cdecl"' < "$ac_nlist" >> conftest.c'
1922 cat <<EOF >> conftest.c
1923 #if defined (__STDC__) && __STDC__
1924 # define lt_ptr_t void *
1926 # define lt_ptr_t char *
1930 /* The mapping between symbol names and symbols. */
1935 lt_preloaded_symbols[] =
1938 sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$ac_nlist" >> conftest.c
1939 cat <<\EOF
>> conftest.c
1947 # Now try linking the two files.
1948 mv conftest.
$ac_objext conftestm.
$ac_objext
1949 ac_save_LIBS
="$LIBS"
1950 ac_save_CFLAGS
="$CFLAGS"
1951 LIBS
="conftestm.$ac_objext"
1952 CFLAGS
="$CFLAGS$no_builtin_flag"
1953 if { (eval echo configure
:1954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1956 echo "configure: failed program was:" >&5
1959 LIBS
="$ac_save_LIBS"
1960 CFLAGS
="$ac_save_CFLAGS"
1962 echo "cannot find nm_test_func in $ac_nlist" >&5
1965 echo "cannot find nm_test_var in $ac_nlist" >&5
1968 echo "cannot run $ac_cv_sys_global_symbol_pipe" >&5
1971 echo "$progname: failed program was:" >&5
1976 # Do not use the global_symbol_pipe unless it works.
1977 if test "$ac_pipe_works" = yes; then
1978 if test x
"$ac_symprfx" = x
"_"; then
1979 ac_cv_sys_symbol_underscore
=yes
1981 ac_cv_sys_symbol_underscore
=no
1985 ac_cv_sys_global_symbol_pipe
=
1993 if test -z "$ac_cv_sys_global_symbol_pipe"; then
1996 echo "$ac_t""$ac_result" 1>&6
1998 echo $ac_n "checking for _ prefix in compiled symbols""... $ac_c" 1>&6
1999 echo "configure:2000: checking for _ prefix in compiled symbols" >&5
2000 if eval "test \"`echo '$''{'ac_cv_sys_symbol_underscore'+set}'`\" = set"; then
2001 echo $ac_n "(cached) $ac_c" 1>&6
2003 ac_cv_sys_symbol_underscore
=no
2004 cat > conftest.
$ac_ext <<EOF
2005 void nm_test_func(){}
2006 int main(){nm_test_func;return 0;}
2008 if { (eval echo configure
:2009: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2009 # Now try to grab the symbols.
2010 ac_nlist
=conftest.nm
2011 if { (eval echo configure
:2012: \"$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
2012 # See whether the symbols have a leading underscore.
2013 if egrep '^. _nm_test_func' "$ac_nlist" >/dev
/null
; then
2014 ac_cv_sys_symbol_underscore
=yes
2016 if egrep '^. nm_test_func ' "$ac_nlist" >/dev
/null
; then
2019 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
2023 echo "configure: cannot run $ac_cv_sys_global_symbol_pipe" >&5
2026 echo "configure: failed program was:" >&5
2033 echo "$ac_t""$ac_cv_sys_symbol_underscore" 1>&6
2034 USE_SYMBOL_UNDERSCORE
=${ac_cv_sys_symbol_underscore=no}
2036 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2037 echo "configure:2038: checking whether ln -s works" >&5
2038 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2039 echo $ac_n "(cached) $ac_c" 1>&6
2042 if ln -s X conftestdata
2>/dev
/null
2045 ac_cv_prog_LN_S
="ln -s"
2050 LN_S
="$ac_cv_prog_LN_S"
2051 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2052 echo "$ac_t""yes" 1>&6
2054 echo "$ac_t""no" 1>&6
2058 # Check for any special flags to pass to ltconfig.
2059 libtool_flags
="--cache-file=$cache_file"
2060 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
2061 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
2062 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
2063 test "$lt_dlopen" = yes && libtool_flags
="$libtool_flags --enable-dlopen"
2064 test "$silent" = yes && libtool_flags
="$libtool_flags --silent"
2065 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
2066 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
2068 # Some flags need to be propagated to the compiler or linker for good
2072 # Find out which ABI we are using.
2073 echo '#line 2074 "configure"' > conftest.
$ac_ext
2074 if { (eval echo configure
:2075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2075 case "`/usr/bin/file conftest.o`" in
2091 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2092 SAVE_CFLAGS
="$CFLAGS"
2093 CFLAGS
="$CFLAGS -belf"
2094 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2095 echo "configure:2096: checking whether the C compiler needs -belf" >&5
2096 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2097 echo $ac_n "(cached) $ac_c" 1>&6
2099 cat > conftest.
$ac_ext <<EOF
2100 #line 2101 "configure"
2101 #include "confdefs.h"
2107 if { (eval echo configure
:2108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2109 lt_cv_cc_needs_belf
=yes
2111 echo "configure: failed program was:" >&5
2112 cat conftest.
$ac_ext >&5
2114 lt_cv_cc_needs_belf
=no
2119 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2120 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
2121 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2122 CFLAGS
="$SAVE_CFLAGS"
2127 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
2128 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
2129 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2130 echo "configure:2131: checking for $ac_word" >&5
2131 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2132 echo $ac_n "(cached) $ac_c" 1>&6
2134 if test -n "$DLLTOOL"; then
2135 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
2137 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2139 for ac_dir
in $ac_dummy; do
2140 test -z "$ac_dir" && ac_dir
=.
2141 if test -f $ac_dir/$ac_word; then
2142 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
2149 DLLTOOL
="$ac_cv_prog_DLLTOOL"
2150 if test -n "$DLLTOOL"; then
2151 echo "$ac_t""$DLLTOOL" 1>&6
2153 echo "$ac_t""no" 1>&6
2157 if test -z "$ac_cv_prog_DLLTOOL"; then
2158 if test -n "$ac_tool_prefix"; then
2159 # Extract the first word of "dlltool", so it can be a program name with args.
2160 set dummy dlltool
; ac_word
=$2
2161 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2162 echo "configure:2163: checking for $ac_word" >&5
2163 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2164 echo $ac_n "(cached) $ac_c" 1>&6
2166 if test -n "$DLLTOOL"; then
2167 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
2169 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2171 for ac_dir
in $ac_dummy; do
2172 test -z "$ac_dir" && ac_dir
=.
2173 if test -f $ac_dir/$ac_word; then
2174 ac_cv_prog_DLLTOOL
="dlltool"
2179 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL
="false"
2182 DLLTOOL
="$ac_cv_prog_DLLTOOL"
2183 if test -n "$DLLTOOL"; then
2184 echo "$ac_t""$DLLTOOL" 1>&6
2186 echo "$ac_t""no" 1>&6
2194 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2195 set dummy
${ac_tool_prefix}as
; ac_word
=$2
2196 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2197 echo "configure:2198: checking for $ac_word" >&5
2198 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2199 echo $ac_n "(cached) $ac_c" 1>&6
2201 if test -n "$AS"; then
2202 ac_cv_prog_AS
="$AS" # Let the user override the test.
2204 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2206 for ac_dir
in $ac_dummy; do
2207 test -z "$ac_dir" && ac_dir
=.
2208 if test -f $ac_dir/$ac_word; then
2209 ac_cv_prog_AS
="${ac_tool_prefix}as"
2217 if test -n "$AS"; then
2218 echo "$ac_t""$AS" 1>&6
2220 echo "$ac_t""no" 1>&6
2224 if test -z "$ac_cv_prog_AS"; then
2225 if test -n "$ac_tool_prefix"; then
2226 # Extract the first word of "as", so it can be a program name with args.
2227 set dummy as
; ac_word
=$2
2228 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2229 echo "configure:2230: checking for $ac_word" >&5
2230 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2231 echo $ac_n "(cached) $ac_c" 1>&6
2233 if test -n "$AS"; then
2234 ac_cv_prog_AS
="$AS" # Let the user override the test.
2236 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2238 for ac_dir
in $ac_dummy; do
2239 test -z "$ac_dir" && ac_dir
=.
2240 if test -f $ac_dir/$ac_word; then
2246 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS
="false"
2250 if test -n "$AS"; then
2251 echo "$ac_t""$AS" 1>&6
2253 echo "$ac_t""no" 1>&6
2266 # enable the --disable-libtool-lock switch
2268 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2269 if test "${enable_libtool_lock+set}" = set; then
2270 enableval
="$enable_libtool_lock"
2271 need_locks
=$enableval
2277 if test x
"$need_locks" = xno
; then
2278 libtool_flags
="$libtool_flags --disable-lock"
2282 # Save cache, so that ltconfig can load it
2283 cat > confcache
<<\EOF
2284 # This file is a shell script that caches the results of configure
2285 # tests run on this system so they can be shared between configure
2286 # scripts and configure runs. It is not useful on other systems.
2287 # If it contains results you don't want to keep, you may remove or edit it.
2289 # By default, configure uses ./config.cache as the cache file,
2290 # creating it if it does not exist already. You can give configure
2291 # the --cache-file=FILE option to use a different cache file; that is
2292 # what configure does when it calls configure scripts in
2293 # subdirectories, so they share the cache.
2294 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2295 # config.status only pays attention to the cache file if you give it the
2296 # --recheck option to rerun configure.
2299 # The following way of writing the cache mishandles newlines in values,
2300 # but we know of no workaround that is simple, portable, and efficient.
2301 # So, don't put newlines in cache variables' values.
2302 # Ultrix sh set writes to stderr and can't be redirected directly,
2303 # and sets the high bit in the cache file unless we assign to the vars.
2305 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2307 # `set' does not quote correctly, so add quotes (double-quote substitution
2308 # turns \\\\ into \\, and sed turns \\ into \).
2310 -e "s/'/'\\\\''/g" \
2311 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2314 # `set' quotes correctly as required by POSIX, so do not add quotes.
2315 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2318 if cmp -s $cache_file confcache
; then
2321 if test -w $cache_file; then
2322 echo "updating cache $cache_file"
2323 cat confcache
> $cache_file
2325 echo "not updating unwritable cache $cache_file"
2331 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2332 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
2333 LD
="$LD" NM
="$NM" RANLIB
="$RANLIB" LN_S
="$LN_S" \
2334 DLLTOOL
="$DLLTOOL" AS
="$AS" \
2335 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
2336 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$host \
2337 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2339 # Reload cache, that may have been modified by ltconfig
2340 if test -r "$cache_file"; then
2341 echo "loading cache $cache_file"
2344 echo "creating cache $cache_file"
2349 # This can be used to rebuild libtool when needed
2350 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
2352 # Always use our own libtool.
2353 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
2355 # Redirect the config.log output again, so that the ltconfig log is not
2356 # clobbered by the next message.
2357 exec 5>>.
/config.log
2360 if test -z "$with_target_subdir" ||
test "$with_target_subdir" = "."; then
2369 if test -d $srcdir/testsuite
; then
2371 TESTSUBDIR_FALSE
='#'
2377 # Check whether --enable-fast-character or --disable-fast-character was given.
2378 if test "${enable_fast_character+set}" = set; then
2379 enableval
="$enable_fast_character"
2383 cat >> confdefs.h
<<\EOF
2384 #define COMPACT_CHARACTER 1
2390 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
2391 if test "${enable_getenv_properties+set}" = set; then
2392 enableval
="$enable_getenv_properties"
2397 if test -n "$enable_getenv_properties"; then
2398 enable_getenv_properties
=${enable_getenv_properties_default-yes}
2400 if test "$enable_getenv_properties" = no
; then
2401 cat >> confdefs.h
<<\EOF
2402 #define DISABLE_GETENV_PROPERTIES 1
2407 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
2408 if test "${enable_libgcj_debug+set}" = set; then
2409 enableval
="$enable_libgcj_debug"
2410 if test "$enable_libgcj_debug" = yes; then
2411 cat >> confdefs.h
<<\EOF
2419 # Check whether --enable-interpreter or --disable-interpreter was given.
2420 if test "${enable_interpreter+set}" = set; then
2421 enableval
="$enable_interpreter"
2422 if test "$enable_interpreter" = yes; then
2423 cat >> confdefs.h
<<\EOF
2424 #define INTERPRETER 1
2431 # Check whether --enable-java-net or --disable-java-net was given.
2432 if test "${enable_java_net+set}" = set; then
2433 enableval
="$enable_java_net"
2438 if test -n "$enable_java_net"; then
2439 enable_java_net
=${enable_java_net_default-yes}
2441 if test "$enable_java_net" = no
; then
2442 cat >> confdefs.h
<<\EOF
2443 #define DISABLE_JAVA_NET 1
2449 # Check whether --with-ecos or --without-ecos was given.
2450 if test "${with_ecos+set}" = set; then
2451 withval
="$with_ecos"
2452 TARGET_ECOS
="$with_ecos"
2457 case "$TARGET_ECOS" in
2459 FILE_DESCRIPTOR
=natFileDescriptorPosix.cc
2460 PROCESS
=${PROCESS-Posix}
2463 FILE_DESCRIPTOR
=natFileDescriptorEcos.cc
2465 cat >> confdefs.h
<<\EOF
2472 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2473 echo "configure:2474: checking how to run the C preprocessor" >&5
2474 # On Suns, sometimes $CPP names a directory.
2475 if test -n "$CPP" && test -d "$CPP"; then
2478 if test -z "$CPP"; then
2479 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2480 echo $ac_n "(cached) $ac_c" 1>&6
2482 # This must be in double quotes, not single quotes, because CPP may get
2483 # substituted into the Makefile and "${CC-cc}" will confuse make.
2485 # On the NeXT, cc -E runs the code through the compiler's parser,
2486 # not just through cpp.
2487 cat > conftest.
$ac_ext <<EOF
2488 #line 2489 "configure"
2489 #include "confdefs.h"
2493 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2494 { (eval echo configure
:2495: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2495 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2496 if test -z "$ac_err"; then
2500 echo "configure: failed program was:" >&5
2501 cat conftest.
$ac_ext >&5
2503 CPP
="${CC-cc} -E -traditional-cpp"
2504 cat > conftest.
$ac_ext <<EOF
2505 #line 2506 "configure"
2506 #include "confdefs.h"
2510 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2511 { (eval echo configure
:2512: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2512 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2513 if test -z "$ac_err"; then
2517 echo "configure: failed program was:" >&5
2518 cat conftest.
$ac_ext >&5
2520 CPP
="${CC-cc} -nologo -E"
2521 cat > conftest.
$ac_ext <<EOF
2522 #line 2523 "configure"
2523 #include "confdefs.h"
2527 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2528 { (eval echo configure
:2529: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2529 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2530 if test -z "$ac_err"; then
2534 echo "configure: failed program was:" >&5
2535 cat conftest.
$ac_ext >&5
2544 ac_cv_prog_CPP
="$CPP"
2546 CPP
="$ac_cv_prog_CPP"
2548 ac_cv_prog_CPP
="$CPP"
2550 echo "$ac_t""$CPP" 1>&6
2552 cat > conftest.
$ac_ext <<EOF
2553 #line 2554 "configure"
2554 #include "confdefs.h"
2557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2558 egrep "uint32_t" >/dev
/null
2>&1; then
2560 cat >> confdefs.h
<<\EOF
2561 #define HAVE_INT32_DEFINED 1
2567 cat > conftest.
$ac_ext <<EOF
2568 #line 2569 "configure"
2569 #include "confdefs.h"
2570 #include <inttypes.h>
2572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2573 egrep "uint32_t" >/dev
/null
2>&1; then
2575 cat >> confdefs.h
<<\EOF
2576 #define HAVE_INT32_DEFINED 1
2582 cat > conftest.
$ac_ext <<EOF
2583 #line 2584 "configure"
2584 #include "confdefs.h"
2585 #include <sys/types.h>
2587 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2588 egrep "u_int32_t" >/dev
/null
2>&1; then
2590 cat >> confdefs.h
<<\EOF
2591 #define HAVE_BSD_INT32_DEFINED 1
2597 cat > conftest.
$ac_ext <<EOF
2598 #line 2599 "configure"
2599 #include "confdefs.h"
2600 #include <sys/config.h>
2602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2603 egrep "u_int32_t" >/dev
/null
2>&1; then
2605 cat >> confdefs.h
<<\EOF
2606 #define HAVE_BSD_INT32_DEFINED 1
2614 cat > conftest.
$ac_ext <<EOF
2615 #line 2616 "configure"
2616 #include "confdefs.h"
2619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2620 egrep "mktime" >/dev
/null
2>&1; then
2622 cat >> confdefs.h
<<\EOF
2623 #define HAVE_MKTIME 1
2629 cat > conftest.
$ac_ext <<EOF
2630 #line 2631 "configure"
2631 #include "confdefs.h"
2634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2635 egrep "localtime" >/dev
/null
2>&1; then
2637 cat >> confdefs.h
<<\EOF
2638 #define HAVE_LOCALTIME 1
2645 test -d java || mkdir java
2646 test -d java
/io || mkdir java
/io
2649 test -d java
/lang || mkdir java
/lang
2656 # Check whether --with-system-zlib or --without-system-zlib was given.
2657 if test "${with_system_zlib+set}" = set; then
2658 withval
="$with_system_zlib"
2667 echo $ac_n "checking for garbage collector to use""... $ac_c" 1>&6
2668 echo "configure:2669: checking for garbage collector to use" >&5
2669 # Check whether --enable-java-gc or --disable-java-gc was given.
2670 if test "${enable_java_gc+set}" = set; then
2671 enableval
="$enable_java_gc"
2685 echo "$ac_t""boehm" 1>&6
2686 GCDEPS
='$(top_builddir)/../boehm-gc/libgcjgc.la'
2687 # We include the path to the boehm-gc build directory.
2688 # See Makefile.am to understand why.
2689 GCLIBS
="$GCDEPS -L\$(here)/../boehm-gc/$libsubdir"
2690 GCINCS
='-I$(top_srcdir)/../boehm-gc -I$(top_builddir)/../boehm-gc'
2692 GCINCS
="$GCINCS `cat ../boehm-gc/boehm-cflags`"
2695 cat >> confdefs.h
<<\EOF
2696 #define HAVE_BOEHM_GC 1
2701 echo "$ac_t""none" 1>&6
2706 { echo "configure: error: unrecognized collector \"$GC\"" 1>&2; exit 1; }
2717 echo $ac_n "checking for threads package to use""... $ac_c" 1>&6
2718 echo "configure:2719: checking for threads package to use" >&5
2719 # Check whether --enable-threads or --disable-threads was given.
2720 if test "${enable_threads+set}" = set; then
2721 enableval
="$enable_threads"
2728 if test "$THREADS" = yes; then
2734 # FIXME: this isn't correct in all cases.
2741 # FIXME: for now, choose POSIX, because we implement that.
2742 # Later, choose irix threads.
2746 # FIXME: for now, choose POSIX, because we implement that.
2747 # Later, choose solaris threads.
2765 cat >> confdefs.h
<<\EOF
2766 #define LINUX_THREADS 1
2774 decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks
)
2775 { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
2778 { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
2781 echo "$ac_t""$THREADS" 1>&6
2791 THREADLIBS
=-lpthread
2792 THREADSPEC
=-lpthread
2793 THREADOBJS
=posix-threads.lo
2794 THREADH
=posix-threads.h
2795 # MIT pthreads doesn't seem to have the mutexattr functions.
2796 # But for now we don't check for it. We just assume you aren't
2797 # using MIT pthreads.
2798 cat >> confdefs.h
<<\EOF
2799 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
2805 THREADDEPS
='$(top_builddir)/../qthreads/libgcjcoop.la'
2806 # We include the path to the qthreads build directory.
2807 # See Makefile.am to understand why.
2808 THREADLIBS
="$THREADDEPS -L\$(here)/../qthreads/$libsubdir"
2809 THREADSPEC
='-lgcjcoop'
2810 THREADOBJS
=quick-threads.lo
2811 THREADINCS
='-I$(top_srcdir)/../qthreads'
2812 THREADH
=quick-threads.h
2816 THREADOBJS
=no-threads.lo
2817 THREADH
=no-threads.h
2829 if test "$GCC" = yes; then
2841 # Find eh-common.h and support headers. If we're in the tree with
2842 # gcc, then look there. Otherwise look in compat-include. If all else
2843 # fails, just hope the user has set things up somehow.
2844 if test -r $srcdir/..
/gcc
/eh-common.h
; then
2845 EH_COMMON_INCLUDE
='-I$(top_srcdir)/../gcc -I$(top_srcdir)/../include'
2847 if test -d $srcdir/..
/compat-include
; then
2848 EH_COMMON_INCLUDE
='-I$(top_srcdir)/../compat-include'
2854 if test -n "${with_cross_host}"; then
2855 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
2856 # may not work correctly, because the compiler may not be able to
2859 # We assume newlib. This lets us hard-code the functions we know
2861 cat >> confdefs.h
<<\EOF
2862 #define HAVE_MEMMOVE 1
2865 cat >> confdefs.h
<<\EOF
2866 #define HAVE_MEMCPY 1
2869 cat >> confdefs.h
<<\EOF
2870 #define HAVE_STRERROR 1
2873 cat >> confdefs.h
<<\EOF
2874 #define HAVE_GMTIME_R 1
2877 cat >> confdefs.h
<<\EOF
2878 #define HAVE_LOCALTIME_R 1
2881 cat >> confdefs.h
<<\EOF
2882 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
2885 cat >> confdefs.h
<<\EOF
2886 #define HAVE_ALLOCA 1
2892 # If Canadian cross, then don't pick up tools from the build
2894 if test "$build" != "$with_cross_host"; then
2897 GCJ
="${target_alias}-gcj"
2903 for ac_func
in strerror ioctl
select fstat open fsync
sleep
2905 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2906 echo "configure:2907: checking for $ac_func" >&5
2907 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2908 echo $ac_n "(cached) $ac_c" 1>&6
2910 cat > conftest.
$ac_ext <<EOF
2911 #line 2912 "configure"
2912 #include "confdefs.h"
2913 /* System header to define __stub macros and hopefully few prototypes,
2914 which can conflict with char $ac_func(); below. */
2916 /* Override any gcc2 internal prototype to avoid an error. */
2917 /* We use char because int might match the return type of a gcc2
2918 builtin and then its argument prototype would still apply. */
2923 /* The GNU C library defines this for functions which it implements
2924 to always fail with ENOSYS. Some functions are actually named
2925 something starting with __ and the normal name is an alias. */
2926 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2934 if { (eval echo configure
:2935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2936 eval "ac_cv_func_$ac_func=yes"
2938 echo "configure: failed program was:" >&5
2939 cat conftest.
$ac_ext >&5
2941 eval "ac_cv_func_$ac_func=no"
2946 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2947 echo "$ac_t""yes" 1>&6
2948 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2949 cat >> confdefs.h
<<EOF
2950 #define $ac_tr_func 1
2954 echo "$ac_t""no" 1>&6
2958 for ac_func
in gmtime_r localtime_r readdir_r getpwuid_r
2960 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2961 echo "configure:2962: checking for $ac_func" >&5
2962 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2963 echo $ac_n "(cached) $ac_c" 1>&6
2965 cat > conftest.
$ac_ext <<EOF
2966 #line 2967 "configure"
2967 #include "confdefs.h"
2968 /* System header to define __stub macros and hopefully few prototypes,
2969 which can conflict with char $ac_func(); below. */
2971 /* Override any gcc2 internal prototype to avoid an error. */
2972 /* We use char because int might match the return type of a gcc2
2973 builtin and then its argument prototype would still apply. */
2978 /* The GNU C library defines this for functions which it implements
2979 to always fail with ENOSYS. Some functions are actually named
2980 something starting with __ and the normal name is an alias. */
2981 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2989 if { (eval echo configure
:2990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2991 eval "ac_cv_func_$ac_func=yes"
2993 echo "configure: failed program was:" >&5
2994 cat conftest.
$ac_ext >&5
2996 eval "ac_cv_func_$ac_func=no"
3001 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3002 echo "$ac_t""yes" 1>&6
3003 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3004 cat >> confdefs.h
<<EOF
3005 #define $ac_tr_func 1
3009 echo "$ac_t""no" 1>&6
3013 for ac_func
in access stat mkdir rename
rmdir unlink realpath
3015 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3016 echo "configure:3017: checking for $ac_func" >&5
3017 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3018 echo $ac_n "(cached) $ac_c" 1>&6
3020 cat > conftest.
$ac_ext <<EOF
3021 #line 3022 "configure"
3022 #include "confdefs.h"
3023 /* System header to define __stub macros and hopefully few prototypes,
3024 which can conflict with char $ac_func(); below. */
3026 /* Override any gcc2 internal prototype to avoid an error. */
3027 /* We use char because int might match the return type of a gcc2
3028 builtin and then its argument prototype would still apply. */
3033 /* The GNU C library defines this for functions which it implements
3034 to always fail with ENOSYS. Some functions are actually named
3035 something starting with __ and the normal name is an alias. */
3036 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3044 if { (eval echo configure
:3045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3046 eval "ac_cv_func_$ac_func=yes"
3048 echo "configure: failed program was:" >&5
3049 cat conftest.
$ac_ext >&5
3051 eval "ac_cv_func_$ac_func=no"
3056 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3057 echo "$ac_t""yes" 1>&6
3058 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3059 cat >> confdefs.h
<<EOF
3060 #define $ac_tr_func 1
3064 echo "$ac_t""no" 1>&6
3068 for ac_func
in inet_aton inet_addr
3070 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3071 echo "configure:3072: checking for $ac_func" >&5
3072 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3073 echo $ac_n "(cached) $ac_c" 1>&6
3075 cat > conftest.
$ac_ext <<EOF
3076 #line 3077 "configure"
3077 #include "confdefs.h"
3078 /* System header to define __stub macros and hopefully few prototypes,
3079 which can conflict with char $ac_func(); below. */
3081 /* Override any gcc2 internal prototype to avoid an error. */
3082 /* We use char because int might match the return type of a gcc2
3083 builtin and then its argument prototype would still apply. */
3088 /* The GNU C library defines this for functions which it implements
3089 to always fail with ENOSYS. Some functions are actually named
3090 something starting with __ and the normal name is an alias. */
3091 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3099 if { (eval echo configure
:3100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3101 eval "ac_cv_func_$ac_func=yes"
3103 echo "configure: failed program was:" >&5
3104 cat conftest.
$ac_ext >&5
3106 eval "ac_cv_func_$ac_func=no"
3111 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3112 echo "$ac_t""yes" 1>&6
3113 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3114 cat >> confdefs.h
<<EOF
3115 #define $ac_tr_func 1
3119 echo "$ac_t""no" 1>&6
3123 for ac_func
in inet_pton uname inet_ntoa
3125 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3126 echo "configure:3127: checking for $ac_func" >&5
3127 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3128 echo $ac_n "(cached) $ac_c" 1>&6
3130 cat > conftest.
$ac_ext <<EOF
3131 #line 3132 "configure"
3132 #include "confdefs.h"
3133 /* System header to define __stub macros and hopefully few prototypes,
3134 which can conflict with char $ac_func(); below. */
3136 /* Override any gcc2 internal prototype to avoid an error. */
3137 /* We use char because int might match the return type of a gcc2
3138 builtin and then its argument prototype would still apply. */
3143 /* The GNU C library defines this for functions which it implements
3144 to always fail with ENOSYS. Some functions are actually named
3145 something starting with __ and the normal name is an alias. */
3146 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3154 if { (eval echo configure
:3155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3156 eval "ac_cv_func_$ac_func=yes"
3158 echo "configure: failed program was:" >&5
3159 cat conftest.
$ac_ext >&5
3161 eval "ac_cv_func_$ac_func=no"
3166 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3167 echo "$ac_t""yes" 1>&6
3168 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3169 cat >> confdefs.h
<<EOF
3170 #define $ac_tr_func 1
3174 echo "$ac_t""no" 1>&6
3179 for ac_func
in gethostbyname_r
3181 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3182 echo "configure:3183: checking for $ac_func" >&5
3183 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3184 echo $ac_n "(cached) $ac_c" 1>&6
3186 cat > conftest.
$ac_ext <<EOF
3187 #line 3188 "configure"
3188 #include "confdefs.h"
3189 /* System header to define __stub macros and hopefully few prototypes,
3190 which can conflict with char $ac_func(); below. */
3192 /* Override any gcc2 internal prototype to avoid an error. */
3193 /* We use char because int might match the return type of a gcc2
3194 builtin and then its argument prototype would still apply. */
3199 /* The GNU C library defines this for functions which it implements
3200 to always fail with ENOSYS. Some functions are actually named
3201 something starting with __ and the normal name is an alias. */
3202 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3210 if { (eval echo configure
:3211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3212 eval "ac_cv_func_$ac_func=yes"
3214 echo "configure: failed program was:" >&5
3215 cat conftest.
$ac_ext >&5
3217 eval "ac_cv_func_$ac_func=no"
3222 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3223 echo "$ac_t""yes" 1>&6
3224 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3225 cat >> confdefs.h
<<EOF
3226 #define $ac_tr_func 1
3229 cat >> confdefs.h
<<\EOF
3230 #define HAVE_GETHOSTBYNAME_R 1
3233 # There are two different kinds of gethostbyname_r.
3234 # We look for the one that returns `int'.
3235 # Hopefully this check is robust enough.
3236 cat > conftest.
$ac_ext <<EOF
3237 #line 3238 "configure"
3238 #include "confdefs.h"
3241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3242 egrep "int.*gethostbyname_r" >/dev
/null
2>&1; then
3245 cat >> confdefs.h
<<\EOF
3246 #define GETHOSTBYNAME_R_RETURNS_INT 1
3254 *" -D_REENTRANT "*) ;;
3256 echo $ac_n "checking whether gethostbyname_r declaration requires -D_REENTRANT""... $ac_c" 1>&6
3257 echo "configure:3258: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
3258 if eval "test \"`echo '$''{'libjava_cv_gethostbyname_r_needs_reentrant'+set}'`\" = set"; then
3259 echo $ac_n "(cached) $ac_c" 1>&6
3263 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3264 ac_cpp
='$CXXCPP $CPPFLAGS'
3265 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3266 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3267 cross_compiling
=$ac_cv_prog_cxx_cross
3269 cat > conftest.
$ac_ext <<EOF
3270 #line 3271 "configure"
3271 #include "confdefs.h"
3274 gethostbyname_r("", 0, 0);
3277 if { (eval echo configure
:3278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3279 libjava_cv_gethostbyname_r_needs_reentrant
=no
3281 echo "configure: failed program was:" >&5
3282 cat conftest.
$ac_ext >&5
3284 CPPFLAGS_SAVE
="$CPPFLAGS"
3285 CPPFLAGS
="$CPPFLAGS -D_REENTRANT"
3286 cat > conftest.
$ac_ext <<EOF
3287 #line 3288 "configure"
3288 #include "confdefs.h"
3291 gethostbyname_r("", 0, 0);
3294 if { (eval echo configure
:3295: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3296 libjava_cv_gethostbyname_r_needs_reentrant
=yes
3298 echo "configure: failed program was:" >&5
3299 cat conftest.
$ac_ext >&5
3301 libjava_cv_gethostbyname_r_needs_reentrant
=fail
3304 CPPFLAGS
="$CPPFLAGS_SAVE"
3309 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3310 ac_cpp
='$CPP $CPPFLAGS'
3311 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3312 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3313 cross_compiling
=$ac_cv_prog_cc_cross
3318 echo "$ac_t""$libjava_cv_gethostbyname_r_needs_reentrant" 1>&6
3319 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes
; then
3320 cat >> confdefs.h
<<\EOF
3321 #define GETHOSTBYNAME_R_NEEDS_REENTRANT 1
3328 echo $ac_n "checking for struct hostent_data""... $ac_c" 1>&6
3329 echo "configure:3330: checking for struct hostent_data" >&5
3330 if eval "test \"`echo '$''{'libjava_cv_struct_hostent_data'+set}'`\" = set"; then
3331 echo $ac_n "(cached) $ac_c" 1>&6
3333 cat > conftest.
$ac_ext <<EOF
3334 #line 3335 "configure"
3335 #include "confdefs.h"
3337 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
3338 # define _REENTRANT 1
3342 struct hostent_data data;
3345 if { (eval echo configure
:3346: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3347 libjava_cv_struct_hostent_data
=yes
3349 echo "configure: failed program was:" >&5
3350 cat conftest.
$ac_ext >&5
3352 libjava_cv_struct_hostent_data
=no
3357 echo "$ac_t""$libjava_cv_struct_hostent_data" 1>&6
3358 if test "x$libjava_cv_struct_hostent_data" = xyes
; then
3359 cat >> confdefs.h
<<\EOF
3360 #define HAVE_STRUCT_HOSTENT_DATA 1
3366 echo "$ac_t""no" 1>&6
3371 for ac_func
in gethostbyaddr_r
3373 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3374 echo "configure:3375: checking for $ac_func" >&5
3375 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3376 echo $ac_n "(cached) $ac_c" 1>&6
3378 cat > conftest.
$ac_ext <<EOF
3379 #line 3380 "configure"
3380 #include "confdefs.h"
3381 /* System header to define __stub macros and hopefully few prototypes,
3382 which can conflict with char $ac_func(); below. */
3384 /* Override any gcc2 internal prototype to avoid an error. */
3385 /* We use char because int might match the return type of a gcc2
3386 builtin and then its argument prototype would still apply. */
3391 /* The GNU C library defines this for functions which it implements
3392 to always fail with ENOSYS. Some functions are actually named
3393 something starting with __ and the normal name is an alias. */
3394 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3402 if { (eval echo configure
:3403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3404 eval "ac_cv_func_$ac_func=yes"
3406 echo "configure: failed program was:" >&5
3407 cat conftest.
$ac_ext >&5
3409 eval "ac_cv_func_$ac_func=no"
3414 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3415 echo "$ac_t""yes" 1>&6
3416 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3417 cat >> confdefs.h
<<EOF
3418 #define $ac_tr_func 1
3421 cat >> confdefs.h
<<\EOF
3422 #define HAVE_GETHOSTBYADDR_R 1
3425 # There are two different kinds of gethostbyaddr_r.
3426 # We look for the one that returns `int'.
3427 # Hopefully this check is robust enough.
3428 cat > conftest.
$ac_ext <<EOF
3429 #line 3430 "configure"
3430 #include "confdefs.h"
3433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3434 egrep "int.*gethostbyaddr_r" >/dev
/null
2>&1; then
3437 cat >> confdefs.h
<<\EOF
3438 #define GETHOSTBYADDR_R_RETURNS_INT 1
3445 echo "$ac_t""no" 1>&6
3450 for ac_func
in gethostname
3452 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3453 echo "configure:3454: checking for $ac_func" >&5
3454 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3455 echo $ac_n "(cached) $ac_c" 1>&6
3457 cat > conftest.
$ac_ext <<EOF
3458 #line 3459 "configure"
3459 #include "confdefs.h"
3460 /* System header to define __stub macros and hopefully few prototypes,
3461 which can conflict with char $ac_func(); below. */
3463 /* Override any gcc2 internal prototype to avoid an error. */
3464 /* We use char because int might match the return type of a gcc2
3465 builtin and then its argument prototype would still apply. */
3470 /* The GNU C library defines this for functions which it implements
3471 to always fail with ENOSYS. Some functions are actually named
3472 something starting with __ and the normal name is an alias. */
3473 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3481 if { (eval echo configure
:3482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3483 eval "ac_cv_func_$ac_func=yes"
3485 echo "configure: failed program was:" >&5
3486 cat conftest.
$ac_ext >&5
3488 eval "ac_cv_func_$ac_func=no"
3493 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3494 echo "$ac_t""yes" 1>&6
3495 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3496 cat >> confdefs.h
<<EOF
3497 #define $ac_tr_func 1
3500 cat >> confdefs.h
<<\EOF
3501 #define HAVE_GETHOSTNAME 1
3504 cat > conftest.
$ac_ext <<EOF
3505 #line 3506 "configure"
3506 #include "confdefs.h"
3509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3510 egrep "gethostname" >/dev
/null
2>&1; then
3513 cat >> confdefs.h
<<\EOF
3514 #define HAVE_GETHOSTNAME_DECL 1
3521 echo "$ac_t""no" 1>&6
3526 # Look for these functions in the thread library, but only bother
3527 # if using POSIX threads.
3528 if test "$THREADS" = posix
; then
3530 LIBS
="$LIBS $THREADLIBS"
3531 # Some POSIX thread systems don't have pthread_mutexattr_settype.
3533 for ac_func
in pthread_mutexattr_settype pthread_mutexattr_setkind_np
3535 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3536 echo "configure:3537: checking for $ac_func" >&5
3537 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3538 echo $ac_n "(cached) $ac_c" 1>&6
3540 cat > conftest.
$ac_ext <<EOF
3541 #line 3542 "configure"
3542 #include "confdefs.h"
3543 /* System header to define __stub macros and hopefully few prototypes,
3544 which can conflict with char $ac_func(); below. */
3546 /* Override any gcc2 internal prototype to avoid an error. */
3547 /* We use char because int might match the return type of a gcc2
3548 builtin and then its argument prototype would still apply. */
3553 /* The GNU C library defines this for functions which it implements
3554 to always fail with ENOSYS. Some functions are actually named
3555 something starting with __ and the normal name is an alias. */
3556 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3564 if { (eval echo configure
:3565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3566 eval "ac_cv_func_$ac_func=yes"
3568 echo "configure: failed program was:" >&5
3569 cat conftest.
$ac_ext >&5
3571 eval "ac_cv_func_$ac_func=no"
3576 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3577 echo "$ac_t""yes" 1>&6
3578 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3579 cat >> confdefs.h
<<EOF
3580 #define $ac_tr_func 1
3584 echo "$ac_t""no" 1>&6
3589 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
3590 # Solaris 7 the name librt is preferred.
3591 for ac_func
in sched_yield
3593 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3594 echo "configure:3595: checking for $ac_func" >&5
3595 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3596 echo $ac_n "(cached) $ac_c" 1>&6
3598 cat > conftest.
$ac_ext <<EOF
3599 #line 3600 "configure"
3600 #include "confdefs.h"
3601 /* System header to define __stub macros and hopefully few prototypes,
3602 which can conflict with char $ac_func(); below. */
3604 /* Override any gcc2 internal prototype to avoid an error. */
3605 /* We use char because int might match the return type of a gcc2
3606 builtin and then its argument prototype would still apply. */
3611 /* The GNU C library defines this for functions which it implements
3612 to always fail with ENOSYS. Some functions are actually named
3613 something starting with __ and the normal name is an alias. */
3614 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
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_func_$ac_func=yes"
3626 echo "configure: failed program was:" >&5
3627 cat conftest.
$ac_ext >&5
3629 eval "ac_cv_func_$ac_func=no"
3634 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3635 echo "$ac_t""yes" 1>&6
3636 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3637 cat >> confdefs.h
<<EOF
3638 #define $ac_tr_func 1
3642 echo "$ac_t""no" 1>&6
3643 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
3644 echo "configure:3645: checking for sched_yield in -lrt" >&5
3645 ac_lib_var
=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
3646 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3647 echo $ac_n "(cached) $ac_c" 1>&6
3649 ac_save_LIBS
="$LIBS"
3651 cat > conftest.
$ac_ext <<EOF
3652 #line 3653 "configure"
3653 #include "confdefs.h"
3654 /* Override any gcc2 internal prototype to avoid an error. */
3655 /* We use char because int might match the return type of a gcc2
3656 builtin and then its argument prototype would still apply. */
3663 if { (eval echo configure
:3664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3665 eval "ac_cv_lib_$ac_lib_var=yes"
3667 echo "configure: failed program was:" >&5
3668 cat conftest.
$ac_ext >&5
3670 eval "ac_cv_lib_$ac_lib_var=no"
3673 LIBS
="$ac_save_LIBS"
3676 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3677 echo "$ac_t""yes" 1>&6
3679 cat >> confdefs.h
<<\EOF
3680 #define HAVE_SCHED_YIELD 1
3683 THREADLIBS
="$THREADLIBS -lrt"
3684 THREADSPEC
="$THREADSPEC -lrt"
3686 echo "$ac_t""no" 1>&6
3688 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
3689 echo "configure:3690: checking for sched_yield in -lposix4" >&5
3690 ac_lib_var
=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
3691 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3692 echo $ac_n "(cached) $ac_c" 1>&6
3694 ac_save_LIBS
="$LIBS"
3695 LIBS
="-lposix4 $LIBS"
3696 cat > conftest.
$ac_ext <<EOF
3697 #line 3698 "configure"
3698 #include "confdefs.h"
3699 /* Override any gcc2 internal prototype to avoid an error. */
3700 /* We use char because int might match the return type of a gcc2
3701 builtin and then its argument prototype would still apply. */
3708 if { (eval echo configure
:3709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3710 eval "ac_cv_lib_$ac_lib_var=yes"
3712 echo "configure: failed program was:" >&5
3713 cat conftest.
$ac_ext >&5
3715 eval "ac_cv_lib_$ac_lib_var=no"
3718 LIBS
="$ac_save_LIBS"
3721 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3722 echo "$ac_t""yes" 1>&6
3724 cat >> confdefs.h
<<\EOF
3725 #define HAVE_SCHED_YIELD 1
3728 THREADLIBS
="$THREADLIBS -lposix4"
3729 THREADSPEC
="$THREADSPEC -lposix4"
3731 echo "$ac_t""no" 1>&6
3741 # We can save a little space at runtime if the mutex has m_count
3742 # or __m_count. This is a nice hack for Linux.
3743 cat > conftest.
$ac_ext <<EOF
3744 #line 3745 "configure"
3745 #include "confdefs.h"
3746 #include <pthread.h>
3749 extern pthread_mutex_t *mutex; int q = mutex->m_count;
3753 if { (eval echo configure
:3754: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3755 cat >> confdefs.h
<<\EOF
3756 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
3760 echo "configure: failed program was:" >&5
3761 cat conftest.
$ac_ext >&5
3764 cat > conftest.
$ac_ext <<EOF
3765 #line 3766 "configure"
3766 #include "confdefs.h"
3767 #include <pthread.h>
3770 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
3774 if { (eval echo configure
:3775: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3776 cat >> confdefs.h
<<\EOF
3777 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
3781 echo "configure: failed program was:" >&5
3782 cat conftest.
$ac_ext >&5
3789 # We require a way to get the time.
3791 for ac_func
in gettimeofday
time ftime
3793 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3794 echo "configure:3795: checking for $ac_func" >&5
3795 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3796 echo $ac_n "(cached) $ac_c" 1>&6
3798 cat > conftest.
$ac_ext <<EOF
3799 #line 3800 "configure"
3800 #include "confdefs.h"
3801 /* System header to define __stub macros and hopefully few prototypes,
3802 which can conflict with char $ac_func(); below. */
3804 /* Override any gcc2 internal prototype to avoid an error. */
3805 /* We use char because int might match the return type of a gcc2
3806 builtin and then its argument prototype would still apply. */
3811 /* The GNU C library defines this for functions which it implements
3812 to always fail with ENOSYS. Some functions are actually named
3813 something starting with __ and the normal name is an alias. */
3814 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3822 if { (eval echo configure
:3823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3824 eval "ac_cv_func_$ac_func=yes"
3826 echo "configure: failed program was:" >&5
3827 cat conftest.
$ac_ext >&5
3829 eval "ac_cv_func_$ac_func=no"
3834 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3835 echo "$ac_t""yes" 1>&6
3836 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3837 cat >> confdefs.h
<<EOF
3838 #define $ac_tr_func 1
3842 echo "$ac_t""no" 1>&6
3846 if test "$time_found" = no
; then
3847 { echo "configure: error: no function found to get the time" 1>&2; exit 1; }
3850 for ac_func
in memmove
3852 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3853 echo "configure:3854: checking for $ac_func" >&5
3854 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3855 echo $ac_n "(cached) $ac_c" 1>&6
3857 cat > conftest.
$ac_ext <<EOF
3858 #line 3859 "configure"
3859 #include "confdefs.h"
3860 /* System header to define __stub macros and hopefully few prototypes,
3861 which can conflict with char $ac_func(); below. */
3863 /* Override any gcc2 internal prototype to avoid an error. */
3864 /* We use char because int might match the return type of a gcc2
3865 builtin and then its argument prototype would still apply. */
3870 /* The GNU C library defines this for functions which it implements
3871 to always fail with ENOSYS. Some functions are actually named
3872 something starting with __ and the normal name is an alias. */
3873 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3881 if { (eval echo configure
:3882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3883 eval "ac_cv_func_$ac_func=yes"
3885 echo "configure: failed program was:" >&5
3886 cat conftest.
$ac_ext >&5
3888 eval "ac_cv_func_$ac_func=no"
3893 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3894 echo "$ac_t""yes" 1>&6
3895 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3896 cat >> confdefs.h
<<EOF
3897 #define $ac_tr_func 1
3901 echo "$ac_t""no" 1>&6
3906 # We require memcpy.
3908 for ac_func
in memcpy
3910 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3911 echo "configure:3912: checking for $ac_func" >&5
3912 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3913 echo $ac_n "(cached) $ac_c" 1>&6
3915 cat > conftest.
$ac_ext <<EOF
3916 #line 3917 "configure"
3917 #include "confdefs.h"
3918 /* System header to define __stub macros and hopefully few prototypes,
3919 which can conflict with char $ac_func(); below. */
3921 /* Override any gcc2 internal prototype to avoid an error. */
3922 /* We use char because int might match the return type of a gcc2
3923 builtin and then its argument prototype would still apply. */
3928 /* The GNU C library defines this for functions which it implements
3929 to always fail with ENOSYS. Some functions are actually named
3930 something starting with __ and the normal name is an alias. */
3931 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3939 if { (eval echo configure
:3940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3941 eval "ac_cv_func_$ac_func=yes"
3943 echo "configure: failed program was:" >&5
3944 cat conftest.
$ac_ext >&5
3946 eval "ac_cv_func_$ac_func=no"
3951 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3952 echo "$ac_t""yes" 1>&6
3953 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3954 cat >> confdefs.h
<<EOF
3955 #define $ac_tr_func 1
3959 echo "$ac_t""no" 1>&6
3963 if test "$memcpy_found" = no
; then
3964 { echo "configure: error: memcpy is required" 1>&2; exit 1; }
3967 # Some library-finding code we stole from Tcl.
3968 #--------------------------------------------------------------------
3969 # Check for the existence of the -lsocket and -lnsl libraries.
3970 # The order here is important, so that they end up in the right
3971 # order in the command line generated by make. Here are some
3972 # special considerations:
3973 # 1. Use "connect" and "accept" to check for -lsocket, and
3974 # "gethostbyname" to check for -lnsl.
3975 # 2. Use each function name only once: can't redo a check because
3976 # autoconf caches the results of the last check and won't redo it.
3977 # 3. Use -lnsl and -lsocket only if they supply procedures that
3978 # aren't already present in the normal libraries. This is because
3979 # IRIX 5.2 has libraries, but they aren't needed and they're
3980 # bogus: they goof up name resolution if used.
3981 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
3982 # To get around this problem, check for both libraries together
3983 # if -lsocket doesn't work by itself.
3984 #--------------------------------------------------------------------
3986 echo $ac_n "checking for socket libraries""... $ac_c" 1>&6
3987 echo "configure:3988: checking for socket libraries" >&5
3988 if eval "test \"`echo '$''{'gcj_cv_lib_sockets'+set}'`\" = set"; then
3989 echo $ac_n "(cached) $ac_c" 1>&6
3993 unset ac_cv_func_connect
3994 echo $ac_n "checking for connect""... $ac_c" 1>&6
3995 echo "configure:3996: checking for connect" >&5
3996 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3997 echo $ac_n "(cached) $ac_c" 1>&6
3999 cat > conftest.
$ac_ext <<EOF
4000 #line 4001 "configure"
4001 #include "confdefs.h"
4002 /* System header to define __stub macros and hopefully few prototypes,
4003 which can conflict with char connect(); below. */
4005 /* Override any gcc2 internal prototype to avoid an error. */
4006 /* We use char because int might match the return type of a gcc2
4007 builtin and then its argument prototype would still apply. */
4012 /* The GNU C library defines this for functions which it implements
4013 to always fail with ENOSYS. Some functions are actually named
4014 something starting with __ and the normal name is an alias. */
4015 #if defined (__stub_connect) || defined (__stub___connect)
4023 if { (eval echo configure
:4024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4025 eval "ac_cv_func_connect=yes"
4027 echo "configure: failed program was:" >&5
4028 cat conftest.
$ac_ext >&5
4030 eval "ac_cv_func_connect=no"
4035 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
4036 echo "$ac_t""yes" 1>&6
4039 echo "$ac_t""no" 1>&6
4043 if test "$gcj_checkSocket" = 1; then
4044 unset ac_cv_func_connect
4045 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4046 echo "configure:4047: checking for main in -lsocket" >&5
4047 ac_lib_var
=`echo socket'_'main | sed 'y%./+-%__p_%'`
4048 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4049 echo $ac_n "(cached) $ac_c" 1>&6
4051 ac_save_LIBS
="$LIBS"
4052 LIBS
="-lsocket $LIBS"
4053 cat > conftest.
$ac_ext <<EOF
4054 #line 4055 "configure"
4055 #include "confdefs.h"
4061 if { (eval echo configure
:4062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4063 eval "ac_cv_lib_$ac_lib_var=yes"
4065 echo "configure: failed program was:" >&5
4066 cat conftest.
$ac_ext >&5
4068 eval "ac_cv_lib_$ac_lib_var=no"
4071 LIBS
="$ac_save_LIBS"
4074 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4075 echo "$ac_t""yes" 1>&6
4076 gcj_cv_lib_sockets
="-lsocket"
4078 echo "$ac_t""no" 1>&6
4083 if test "$gcj_checkBoth" = 1; then
4085 LIBS
="$LIBS -lsocket -lnsl"
4086 unset ac_cv_func_accept
4087 echo $ac_n "checking for accept""... $ac_c" 1>&6
4088 echo "configure:4089: checking for accept" >&5
4089 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
4090 echo $ac_n "(cached) $ac_c" 1>&6
4092 cat > conftest.
$ac_ext <<EOF
4093 #line 4094 "configure"
4094 #include "confdefs.h"
4095 /* System header to define __stub macros and hopefully few prototypes,
4096 which can conflict with char accept(); below. */
4098 /* Override any gcc2 internal prototype to avoid an error. */
4099 /* We use char because int might match the return type of a gcc2
4100 builtin and then its argument prototype would still apply. */
4105 /* The GNU C library defines this for functions which it implements
4106 to always fail with ENOSYS. Some functions are actually named
4107 something starting with __ and the normal name is an alias. */
4108 #if defined (__stub_accept) || defined (__stub___accept)
4116 if { (eval echo configure
:4117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4118 eval "ac_cv_func_accept=yes"
4120 echo "configure: failed program was:" >&5
4121 cat conftest.
$ac_ext >&5
4123 eval "ac_cv_func_accept=no"
4128 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
4129 echo "$ac_t""yes" 1>&6
4131 gcj_cv_lib_sockets
="-lsocket -lnsl"
4133 echo "$ac_t""no" 1>&6
4136 unset ac_cv_func_accept
4139 unset ac_cv_func_gethostbyname
4141 LIBS
="$LIBS $gcj_cv_lib_sockets"
4142 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4143 echo "configure:4144: checking for gethostbyname" >&5
4144 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
4145 echo $ac_n "(cached) $ac_c" 1>&6
4147 cat > conftest.
$ac_ext <<EOF
4148 #line 4149 "configure"
4149 #include "confdefs.h"
4150 /* System header to define __stub macros and hopefully few prototypes,
4151 which can conflict with char gethostbyname(); below. */
4153 /* Override any gcc2 internal prototype to avoid an error. */
4154 /* We use char because int might match the return type of a gcc2
4155 builtin and then its argument prototype would still apply. */
4156 char gethostbyname();
4160 /* The GNU C library defines this for functions which it implements
4161 to always fail with ENOSYS. Some functions are actually named
4162 something starting with __ and the normal name is an alias. */
4163 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4171 if { (eval echo configure
:4172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4173 eval "ac_cv_func_gethostbyname=yes"
4175 echo "configure: failed program was:" >&5
4176 cat conftest.
$ac_ext >&5
4178 eval "ac_cv_func_gethostbyname=no"
4183 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
4184 echo "$ac_t""yes" 1>&6
4187 echo "$ac_t""no" 1>&6
4188 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
4189 echo "configure:4190: checking for main in -lnsl" >&5
4190 ac_lib_var
=`echo nsl'_'main | sed 'y%./+-%__p_%'`
4191 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4192 echo $ac_n "(cached) $ac_c" 1>&6
4194 ac_save_LIBS
="$LIBS"
4196 cat > conftest.
$ac_ext <<EOF
4197 #line 4198 "configure"
4198 #include "confdefs.h"
4204 if { (eval echo configure
:4205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4206 eval "ac_cv_lib_$ac_lib_var=yes"
4208 echo "configure: failed program was:" >&5
4209 cat conftest.
$ac_ext >&5
4211 eval "ac_cv_lib_$ac_lib_var=no"
4214 LIBS
="$ac_save_LIBS"
4217 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4218 echo "$ac_t""yes" 1>&6
4219 gcj_cv_lib_sockets
="$gcj_cv_lib_sockets -lnsl"
4221 echo "$ac_t""no" 1>&6
4226 unset ac_cv_func_gethostbyname
4231 echo "$ac_t""$gcj_cv_lib_sockets" 1>&6
4232 SYSTEMSPEC
="$SYSTEMSPEC $gcj_cv_lib_sockets"
4234 if test "$with_system_zlib" = yes; then
4235 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
4236 echo "configure:4237: checking for deflate in -lz" >&5
4237 ac_lib_var
=`echo z'_'deflate | sed 'y%./+-%__p_%'`
4238 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4239 echo $ac_n "(cached) $ac_c" 1>&6
4241 ac_save_LIBS
="$LIBS"
4243 cat > conftest.
$ac_ext <<EOF
4244 #line 4245 "configure"
4245 #include "confdefs.h"
4246 /* Override any gcc2 internal prototype to avoid an error. */
4247 /* We use char because int might match the return type of a gcc2
4248 builtin and then its argument prototype would still apply. */
4255 if { (eval echo configure
:4256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4257 eval "ac_cv_lib_$ac_lib_var=yes"
4259 echo "configure: failed program was:" >&5
4260 cat conftest.
$ac_ext >&5
4262 eval "ac_cv_lib_$ac_lib_var=no"
4265 LIBS
="$ac_save_LIBS"
4268 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4269 echo "$ac_t""yes" 1>&6
4272 echo "$ac_t""no" 1>&6
4280 # On Solaris, and maybe other architectures, the Boehm collector
4282 if test "$GC" = boehm
; then
4283 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
4284 echo "configure:4285: checking for main in -ldl" >&5
4285 ac_lib_var
=`echo dl'_'main | sed 'y%./+-%__p_%'`
4286 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4287 echo $ac_n "(cached) $ac_c" 1>&6
4289 ac_save_LIBS
="$LIBS"
4291 cat > conftest.
$ac_ext <<EOF
4292 #line 4293 "configure"
4293 #include "confdefs.h"
4299 if { (eval echo configure
:4300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4301 eval "ac_cv_lib_$ac_lib_var=yes"
4303 echo "configure: failed program was:" >&5
4304 cat conftest.
$ac_ext >&5
4306 eval "ac_cv_lib_$ac_lib_var=no"
4309 LIBS
="$ac_save_LIBS"
4312 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4313 echo "$ac_t""yes" 1>&6
4314 SYSTEMSPEC
="$SYSTEMSPEC -ldl"
4316 echo "$ac_t""no" 1>&6
4321 if test -d "$libgcj_basedir/../gcc/java"; then
4333 if test "x$ZLIBSPEC" = "x-lzgcj"; then
4334 # We include the path to the zlib build directory.
4335 # See Makefile.am to understand why.
4336 ZDEPS
='$(top_builddir)/../zlib/libzgcj.la'
4337 ZLIBS
="$ZDEPS -L\$(here)/../zlib/$libsubdir"
4338 ZINCS
='-I$(top_srcdir)/../zlib'
4349 if test "$CANADIAN" = yes; then
4358 if test "$NULL_TARGET" = yes; then
4360 NULL_TARGET_FALSE
='#'
4362 NULL_TARGET_TRUE
='#'
4367 if test "$NATIVE" = yes ||
test "$NULL_TARGET" = yes; then
4376 if test -z "$with_cross_host"; then
4378 USE_LIBDIR_FALSE
='#'
4385 # Determine gcj version number.
4386 if test "$GCJ" = ""; then
4387 if test -z "${with_multisubdir}"; then
4391 builddotdot
=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
4394 dir
="`cd ${builddotdot}/../../gcc && pwd`"
4395 GCJ
="$dir/gcj -B$dir/"
4398 gcjvers
="`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`"
4400 cat >> confdefs.h
<<EOF
4401 #define GCJVERSION "$gcjvers"
4405 # See if gcj supports -fuse-divide-subroutine. gcc 2.95 does not, and
4406 # we want to continue to support that version.
4407 echo $ac_n "checking whether gcj supports -fuse-divide-subroutine""... $ac_c" 1>&6
4408 echo "configure:4409: checking whether gcj supports -fuse-divide-subroutine" >&5
4409 cat > conftest.java
<< 'END'
4410 public class conftest
{ }
4413 $GCJ -classpath $srcdir -fuse-divide-subroutine -fsyntax-only \
4414 conftest.java
> /dev
/null
2>&1 \
4417 if test "$use_fuse" = no
; then
4420 echo "$ac_t""$use_fuse" 1>&6
4424 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
4426 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4427 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4428 echo "configure:4429: checking for $ac_hdr" >&5
4429 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4430 echo $ac_n "(cached) $ac_c" 1>&6
4432 cat > conftest.
$ac_ext <<EOF
4433 #line 4434 "configure"
4434 #include "confdefs.h"
4437 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4438 { (eval echo configure
:4439: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4439 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4440 if test -z "$ac_err"; then
4442 eval "ac_cv_header_$ac_safe=yes"
4445 echo "configure: failed program was:" >&5
4446 cat conftest.
$ac_ext >&5
4448 eval "ac_cv_header_$ac_safe=no"
4452 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4453 echo "$ac_t""yes" 1>&6
4454 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4455 cat >> confdefs.h
<<EOF
4456 #define $ac_tr_hdr 1
4460 echo "$ac_t""no" 1>&6
4464 for ac_hdr
in dirent.h
4466 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4467 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4468 echo "configure:4469: checking for $ac_hdr" >&5
4469 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4470 echo $ac_n "(cached) $ac_c" 1>&6
4472 cat > conftest.
$ac_ext <<EOF
4473 #line 4474 "configure"
4474 #include "confdefs.h"
4477 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4478 { (eval echo configure
:4479: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4479 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4480 if test -z "$ac_err"; then
4482 eval "ac_cv_header_$ac_safe=yes"
4485 echo "configure: failed program was:" >&5
4486 cat conftest.
$ac_ext >&5
4488 eval "ac_cv_header_$ac_safe=no"
4492 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4493 echo "$ac_t""yes" 1>&6
4494 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4495 cat >> confdefs.h
<<EOF
4496 #define $ac_tr_hdr 1
4500 echo "$ac_t""no" 1>&6
4505 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4506 echo "configure:4507: checking for ANSI C header files" >&5
4507 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
4508 echo $ac_n "(cached) $ac_c" 1>&6
4510 cat > conftest.
$ac_ext <<EOF
4511 #line 4512 "configure"
4512 #include "confdefs.h"
4518 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4519 { (eval echo configure
:4520: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4520 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4521 if test -z "$ac_err"; then
4523 ac_cv_header_stdc
=yes
4526 echo "configure: failed program was:" >&5
4527 cat conftest.
$ac_ext >&5
4529 ac_cv_header_stdc
=no
4533 if test $ac_cv_header_stdc = yes; then
4534 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4535 cat > conftest.
$ac_ext <<EOF
4536 #line 4537 "configure"
4537 #include "confdefs.h"
4540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4541 egrep "memchr" >/dev
/null
2>&1; then
4545 ac_cv_header_stdc
=no
4551 if test $ac_cv_header_stdc = yes; then
4552 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4553 cat > conftest.
$ac_ext <<EOF
4554 #line 4555 "configure"
4555 #include "confdefs.h"
4558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4559 egrep "free" >/dev
/null
2>&1; then
4563 ac_cv_header_stdc
=no
4569 if test $ac_cv_header_stdc = yes; then
4570 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4571 if test "$cross_compiling" = yes; then
4574 cat > conftest.
$ac_ext <<EOF
4575 #line 4576 "configure"
4576 #include "confdefs.h"
4578 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4579 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4580 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4581 int main () { int i; for (i = 0; i < 256; i++)
4582 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4586 if { (eval echo configure
:4587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4590 echo "configure: failed program was:" >&5
4591 cat conftest.
$ac_ext >&5
4593 ac_cv_header_stdc
=no
4601 echo "$ac_t""$ac_cv_header_stdc" 1>&6
4602 if test $ac_cv_header_stdc = yes; then
4603 cat >> confdefs.h
<<\EOF
4604 #define STDC_HEADERS 1
4609 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
4610 echo "configure:4611: checking for ssize_t" >&5
4611 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
4612 echo $ac_n "(cached) $ac_c" 1>&6
4614 cat > conftest.
$ac_ext <<EOF
4615 #line 4616 "configure"
4616 #include "confdefs.h"
4617 #include <sys/types.h>
4623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4624 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
4626 ac_cv_type_ssize_t
=yes
4629 ac_cv_type_ssize_t
=no
4634 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
4635 if test $ac_cv_type_ssize_t = no
; then
4636 cat >> confdefs.h
<<\EOF
4643 echo $ac_n "checking for in_addr_t""... $ac_c" 1>&6
4644 echo "configure:4645: checking for in_addr_t" >&5
4645 cat > conftest.
$ac_ext <<EOF
4646 #line 4647 "configure"
4647 #include "confdefs.h"
4648 #include <sys/types.h>
4653 #if HAVE_NETINET_IN_H
4654 #include <netinet/in.h>
4660 if { (eval echo configure
:4661: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4662 cat >> confdefs.h
<<\EOF
4663 #define HAVE_IN_ADDR_T 1
4666 echo "$ac_t""yes" 1>&6
4668 echo "configure: failed program was:" >&5
4669 cat conftest.
$ac_ext >&5
4671 echo "$ac_t""no" 1>&6
4675 echo $ac_n "checking whether struct ip_mreq is in netinet/in.h""... $ac_c" 1>&6
4676 echo "configure:4677: checking whether struct ip_mreq is in netinet/in.h" >&5
4677 cat > conftest.
$ac_ext <<EOF
4678 #line 4679 "configure"
4679 #include "confdefs.h"
4680 #include <netinet/in.h>
4682 struct ip_mreq mreq;
4685 if { (eval echo configure
:4686: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4687 cat >> confdefs.h
<<\EOF
4688 #define HAVE_STRUCT_IP_MREQ 1
4691 echo "$ac_t""yes" 1>&6
4693 echo "configure: failed program was:" >&5
4694 cat conftest.
$ac_ext >&5
4696 echo "$ac_t""no" 1>&6
4700 echo $ac_n "checking whether struct sockaddr_in6 is in netinet/in.h""... $ac_c" 1>&6
4701 echo "configure:4702: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
4702 cat > conftest.
$ac_ext <<EOF
4703 #line 4704 "configure"
4704 #include "confdefs.h"
4705 #include <netinet/in.h>
4707 struct sockaddr_in6 addr6;
4710 if { (eval echo configure
:4711: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4712 cat >> confdefs.h
<<\EOF
4713 #define HAVE_INET6 1
4716 echo "$ac_t""yes" 1>&6
4718 echo "configure: failed program was:" >&5
4719 cat conftest.
$ac_ext >&5
4721 echo "$ac_t""no" 1>&6
4725 echo $ac_n "checking for socklen_t in sys/socket.h""... $ac_c" 1>&6
4726 echo "configure:4727: checking for socklen_t in sys/socket.h" >&5
4727 cat > conftest.
$ac_ext <<EOF
4728 #line 4729 "configure"
4729 #include "confdefs.h"
4730 #include <sys/socket.h>
4735 if { (eval echo configure
:4736: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4737 cat >> confdefs.h
<<\EOF
4738 #define HAVE_SOCKLEN_T 1
4741 echo "$ac_t""yes" 1>&6
4743 echo "configure: failed program was:" >&5
4744 cat conftest.
$ac_ext >&5
4746 echo "$ac_t""no" 1>&6
4750 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
4751 echo "configure:4752: checking for tm_gmtoff in struct tm" >&5
4752 cat > conftest.
$ac_ext <<EOF
4753 #line 4754 "configure"
4754 #include "confdefs.h"
4757 struct tm tim; tim.tm_gmtoff = 0;
4760 if { (eval echo configure
:4761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4762 cat >> confdefs.h
<<\EOF
4763 #define STRUCT_TM_HAS_GMTOFF 1
4766 echo "$ac_t""yes" 1>&6
4768 echo "configure: failed program was:" >&5
4769 cat conftest.
$ac_ext >&5
4771 echo "$ac_t""no" 1>&6
4772 echo $ac_n "checking for global timezone variable""... $ac_c" 1>&6
4773 echo "configure:4774: checking for global timezone variable" >&5
4774 cat > conftest.
$ac_ext <<EOF
4775 #line 4776 "configure"
4776 #include "confdefs.h"
4782 if { (eval echo configure
:4783: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4784 cat >> confdefs.h
<<\EOF
4785 #define HAVE_TIMEZONE 1
4788 echo "$ac_t""yes" 1>&6
4790 echo "configure: failed program was:" >&5
4791 cat conftest.
$ac_ext >&5
4793 echo "$ac_t""no" 1>&6
4799 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4800 # for constant arguments. Useless!
4801 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4802 echo "configure:4803: checking for working alloca.h" >&5
4803 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4804 echo $ac_n "(cached) $ac_c" 1>&6
4806 cat > conftest.
$ac_ext <<EOF
4807 #line 4808 "configure"
4808 #include "confdefs.h"
4811 char *p = alloca(2 * sizeof(int));
4814 if { (eval echo configure
:4815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4816 ac_cv_header_alloca_h
=yes
4818 echo "configure: failed program was:" >&5
4819 cat conftest.
$ac_ext >&5
4821 ac_cv_header_alloca_h
=no
4826 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4827 if test $ac_cv_header_alloca_h = yes; then
4828 cat >> confdefs.h
<<\EOF
4829 #define HAVE_ALLOCA_H 1
4834 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4835 echo "configure:4836: checking for alloca" >&5
4836 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4837 echo $ac_n "(cached) $ac_c" 1>&6
4839 cat > conftest.
$ac_ext <<EOF
4840 #line 4841 "configure"
4841 #include "confdefs.h"
4844 # define alloca __builtin_alloca
4847 # include <malloc.h>
4848 # define alloca _alloca
4851 # include <alloca.h>
4856 # ifndef alloca /* predefined by HP cc +Olibcalls */
4865 char *p = (char *) alloca(1);
4868 if { (eval echo configure
:4869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4870 ac_cv_func_alloca_works
=yes
4872 echo "configure: failed program was:" >&5
4873 cat conftest.
$ac_ext >&5
4875 ac_cv_func_alloca_works
=no
4880 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4881 if test $ac_cv_func_alloca_works = yes; then
4882 cat >> confdefs.h
<<\EOF
4883 #define HAVE_ALLOCA 1
4888 if test $ac_cv_func_alloca_works = no
; then
4889 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4890 # that cause trouble. Some versions do not even contain alloca or
4891 # contain a buggy version. If you still want to use their alloca,
4892 # use ar to extract alloca.o from them instead of compiling alloca.c.
4893 ALLOCA
=alloca.
${ac_objext}
4894 cat >> confdefs.h
<<\EOF
4899 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4900 echo "configure:4901: checking whether alloca needs Cray hooks" >&5
4901 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4902 echo $ac_n "(cached) $ac_c" 1>&6
4904 cat > conftest.
$ac_ext <<EOF
4905 #line 4906 "configure"
4906 #include "confdefs.h"
4907 #if defined(CRAY) && ! defined(CRAY2)
4914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4915 egrep "webecray" >/dev
/null
2>&1; then
4926 echo "$ac_t""$ac_cv_os_cray" 1>&6
4927 if test $ac_cv_os_cray = yes; then
4928 for ac_func
in _getb67 GETB67 getb67
; do
4929 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4930 echo "configure:4931: checking for $ac_func" >&5
4931 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4932 echo $ac_n "(cached) $ac_c" 1>&6
4934 cat > conftest.
$ac_ext <<EOF
4935 #line 4936 "configure"
4936 #include "confdefs.h"
4937 /* System header to define __stub macros and hopefully few prototypes,
4938 which can conflict with char $ac_func(); below. */
4940 /* Override any gcc2 internal prototype to avoid an error. */
4941 /* We use char because int might match the return type of a gcc2
4942 builtin and then its argument prototype would still apply. */
4947 /* The GNU C library defines this for functions which it implements
4948 to always fail with ENOSYS. Some functions are actually named
4949 something starting with __ and the normal name is an alias. */
4950 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4958 if { (eval echo configure
:4959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4960 eval "ac_cv_func_$ac_func=yes"
4962 echo "configure: failed program was:" >&5
4963 cat conftest.
$ac_ext >&5
4965 eval "ac_cv_func_$ac_func=no"
4970 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4971 echo "$ac_t""yes" 1>&6
4972 cat >> confdefs.h
<<EOF
4973 #define CRAY_STACKSEG_END $ac_func
4978 echo "$ac_t""no" 1>&6
4984 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4985 echo "configure:4986: checking stack direction for C alloca" >&5
4986 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4987 echo $ac_n "(cached) $ac_c" 1>&6
4989 if test "$cross_compiling" = yes; then
4990 ac_cv_c_stack_direction
=0
4992 cat > conftest.
$ac_ext <<EOF
4993 #line 4994 "configure"
4994 #include "confdefs.h"
4995 find_stack_direction ()
4997 static char *addr = 0;
5002 return find_stack_direction ();
5005 return (&dummy > addr) ? 1 : -1;
5009 exit (find_stack_direction() < 0);
5012 if { (eval echo configure
:5013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5014 ac_cv_c_stack_direction
=1
5016 echo "configure: failed program was:" >&5
5017 cat conftest.
$ac_ext >&5
5019 ac_cv_c_stack_direction
=-1
5026 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5027 cat >> confdefs.h
<<EOF
5028 #define STACK_DIRECTION $ac_cv_c_stack_direction
5036 # Extract the first word of "$ac_prog", so it can be a program name with args.
5037 set dummy
$ac_prog; ac_word
=$2
5038 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5039 echo "configure:5040: checking for $ac_word" >&5
5040 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
5041 echo $ac_n "(cached) $ac_c" 1>&6
5043 if test -n "$PERL"; then
5044 ac_cv_prog_PERL
="$PERL" # Let the user override the test.
5046 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5048 for ac_dir
in $ac_dummy; do
5049 test -z "$ac_dir" && ac_dir
=.
5050 if test -f $ac_dir/$ac_word; then
5051 ac_cv_prog_PERL
="$ac_prog"
5058 PERL
="$ac_cv_prog_PERL"
5059 if test -n "$PERL"; then
5060 echo "$ac_t""$PERL" 1>&6
5062 echo "$ac_t""no" 1>&6
5065 test -n "$PERL" && break
5067 test -n "$PERL" || PERL
="false"
5072 SIGNAL_HANDLER
=include
/i386-signal.h
5075 SIGNAL_HANDLER
=include
/sparc-signal.h
5078 SIGNAL_HANDLER
=include
/default-signal.h
5084 if test "${multilib}" = "yes"; then
5085 multilib_arg
="--enable-multilib"
5094 cat > confcache
<<\EOF
5095 # This file is a shell script that caches the results of configure
5096 # tests run on this system so they can be shared between configure
5097 # scripts and configure runs. It is not useful on other systems.
5098 # If it contains results you don't want to keep, you may remove or edit it.
5100 # By default, configure uses ./config.cache as the cache file,
5101 # creating it if it does not exist already. You can give configure
5102 # the --cache-file=FILE option to use a different cache file; that is
5103 # what configure does when it calls configure scripts in
5104 # subdirectories, so they share the cache.
5105 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5106 # config.status only pays attention to the cache file if you give it the
5107 # --recheck option to rerun configure.
5110 # The following way of writing the cache mishandles newlines in values,
5111 # but we know of no workaround that is simple, portable, and efficient.
5112 # So, don't put newlines in cache variables' values.
5113 # Ultrix sh set writes to stderr and can't be redirected directly,
5114 # and sets the high bit in the cache file unless we assign to the vars.
5116 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5118 # `set' does not quote correctly, so add quotes (double-quote substitution
5119 # turns \\\\ into \\, and sed turns \\ into \).
5121 -e "s/'/'\\\\''/g" \
5122 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5125 # `set' quotes correctly as required by POSIX, so do not add quotes.
5126 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5129 if cmp -s $cache_file confcache
; then
5132 if test -w $cache_file; then
5133 echo "updating cache $cache_file"
5134 cat confcache
> $cache_file
5136 echo "not updating unwritable cache $cache_file"
5141 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5143 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5144 # Let make expand exec_prefix.
5145 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5147 # Any assignment to VPATH causes Sun make to only execute
5148 # the first set of double-colon rules, so remove it if not needed.
5149 # If there is a colon in the path, we need to keep it.
5150 if test "x$srcdir" = x.
; then
5151 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
5154 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5156 DEFS
=-DHAVE_CONFIG_H
5158 # Without the "./", some shells look in PATH for config.status.
5159 : ${CONFIG_STATUS=./config.status}
5161 echo creating
$CONFIG_STATUS
5162 rm -f $CONFIG_STATUS
5163 cat > $CONFIG_STATUS <<EOF
5165 # Generated automatically by configure.
5166 # Run this file to recreate the current configuration.
5167 # This directory was configured as follows,
5168 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5170 # $0 $ac_configure_args
5172 # Compiler output produced by configure, useful for debugging
5173 # configure, is in ./config.log if it exists.
5175 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5178 case "\$ac_option" in
5179 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5180 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5181 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5182 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5183 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5185 -help | --help | --hel | --he | --h)
5186 echo "\$ac_cs_usage"; exit 0 ;;
5187 *) echo "\$ac_cs_usage"; exit 1 ;;
5191 ac_given_srcdir=$srcdir
5192 ac_given_INSTALL="$INSTALL"
5194 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
5196 cat >> $CONFIG_STATUS <<EOF
5198 # Protect against being on the right side of a sed subst in config.status.
5199 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5200 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5204 s%@CFLAGS@%$CFLAGS%g
5205 s%@CPPFLAGS@%$CPPFLAGS%g
5206 s%@CXXFLAGS@%$CXXFLAGS%g
5207 s%@FFLAGS@%$FFLAGS%g
5209 s%@LDFLAGS@%$LDFLAGS%g
5211 s%@exec_prefix@%$exec_prefix%g
5212 s%@prefix@%$prefix%g
5213 s%@program_transform_name@%$program_transform_name%g
5214 s%@bindir@%$bindir%g
5215 s%@sbindir@%$sbindir%g
5216 s%@libexecdir@%$libexecdir%g
5217 s%@datadir@%$datadir%g
5218 s%@sysconfdir@%$sysconfdir%g
5219 s%@sharedstatedir@%$sharedstatedir%g
5220 s%@localstatedir@%$localstatedir%g
5221 s%@libdir@%$libdir%g
5222 s%@includedir@%$includedir%g
5223 s%@oldincludedir@%$oldincludedir%g
5224 s%@infodir@%$infodir%g
5225 s%@mandir@%$mandir%g
5227 s%@host_alias@%$host_alias%g
5228 s%@host_cpu@%$host_cpu%g
5229 s%@host_vendor@%$host_vendor%g
5230 s%@host_os@%$host_os%g
5231 s%@target@%$target%g
5232 s%@target_alias@%$target_alias%g
5233 s%@target_cpu@%$target_cpu%g
5234 s%@target_vendor@%$target_vendor%g
5235 s%@target_os@%$target_os%g
5237 s%@build_alias@%$build_alias%g
5238 s%@build_cpu@%$build_cpu%g
5239 s%@build_vendor@%$build_vendor%g
5240 s%@build_os@%$build_os%g
5241 s%@libgcj_basedir@%$libgcj_basedir%g
5242 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5243 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5244 s%@INSTALL_DATA@%$INSTALL_DATA%g
5245 s%@PACKAGE@%$PACKAGE%g
5246 s%@VERSION@%$VERSION%g
5247 s%@ACLOCAL@%$ACLOCAL%g
5248 s%@AUTOCONF@%$AUTOCONF%g
5249 s%@AUTOMAKE@%$AUTOMAKE%g
5250 s%@AUTOHEADER@%$AUTOHEADER%g
5251 s%@MAKEINFO@%$MAKEINFO%g
5252 s%@SET_MAKE@%$SET_MAKE%g
5257 s%@RANLIB@%$RANLIB%g
5258 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
5259 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
5261 s%@EXEEXT@%$EXEEXT%g
5262 s%@LIBGCJ_CFLAGS@%$LIBGCJ_CFLAGS%g
5263 s%@LIBGCJ_CXXFLAGS@%$LIBGCJ_CXXFLAGS%g
5264 s%@LIBGCJ_JAVAFLAGS@%$LIBGCJ_JAVAFLAGS%g
5267 s%@USE_SYMBOL_UNDERSCORE@%$USE_SYMBOL_UNDERSCORE%g
5269 s%@DLLTOOL@%$DLLTOOL%g
5270 s%@LIBTOOL@%$LIBTOOL%g
5271 s%@COMPPATH@%$COMPPATH%g
5272 s%@TESTSUBDIR_TRUE@%$TESTSUBDIR_TRUE%g
5273 s%@TESTSUBDIR_FALSE@%$TESTSUBDIR_FALSE%g
5275 s%@SYSTEMSPEC@%$SYSTEMSPEC%g
5276 s%@ZLIBSPEC@%$ZLIBSPEC%g
5277 s%@GCLIBS@%$GCLIBS%g
5278 s%@GCINCS@%$GCINCS%g
5279 s%@GCDEPS@%$GCDEPS%g
5280 s%@GCOBJS@%$GCOBJS%g
5281 s%@GCSPEC@%$GCSPEC%g
5282 s%@THREADLIBS@%$THREADLIBS%g
5283 s%@THREADINCS@%$THREADINCS%g
5284 s%@THREADDEPS@%$THREADDEPS%g
5285 s%@THREADOBJS@%$THREADOBJS%g
5286 s%@THREADSPEC@%$THREADSPEC%g
5287 s%@USING_GCC_TRUE@%$USING_GCC_TRUE%g
5288 s%@USING_GCC_FALSE@%$USING_GCC_FALSE%g
5292 s%@DIVIDESPEC@%$DIVIDESPEC%g
5293 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
5294 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
5295 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
5296 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
5297 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
5298 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
5299 s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
5300 s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
5301 s%@EH_COMMON_INCLUDE@%$EH_COMMON_INCLUDE%g
5302 s%@AM_RUNTESTFLAGS@%$AM_RUNTESTFLAGS%g
5303 s%@ALLOCA@%$ALLOCA%g
5310 cat >> $CONFIG_STATUS <<\EOF
5312 # Split the substitutions into bite-sized pieces for seds with
5313 # small command number limits, like on Digital OSF/1 and HP-UX.
5314 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5315 ac_file
=1 # Number of current file.
5316 ac_beg
=1 # First line for current file.
5317 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5320 while $ac_more_lines; do
5321 if test $ac_beg -gt 1; then
5322 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5324 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5326 if test ! -s conftest.s
$ac_file; then
5328 rm -f conftest.s
$ac_file
5330 if test -z "$ac_sed_cmds"; then
5331 ac_sed_cmds
="sed -f conftest.s$ac_file"
5333 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5335 ac_file
=`expr $ac_file + 1`
5337 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5340 if test -z "$ac_sed_cmds"; then
5345 cat >> $CONFIG_STATUS <<EOF
5347 CONFIG_FILES=\${CONFIG_FILES-"Makefile libgcj.spec gcj/Makefile include/Makefile testsuite/Makefile"}
5349 cat >> $CONFIG_STATUS <<\EOF
5350 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5351 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5353 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5354 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5355 *) ac_file_in
="${ac_file}.in" ;;
5358 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5360 # Remove last slash and all that follows it. Not all systems have dirname.
5361 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5362 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5363 # The file is in a subdirectory.
5364 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5365 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5366 # A "../" for each directory in $ac_dir_suffix.
5367 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5369 ac_dir_suffix
= ac_dots
=
5372 case "$ac_given_srcdir" in
5374 if test -z "$ac_dots"; then top_srcdir
=.
5375 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5376 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5378 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5379 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5382 case "$ac_given_INSTALL" in
5383 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
5384 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
5387 echo creating
"$ac_file"
5389 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5391 *Makefile
*) ac_comsub
="1i\\
5392 # $configure_input" ;;
5396 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5398 s%@configure_input@%$configure_input%g
5399 s%@srcdir@%$srcdir%g
5400 s%@top_srcdir@%$top_srcdir%g
5401 s%@INSTALL@%$INSTALL%g
5402 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5406 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5407 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5409 # ac_d sets the value in "#define NAME VALUE" lines.
5410 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5411 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
5414 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5415 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5416 ac_uB
='\([ ]\)%\1#\2define\3'
5419 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5420 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5421 ac_eB
='$%\1#\2define\3'
5425 if test "${CONFIG_HEADERS+set}" != set; then
5427 cat >> $CONFIG_STATUS <<EOF
5428 CONFIG_HEADERS="include/config.h"
5430 cat >> $CONFIG_STATUS <<\EOF
5432 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
5433 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5435 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5436 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5437 *) ac_file_in
="${ac_file}.in" ;;
5440 echo creating
$ac_file
5442 rm -f conftest.frag conftest.
in conftest.out
5443 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5444 cat $ac_file_inputs > conftest.
in
5448 # Transform confdefs.h into a sed script conftest.vals that substitutes
5449 # the proper values into config.h.in to produce config.h. And first:
5450 # Protect against being on the right side of a sed subst in config.status.
5451 # Protect against being in an unquoted here document in config.status.
5453 cat > conftest.hdr
<<\EOF
5456 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5460 sed -n -f conftest.hdr confdefs.h > conftest.vals
5463 # This sed command replaces #undef with comments. This is necessary, for
5464 # example, in the case of _POSIX_SOURCE, which is predefined and required
5465 # on some systems where configure will not decide to define it.
5466 cat >> conftest.vals <<\EOF
5467 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5470 # Break up conftest.vals because some shells have a limit on
5471 # the size of here documents, and old seds have small limits too.
5476 ac_lines=`grep -c . conftest.vals
`
5477 # grep -c gives empty output for an empty file on some AIX systems.
5478 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5479 # Write a limited-size here document to conftest.frag.
5480 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5481 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5483 sed -f conftest.frag conftest.in > conftest.out
5485 mv conftest.out conftest.in
5487 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5489 mv conftest.tail conftest.vals
5493 cat >> $CONFIG_STATUS <<\EOF
5494 rm -f conftest.frag conftest.h
5495 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5496 cat conftest.in >> conftest.h
5498 if cmp -s $ac_file conftest.h 2>/dev/null; then
5499 echo "$ac_file is unchanged"
5502 # Remove last slash and all that follows it. Not all systems have dirname.
5503 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
5504 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5505 # The file is in a subdirectory.
5506 test ! -d "$ac_dir" && mkdir "$ac_dir"
5509 mv conftest.h $ac_file
5515 cat >> $CONFIG_STATUS <<EOF
5516 ac_sources="java/io/$FILE_DESCRIPTOR java/lang/${PROCESS}Process.java java/lang/nat${PROCESS}Process.cc include/$GCHDR include/$THREADH $SIGNAL_HANDLER"
5517 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"
5520 cat >> $CONFIG_STATUS <<\EOF
5521 srcdir=$ac_given_srcdir
5522 while test -n "$ac_sources"; do
5523 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
5524 set $ac_sources; ac_source=$1; shift; ac_sources=$*
5526 echo "linking $srcdir/$ac_source to $ac_dest"
5528 if test ! -r $srcdir/$ac_source; then
5529 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
5533 # Make relative symlinks.
5534 # Remove last slash and all that follows it. Not all systems have dirname.
5535 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
5536 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
5537 # The dest file is in a subdirectory.
5538 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
5539 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
5540 # A "../" for each directory in $ac_dest_dir_suffix.
5541 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
5543 ac_dest_dir_suffix= ac_dots=
5547 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
5548 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
5551 # Make a symlink if possible; otherwise try a hard link.
5552 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
5553 ln $srcdir/$ac_source $ac_dest; then :
5555 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
5559 cat >> $CONFIG_STATUS <<EOF
5564 with_multisubdir=${with_multisubdir}
5565 ac_configure_args="${multilib_arg} ${ac_configure_args}"
5566 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
5567 libgcj_basedir=${libgcj_basedir}
5572 cat >> $CONFIG_STATUS <<\EOF
5573 test -z "$CONFIG_HEADERS" || echo timestamp > include/stamp-h
5574 if test -n "$CONFIG_FILES"; then
5575 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
5579 chmod +x $CONFIG_STATUS
5580 rm -fr confdefs* $ac_clean_files
5581 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1