3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --with-target-subdir=SUBDIR
16 configuring in a subdirectory"
18 --with-cross-host=HOST configuring with a cross compiler"
20 --enable-multilib build many library versions (default)"
22 --enable-maintainer-mode enable make rules and dependencies not useful
23 (and sometimes confusing) to the casual installer"
25 --enable-shared[=PKGS] build shared libraries [default=yes]"
27 --enable-static[=PKGS] build static libraries [default=yes]"
29 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
31 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
33 --disable-libtool-lock avoid locking (might break parallel builds)"
35 --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 --enable-sjlj-exceptions use setjmp/longjmp exceptions"
46 --disable-java-net disable java.net"
48 --with-ecos enable runtime eCos target support"
50 --with-system-zlib use installed libz"
52 --enable-java-gc=TYPE choose garbage collector [boehm]"
54 --enable-threads=TYPE choose threading package"
56 # Initialize some variables set by options.
57 # The variables have the same names as the options, with
58 # dashes changed to underlines.
60 cache_file=./config.cache
69 program_transform_name=s,x,x,
78 bindir='${exec_prefix}/bin'
79 sbindir='${exec_prefix}/sbin'
80 libexecdir='${exec_prefix}/libexec'
81 datadir='${prefix}/share'
82 sysconfdir='${prefix}/etc'
83 sharedstatedir='${prefix}/com'
84 localstatedir='${prefix}/var'
85 libdir='${exec_prefix}/lib'
86 includedir='${prefix}/include'
87 oldincludedir='/usr/include'
88 infodir='${prefix}/info'
89 mandir='${prefix}/man'
91 # Initialize some other variables.
94 SHELL=${CONFIG_SHELL-/bin/sh}
95 # Maximum number of lines to put in a shell here document.
102 # If the previous option needs an argument, assign it.
103 if test -n "$ac_prev"; then
104 eval "$ac_prev=\$ac_option"
110 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
114 # Accept the important Cygnus configure options, so we can diagnose typos.
118 -bindir | --bindir | --bindi | --bind | --bin | --bi)
120 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
121 bindir="$ac_optarg" ;;
123 -build | --build | --buil | --bui | --bu)
125 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
126 build="$ac_optarg" ;;
128 -cache-file | --cache-file | --cache-fil | --cache-fi \
129 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
130 ac_prev=cache_file ;;
131 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
132 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
133 cache_file="$ac_optarg" ;;
135 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
137 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
139 datadir="$ac_optarg" ;;
141 -disable-* | --disable-*)
142 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
143 # Reject names that are not valid shell variable names.
144 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
145 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
147 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
148 eval "enable_${ac_feature}=no" ;;
150 -enable-* | --enable-*)
151 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
152 # Reject names that are not valid shell variable names.
153 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
154 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
156 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
161 eval "enable_${ac_feature}='$ac_optarg'" ;;
163 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
164 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
165 | --exec | --exe | --ex)
166 ac_prev=exec_prefix ;;
167 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
168 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
169 | --exec=* | --exe=* | --ex=*)
170 exec_prefix="$ac_optarg" ;;
172 -gas | --gas | --ga | --g)
173 # Obsolete; use --with-gas.
176 -help | --help | --hel | --he)
177 # Omit some internal or obsolete options to make the list less imposing.
178 # This message is too long to be a string in the A/UX 3.1 sh.
180 Usage: configure [options] [host]
181 Options: [defaults in brackets after descriptions]
183 --cache-file=FILE cache test results in FILE
184 --help print this message
185 --no-create do not create output files
186 --quiet, --silent do not print \`checking...' messages
187 --site-file=FILE use FILE as the site file
188 --version print the version of autoconf that created configure
189 Directory and file names:
190 --prefix=PREFIX install architecture-independent files in PREFIX
192 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
194 --bindir=DIR user executables in DIR [EPREFIX/bin]
195 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
196 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
197 --datadir=DIR read-only architecture-independent data in DIR
199 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
200 --sharedstatedir=DIR modifiable architecture-independent data in DIR
202 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
203 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
204 --includedir=DIR C header files in DIR [PREFIX/include]
205 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
206 --infodir=DIR info documentation in DIR [PREFIX/info]
207 --mandir=DIR man documentation in DIR [PREFIX/man]
208 --srcdir=DIR find the sources in DIR [configure dir or ..]
209 --program-prefix=PREFIX prepend PREFIX to installed program names
210 --program-suffix=SUFFIX append SUFFIX to installed program names
211 --program-transform-name=PROGRAM
212 run sed PROGRAM on installed program names
216 --build=BUILD configure for building on BUILD [BUILD=HOST]
217 --host=HOST configure for HOST [guessed]
218 --target=TARGET configure for TARGET [TARGET=HOST]
219 Features and packages:
220 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
221 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
222 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
223 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
224 --x-includes=DIR X include files are in DIR
225 --x-libraries=DIR X library files are in DIR
227 if test -n "$ac_help"; then
228 echo "--enable and --with options recognized:$ac_help"
232 -host | --host | --hos | --ho)
234 -host=* | --host=* | --hos=* | --ho=*)
237 -includedir | --includedir | --includedi | --included | --include \
238 | --includ | --inclu | --incl | --inc)
239 ac_prev=includedir ;;
240 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
241 | --includ=* | --inclu=* | --incl=* | --inc=*)
242 includedir="$ac_optarg" ;;
244 -infodir | --infodir | --infodi | --infod | --info | --inf)
246 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
247 infodir="$ac_optarg" ;;
249 -libdir | --libdir | --libdi | --libd)
251 -libdir=* | --libdir=* | --libdi=* | --libd=*)
252 libdir="$ac_optarg" ;;
254 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
255 | --libexe | --libex | --libe)
256 ac_prev=libexecdir ;;
257 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
258 | --libexe=* | --libex=* | --libe=*)
259 libexecdir="$ac_optarg" ;;
261 -localstatedir | --localstatedir | --localstatedi | --localstated \
262 | --localstate | --localstat | --localsta | --localst \
263 | --locals | --local | --loca | --loc | --lo)
264 ac_prev=localstatedir ;;
265 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
266 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
267 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
268 localstatedir="$ac_optarg" ;;
270 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
272 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
273 mandir="$ac_optarg" ;;
276 # Obsolete; use --without-fp.
279 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
283 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
284 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
287 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
288 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
289 | --oldin | --oldi | --old | --ol | --o)
290 ac_prev=oldincludedir ;;
291 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
292 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
293 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
294 oldincludedir="$ac_optarg" ;;
296 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
298 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
299 prefix="$ac_optarg" ;;
301 -program-prefix | --program-prefix | --program-prefi | --program-pref \
302 | --program-pre | --program-pr | --program-p)
303 ac_prev=program_prefix ;;
304 -program-prefix=* | --program-prefix=* | --program-prefi=* \
305 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
306 program_prefix="$ac_optarg" ;;
308 -program-suffix | --program-suffix | --program-suffi | --program-suff \
309 | --program-suf | --program-su | --program-s)
310 ac_prev=program_suffix ;;
311 -program-suffix=* | --program-suffix=* | --program-suffi=* \
312 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
313 program_suffix="$ac_optarg" ;;
315 -program-transform-name | --program-transform-name \
316 | --program-transform-nam | --program-transform-na \
317 | --program-transform-n | --program-transform- \
318 | --program-transform | --program-transfor \
319 | --program-transfo | --program-transf \
320 | --program-trans | --program-tran \
321 | --progr-tra | --program-tr | --program-t)
322 ac_prev=program_transform_name ;;
323 -program-transform-name=* | --program-transform-name=* \
324 | --program-transform-nam=* | --program-transform-na=* \
325 | --program-transform-n=* | --program-transform-=* \
326 | --program-transform=* | --program-transfor=* \
327 | --program-transfo=* | --program-transf=* \
328 | --program-trans=* | --program-tran=* \
329 | --progr-tra=* | --program-tr=* | --program-t=*)
330 program_transform_name="$ac_optarg" ;;
332 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
333 | -silent | --silent | --silen | --sile | --sil)
336 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
338 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
340 sbindir="$ac_optarg" ;;
342 -sharedstatedir | --sharedstatedir | --sharedstatedi \
343 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
344 | --sharedst | --shareds | --shared | --share | --shar \
346 ac_prev=sharedstatedir ;;
347 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
348 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
349 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
351 sharedstatedir="$ac_optarg" ;;
353 -site | --site | --sit)
355 -site=* | --site=* | --sit=*)
358 -site-file | --site-file | --site-fil | --site-fi | --site-f)
360 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
361 sitefile="$ac_optarg" ;;
363 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
365 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
366 srcdir="$ac_optarg" ;;
368 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
369 | --syscon | --sysco | --sysc | --sys | --sy)
370 ac_prev=sysconfdir ;;
371 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
372 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
373 sysconfdir="$ac_optarg" ;;
375 -target | --target | --targe | --targ | --tar | --ta | --t)
377 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
378 target="$ac_optarg" ;;
380 -v | -verbose | --verbose | --verbos | --verbo | --verb)
383 -version | --version | --versio | --versi | --vers)
384 echo "configure generated by autoconf version 2.13"
388 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
389 # Reject names that are not valid shell variable names.
390 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
391 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
393 ac_package=`echo $ac_package| sed 's/-/_/g'`
398 eval "with_${ac_package}='$ac_optarg'" ;;
400 -without-* | --without-*)
401 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
402 # Reject names that are not valid shell variable names.
403 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
404 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
406 ac_package=`echo $ac_package| sed 's/-/_/g'`
407 eval "with_${ac_package}=no" ;;
410 # Obsolete; use --with-x.
413 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
414 | --x-incl | --x-inc | --x-in | --x-i)
415 ac_prev=x_includes ;;
416 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
417 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
418 x_includes="$ac_optarg" ;;
420 -x-libraries | --x-libraries | --x-librarie | --x-librari \
421 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
422 ac_prev=x_libraries ;;
423 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
424 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
425 x_libraries="$ac_optarg" ;;
427 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
431 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
432 echo "configure: warning: $ac_option: invalid host type" 1>&2
434 if test "x$nonopt" != xNONE; then
435 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
443 if test -n "$ac_prev"; then
444 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
447 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
449 # File descriptor usage:
452 # 2 errors and warnings
453 # 3 some systems may open it to /dev/tty
454 # 4 used on the Kubota Titan
455 # 6 checking for... messages and results
456 # 5 compiler messages saved in config.log
457 if test "$silent" = yes; then
465 This file contains any messages produced by compilers while
466 running configure, to aid debugging if configure makes a mistake.
469 # Strip out --no-create and --no-recursion so they do not pile up.
470 # Also quote any args containing shell metacharacters.
475 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
476 | --no-cr | --no-c) ;;
477 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
478 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
479 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
480 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
481 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
486 # Only set these to C if already set. These must not be set unconditionally
487 # because not all systems understand e.g. LANG=C (notably SCO).
488 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
489 # Non-C LC_CTYPE values break the ctype check.
490 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
491 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
492 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
493 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
495 # confdefs.h avoids OS command line length limits that DEFS can exceed.
496 rm -rf conftest* confdefs.h
497 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
500 # A filename unique to this package, relative to the directory that
501 # configure is in, which we can look for to find out if srcdir is correct.
502 ac_unique_file=java/lang/System.java
504 # Find the source files, if location was not specified.
505 if test -z "$srcdir"; then
506 ac_srcdir_defaulted=yes
507 # Try the directory containing this script, then its parent.
509 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
510 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
512 if test ! -r $srcdir/$ac_unique_file; then
516 ac_srcdir_defaulted=no
518 if test ! -r $srcdir/$ac_unique_file; then
519 if test "$ac_srcdir_defaulted" = yes; then
520 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
522 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
525 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
527 # Prefer explicitly selected file to automatically selected ones.
528 if test -z "$sitefile"; then
529 if test -z "$CONFIG_SITE"; then
530 if test "x$prefix" != xNONE; then
531 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
533 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
537 CONFIG_SITE="$sitefile"
539 for ac_site_file in $CONFIG_SITE; do
540 if test -r "$ac_site_file"; then
541 echo "loading site script $ac_site_file"
546 if test -r "$cache_file"; then
547 echo "loading cache $cache_file"
550 echo "creating cache $cache_file"
555 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
556 ac_cpp='$CPP $CPPFLAGS'
557 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
558 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
559 cross_compiling=$ac_cv_prog_cc_cross
563 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
564 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
565 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
572 ac_n= ac_c='\c' ac_t=
578 for ac_dir in .. $srcdir/..; do
579 if test -f $ac_dir/install-sh; then
581 ac_install_sh="$ac_aux_dir/install-sh -c"
583 elif test -f $ac_dir/install.sh; then
585 ac_install_sh="$ac_aux_dir/install.sh -c"
589 if test -z "$ac_aux_dir"; then
590 { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
592 ac_config_guess=$ac_aux_dir/config.guess
593 ac_config_sub=$ac_aux_dir/config.sub
594 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
598 # Do some error checking and defaulting for the host and target type.
600 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
603 # 1. You are not allowed to specify --host, --target, and nonopt at the
605 # 2. Host defaults to nonopt.
606 # 3. If nonopt is not specified, then host defaults to the current host,
607 # as determined by config.guess.
608 # 4. Target and build default to nonopt.
609 # 5. If nonopt is not specified, then target and build default to host.
611 # The aliases save the names the user supplied, while $host etc.
612 # will get canonicalized.
613 case $host---$target---$nonopt in
614 NONE---*---* | *---NONE---* | *---*---NONE) ;;
615 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
619 # Make sure we can run config.sub.
620 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
621 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
624 echo $ac_n "checking host system type""... $ac_c" 1>&6
625 echo "configure:626: checking host system type" >&5
628 case "$host_alias" in
632 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
633 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
635 *) host_alias=$nonopt ;;
639 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
640 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
641 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
642 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
643 echo "$ac_t""$host" 1>&6
645 echo $ac_n "checking target system type""... $ac_c" 1>&6
646 echo "configure:647: checking target system type" >&5
649 case "$target_alias" in
652 NONE) target_alias=$host_alias ;;
653 *) target_alias=$nonopt ;;
657 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
658 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
659 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
660 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
661 echo "$ac_t""$target" 1>&6
663 echo $ac_n "checking build system type""... $ac_c" 1>&6
664 echo "configure:665: checking build system type" >&5
667 case "$build_alias" in
670 NONE) build_alias=$host_alias ;;
671 *) build_alias=$nonopt ;;
675 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
676 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
677 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
678 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
679 echo "$ac_t""$build" 1>&6
681 test "$host_alias" != "$target_alias" &&
682 test "$program_prefix$program_suffix$program_transform_name" = \
684 program_prefix=${target_alias}-
687 # Check whether --with-target-subdir or --without-target-subdir was given.
688 if test "${with_target_subdir+set}" = set; then
689 withval="$with_target_subdir"
693 # Check whether --with-cross-host or --without-cross-host was given.
694 if test "${with_cross_host+set}" = set; then
695 withval="$with_cross_host"
700 # Find a good install program. We prefer a C program (faster),
701 # so one script is as good as another. But avoid the broken or
702 # incompatible versions:
703 # SysV /etc/install, /usr/sbin/install
704 # SunOS /usr/etc/install
707 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
708 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
709 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
710 # ./install, which can be erroneously created by make from ./install.sh.
711 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
712 echo "configure:713: checking for a BSD compatible install" >&5
713 if test -z "$INSTALL"; then
714 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
715 echo $ac_n "(cached) $ac_c" 1>&6
717 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
718 for ac_dir in $PATH; do
719 # Account for people who put trailing slashes in PATH elements.
721 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
723 # OSF1 and SCO ODT 3.0 have their own names for install.
724 # Don't use installbsd from OSF since it installs stuff as root
726 for ac_prog in ginstall scoinst install; do
727 if test -f $ac_dir/$ac_prog; then
728 if test $ac_prog = install &&
729 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
730 # AIX install. It has an incompatible calling convention.
733 ac_cv_path_install="$ac_dir/$ac_prog -c"
744 if test "${ac_cv_path_install+set}" = set; then
745 INSTALL="$ac_cv_path_install"
747 # As a last resort, use the slow shell script. We don't cache a
748 # path for INSTALL within a source directory, because that will
749 # break other packages using the cache if that directory is
750 # removed, or if the path is relative.
751 INSTALL="$ac_install_sh"
754 echo "$ac_t""$INSTALL" 1>&6
756 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
757 # It thinks the first close brace ends the variable substitution.
758 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
760 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
762 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
764 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
765 echo "configure:766: checking whether build environment is sane" >&5
768 echo timestamp > conftestfile
769 # Do `set' in a subshell so we don't clobber the current shell's
770 # arguments. Must try -L first in case configure is actually a
771 # symlink; some systems play weird games with the mod time of symlinks
772 # (eg FreeBSD returns the mod time of the symlink's containing
775 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
776 if test "$*" = "X"; then
778 set X `ls -t $srcdir/configure conftestfile`
780 if test "$*" != "X $srcdir/configure conftestfile" \
781 && test "$*" != "X conftestfile $srcdir/configure"; then
783 # If neither matched, then we have a broken ls. This can happen
784 # if, for instance, CONFIG_SHELL is bash and it inherits a
785 # broken ls alias from the environment. This has actually
786 # happened. Such a system could not be considered "sane".
787 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
788 alias in your environment" 1>&2; exit 1; }
791 test "$2" = conftestfile
797 { echo "configure: error: newly created file is older than distributed files!
798 Check your system clock" 1>&2; exit 1; }
801 echo "$ac_t""yes" 1>&6
802 if test "$program_transform_name" = s,x,x,; then
803 program_transform_name=
805 # Double any \ or $. echo might interpret backslashes.
806 cat <<\EOF_SED > conftestsed
807 s,\\,\\\\,g; s,\$,$$,g
809 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
812 test "$program_prefix" != NONE &&
813 program_transform_name="s,^,${program_prefix},; $program_transform_name"
814 # Use a double $ so make ignores it.
815 test "$program_suffix" != NONE &&
816 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
818 # sed with no file args requires a program.
819 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
821 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
822 echo "configure:823: checking whether ${MAKE-make} sets \${MAKE}" >&5
823 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
824 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
825 echo $ac_n "(cached) $ac_c" 1>&6
827 cat > conftestmake <<\EOF
829 @echo 'ac_maketemp="${MAKE}"'
831 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
832 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
833 if test -n "$ac_maketemp"; then
834 eval ac_cv_prog_make_${ac_make}_set=yes
836 eval ac_cv_prog_make_${ac_make}_set=no
840 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
841 echo "$ac_t""yes" 1>&6
844 echo "$ac_t""no" 1>&6
845 SET_MAKE="MAKE=${MAKE-make}"
848 if test $host != $build; then
849 ac_tool_prefix=${host_alias}-
854 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
855 echo "configure:856: checking for Cygwin environment" >&5
856 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
857 echo $ac_n "(cached) $ac_c" 1>&6
859 cat > conftest.$ac_ext <<EOF
860 #line 861 "configure"
861 #include "confdefs.h"
866 #define __CYGWIN__ __CYGWIN32__
871 if { (eval echo configure:872: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
875 echo "configure: failed program was:" >&5
876 cat conftest.$ac_ext >&5
884 echo "$ac_t""$ac_cv_cygwin" 1>&6
886 test "$ac_cv_cygwin" = yes && CYGWIN=yes
887 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
888 echo "configure:889: checking for mingw32 environment" >&5
889 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
890 echo $ac_n "(cached) $ac_c" 1>&6
892 cat > conftest.$ac_ext <<EOF
893 #line 894 "configure"
894 #include "confdefs.h"
900 if { (eval echo configure:901: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
904 echo "configure: failed program was:" >&5
905 cat conftest.$ac_ext >&5
913 echo "$ac_t""$ac_cv_mingw32" 1>&6
915 test "$ac_cv_mingw32" = yes && MINGW32=yes
917 # Check whether --enable-multilib or --disable-multilib was given.
918 if test "${enable_multilib+set}" = set; then
919 enableval="$enable_multilib"
920 case "${enableval}" in
923 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
930 if test "${srcdir}" = "."; then
931 if test "${with_target_subdir}" != "."; then
932 libgcj_basedir="${srcdir}/${with_multisrctop}../."
934 libgcj_basedir="${srcdir}/${with_multisrctop}."
937 libgcj_basedir="${srcdir}/."
942 # Make sure we can run config.sub.
943 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
944 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
947 echo $ac_n "checking host system type""... $ac_c" 1>&6
948 echo "configure:949: checking host system type" >&5
951 case "$host_alias" in
955 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
956 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
958 *) host_alias=$nonopt ;;
962 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
963 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
964 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
965 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
966 echo "$ac_t""$host" 1>&6
975 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
976 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
978 cat >> confdefs.h <<EOF
979 #define PACKAGE "$PACKAGE"
982 cat >> confdefs.h <<EOF
983 #define VERSION "$VERSION"
988 missing_dir=`cd $ac_aux_dir && pwd`
989 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
990 echo "configure:991: checking for working aclocal" >&5
991 # Run test in a subshell; some versions of sh will print an error if
992 # an executable is not found, even if stderr is redirected.
993 # Redirect stdin to placate older versions of autoconf. Sigh.
994 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
996 echo "$ac_t""found" 1>&6
998 ACLOCAL="$missing_dir/missing aclocal"
999 echo "$ac_t""missing" 1>&6
1002 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1003 echo "configure:1004: checking for working autoconf" >&5
1004 # Run test in a subshell; some versions of sh will print an error if
1005 # an executable is not found, even if stderr is redirected.
1006 # Redirect stdin to placate older versions of autoconf. Sigh.
1007 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1009 echo "$ac_t""found" 1>&6
1011 AUTOCONF="$missing_dir/missing autoconf"
1012 echo "$ac_t""missing" 1>&6
1015 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1016 echo "configure:1017: checking for working automake" >&5
1017 # Run test in a subshell; some versions of sh will print an error if
1018 # an executable is not found, even if stderr is redirected.
1019 # Redirect stdin to placate older versions of autoconf. Sigh.
1020 if (automake --version) < /dev/null > /dev/null 2>&1; then
1022 echo "$ac_t""found" 1>&6
1024 AUTOMAKE="$missing_dir/missing automake"
1025 echo "$ac_t""missing" 1>&6
1028 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1029 echo "configure:1030: checking for working autoheader" >&5
1030 # Run test in a subshell; some versions of sh will print an error if
1031 # an executable is not found, even if stderr is redirected.
1032 # Redirect stdin to placate older versions of autoconf. Sigh.
1033 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1034 AUTOHEADER=autoheader
1035 echo "$ac_t""found" 1>&6
1037 AUTOHEADER="$missing_dir/missing autoheader"
1038 echo "$ac_t""missing" 1>&6
1041 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1042 echo "configure:1043: checking for working makeinfo" >&5
1043 # Run test in a subshell; some versions of sh will print an error if
1044 # an executable is not found, even if stderr is redirected.
1045 # Redirect stdin to placate older versions of autoconf. Sigh.
1046 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1048 echo "$ac_t""found" 1>&6
1050 MAKEINFO="$missing_dir/missing makeinfo"
1051 echo "$ac_t""missing" 1>&6
1056 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
1057 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
1058 # are probably using a cross compiler, which will not be able to fully
1059 # link an executable. This should really be fixed in autoconf
1065 # Extract the first word of "gcc", so it can be a program name with args.
1066 set dummy gcc; ac_word=$2
1067 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1068 echo "configure:1069: checking for $ac_word" >&5
1069 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1070 echo $ac_n "(cached) $ac_c" 1>&6
1072 if test -n "$CC"; then
1073 ac_cv_prog_CC="$CC" # Let the user override the test.
1075 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1077 for ac_dir in $ac_dummy; do
1078 test -z "$ac_dir" && ac_dir=.
1079 if test -f $ac_dir/$ac_word; then
1088 if test -n "$CC"; then
1089 echo "$ac_t""$CC" 1>&6
1091 echo "$ac_t""no" 1>&6
1094 if test -z "$CC"; then
1095 # Extract the first word of "cc", so it can be a program name with args.
1096 set dummy cc; ac_word=$2
1097 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1098 echo "configure:1099: checking for $ac_word" >&5
1099 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1100 echo $ac_n "(cached) $ac_c" 1>&6
1102 if test -n "$CC"; then
1103 ac_cv_prog_CC="$CC" # Let the user override the test.
1105 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1108 for ac_dir in $ac_dummy; do
1109 test -z "$ac_dir" && ac_dir=.
1110 if test -f $ac_dir/$ac_word; then
1111 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1112 ac_prog_rejected=yes
1120 if test $ac_prog_rejected = yes; then
1121 # We found a bogon in the path, so make sure we never use it.
1122 set dummy $ac_cv_prog_CC
1124 if test $# -gt 0; then
1125 # We chose a different compiler from the bogus one.
1126 # However, it has the same basename, so the bogon will be chosen
1127 # first if we set CC to just the basename; use the full file name.
1129 set dummy "$ac_dir/$ac_word" "$@"
1137 if test -n "$CC"; then
1138 echo "$ac_t""$CC" 1>&6
1140 echo "$ac_t""no" 1>&6
1143 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1146 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1147 echo "configure:1148: checking whether we are using GNU C" >&5
1148 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1149 echo $ac_n "(cached) $ac_c" 1>&6
1151 cat > conftest.c <<EOF
1156 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1157: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1163 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1165 if test $ac_cv_prog_gcc = yes; then
1167 ac_test_CFLAGS="${CFLAGS+set}"
1168 ac_save_CFLAGS="$CFLAGS"
1170 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1171 echo "configure:1172: checking whether ${CC-cc} accepts -g" >&5
1172 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1173 echo $ac_n "(cached) $ac_c" 1>&6
1175 echo 'void f(){}' > conftest.c
1176 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1185 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1186 if test "$ac_test_CFLAGS" = set; then
1187 CFLAGS="$ac_save_CFLAGS"
1188 elif test $ac_cv_prog_cc_g = yes; then
1195 test "${CFLAGS+set}" = set || CFLAGS="-g"
1199 # Likewise for AC_PROG_CXX.
1203 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1205 # Extract the first word of "$ac_prog", so it can be a program name with args.
1206 set dummy $ac_prog; ac_word=$2
1207 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1208 echo "configure:1209: checking for $ac_word" >&5
1209 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1210 echo $ac_n "(cached) $ac_c" 1>&6
1212 if test -n "$CXX"; then
1213 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1215 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1217 for ac_dir in $ac_dummy; do
1218 test -z "$ac_dir" && ac_dir=.
1219 if test -f $ac_dir/$ac_word; then
1220 ac_cv_prog_CXX="$ac_prog"
1227 CXX="$ac_cv_prog_CXX"
1228 if test -n "$CXX"; then
1229 echo "$ac_t""$CXX" 1>&6
1231 echo "$ac_t""no" 1>&6
1234 test -n "$CXX" && break
1236 test -n "$CXX" || CXX="gcc"
1238 test -z "$CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1240 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1241 echo "configure:1242: checking whether we are using GNU C++" >&5
1242 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1243 echo $ac_n "(cached) $ac_c" 1>&6
1245 cat > conftest.C <<EOF
1250 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1251: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1257 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1259 if test $ac_cv_prog_gxx = yes; then
1261 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1262 ac_save_CXXFLAGS="$CXXFLAGS"
1264 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1265 echo "configure:1266: checking whether ${CXX-g++} accepts -g" >&5
1266 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1267 echo $ac_n "(cached) $ac_c" 1>&6
1269 echo 'void f(){}' > conftest.cc
1270 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1271 ac_cv_prog_cxx_g=yes
1279 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1280 if test "$ac_test_CXXFLAGS" = set; then
1281 CXXFLAGS="$ac_save_CXXFLAGS"
1282 elif test $ac_cv_prog_cxx_g = yes; then
1289 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1293 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we dont
1294 # run it explicitly here, it will be run implicitly before
1295 # LIBGCJ_CONFIGURE, which doesn't work because that means that it will
1296 # be run before AC_CANONICAL_HOST.
1297 echo $ac_n "checking build system type""... $ac_c" 1>&6
1298 echo "configure:1299: checking build system type" >&5
1301 case "$build_alias" in
1304 NONE) build_alias=$host_alias ;;
1305 *) build_alias=$nonopt ;;
1309 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1310 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1311 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1312 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1313 echo "$ac_t""$build" 1>&6
1316 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1317 set dummy ${ac_tool_prefix}as; ac_word=$2
1318 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1319 echo "configure:1320: checking for $ac_word" >&5
1320 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1321 echo $ac_n "(cached) $ac_c" 1>&6
1323 if test -n "$AS"; then
1324 ac_cv_prog_AS="$AS" # Let the user override the test.
1326 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1328 for ac_dir in $ac_dummy; do
1329 test -z "$ac_dir" && ac_dir=.
1330 if test -f $ac_dir/$ac_word; then
1331 ac_cv_prog_AS="${ac_tool_prefix}as"
1336 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1340 if test -n "$AS"; then
1341 echo "$ac_t""$AS" 1>&6
1343 echo "$ac_t""no" 1>&6
1348 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1349 set dummy ${ac_tool_prefix}ar; ac_word=$2
1350 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1351 echo "configure:1352: checking for $ac_word" >&5
1352 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1353 echo $ac_n "(cached) $ac_c" 1>&6
1355 if test -n "$AR"; then
1356 ac_cv_prog_AR="$AR" # Let the user override the test.
1358 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1360 for ac_dir in $ac_dummy; do
1361 test -z "$ac_dir" && ac_dir=.
1362 if test -f $ac_dir/$ac_word; then
1363 ac_cv_prog_AR="${ac_tool_prefix}ar"
1368 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1372 if test -n "$AR"; then
1373 echo "$ac_t""$AR" 1>&6
1375 echo "$ac_t""no" 1>&6
1380 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1381 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1382 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1383 echo "configure:1384: checking for $ac_word" >&5
1384 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1385 echo $ac_n "(cached) $ac_c" 1>&6
1387 if test -n "$RANLIB"; then
1388 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1390 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1392 for ac_dir in $ac_dummy; do
1393 test -z "$ac_dir" && ac_dir=.
1394 if test -f $ac_dir/$ac_word; then
1395 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1402 RANLIB="$ac_cv_prog_RANLIB"
1403 if test -n "$RANLIB"; then
1404 echo "$ac_t""$RANLIB" 1>&6
1406 echo "$ac_t""no" 1>&6
1410 if test -z "$ac_cv_prog_RANLIB"; then
1411 if test -n "$ac_tool_prefix"; then
1412 # Extract the first word of "ranlib", so it can be a program name with args.
1413 set dummy ranlib; ac_word=$2
1414 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1415 echo "configure:1416: checking for $ac_word" >&5
1416 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1417 echo $ac_n "(cached) $ac_c" 1>&6
1419 if test -n "$RANLIB"; then
1420 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1422 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1424 for ac_dir in $ac_dummy; do
1425 test -z "$ac_dir" && ac_dir=.
1426 if test -f $ac_dir/$ac_word; then
1427 ac_cv_prog_RANLIB="ranlib"
1432 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1435 RANLIB="$ac_cv_prog_RANLIB"
1436 if test -n "$RANLIB"; then
1437 echo "$ac_t""$RANLIB" 1>&6
1439 echo "$ac_t""no" 1>&6
1448 # Find a good install program. We prefer a C program (faster),
1449 # so one script is as good as another. But avoid the broken or
1450 # incompatible versions:
1451 # SysV /etc/install, /usr/sbin/install
1452 # SunOS /usr/etc/install
1453 # IRIX /sbin/install
1455 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1456 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1457 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1458 # ./install, which can be erroneously created by make from ./install.sh.
1459 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1460 echo "configure:1461: checking for a BSD compatible install" >&5
1461 if test -z "$INSTALL"; then
1462 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1463 echo $ac_n "(cached) $ac_c" 1>&6
1465 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1466 for ac_dir in $PATH; do
1467 # Account for people who put trailing slashes in PATH elements.
1469 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1471 # OSF1 and SCO ODT 3.0 have their own names for install.
1472 # Don't use installbsd from OSF since it installs stuff as root
1474 for ac_prog in ginstall scoinst install; do
1475 if test -f $ac_dir/$ac_prog; then
1476 if test $ac_prog = install &&
1477 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1478 # AIX install. It has an incompatible calling convention.
1481 ac_cv_path_install="$ac_dir/$ac_prog -c"
1492 if test "${ac_cv_path_install+set}" = set; then
1493 INSTALL="$ac_cv_path_install"
1495 # As a last resort, use the slow shell script. We don't cache a
1496 # path for INSTALL within a source directory, because that will
1497 # break other packages using the cache if that directory is
1498 # removed, or if the path is relative.
1499 INSTALL="$ac_install_sh"
1502 echo "$ac_t""$INSTALL" 1>&6
1504 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1505 # It thinks the first close brace ends the variable substitution.
1506 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1508 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1510 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1513 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1514 echo "configure:1515: checking whether to enable maintainer-specific portions of Makefiles" >&5
1515 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1516 if test "${enable_maintainer_mode+set}" = set; then
1517 enableval="$enable_maintainer_mode"
1518 USE_MAINTAINER_MODE=$enableval
1520 USE_MAINTAINER_MODE=no
1523 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1526 if test $USE_MAINTAINER_MODE = yes; then
1527 MAINTAINER_MODE_TRUE=
1528 MAINTAINER_MODE_FALSE='#'
1530 MAINTAINER_MODE_TRUE='#'
1531 MAINTAINER_MODE_FALSE=
1533 MAINT=$MAINTAINER_MODE_TRUE
1537 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1538 # at least currently, we never actually build a program, so we never
1539 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1540 # fails, because we are probably configuring with a cross compiler
1541 # which cant create executables. So we include AC_EXEEXT to keep
1542 # automake happy, but we dont execute it, since we dont care about
1547 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1548 echo "configure:1549: checking for executable suffix" >&5
1549 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1550 echo $ac_n "(cached) $ac_c" 1>&6
1552 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1556 echo 'int main () { return 0; }' > conftest.$ac_ext
1558 if { (eval echo configure:1559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1559 for file in conftest.*; do
1561 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1562 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1566 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1569 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1574 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1575 echo "$ac_t""${ac_cv_exeext}" 1>&6
1580 # configure.host sets the following important variables
1581 # libgcj_cflags - host specific C compiler flags
1582 # libgcj_cxxflags - host specific C++ compiler flags
1583 # libgcj_javaflags - host specific Java compiler flags
1589 . ${libgcj_basedir}/configure.host
1591 case ${libgcj_basedir} in
1592 /* | A-Za-z:/\\*) libgcj_flagbasedir=${libgcj_basedir} ;;
1593 *) libgcj_flagbasedir='$(top_builddir)/'${libgcj_basedir} ;;
1596 LIBGCJ_CFLAGS="${libgcj_cflags}"
1597 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
1598 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
1608 # Only use libltdl for native builds.
1609 if test -z "${with_cross_host}"; then
1610 case "$enable_ltdl_convenience" in
1611 no) { echo "configure: error: this package needs a convenience libltdl" 1>&2; exit 1; } ;;
1612 "") enable_ltdl_convenience=yes
1613 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
1615 LIBLTDL='${top_builddir}/libltdl'/libltdlc.la
1616 INCLTDL='-I${top_builddir}/libltdl'
1620 cat >> confdefs.h <<\EOF
1624 # Sigh. Libtool's macro doesn't do the right thing.
1625 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
1630 # Check whether --enable-shared or --disable-shared was given.
1631 if test "${enable_shared+set}" = set; then
1632 enableval="$enable_shared"
1633 p=${PACKAGE-default}
1634 case "$enableval" in
1635 yes) enable_shared=yes ;;
1636 no) enable_shared=no ;;
1639 # Look at the argument we got. We use all the common list separators.
1640 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1641 for pkg in $enableval; do
1642 if test "X$pkg" = "X$p"; then
1653 # Check whether --enable-static or --disable-static was given.
1654 if test "${enable_static+set}" = set; then
1655 enableval="$enable_static"
1656 p=${PACKAGE-default}
1657 case "$enableval" in
1658 yes) enable_static=yes ;;
1659 no) enable_static=no ;;
1662 # Look at the argument we got. We use all the common list separators.
1663 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1664 for pkg in $enableval; do
1665 if test "X$pkg" = "X$p"; then
1676 # Check whether --enable-fast-install or --disable-fast-install was given.
1677 if test "${enable_fast_install+set}" = set; then
1678 enableval="$enable_fast_install"
1679 p=${PACKAGE-default}
1680 case "$enableval" in
1681 yes) enable_fast_install=yes ;;
1682 no) enable_fast_install=no ;;
1684 enable_fast_install=no
1685 # Look at the argument we got. We use all the common list separators.
1686 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1687 for pkg in $enableval; do
1688 if test "X$pkg" = "X$p"; then
1689 enable_fast_install=yes
1696 enable_fast_install=yes
1699 # Extract the first word of "ranlib", so it can be a program name with args.
1700 set dummy ranlib; ac_word=$2
1701 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1702 echo "configure:1703: checking for $ac_word" >&5
1703 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1704 echo $ac_n "(cached) $ac_c" 1>&6
1706 if test -n "$RANLIB"; then
1707 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1709 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1711 for ac_dir in $ac_dummy; do
1712 test -z "$ac_dir" && ac_dir=.
1713 if test -f $ac_dir/$ac_word; then
1714 ac_cv_prog_RANLIB="ranlib"
1719 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1722 RANLIB="$ac_cv_prog_RANLIB"
1723 if test -n "$RANLIB"; then
1724 echo "$ac_t""$RANLIB" 1>&6
1726 echo "$ac_t""no" 1>&6
1729 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1730 if test "${with_gnu_ld+set}" = set; then
1731 withval="$with_gnu_ld"
1732 test "$withval" = no || with_gnu_ld=yes
1738 if test "$ac_cv_prog_gcc" = yes; then
1739 # Check if gcc -print-prog-name=ld gives a path.
1740 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1741 echo "configure:1742: checking for ld used by GCC" >&5
1742 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1744 # Accept absolute paths.
1745 [\\/]* | [A-Za-z]:[\\/]*)
1746 re_direlt='/[^/][^/]*/\.\./'
1747 # Canonicalize the path of ld
1748 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1749 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1750 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1752 test -z "$LD" && LD="$ac_prog"
1755 # If it fails, then pretend we aren't using GCC.
1759 # If it is relative, then search for the first ld in PATH.
1763 elif test "$with_gnu_ld" = yes; then
1764 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1765 echo "configure:1766: checking for GNU ld" >&5
1767 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1768 echo "configure:1769: checking for non-GNU ld" >&5
1770 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1771 echo $ac_n "(cached) $ac_c" 1>&6
1773 if test -z "$LD"; then
1774 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1775 for ac_dir in $PATH; do
1776 test -z "$ac_dir" && ac_dir=.
1777 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1778 ac_cv_path_LD="$ac_dir/$ac_prog"
1779 # Check to see if the program is GNU ld. I'd rather use --version,
1780 # but apparently some GNU ld's only accept -v.
1781 # Break only if it was the GNU/non-GNU ld that we prefer.
1782 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1783 test "$with_gnu_ld" != no && break
1785 test "$with_gnu_ld" != yes && break
1791 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1796 if test -n "$LD"; then
1797 echo "$ac_t""$LD" 1>&6
1799 echo "$ac_t""no" 1>&6
1801 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1802 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1803 echo "configure:1804: checking if the linker ($LD) is GNU ld" >&5
1804 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1805 echo $ac_n "(cached) $ac_c" 1>&6
1807 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1808 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1809 ac_cv_prog_gnu_ld=yes
1811 ac_cv_prog_gnu_ld=no
1815 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1818 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1819 echo "configure:1820: checking for BSD-compatible nm" >&5
1820 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1821 echo $ac_n "(cached) $ac_c" 1>&6
1823 if test -n "$NM"; then
1824 # Let the user override the test.
1827 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1828 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1829 test -z "$ac_dir" && ac_dir=.
1830 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1831 # Check to see if the nm accepts a BSD-compat flag.
1832 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1833 # nm: unknown option "B" ignored
1834 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1835 ac_cv_path_NM="$ac_dir/nm -B"
1837 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1838 ac_cv_path_NM="$ac_dir/nm -p"
1841 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1842 continue # so that we can try to find one that supports BSD flags
1847 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1852 echo "$ac_t""$NM" 1>&6
1854 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1855 echo "configure:1856: checking whether ln -s works" >&5
1856 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1857 echo $ac_n "(cached) $ac_c" 1>&6
1860 if ln -s X conftestdata 2>/dev/null
1863 ac_cv_prog_LN_S="ln -s"
1868 LN_S="$ac_cv_prog_LN_S"
1869 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1870 echo "$ac_t""yes" 1>&6
1872 echo "$ac_t""no" 1>&6
1877 NONE) lt_target="$host" ;;
1878 *) lt_target="$target" ;;
1881 # Check for any special flags to pass to ltconfig.
1882 libtool_flags="--cache-file=$cache_file"
1883 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1884 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1885 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1886 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1887 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1888 libtool_flags="$libtool_flags --enable-dlopen"
1890 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1891 if test "${enable_libtool_lock+set}" = set; then
1892 enableval="$enable_libtool_lock"
1896 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1897 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1899 # Some flags need to be propagated to the compiler or linker for good
1901 case "$lt_target" in
1903 # Find out which ABI we are using.
1904 echo '#line 1905 "configure"' > conftest.$ac_ext
1905 if { (eval echo configure:1906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1906 case "`/usr/bin/file conftest.o`" in
1922 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1923 SAVE_CFLAGS="$CFLAGS"
1924 CFLAGS="$CFLAGS -belf"
1925 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1926 echo "configure:1927: checking whether the C compiler needs -belf" >&5
1927 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1928 echo $ac_n "(cached) $ac_c" 1>&6
1930 cat > conftest.$ac_ext <<EOF
1931 #line 1932 "configure"
1932 #include "confdefs.h"
1938 if { (eval echo configure:1939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1940 lt_cv_cc_needs_belf=yes
1942 echo "configure: failed program was:" >&5
1943 cat conftest.$ac_ext >&5
1945 lt_cv_cc_needs_belf=no
1950 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1951 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1952 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1953 CFLAGS="$SAVE_CFLAGS"
1961 # Save cache, so that ltconfig can load it
1962 cat > confcache <<\EOF
1963 # This file is a shell script that caches the results of configure
1964 # tests run on this system so they can be shared between configure
1965 # scripts and configure runs. It is not useful on other systems.
1966 # If it contains results you don't want to keep, you may remove or edit it.
1968 # By default, configure uses ./config.cache as the cache file,
1969 # creating it if it does not exist already. You can give configure
1970 # the --cache-file=FILE option to use a different cache file; that is
1971 # what configure does when it calls configure scripts in
1972 # subdirectories, so they share the cache.
1973 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1974 # config.status only pays attention to the cache file if you give it the
1975 # --recheck option to rerun configure.
1978 # The following way of writing the cache mishandles newlines in values,
1979 # but we know of no workaround that is simple, portable, and efficient.
1980 # So, don't put newlines in cache variables' values.
1981 # Ultrix sh set writes to stderr and can't be redirected directly,
1982 # and sets the high bit in the cache file unless we assign to the vars.
1984 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1986 # `set' does not quote correctly, so add quotes (double-quote substitution
1987 # turns \\\\ into \\, and sed turns \\ into \).
1989 -e "s/'/'\\\\''/g" \
1990 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1993 # `set' quotes correctly as required by POSIX, so do not add quotes.
1994 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1997 if cmp -s $cache_file confcache; then
2000 if test -w $cache_file; then
2001 echo "updating cache $cache_file"
2002 cat confcache > $cache_file
2004 echo "not updating unwritable cache $cache_file"
2010 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2011 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2012 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2013 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
2014 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
2015 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2016 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
2017 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2019 # Reload cache, that may have been modified by ltconfig
2020 if test -r "$cache_file"; then
2021 echo "loading cache $cache_file"
2024 echo "creating cache $cache_file"
2029 # This can be used to rebuild libtool when needed
2030 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
2032 # Always use our own libtool.
2033 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2035 # Redirect the config.log output again, so that the ltconfig log is not
2036 # clobbered by the next message.
2037 exec 5>>./config.log
2042 if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
2051 if test -d $srcdir/testsuite; then
2053 TESTSUBDIR_FALSE='#'
2059 # Check whether --enable-fast-character or --disable-fast-character was given.
2060 if test "${enable_fast_character+set}" = set; then
2061 enableval="$enable_fast_character"
2065 cat >> confdefs.h <<\EOF
2066 #define COMPACT_CHARACTER 1
2072 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
2073 if test "${enable_getenv_properties+set}" = set; then
2074 enableval="$enable_getenv_properties"
2079 if test -n "$enable_getenv_properties"; then
2080 enable_getenv_properties=${enable_getenv_properties_default-yes}
2082 if test "$enable_getenv_properties" = no; then
2083 cat >> confdefs.h <<\EOF
2084 #define DISABLE_GETENV_PROPERTIES 1
2089 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
2090 if test "${enable_libgcj_debug+set}" = set; then
2091 enableval="$enable_libgcj_debug"
2092 if test "$enable_libgcj_debug" = yes; then
2093 cat >> confdefs.h <<\EOF
2101 # Check whether --enable-interpreter or --disable-interpreter was given.
2102 if test "${enable_interpreter+set}" = set; then
2103 enableval="$enable_interpreter"
2104 if test "$enable_interpreter" = yes; then
2105 # This can also be set in configure.host.
2106 libgcj_interpreter=yes
2107 elif test "$enable_interpreter" = no; then
2108 libgcj_interpreter=no
2113 if test "$libgcj_interpreter" = yes; then
2114 cat >> confdefs.h <<\EOF
2115 #define INTERPRETER 1
2121 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
2122 if test "${enable_sjlj_exceptions+set}" = set; then
2123 enableval="$enable_sjlj_exceptions"
2124 if test "$enable_sjlj_exceptions" = yes; then
2125 # This can be set in configure.host.
2131 if test "$libgcj_sjlj" = yes; then
2132 EXCEPTIONSPEC="-fsjlj-exceptions"
2133 cat >> confdefs.h <<\EOF
2134 #define SJLJ_EXCEPTIONS 1
2140 if test "$ac_cv_prog_gnu_ld" = yes; then
2141 FORCELIBGCCSPEC="-u __rethrow -u __frame_state_for -lgcc"
2144 echo $ac_n "checking for data_start""... $ac_c" 1>&6
2145 echo "configure:2146: checking for data_start" >&5
2148 cat > conftest.$ac_ext <<EOF
2149 #line 2150 "configure"
2150 #include "confdefs.h"
2151 extern int data_start;
2153 return ((int) &data_start);
2156 if { (eval echo configure:2157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2158 echo "$ac_t""found it" 1>&6
2160 echo "configure: failed program was:" >&5
2161 cat conftest.$ac_ext >&5
2163 LIBDATASTARTSPEC="-u data_start -lgcjdata"
2164 NEEDS_DATA_START=yes
2165 echo "$ac_t""missing" 1>&6
2170 # Check whether --enable-java-net or --disable-java-net was given.
2171 if test "${enable_java_net+set}" = set; then
2172 enableval="$enable_java_net"
2177 if test -n "$enable_java_net"; then
2178 enable_java_net=${enable_java_net_default-yes}
2180 if test "$enable_java_net" = no; then
2181 cat >> confdefs.h <<\EOF
2182 #define DISABLE_JAVA_NET 1
2188 # Check whether --with-ecos or --without-ecos was given.
2189 if test "${with_ecos+set}" = set; then
2190 withval="$with_ecos"
2191 TARGET_ECOS="$with_ecos"
2196 case "$TARGET_ECOS" in
2198 FILE_DESCRIPTOR=natFileDescriptorPosix.cc
2199 PROCESS=${PROCESS-Posix}
2202 FILE_DESCRIPTOR=natFileDescriptorEcos.cc
2204 cat >> confdefs.h <<\EOF
2211 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2212 echo "configure:2213: checking how to run the C preprocessor" >&5
2213 # On Suns, sometimes $CPP names a directory.
2214 if test -n "$CPP" && test -d "$CPP"; then
2217 if test -z "$CPP"; then
2218 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2219 echo $ac_n "(cached) $ac_c" 1>&6
2221 # This must be in double quotes, not single quotes, because CPP may get
2222 # substituted into the Makefile and "${CC-cc}" will confuse make.
2224 # On the NeXT, cc -E runs the code through the compiler's parser,
2225 # not just through cpp.
2226 cat > conftest.$ac_ext <<EOF
2227 #line 2228 "configure"
2228 #include "confdefs.h"
2232 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2233 { (eval echo configure:2234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2234 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2235 if test -z "$ac_err"; then
2239 echo "configure: failed program was:" >&5
2240 cat conftest.$ac_ext >&5
2242 CPP="${CC-cc} -E -traditional-cpp"
2243 cat > conftest.$ac_ext <<EOF
2244 #line 2245 "configure"
2245 #include "confdefs.h"
2249 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2250 { (eval echo configure:2251: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2251 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2252 if test -z "$ac_err"; then
2256 echo "configure: failed program was:" >&5
2257 cat conftest.$ac_ext >&5
2259 CPP="${CC-cc} -nologo -E"
2260 cat > conftest.$ac_ext <<EOF
2261 #line 2262 "configure"
2262 #include "confdefs.h"
2266 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2267 { (eval echo configure:2268: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2268 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2269 if test -z "$ac_err"; then
2273 echo "configure: failed program was:" >&5
2274 cat conftest.$ac_ext >&5
2283 ac_cv_prog_CPP="$CPP"
2285 CPP="$ac_cv_prog_CPP"
2287 ac_cv_prog_CPP="$CPP"
2289 echo "$ac_t""$CPP" 1>&6
2291 cat > conftest.$ac_ext <<EOF
2292 #line 2293 "configure"
2293 #include "confdefs.h"
2296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2297 egrep "uint32_t" >/dev/null 2>&1; then
2299 cat >> confdefs.h <<\EOF
2300 #define HAVE_INT32_DEFINED 1
2306 cat > conftest.$ac_ext <<EOF
2307 #line 2308 "configure"
2308 #include "confdefs.h"
2309 #include <inttypes.h>
2311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2312 egrep "uint32_t" >/dev/null 2>&1; then
2314 cat >> confdefs.h <<\EOF
2315 #define HAVE_INT32_DEFINED 1
2321 cat > conftest.$ac_ext <<EOF
2322 #line 2323 "configure"
2323 #include "confdefs.h"
2324 #include <sys/types.h>
2326 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2327 egrep "u_int32_t" >/dev/null 2>&1; then
2329 cat >> confdefs.h <<\EOF
2330 #define HAVE_BSD_INT32_DEFINED 1
2336 cat > conftest.$ac_ext <<EOF
2337 #line 2338 "configure"
2338 #include "confdefs.h"
2339 #include <sys/config.h>
2341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2342 egrep "u_int32_t" >/dev/null 2>&1; then
2344 cat >> confdefs.h <<\EOF
2345 #define HAVE_BSD_INT32_DEFINED 1
2353 cat > conftest.$ac_ext <<EOF
2354 #line 2355 "configure"
2355 #include "confdefs.h"
2358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2359 egrep "mktime" >/dev/null 2>&1; then
2361 cat >> confdefs.h <<\EOF
2362 #define HAVE_MKTIME 1
2368 cat > conftest.$ac_ext <<EOF
2369 #line 2370 "configure"
2370 #include "confdefs.h"
2373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2374 egrep "localtime" >/dev/null 2>&1; then
2376 cat >> confdefs.h <<\EOF
2377 #define HAVE_LOCALTIME 1
2384 test -d java || mkdir java
2385 test -d java/io || mkdir java/io
2388 test -d java/lang || mkdir java/lang
2395 # Check whether --with-system-zlib or --without-system-zlib was given.
2396 if test "${with_system_zlib+set}" = set; then
2397 withval="$with_system_zlib"
2406 echo $ac_n "checking for garbage collector to use""... $ac_c" 1>&6
2407 echo "configure:2408: checking for garbage collector to use" >&5
2408 # Check whether --enable-java-gc or --disable-java-gc was given.
2409 if test "${enable_java_gc+set}" = set; then
2410 enableval="$enable_java_gc"
2424 echo "$ac_t""boehm" 1>&6
2425 GCDEPS='$(top_builddir)/../boehm-gc/libgcjgc.la'
2426 # We include the path to the boehm-gc build directory.
2427 # See Makefile.am to understand why.
2428 GCLIBS="$GCDEPS -L\$(here)/../boehm-gc/$libsubdir"
2429 GCINCS='-I$(top_srcdir)/../boehm-gc -I$(top_builddir)/../boehm-gc'
2431 GCINCS="$GCINCS `cat ../boehm-gc/boehm-cflags`"
2434 cat >> confdefs.h <<\EOF
2435 #define HAVE_BOEHM_GC 1
2440 echo "$ac_t""none" 1>&6
2445 { echo "configure: error: unrecognized collector \"$GC\"" 1>&2; exit 1; }
2456 echo $ac_n "checking for threads package to use""... $ac_c" 1>&6
2457 echo "configure:2458: checking for threads package to use" >&5
2458 # Check whether --enable-threads or --disable-threads was given.
2459 if test "${enable_threads+set}" = set; then
2460 enableval="$enable_threads"
2467 if test "$THREADS" = yes; then
2473 # FIXME: this isn't correct in all cases.
2480 # FIXME: for now, choose POSIX, because we implement that.
2481 # Later, choose irix threads.
2485 # FIXME: for now, choose POSIX, because we implement that.
2486 # Later, choose solaris threads.
2504 cat >> confdefs.h <<\EOF
2505 #define LINUX_THREADS 1
2511 decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks)
2512 { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
2515 { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
2518 echo "$ac_t""$THREADS" 1>&6
2528 THREADLIBS=-lpthread
2529 THREADSPEC=-lpthread
2530 THREADOBJS=posix-threads.lo
2531 THREADH=posix-threads.h
2532 # MIT pthreads doesn't seem to have the mutexattr functions.
2533 # But for now we don't check for it. We just assume you aren't
2534 # using MIT pthreads.
2535 cat >> confdefs.h <<\EOF
2536 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
2542 THREADOBJS=no-threads.lo
2543 THREADH=no-threads.h
2555 if test "$GCC" = yes; then
2567 # Find eh-common.h and support headers. If we're in the tree with
2568 # gcc, then look there. Otherwise look in compat-include. If all else
2569 # fails, just hope the user has set things up somehow.
2570 if test -r $srcdir/../gcc/eh-common.h; then
2571 EH_COMMON_INCLUDE='-I$(top_srcdir)/../gcc -I$(top_srcdir)/../include'
2573 if test -d $srcdir/../compat-include; then
2574 EH_COMMON_INCLUDE='-I$(top_srcdir)/../compat-include'
2580 if test -n "${with_cross_host}"; then
2581 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
2582 # may not work correctly, because the compiler may not be able to
2585 # We assume newlib. This lets us hard-code the functions we know
2587 cat >> confdefs.h <<\EOF
2588 #define HAVE_MEMMOVE 1
2591 cat >> confdefs.h <<\EOF
2592 #define HAVE_MEMCPY 1
2595 cat >> confdefs.h <<\EOF
2596 #define HAVE_STRERROR 1
2599 cat >> confdefs.h <<\EOF
2600 #define HAVE_GMTIME_R 1
2603 cat >> confdefs.h <<\EOF
2604 #define HAVE_LOCALTIME_R 1
2607 cat >> confdefs.h <<\EOF
2608 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
2611 cat >> confdefs.h <<\EOF
2612 #define HAVE_ALLOCA 1
2616 cat >> confdefs.h <<\EOF
2623 # If Canadian cross, then don't pick up tools from the build
2625 if test "$build" != "$with_cross_host"; then
2628 GCJ="${target_alias}-gcj"
2634 for ac_func in strerror ioctl select fstat open fsync sleep
2636 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2637 echo "configure:2638: checking for $ac_func" >&5
2638 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2639 echo $ac_n "(cached) $ac_c" 1>&6
2641 cat > conftest.$ac_ext <<EOF
2642 #line 2643 "configure"
2643 #include "confdefs.h"
2644 /* System header to define __stub macros and hopefully few prototypes,
2645 which can conflict with char $ac_func(); below. */
2647 /* Override any gcc2 internal prototype to avoid an error. */
2648 /* We use char because int might match the return type of a gcc2
2649 builtin and then its argument prototype would still apply. */
2654 /* The GNU C library defines this for functions which it implements
2655 to always fail with ENOSYS. Some functions are actually named
2656 something starting with __ and the normal name is an alias. */
2657 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2665 if { (eval echo configure:2666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2667 eval "ac_cv_func_$ac_func=yes"
2669 echo "configure: failed program was:" >&5
2670 cat conftest.$ac_ext >&5
2672 eval "ac_cv_func_$ac_func=no"
2677 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2678 echo "$ac_t""yes" 1>&6
2679 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2680 cat >> confdefs.h <<EOF
2681 #define $ac_tr_func 1
2685 echo "$ac_t""no" 1>&6
2689 for ac_func in gmtime_r localtime_r readdir_r getpwuid_r getcwd
2691 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2692 echo "configure:2693: checking for $ac_func" >&5
2693 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2694 echo $ac_n "(cached) $ac_c" 1>&6
2696 cat > conftest.$ac_ext <<EOF
2697 #line 2698 "configure"
2698 #include "confdefs.h"
2699 /* System header to define __stub macros and hopefully few prototypes,
2700 which can conflict with char $ac_func(); below. */
2702 /* Override any gcc2 internal prototype to avoid an error. */
2703 /* We use char because int might match the return type of a gcc2
2704 builtin and then its argument prototype would still apply. */
2709 /* The GNU C library defines this for functions which it implements
2710 to always fail with ENOSYS. Some functions are actually named
2711 something starting with __ and the normal name is an alias. */
2712 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2720 if { (eval echo configure:2721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2722 eval "ac_cv_func_$ac_func=yes"
2724 echo "configure: failed program was:" >&5
2725 cat conftest.$ac_ext >&5
2727 eval "ac_cv_func_$ac_func=no"
2732 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2733 echo "$ac_t""yes" 1>&6
2734 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2735 cat >> confdefs.h <<EOF
2736 #define $ac_tr_func 1
2740 echo "$ac_t""no" 1>&6
2744 for ac_func in access stat mkdir rename rmdir unlink realpath
2746 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2747 echo "configure:2748: checking for $ac_func" >&5
2748 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2749 echo $ac_n "(cached) $ac_c" 1>&6
2751 cat > conftest.$ac_ext <<EOF
2752 #line 2753 "configure"
2753 #include "confdefs.h"
2754 /* System header to define __stub macros and hopefully few prototypes,
2755 which can conflict with char $ac_func(); below. */
2757 /* Override any gcc2 internal prototype to avoid an error. */
2758 /* We use char because int might match the return type of a gcc2
2759 builtin and then its argument prototype would still apply. */
2764 /* The GNU C library defines this for functions which it implements
2765 to always fail with ENOSYS. Some functions are actually named
2766 something starting with __ and the normal name is an alias. */
2767 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2775 if { (eval echo configure:2776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2777 eval "ac_cv_func_$ac_func=yes"
2779 echo "configure: failed program was:" >&5
2780 cat conftest.$ac_ext >&5
2782 eval "ac_cv_func_$ac_func=no"
2787 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2788 echo "$ac_t""yes" 1>&6
2789 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2790 cat >> confdefs.h <<EOF
2791 #define $ac_tr_func 1
2795 echo "$ac_t""no" 1>&6
2799 for ac_func in inet_aton inet_addr
2801 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2802 echo "configure:2803: checking for $ac_func" >&5
2803 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2804 echo $ac_n "(cached) $ac_c" 1>&6
2806 cat > conftest.$ac_ext <<EOF
2807 #line 2808 "configure"
2808 #include "confdefs.h"
2809 /* System header to define __stub macros and hopefully few prototypes,
2810 which can conflict with char $ac_func(); below. */
2812 /* Override any gcc2 internal prototype to avoid an error. */
2813 /* We use char because int might match the return type of a gcc2
2814 builtin and then its argument prototype would still apply. */
2819 /* The GNU C library defines this for functions which it implements
2820 to always fail with ENOSYS. Some functions are actually named
2821 something starting with __ and the normal name is an alias. */
2822 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2830 if { (eval echo configure:2831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2832 eval "ac_cv_func_$ac_func=yes"
2834 echo "configure: failed program was:" >&5
2835 cat conftest.$ac_ext >&5
2837 eval "ac_cv_func_$ac_func=no"
2842 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2843 echo "$ac_t""yes" 1>&6
2844 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2845 cat >> confdefs.h <<EOF
2846 #define $ac_tr_func 1
2850 echo "$ac_t""no" 1>&6
2854 for ac_func in inet_pton uname inet_ntoa
2856 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2857 echo "configure:2858: checking for $ac_func" >&5
2858 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2859 echo $ac_n "(cached) $ac_c" 1>&6
2861 cat > conftest.$ac_ext <<EOF
2862 #line 2863 "configure"
2863 #include "confdefs.h"
2864 /* System header to define __stub macros and hopefully few prototypes,
2865 which can conflict with char $ac_func(); below. */
2867 /* Override any gcc2 internal prototype to avoid an error. */
2868 /* We use char because int might match the return type of a gcc2
2869 builtin and then its argument prototype would still apply. */
2874 /* The GNU C library defines this for functions which it implements
2875 to always fail with ENOSYS. Some functions are actually named
2876 something starting with __ and the normal name is an alias. */
2877 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2885 if { (eval echo configure:2886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2887 eval "ac_cv_func_$ac_func=yes"
2889 echo "configure: failed program was:" >&5
2890 cat conftest.$ac_ext >&5
2892 eval "ac_cv_func_$ac_func=no"
2897 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2898 echo "$ac_t""yes" 1>&6
2899 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2900 cat >> confdefs.h <<EOF
2901 #define $ac_tr_func 1
2905 echo "$ac_t""no" 1>&6
2909 for ac_func in backtrace fork execvp pipe
2911 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2912 echo "configure:2913: checking for $ac_func" >&5
2913 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2914 echo $ac_n "(cached) $ac_c" 1>&6
2916 cat > conftest.$ac_ext <<EOF
2917 #line 2918 "configure"
2918 #include "confdefs.h"
2919 /* System header to define __stub macros and hopefully few prototypes,
2920 which can conflict with char $ac_func(); below. */
2922 /* Override any gcc2 internal prototype to avoid an error. */
2923 /* We use char because int might match the return type of a gcc2
2924 builtin and then its argument prototype would still apply. */
2929 /* The GNU C library defines this for functions which it implements
2930 to always fail with ENOSYS. Some functions are actually named
2931 something starting with __ and the normal name is an alias. */
2932 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2940 if { (eval echo configure:2941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2942 eval "ac_cv_func_$ac_func=yes"
2944 echo "configure: failed program was:" >&5
2945 cat conftest.$ac_ext >&5
2947 eval "ac_cv_func_$ac_func=no"
2952 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2953 echo "$ac_t""yes" 1>&6
2954 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2955 cat >> confdefs.h <<EOF
2956 #define $ac_tr_func 1
2960 echo "$ac_t""no" 1>&6
2964 for ac_hdr in execinfo.h unistd.h dlfcn.h
2966 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2967 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2968 echo "configure:2969: checking for $ac_hdr" >&5
2969 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2970 echo $ac_n "(cached) $ac_c" 1>&6
2972 cat > conftest.$ac_ext <<EOF
2973 #line 2974 "configure"
2974 #include "confdefs.h"
2977 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2978 { (eval echo configure:2979: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2979 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2980 if test -z "$ac_err"; then
2982 eval "ac_cv_header_$ac_safe=yes"
2985 echo "configure: failed program was:" >&5
2986 cat conftest.$ac_ext >&5
2988 eval "ac_cv_header_$ac_safe=no"
2992 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2993 echo "$ac_t""yes" 1>&6
2994 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2995 cat >> confdefs.h <<EOF
2996 #define $ac_tr_hdr 1
3000 echo "$ac_t""no" 1>&6
3004 echo $ac_n "checking for dladdr in -ldl""... $ac_c" 1>&6
3005 echo "configure:3006: checking for dladdr in -ldl" >&5
3006 ac_lib_var=`echo dl'_'dladdr | sed 'y%./+-%__p_%'`
3007 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3008 echo $ac_n "(cached) $ac_c" 1>&6
3010 ac_save_LIBS="$LIBS"
3012 cat > conftest.$ac_ext <<EOF
3013 #line 3014 "configure"
3014 #include "confdefs.h"
3015 /* Override any gcc2 internal prototype to avoid an error. */
3016 /* We use char because int might match the return type of a gcc2
3017 builtin and then its argument prototype would still apply. */
3024 if { (eval echo configure:3025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3026 eval "ac_cv_lib_$ac_lib_var=yes"
3028 echo "configure: failed program was:" >&5
3029 cat conftest.$ac_ext >&5
3031 eval "ac_cv_lib_$ac_lib_var=no"
3034 LIBS="$ac_save_LIBS"
3037 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3038 echo "$ac_t""yes" 1>&6
3040 cat >> confdefs.h <<\EOF
3041 #define HAVE_DLADDR 1
3045 echo "$ac_t""no" 1>&6
3048 for ac_file in /proc/self/exe
3051 ac_safe=`echo "$ac_file" | sed 'y%./+-%__p_%'`
3052 echo $ac_n "checking for $ac_file""... $ac_c" 1>&6
3053 echo "configure:3054: checking for $ac_file" >&5
3054 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
3055 echo $ac_n "(cached) $ac_c" 1>&6
3057 if test "$cross_compiling" = yes; then
3058 { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
3060 if test -r $ac_file; then
3061 eval "ac_cv_file_$ac_safe=yes"
3063 eval "ac_cv_file_$ac_safe=no"
3067 if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
3068 echo "$ac_t""yes" 1>&6
3069 ac_tr_file=HAVE_`echo $ac_file | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3070 cat >> confdefs.h <<EOF
3071 #define $ac_tr_file 1
3074 cat >> confdefs.h <<\EOF
3075 #define HAVE_PROC_SELF_EXE 1
3079 echo "$ac_t""no" 1>&6
3085 for ac_func in gethostbyname_r
3087 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3088 echo "configure:3089: checking for $ac_func" >&5
3089 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3090 echo $ac_n "(cached) $ac_c" 1>&6
3092 cat > conftest.$ac_ext <<EOF
3093 #line 3094 "configure"
3094 #include "confdefs.h"
3095 /* System header to define __stub macros and hopefully few prototypes,
3096 which can conflict with char $ac_func(); below. */
3098 /* Override any gcc2 internal prototype to avoid an error. */
3099 /* We use char because int might match the return type of a gcc2
3100 builtin and then its argument prototype would still apply. */
3105 /* The GNU C library defines this for functions which it implements
3106 to always fail with ENOSYS. Some functions are actually named
3107 something starting with __ and the normal name is an alias. */
3108 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3116 if { (eval echo configure:3117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3118 eval "ac_cv_func_$ac_func=yes"
3120 echo "configure: failed program was:" >&5
3121 cat conftest.$ac_ext >&5
3123 eval "ac_cv_func_$ac_func=no"
3128 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3129 echo "$ac_t""yes" 1>&6
3130 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3131 cat >> confdefs.h <<EOF
3132 #define $ac_tr_func 1
3135 cat >> confdefs.h <<\EOF
3136 #define HAVE_GETHOSTBYNAME_R 1
3139 # There are two different kinds of gethostbyname_r.
3140 # We look for the one that returns `int'.
3141 # Hopefully this check is robust enough.
3142 cat > conftest.$ac_ext <<EOF
3143 #line 3144 "configure"
3144 #include "confdefs.h"
3147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3148 egrep "int.*gethostbyname_r" >/dev/null 2>&1; then
3151 cat >> confdefs.h <<\EOF
3152 #define GETHOSTBYNAME_R_RETURNS_INT 1
3160 *" -D_REENTRANT "*) ;;
3162 echo $ac_n "checking whether gethostbyname_r declaration requires -D_REENTRANT""... $ac_c" 1>&6
3163 echo "configure:3164: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
3164 if eval "test \"`echo '$''{'libjava_cv_gethostbyname_r_needs_reentrant'+set}'`\" = set"; then
3165 echo $ac_n "(cached) $ac_c" 1>&6
3169 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3170 ac_cpp='$CXXCPP $CPPFLAGS'
3171 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3172 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3173 cross_compiling=$ac_cv_prog_cxx_cross
3175 cat > conftest.$ac_ext <<EOF
3176 #line 3177 "configure"
3177 #include "confdefs.h"
3180 gethostbyname_r("", 0, 0);
3183 if { (eval echo configure:3184: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3185 libjava_cv_gethostbyname_r_needs_reentrant=no
3187 echo "configure: failed program was:" >&5
3188 cat conftest.$ac_ext >&5
3190 CPPFLAGS_SAVE="$CPPFLAGS"
3191 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
3192 cat > conftest.$ac_ext <<EOF
3193 #line 3194 "configure"
3194 #include "confdefs.h"
3197 gethostbyname_r("", 0, 0);
3200 if { (eval echo configure:3201: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3202 libjava_cv_gethostbyname_r_needs_reentrant=yes
3204 echo "configure: failed program was:" >&5
3205 cat conftest.$ac_ext >&5
3207 libjava_cv_gethostbyname_r_needs_reentrant=fail
3210 CPPFLAGS="$CPPFLAGS_SAVE"
3215 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3216 ac_cpp='$CPP $CPPFLAGS'
3217 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3218 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3219 cross_compiling=$ac_cv_prog_cc_cross
3224 echo "$ac_t""$libjava_cv_gethostbyname_r_needs_reentrant" 1>&6
3225 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
3226 cat >> confdefs.h <<\EOF
3227 #define GETHOSTBYNAME_R_NEEDS_REENTRANT 1
3234 echo $ac_n "checking for struct hostent_data""... $ac_c" 1>&6
3235 echo "configure:3236: checking for struct hostent_data" >&5
3236 if eval "test \"`echo '$''{'libjava_cv_struct_hostent_data'+set}'`\" = set"; then
3237 echo $ac_n "(cached) $ac_c" 1>&6
3239 cat > conftest.$ac_ext <<EOF
3240 #line 3241 "configure"
3241 #include "confdefs.h"
3243 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
3244 # define _REENTRANT 1
3248 struct hostent_data data;
3251 if { (eval echo configure:3252: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3253 libjava_cv_struct_hostent_data=yes
3255 echo "configure: failed program was:" >&5
3256 cat conftest.$ac_ext >&5
3258 libjava_cv_struct_hostent_data=no
3263 echo "$ac_t""$libjava_cv_struct_hostent_data" 1>&6
3264 if test "x$libjava_cv_struct_hostent_data" = xyes; then
3265 cat >> confdefs.h <<\EOF
3266 #define HAVE_STRUCT_HOSTENT_DATA 1
3272 echo "$ac_t""no" 1>&6
3277 for ac_func in gethostbyaddr_r
3279 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3280 echo "configure:3281: checking for $ac_func" >&5
3281 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3282 echo $ac_n "(cached) $ac_c" 1>&6
3284 cat > conftest.$ac_ext <<EOF
3285 #line 3286 "configure"
3286 #include "confdefs.h"
3287 /* System header to define __stub macros and hopefully few prototypes,
3288 which can conflict with char $ac_func(); below. */
3290 /* Override any gcc2 internal prototype to avoid an error. */
3291 /* We use char because int might match the return type of a gcc2
3292 builtin and then its argument prototype would still apply. */
3297 /* The GNU C library defines this for functions which it implements
3298 to always fail with ENOSYS. Some functions are actually named
3299 something starting with __ and the normal name is an alias. */
3300 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3308 if { (eval echo configure:3309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3310 eval "ac_cv_func_$ac_func=yes"
3312 echo "configure: failed program was:" >&5
3313 cat conftest.$ac_ext >&5
3315 eval "ac_cv_func_$ac_func=no"
3320 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3321 echo "$ac_t""yes" 1>&6
3322 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3323 cat >> confdefs.h <<EOF
3324 #define $ac_tr_func 1
3327 cat >> confdefs.h <<\EOF
3328 #define HAVE_GETHOSTBYADDR_R 1
3331 # There are two different kinds of gethostbyaddr_r.
3332 # We look for the one that returns `int'.
3333 # Hopefully this check is robust enough.
3334 cat > conftest.$ac_ext <<EOF
3335 #line 3336 "configure"
3336 #include "confdefs.h"
3339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3340 egrep "int.*gethostbyaddr_r" >/dev/null 2>&1; then
3343 cat >> confdefs.h <<\EOF
3344 #define GETHOSTBYADDR_R_RETURNS_INT 1
3351 echo "$ac_t""no" 1>&6
3356 for ac_func in gethostname
3358 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3359 echo "configure:3360: checking for $ac_func" >&5
3360 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3361 echo $ac_n "(cached) $ac_c" 1>&6
3363 cat > conftest.$ac_ext <<EOF
3364 #line 3365 "configure"
3365 #include "confdefs.h"
3366 /* System header to define __stub macros and hopefully few prototypes,
3367 which can conflict with char $ac_func(); below. */
3369 /* Override any gcc2 internal prototype to avoid an error. */
3370 /* We use char because int might match the return type of a gcc2
3371 builtin and then its argument prototype would still apply. */
3376 /* The GNU C library defines this for functions which it implements
3377 to always fail with ENOSYS. Some functions are actually named
3378 something starting with __ and the normal name is an alias. */
3379 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3387 if { (eval echo configure:3388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3389 eval "ac_cv_func_$ac_func=yes"
3391 echo "configure: failed program was:" >&5
3392 cat conftest.$ac_ext >&5
3394 eval "ac_cv_func_$ac_func=no"
3399 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3400 echo "$ac_t""yes" 1>&6
3401 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3402 cat >> confdefs.h <<EOF
3403 #define $ac_tr_func 1
3406 cat >> confdefs.h <<\EOF
3407 #define HAVE_GETHOSTNAME 1
3410 cat > conftest.$ac_ext <<EOF
3411 #line 3412 "configure"
3412 #include "confdefs.h"
3415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3416 egrep "gethostname" >/dev/null 2>&1; then
3419 cat >> confdefs.h <<\EOF
3420 #define HAVE_GETHOSTNAME_DECL 1
3427 echo "$ac_t""no" 1>&6
3432 # Look for these functions in the thread library, but only bother
3433 # if using POSIX threads.
3434 if test "$THREADS" = posix; then
3436 LIBS="$LIBS $THREADLIBS"
3437 # Some POSIX thread systems don't have pthread_mutexattr_settype.
3439 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
3441 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3442 echo "configure:3443: checking for $ac_func" >&5
3443 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3444 echo $ac_n "(cached) $ac_c" 1>&6
3446 cat > conftest.$ac_ext <<EOF
3447 #line 3448 "configure"
3448 #include "confdefs.h"
3449 /* System header to define __stub macros and hopefully few prototypes,
3450 which can conflict with char $ac_func(); below. */
3452 /* Override any gcc2 internal prototype to avoid an error. */
3453 /* We use char because int might match the return type of a gcc2
3454 builtin and then its argument prototype would still apply. */
3459 /* The GNU C library defines this for functions which it implements
3460 to always fail with ENOSYS. Some functions are actually named
3461 something starting with __ and the normal name is an alias. */
3462 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3470 if { (eval echo configure:3471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3472 eval "ac_cv_func_$ac_func=yes"
3474 echo "configure: failed program was:" >&5
3475 cat conftest.$ac_ext >&5
3477 eval "ac_cv_func_$ac_func=no"
3482 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3483 echo "$ac_t""yes" 1>&6
3484 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3485 cat >> confdefs.h <<EOF
3486 #define $ac_tr_func 1
3490 echo "$ac_t""no" 1>&6
3495 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
3496 # Solaris 7 the name librt is preferred.
3497 for ac_func in sched_yield
3499 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3500 echo "configure:3501: checking for $ac_func" >&5
3501 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3502 echo $ac_n "(cached) $ac_c" 1>&6
3504 cat > conftest.$ac_ext <<EOF
3505 #line 3506 "configure"
3506 #include "confdefs.h"
3507 /* System header to define __stub macros and hopefully few prototypes,
3508 which can conflict with char $ac_func(); below. */
3510 /* Override any gcc2 internal prototype to avoid an error. */
3511 /* We use char because int might match the return type of a gcc2
3512 builtin and then its argument prototype would still apply. */
3517 /* The GNU C library defines this for functions which it implements
3518 to always fail with ENOSYS. Some functions are actually named
3519 something starting with __ and the normal name is an alias. */
3520 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3528 if { (eval echo configure:3529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3530 eval "ac_cv_func_$ac_func=yes"
3532 echo "configure: failed program was:" >&5
3533 cat conftest.$ac_ext >&5
3535 eval "ac_cv_func_$ac_func=no"
3540 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3541 echo "$ac_t""yes" 1>&6
3542 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3543 cat >> confdefs.h <<EOF
3544 #define $ac_tr_func 1
3548 echo "$ac_t""no" 1>&6
3549 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
3550 echo "configure:3551: checking for sched_yield in -lrt" >&5
3551 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
3552 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3553 echo $ac_n "(cached) $ac_c" 1>&6
3555 ac_save_LIBS="$LIBS"
3557 cat > conftest.$ac_ext <<EOF
3558 #line 3559 "configure"
3559 #include "confdefs.h"
3560 /* Override any gcc2 internal prototype to avoid an error. */
3561 /* We use char because int might match the return type of a gcc2
3562 builtin and then its argument prototype would still apply. */
3569 if { (eval echo configure:3570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3571 eval "ac_cv_lib_$ac_lib_var=yes"
3573 echo "configure: failed program was:" >&5
3574 cat conftest.$ac_ext >&5
3576 eval "ac_cv_lib_$ac_lib_var=no"
3579 LIBS="$ac_save_LIBS"
3582 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3583 echo "$ac_t""yes" 1>&6
3585 cat >> confdefs.h <<\EOF
3586 #define HAVE_SCHED_YIELD 1
3589 THREADLIBS="$THREADLIBS -lrt"
3590 THREADSPEC="$THREADSPEC -lrt"
3592 echo "$ac_t""no" 1>&6
3594 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
3595 echo "configure:3596: checking for sched_yield in -lposix4" >&5
3596 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
3597 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3598 echo $ac_n "(cached) $ac_c" 1>&6
3600 ac_save_LIBS="$LIBS"
3601 LIBS="-lposix4 $LIBS"
3602 cat > conftest.$ac_ext <<EOF
3603 #line 3604 "configure"
3604 #include "confdefs.h"
3605 /* Override any gcc2 internal prototype to avoid an error. */
3606 /* We use char because int might match the return type of a gcc2
3607 builtin and then its argument prototype would still apply. */
3614 if { (eval echo configure:3615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3616 eval "ac_cv_lib_$ac_lib_var=yes"
3618 echo "configure: failed program was:" >&5
3619 cat conftest.$ac_ext >&5
3621 eval "ac_cv_lib_$ac_lib_var=no"
3624 LIBS="$ac_save_LIBS"
3627 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3628 echo "$ac_t""yes" 1>&6
3630 cat >> confdefs.h <<\EOF
3631 #define HAVE_SCHED_YIELD 1
3634 THREADLIBS="$THREADLIBS -lposix4"
3635 THREADSPEC="$THREADSPEC -lposix4"
3637 echo "$ac_t""no" 1>&6
3647 # We can save a little space at runtime if the mutex has m_count
3648 # or __m_count. This is a nice hack for Linux.
3649 cat > conftest.$ac_ext <<EOF
3650 #line 3651 "configure"
3651 #include "confdefs.h"
3652 #include <pthread.h>
3655 extern pthread_mutex_t *mutex; int q = mutex->m_count;
3659 if { (eval echo configure:3660: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3661 cat >> confdefs.h <<\EOF
3662 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
3666 echo "configure: failed program was:" >&5
3667 cat conftest.$ac_ext >&5
3670 cat > conftest.$ac_ext <<EOF
3671 #line 3672 "configure"
3672 #include "confdefs.h"
3673 #include <pthread.h>
3676 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
3680 if { (eval echo configure:3681: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3682 cat >> confdefs.h <<\EOF
3683 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
3687 echo "configure: failed program was:" >&5
3688 cat conftest.$ac_ext >&5
3695 # We require a way to get the time.
3697 for ac_func in gettimeofday time ftime
3699 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3700 echo "configure:3701: checking for $ac_func" >&5
3701 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3702 echo $ac_n "(cached) $ac_c" 1>&6
3704 cat > conftest.$ac_ext <<EOF
3705 #line 3706 "configure"
3706 #include "confdefs.h"
3707 /* System header to define __stub macros and hopefully few prototypes,
3708 which can conflict with char $ac_func(); below. */
3710 /* Override any gcc2 internal prototype to avoid an error. */
3711 /* We use char because int might match the return type of a gcc2
3712 builtin and then its argument prototype would still apply. */
3717 /* The GNU C library defines this for functions which it implements
3718 to always fail with ENOSYS. Some functions are actually named
3719 something starting with __ and the normal name is an alias. */
3720 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3728 if { (eval echo configure:3729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3730 eval "ac_cv_func_$ac_func=yes"
3732 echo "configure: failed program was:" >&5
3733 cat conftest.$ac_ext >&5
3735 eval "ac_cv_func_$ac_func=no"
3740 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3741 echo "$ac_t""yes" 1>&6
3742 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3743 cat >> confdefs.h <<EOF
3744 #define $ac_tr_func 1
3748 echo "$ac_t""no" 1>&6
3752 if test "$time_found" = no; then
3753 { echo "configure: error: no function found to get the time" 1>&2; exit 1; }
3756 for ac_func in memmove
3758 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3759 echo "configure:3760: checking for $ac_func" >&5
3760 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3761 echo $ac_n "(cached) $ac_c" 1>&6
3763 cat > conftest.$ac_ext <<EOF
3764 #line 3765 "configure"
3765 #include "confdefs.h"
3766 /* System header to define __stub macros and hopefully few prototypes,
3767 which can conflict with char $ac_func(); below. */
3769 /* Override any gcc2 internal prototype to avoid an error. */
3770 /* We use char because int might match the return type of a gcc2
3771 builtin and then its argument prototype would still apply. */
3776 /* The GNU C library defines this for functions which it implements
3777 to always fail with ENOSYS. Some functions are actually named
3778 something starting with __ and the normal name is an alias. */
3779 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3787 if { (eval echo configure:3788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3789 eval "ac_cv_func_$ac_func=yes"
3791 echo "configure: failed program was:" >&5
3792 cat conftest.$ac_ext >&5
3794 eval "ac_cv_func_$ac_func=no"
3799 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3800 echo "$ac_t""yes" 1>&6
3801 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3802 cat >> confdefs.h <<EOF
3803 #define $ac_tr_func 1
3807 echo "$ac_t""no" 1>&6
3812 # We require memcpy.
3814 for ac_func in memcpy
3816 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3817 echo "configure:3818: checking for $ac_func" >&5
3818 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3819 echo $ac_n "(cached) $ac_c" 1>&6
3821 cat > conftest.$ac_ext <<EOF
3822 #line 3823 "configure"
3823 #include "confdefs.h"
3824 /* System header to define __stub macros and hopefully few prototypes,
3825 which can conflict with char $ac_func(); below. */
3827 /* Override any gcc2 internal prototype to avoid an error. */
3828 /* We use char because int might match the return type of a gcc2
3829 builtin and then its argument prototype would still apply. */
3834 /* The GNU C library defines this for functions which it implements
3835 to always fail with ENOSYS. Some functions are actually named
3836 something starting with __ and the normal name is an alias. */
3837 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3845 if { (eval echo configure:3846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3847 eval "ac_cv_func_$ac_func=yes"
3849 echo "configure: failed program was:" >&5
3850 cat conftest.$ac_ext >&5
3852 eval "ac_cv_func_$ac_func=no"
3857 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3858 echo "$ac_t""yes" 1>&6
3859 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3860 cat >> confdefs.h <<EOF
3861 #define $ac_tr_func 1
3865 echo "$ac_t""no" 1>&6
3869 if test "$memcpy_found" = no; then
3870 { echo "configure: error: memcpy is required" 1>&2; exit 1; }
3873 # Some library-finding code we stole from Tcl.
3874 #--------------------------------------------------------------------
3875 # Check for the existence of the -lsocket and -lnsl libraries.
3876 # The order here is important, so that they end up in the right
3877 # order in the command line generated by make. Here are some
3878 # special considerations:
3879 # 1. Use "connect" and "accept" to check for -lsocket, and
3880 # "gethostbyname" to check for -lnsl.
3881 # 2. Use each function name only once: can't redo a check because
3882 # autoconf caches the results of the last check and won't redo it.
3883 # 3. Use -lnsl and -lsocket only if they supply procedures that
3884 # aren't already present in the normal libraries. This is because
3885 # IRIX 5.2 has libraries, but they aren't needed and they're
3886 # bogus: they goof up name resolution if used.
3887 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
3888 # To get around this problem, check for both libraries together
3889 # if -lsocket doesn't work by itself.
3890 #--------------------------------------------------------------------
3892 echo $ac_n "checking for socket libraries""... $ac_c" 1>&6
3893 echo "configure:3894: checking for socket libraries" >&5
3894 if eval "test \"`echo '$''{'gcj_cv_lib_sockets'+set}'`\" = set"; then
3895 echo $ac_n "(cached) $ac_c" 1>&6
3899 unset ac_cv_func_connect
3900 echo $ac_n "checking for connect""... $ac_c" 1>&6
3901 echo "configure:3902: checking for connect" >&5
3902 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3903 echo $ac_n "(cached) $ac_c" 1>&6
3905 cat > conftest.$ac_ext <<EOF
3906 #line 3907 "configure"
3907 #include "confdefs.h"
3908 /* System header to define __stub macros and hopefully few prototypes,
3909 which can conflict with char connect(); below. */
3911 /* Override any gcc2 internal prototype to avoid an error. */
3912 /* We use char because int might match the return type of a gcc2
3913 builtin and then its argument prototype would still apply. */
3918 /* The GNU C library defines this for functions which it implements
3919 to always fail with ENOSYS. Some functions are actually named
3920 something starting with __ and the normal name is an alias. */
3921 #if defined (__stub_connect) || defined (__stub___connect)
3929 if { (eval echo configure:3930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3931 eval "ac_cv_func_connect=yes"
3933 echo "configure: failed program was:" >&5
3934 cat conftest.$ac_ext >&5
3936 eval "ac_cv_func_connect=no"
3941 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3942 echo "$ac_t""yes" 1>&6
3945 echo "$ac_t""no" 1>&6
3949 if test "$gcj_checkSocket" = 1; then
3950 unset ac_cv_func_connect
3951 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
3952 echo "configure:3953: checking for main in -lsocket" >&5
3953 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
3954 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3955 echo $ac_n "(cached) $ac_c" 1>&6
3957 ac_save_LIBS="$LIBS"
3958 LIBS="-lsocket $LIBS"
3959 cat > conftest.$ac_ext <<EOF
3960 #line 3961 "configure"
3961 #include "confdefs.h"
3967 if { (eval echo configure:3968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3969 eval "ac_cv_lib_$ac_lib_var=yes"
3971 echo "configure: failed program was:" >&5
3972 cat conftest.$ac_ext >&5
3974 eval "ac_cv_lib_$ac_lib_var=no"
3977 LIBS="$ac_save_LIBS"
3980 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3981 echo "$ac_t""yes" 1>&6
3982 gcj_cv_lib_sockets="-lsocket"
3984 echo "$ac_t""no" 1>&6
3989 if test "$gcj_checkBoth" = 1; then
3991 LIBS="$LIBS -lsocket -lnsl"
3992 unset ac_cv_func_accept
3993 echo $ac_n "checking for accept""... $ac_c" 1>&6
3994 echo "configure:3995: checking for accept" >&5
3995 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
3996 echo $ac_n "(cached) $ac_c" 1>&6
3998 cat > conftest.$ac_ext <<EOF
3999 #line 4000 "configure"
4000 #include "confdefs.h"
4001 /* System header to define __stub macros and hopefully few prototypes,
4002 which can conflict with char accept(); below. */
4004 /* Override any gcc2 internal prototype to avoid an error. */
4005 /* We use char because int might match the return type of a gcc2
4006 builtin and then its argument prototype would still apply. */
4011 /* The GNU C library defines this for functions which it implements
4012 to always fail with ENOSYS. Some functions are actually named
4013 something starting with __ and the normal name is an alias. */
4014 #if defined (__stub_accept) || defined (__stub___accept)
4022 if { (eval echo configure:4023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4024 eval "ac_cv_func_accept=yes"
4026 echo "configure: failed program was:" >&5
4027 cat conftest.$ac_ext >&5
4029 eval "ac_cv_func_accept=no"
4034 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
4035 echo "$ac_t""yes" 1>&6
4037 gcj_cv_lib_sockets="-lsocket -lnsl"
4039 echo "$ac_t""no" 1>&6
4042 unset ac_cv_func_accept
4045 unset ac_cv_func_gethostbyname
4047 LIBS="$LIBS $gcj_cv_lib_sockets"
4048 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4049 echo "configure:4050: checking for gethostbyname" >&5
4050 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
4051 echo $ac_n "(cached) $ac_c" 1>&6
4053 cat > conftest.$ac_ext <<EOF
4054 #line 4055 "configure"
4055 #include "confdefs.h"
4056 /* System header to define __stub macros and hopefully few prototypes,
4057 which can conflict with char gethostbyname(); below. */
4059 /* Override any gcc2 internal prototype to avoid an error. */
4060 /* We use char because int might match the return type of a gcc2
4061 builtin and then its argument prototype would still apply. */
4062 char gethostbyname();
4066 /* The GNU C library defines this for functions which it implements
4067 to always fail with ENOSYS. Some functions are actually named
4068 something starting with __ and the normal name is an alias. */
4069 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4077 if { (eval echo configure:4078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4079 eval "ac_cv_func_gethostbyname=yes"
4081 echo "configure: failed program was:" >&5
4082 cat conftest.$ac_ext >&5
4084 eval "ac_cv_func_gethostbyname=no"
4089 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
4090 echo "$ac_t""yes" 1>&6
4093 echo "$ac_t""no" 1>&6
4094 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
4095 echo "configure:4096: checking for main in -lnsl" >&5
4096 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
4097 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4098 echo $ac_n "(cached) $ac_c" 1>&6
4100 ac_save_LIBS="$LIBS"
4102 cat > conftest.$ac_ext <<EOF
4103 #line 4104 "configure"
4104 #include "confdefs.h"
4110 if { (eval echo configure:4111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4112 eval "ac_cv_lib_$ac_lib_var=yes"
4114 echo "configure: failed program was:" >&5
4115 cat conftest.$ac_ext >&5
4117 eval "ac_cv_lib_$ac_lib_var=no"
4120 LIBS="$ac_save_LIBS"
4123 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4124 echo "$ac_t""yes" 1>&6
4125 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
4127 echo "$ac_t""no" 1>&6
4132 unset ac_cv_func_gethostbyname
4137 echo "$ac_t""$gcj_cv_lib_sockets" 1>&6
4138 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
4140 if test "$with_system_zlib" = yes; then
4141 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
4142 echo "configure:4143: checking for deflate in -lz" >&5
4143 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
4144 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4145 echo $ac_n "(cached) $ac_c" 1>&6
4147 ac_save_LIBS="$LIBS"
4149 cat > conftest.$ac_ext <<EOF
4150 #line 4151 "configure"
4151 #include "confdefs.h"
4152 /* Override any gcc2 internal prototype to avoid an error. */
4153 /* We use char because int might match the return type of a gcc2
4154 builtin and then its argument prototype would still apply. */
4161 if { (eval echo configure:4162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4163 eval "ac_cv_lib_$ac_lib_var=yes"
4165 echo "configure: failed program was:" >&5
4166 cat conftest.$ac_ext >&5
4168 eval "ac_cv_lib_$ac_lib_var=no"
4171 LIBS="$ac_save_LIBS"
4174 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4175 echo "$ac_t""yes" 1>&6
4178 echo "$ac_t""no" 1>&6
4186 # On Solaris, and maybe other architectures, the Boehm collector
4188 if test "$GC" = boehm; then
4189 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
4190 echo "configure:4191: checking for main in -ldl" >&5
4191 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
4192 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4193 echo $ac_n "(cached) $ac_c" 1>&6
4195 ac_save_LIBS="$LIBS"
4197 cat > conftest.$ac_ext <<EOF
4198 #line 4199 "configure"
4199 #include "confdefs.h"
4205 if { (eval echo configure:4206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4207 eval "ac_cv_lib_$ac_lib_var=yes"
4209 echo "configure: failed program was:" >&5
4210 cat conftest.$ac_ext >&5
4212 eval "ac_cv_lib_$ac_lib_var=no"
4215 LIBS="$ac_save_LIBS"
4218 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4219 echo "$ac_t""yes" 1>&6
4220 SYSTEMSPEC="$SYSTEMSPEC -ldl"
4222 echo "$ac_t""no" 1>&6
4227 if test -d "$libgcj_basedir/../gcc/java"; then
4239 if test "x$ZLIBSPEC" = "x-lzgcj"; then
4240 # We include the path to the zlib build directory.
4241 # See Makefile.am to understand why.
4242 ZDEPS='$(top_builddir)/../zlib/libzgcj.la'
4243 ZLIBS="$ZDEPS -L\$(here)/../zlib/$libsubdir"
4244 ZINCS='-I$(top_srcdir)/../zlib'
4257 if test "$CANADIAN" = yes; then
4266 if test "$NULL_TARGET" = yes; then
4268 NULL_TARGET_FALSE='#'
4270 NULL_TARGET_TRUE='#'
4275 if test "$NATIVE" = yes || test "$NULL_TARGET" = yes; then
4284 if test -z "$with_cross_host"; then
4286 USE_LIBDIR_FALSE='#'
4293 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
4294 NEEDS_DATA_START_TRUE=
4295 NEEDS_DATA_START_FALSE='#'
4297 NEEDS_DATA_START_TRUE='#'
4298 NEEDS_DATA_START_FALSE=
4302 # Determine gcj version number.
4303 if test "$GCJ" = ""; then
4304 if test -z "${with_multisubdir}"; then
4308 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
4311 dir="`cd ${builddotdot}/../../gcc && pwd`"
4312 GCJ="$dir/gcj -B$dir/"
4315 gcjvers="`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`"
4317 cat >> confdefs.h <<EOF
4318 #define GCJVERSION "$gcjvers"
4322 # See if gcj supports -fuse-divide-subroutine. gcc 2.95 does not, and
4323 # we want to continue to support that version.
4324 echo $ac_n "checking whether gcj supports -fuse-divide-subroutine""... $ac_c" 1>&6
4325 echo "configure:4326: checking whether gcj supports -fuse-divide-subroutine" >&5
4326 cat > conftest.java << 'END'
4327 public class conftest { }
4330 $GCJ -classpath $srcdir -fuse-divide-subroutine -fsyntax-only \
4331 conftest.java > /dev/null 2>&1 \
4334 if test "$use_fuse" = no; then
4337 echo "$ac_t""$use_fuse" 1>&6
4341 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
4343 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4344 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4345 echo "configure:4346: checking for $ac_hdr" >&5
4346 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4347 echo $ac_n "(cached) $ac_c" 1>&6
4349 cat > conftest.$ac_ext <<EOF
4350 #line 4351 "configure"
4351 #include "confdefs.h"
4354 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4355 { (eval echo configure:4356: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4356 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4357 if test -z "$ac_err"; then
4359 eval "ac_cv_header_$ac_safe=yes"
4362 echo "configure: failed program was:" >&5
4363 cat conftest.$ac_ext >&5
4365 eval "ac_cv_header_$ac_safe=no"
4369 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4370 echo "$ac_t""yes" 1>&6
4371 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4372 cat >> confdefs.h <<EOF
4373 #define $ac_tr_hdr 1
4377 echo "$ac_t""no" 1>&6
4381 for ac_hdr in dirent.h
4383 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4384 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4385 echo "configure:4386: checking for $ac_hdr" >&5
4386 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4387 echo $ac_n "(cached) $ac_c" 1>&6
4389 cat > conftest.$ac_ext <<EOF
4390 #line 4391 "configure"
4391 #include "confdefs.h"
4394 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4395 { (eval echo configure:4396: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4396 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4397 if test -z "$ac_err"; then
4399 eval "ac_cv_header_$ac_safe=yes"
4402 echo "configure: failed program was:" >&5
4403 cat conftest.$ac_ext >&5
4405 eval "ac_cv_header_$ac_safe=no"
4409 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4410 echo "$ac_t""yes" 1>&6
4411 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4412 cat >> confdefs.h <<EOF
4413 #define $ac_tr_hdr 1
4417 echo "$ac_t""no" 1>&6
4422 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4423 echo "configure:4424: checking for ANSI C header files" >&5
4424 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
4425 echo $ac_n "(cached) $ac_c" 1>&6
4427 cat > conftest.$ac_ext <<EOF
4428 #line 4429 "configure"
4429 #include "confdefs.h"
4435 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4436 { (eval echo configure:4437: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4437 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4438 if test -z "$ac_err"; then
4440 ac_cv_header_stdc=yes
4443 echo "configure: failed program was:" >&5
4444 cat conftest.$ac_ext >&5
4446 ac_cv_header_stdc=no
4450 if test $ac_cv_header_stdc = yes; then
4451 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4452 cat > conftest.$ac_ext <<EOF
4453 #line 4454 "configure"
4454 #include "confdefs.h"
4457 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4458 egrep "memchr" >/dev/null 2>&1; then
4462 ac_cv_header_stdc=no
4468 if test $ac_cv_header_stdc = yes; then
4469 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4470 cat > conftest.$ac_ext <<EOF
4471 #line 4472 "configure"
4472 #include "confdefs.h"
4475 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4476 egrep "free" >/dev/null 2>&1; then
4480 ac_cv_header_stdc=no
4486 if test $ac_cv_header_stdc = yes; then
4487 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4488 if test "$cross_compiling" = yes; then
4491 cat > conftest.$ac_ext <<EOF
4492 #line 4493 "configure"
4493 #include "confdefs.h"
4495 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4496 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4497 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4498 int main () { int i; for (i = 0; i < 256; i++)
4499 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4503 if { (eval echo configure:4504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4507 echo "configure: failed program was:" >&5
4508 cat conftest.$ac_ext >&5
4510 ac_cv_header_stdc=no
4518 echo "$ac_t""$ac_cv_header_stdc" 1>&6
4519 if test $ac_cv_header_stdc = yes; then
4520 cat >> confdefs.h <<\EOF
4521 #define STDC_HEADERS 1
4526 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
4527 echo "configure:4528: checking for ssize_t" >&5
4528 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
4529 echo $ac_n "(cached) $ac_c" 1>&6
4531 cat > conftest.$ac_ext <<EOF
4532 #line 4533 "configure"
4533 #include "confdefs.h"
4534 #include <sys/types.h>
4540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4541 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4543 ac_cv_type_ssize_t=yes
4546 ac_cv_type_ssize_t=no
4551 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
4552 if test $ac_cv_type_ssize_t = no; then
4553 cat >> confdefs.h <<\EOF
4560 echo $ac_n "checking for in_addr_t""... $ac_c" 1>&6
4561 echo "configure:4562: checking for in_addr_t" >&5
4562 cat > conftest.$ac_ext <<EOF
4563 #line 4564 "configure"
4564 #include "confdefs.h"
4565 #include <sys/types.h>
4570 #if HAVE_NETINET_IN_H
4571 #include <netinet/in.h>
4577 if { (eval echo configure:4578: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4579 cat >> confdefs.h <<\EOF
4580 #define HAVE_IN_ADDR_T 1
4583 echo "$ac_t""yes" 1>&6
4585 echo "configure: failed program was:" >&5
4586 cat conftest.$ac_ext >&5
4588 echo "$ac_t""no" 1>&6
4592 echo $ac_n "checking whether struct ip_mreq is in netinet/in.h""... $ac_c" 1>&6
4593 echo "configure:4594: checking whether struct ip_mreq is in netinet/in.h" >&5
4594 cat > conftest.$ac_ext <<EOF
4595 #line 4596 "configure"
4596 #include "confdefs.h"
4597 #include <netinet/in.h>
4599 struct ip_mreq mreq;
4602 if { (eval echo configure:4603: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4604 cat >> confdefs.h <<\EOF
4605 #define HAVE_STRUCT_IP_MREQ 1
4608 echo "$ac_t""yes" 1>&6
4610 echo "configure: failed program was:" >&5
4611 cat conftest.$ac_ext >&5
4613 echo "$ac_t""no" 1>&6
4617 echo $ac_n "checking whether struct sockaddr_in6 is in netinet/in.h""... $ac_c" 1>&6
4618 echo "configure:4619: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
4619 cat > conftest.$ac_ext <<EOF
4620 #line 4621 "configure"
4621 #include "confdefs.h"
4622 #include <netinet/in.h>
4624 struct sockaddr_in6 addr6;
4627 if { (eval echo configure:4628: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4629 cat >> confdefs.h <<\EOF
4630 #define HAVE_INET6 1
4633 echo "$ac_t""yes" 1>&6
4635 echo "configure: failed program was:" >&5
4636 cat conftest.$ac_ext >&5
4638 echo "$ac_t""no" 1>&6
4642 echo $ac_n "checking for socklen_t in sys/socket.h""... $ac_c" 1>&6
4643 echo "configure:4644: checking for socklen_t in sys/socket.h" >&5
4644 cat > conftest.$ac_ext <<EOF
4645 #line 4646 "configure"
4646 #include "confdefs.h"
4647 #include <sys/socket.h>
4652 if { (eval echo configure:4653: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4654 cat >> confdefs.h <<\EOF
4655 #define HAVE_SOCKLEN_T 1
4658 echo "$ac_t""yes" 1>&6
4660 echo "configure: failed program was:" >&5
4661 cat conftest.$ac_ext >&5
4663 echo "$ac_t""no" 1>&6
4667 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
4668 echo "configure:4669: checking for tm_gmtoff in struct tm" >&5
4669 cat > conftest.$ac_ext <<EOF
4670 #line 4671 "configure"
4671 #include "confdefs.h"
4674 struct tm tim; tim.tm_gmtoff = 0;
4677 if { (eval echo configure:4678: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4679 cat >> confdefs.h <<\EOF
4680 #define STRUCT_TM_HAS_GMTOFF 1
4683 echo "$ac_t""yes" 1>&6
4685 echo "configure: failed program was:" >&5
4686 cat conftest.$ac_ext >&5
4688 echo "$ac_t""no" 1>&6
4689 echo $ac_n "checking for global timezone variable""... $ac_c" 1>&6
4690 echo "configure:4691: checking for global timezone variable" >&5
4691 cat > conftest.$ac_ext <<EOF
4692 #line 4693 "configure"
4693 #include "confdefs.h"
4699 if { (eval echo configure:4700: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4701 cat >> confdefs.h <<\EOF
4702 #define HAVE_TIMEZONE 1
4705 echo "$ac_t""yes" 1>&6
4707 echo "configure: failed program was:" >&5
4708 cat conftest.$ac_ext >&5
4710 echo "$ac_t""no" 1>&6
4716 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4717 # for constant arguments. Useless!
4718 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4719 echo "configure:4720: checking for working alloca.h" >&5
4720 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4721 echo $ac_n "(cached) $ac_c" 1>&6
4723 cat > conftest.$ac_ext <<EOF
4724 #line 4725 "configure"
4725 #include "confdefs.h"
4728 char *p = alloca(2 * sizeof(int));
4731 if { (eval echo configure:4732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4733 ac_cv_header_alloca_h=yes
4735 echo "configure: failed program was:" >&5
4736 cat conftest.$ac_ext >&5
4738 ac_cv_header_alloca_h=no
4743 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4744 if test $ac_cv_header_alloca_h = yes; then
4745 cat >> confdefs.h <<\EOF
4746 #define HAVE_ALLOCA_H 1
4751 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4752 echo "configure:4753: checking for alloca" >&5
4753 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4754 echo $ac_n "(cached) $ac_c" 1>&6
4756 cat > conftest.$ac_ext <<EOF
4757 #line 4758 "configure"
4758 #include "confdefs.h"
4761 # define alloca __builtin_alloca
4764 # include <malloc.h>
4765 # define alloca _alloca
4768 # include <alloca.h>
4773 # ifndef alloca /* predefined by HP cc +Olibcalls */
4782 char *p = (char *) alloca(1);
4785 if { (eval echo configure:4786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4787 ac_cv_func_alloca_works=yes
4789 echo "configure: failed program was:" >&5
4790 cat conftest.$ac_ext >&5
4792 ac_cv_func_alloca_works=no
4797 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4798 if test $ac_cv_func_alloca_works = yes; then
4799 cat >> confdefs.h <<\EOF
4800 #define HAVE_ALLOCA 1
4805 if test $ac_cv_func_alloca_works = no; then
4806 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4807 # that cause trouble. Some versions do not even contain alloca or
4808 # contain a buggy version. If you still want to use their alloca,
4809 # use ar to extract alloca.o from them instead of compiling alloca.c.
4810 ALLOCA=alloca.${ac_objext}
4811 cat >> confdefs.h <<\EOF
4816 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4817 echo "configure:4818: checking whether alloca needs Cray hooks" >&5
4818 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4819 echo $ac_n "(cached) $ac_c" 1>&6
4821 cat > conftest.$ac_ext <<EOF
4822 #line 4823 "configure"
4823 #include "confdefs.h"
4824 #if defined(CRAY) && ! defined(CRAY2)
4831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4832 egrep "webecray" >/dev/null 2>&1; then
4843 echo "$ac_t""$ac_cv_os_cray" 1>&6
4844 if test $ac_cv_os_cray = yes; then
4845 for ac_func in _getb67 GETB67 getb67; do
4846 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4847 echo "configure:4848: checking for $ac_func" >&5
4848 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4849 echo $ac_n "(cached) $ac_c" 1>&6
4851 cat > conftest.$ac_ext <<EOF
4852 #line 4853 "configure"
4853 #include "confdefs.h"
4854 /* System header to define __stub macros and hopefully few prototypes,
4855 which can conflict with char $ac_func(); below. */
4857 /* Override any gcc2 internal prototype to avoid an error. */
4858 /* We use char because int might match the return type of a gcc2
4859 builtin and then its argument prototype would still apply. */
4864 /* The GNU C library defines this for functions which it implements
4865 to always fail with ENOSYS. Some functions are actually named
4866 something starting with __ and the normal name is an alias. */
4867 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4875 if { (eval echo configure:4876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4877 eval "ac_cv_func_$ac_func=yes"
4879 echo "configure: failed program was:" >&5
4880 cat conftest.$ac_ext >&5
4882 eval "ac_cv_func_$ac_func=no"
4887 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4888 echo "$ac_t""yes" 1>&6
4889 cat >> confdefs.h <<EOF
4890 #define CRAY_STACKSEG_END $ac_func
4895 echo "$ac_t""no" 1>&6
4901 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4902 echo "configure:4903: checking stack direction for C alloca" >&5
4903 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4904 echo $ac_n "(cached) $ac_c" 1>&6
4906 if test "$cross_compiling" = yes; then
4907 ac_cv_c_stack_direction=0
4909 cat > conftest.$ac_ext <<EOF
4910 #line 4911 "configure"
4911 #include "confdefs.h"
4912 find_stack_direction ()
4914 static char *addr = 0;
4919 return find_stack_direction ();
4922 return (&dummy > addr) ? 1 : -1;
4926 exit (find_stack_direction() < 0);
4929 if { (eval echo configure:4930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4931 ac_cv_c_stack_direction=1
4933 echo "configure: failed program was:" >&5
4934 cat conftest.$ac_ext >&5
4936 ac_cv_c_stack_direction=-1
4943 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
4944 cat >> confdefs.h <<EOF
4945 #define STACK_DIRECTION $ac_cv_c_stack_direction
4953 # Extract the first word of "$ac_prog", so it can be a program name with args.
4954 set dummy $ac_prog; ac_word=$2
4955 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4956 echo "configure:4957: checking for $ac_word" >&5
4957 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
4958 echo $ac_n "(cached) $ac_c" 1>&6
4960 if test -n "$PERL"; then
4961 ac_cv_prog_PERL="$PERL" # Let the user override the test.
4963 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4965 for ac_dir in $ac_dummy; do
4966 test -z "$ac_dir" && ac_dir=.
4967 if test -f $ac_dir/$ac_word; then
4968 ac_cv_prog_PERL="$ac_prog"
4975 PERL="$ac_cv_prog_PERL"
4976 if test -n "$PERL"; then
4977 echo "$ac_t""$PERL" 1>&6
4979 echo "$ac_t""no" 1>&6
4982 test -n "$PERL" && break
4984 test -n "$PERL" || PERL="false"
4987 if test "$enable_sjlj_exceptions" = yes; then
4988 SIGNAL_HANDLER=include/default-signal.h
4992 SIGNAL_HANDLER=include/i386-signal.h
4995 SIGNAL_HANDLER=include/sparc-signal.h
4998 SIGNAL_HANDLER=include/default-signal.h
5005 if test "${multilib}" = "yes"; then
5006 multilib_arg="--enable-multilib"
5015 cat > confcache <<\EOF
5016 # This file is a shell script that caches the results of configure
5017 # tests run on this system so they can be shared between configure
5018 # scripts and configure runs. It is not useful on other systems.
5019 # If it contains results you don't want to keep, you may remove or edit it.
5021 # By default, configure uses ./config.cache as the cache file,
5022 # creating it if it does not exist already. You can give configure
5023 # the --cache-file=FILE option to use a different cache file; that is
5024 # what configure does when it calls configure scripts in
5025 # subdirectories, so they share the cache.
5026 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5027 # config.status only pays attention to the cache file if you give it the
5028 # --recheck option to rerun configure.
5031 # The following way of writing the cache mishandles newlines in values,
5032 # but we know of no workaround that is simple, portable, and efficient.
5033 # So, don't put newlines in cache variables' values.
5034 # Ultrix sh set writes to stderr and can't be redirected directly,
5035 # and sets the high bit in the cache file unless we assign to the vars.
5037 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5039 # `set' does not quote correctly, so add quotes (double-quote substitution
5040 # turns \\\\ into \\, and sed turns \\ into \).
5042 -e "s/'/'\\\\''/g" \
5043 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5046 # `set' quotes correctly as required by POSIX, so do not add quotes.
5047 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5050 if cmp -s $cache_file confcache; then
5053 if test -w $cache_file; then
5054 echo "updating cache $cache_file"
5055 cat confcache > $cache_file
5057 echo "not updating unwritable cache $cache_file"
5062 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5064 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5065 # Let make expand exec_prefix.
5066 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5068 # Any assignment to VPATH causes Sun make to only execute
5069 # the first set of double-colon rules, so remove it if not needed.
5070 # If there is a colon in the path, we need to keep it.
5071 if test "x$srcdir" = x.; then
5072 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5075 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5077 DEFS=-DHAVE_CONFIG_H
5079 # Without the "./", some shells look in PATH for config.status.
5080 : ${CONFIG_STATUS=./config.status}
5082 echo creating $CONFIG_STATUS
5083 rm -f $CONFIG_STATUS
5084 cat > $CONFIG_STATUS <<EOF
5086 # Generated automatically by configure.
5087 # Run this file to recreate the current configuration.
5088 # This directory was configured as follows,
5089 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5091 # $0 $ac_configure_args
5093 # Compiler output produced by configure, useful for debugging
5094 # configure, is in ./config.log if it exists.
5096 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5099 case "\$ac_option" in
5100 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5101 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5102 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5103 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5104 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5106 -help | --help | --hel | --he | --h)
5107 echo "\$ac_cs_usage"; exit 0 ;;
5108 *) echo "\$ac_cs_usage"; exit 1 ;;
5112 ac_given_srcdir=$srcdir
5113 ac_given_INSTALL="$INSTALL"
5115 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
5117 cat >> $CONFIG_STATUS <<EOF
5119 # Protect against being on the right side of a sed subst in config.status.
5120 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5121 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5125 s%@CFLAGS@%$CFLAGS%g
5126 s%@CPPFLAGS@%$CPPFLAGS%g
5127 s%@CXXFLAGS@%$CXXFLAGS%g
5128 s%@FFLAGS@%$FFLAGS%g
5130 s%@LDFLAGS@%$LDFLAGS%g
5132 s%@exec_prefix@%$exec_prefix%g
5133 s%@prefix@%$prefix%g
5134 s%@program_transform_name@%$program_transform_name%g
5135 s%@bindir@%$bindir%g
5136 s%@sbindir@%$sbindir%g
5137 s%@libexecdir@%$libexecdir%g
5138 s%@datadir@%$datadir%g
5139 s%@sysconfdir@%$sysconfdir%g
5140 s%@sharedstatedir@%$sharedstatedir%g
5141 s%@localstatedir@%$localstatedir%g
5142 s%@libdir@%$libdir%g
5143 s%@includedir@%$includedir%g
5144 s%@oldincludedir@%$oldincludedir%g
5145 s%@infodir@%$infodir%g
5146 s%@mandir@%$mandir%g
5148 s%@host_alias@%$host_alias%g
5149 s%@host_cpu@%$host_cpu%g
5150 s%@host_vendor@%$host_vendor%g
5151 s%@host_os@%$host_os%g
5152 s%@target@%$target%g
5153 s%@target_alias@%$target_alias%g
5154 s%@target_cpu@%$target_cpu%g
5155 s%@target_vendor@%$target_vendor%g
5156 s%@target_os@%$target_os%g
5158 s%@build_alias@%$build_alias%g
5159 s%@build_cpu@%$build_cpu%g
5160 s%@build_vendor@%$build_vendor%g
5161 s%@build_os@%$build_os%g
5162 s%@libgcj_basedir@%$libgcj_basedir%g
5163 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5164 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5165 s%@INSTALL_DATA@%$INSTALL_DATA%g
5166 s%@PACKAGE@%$PACKAGE%g
5167 s%@VERSION@%$VERSION%g
5168 s%@ACLOCAL@%$ACLOCAL%g
5169 s%@AUTOCONF@%$AUTOCONF%g
5170 s%@AUTOMAKE@%$AUTOMAKE%g
5171 s%@AUTOHEADER@%$AUTOHEADER%g
5172 s%@MAKEINFO@%$MAKEINFO%g
5173 s%@SET_MAKE@%$SET_MAKE%g
5178 s%@RANLIB@%$RANLIB%g
5179 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
5180 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
5182 s%@EXEEXT@%$EXEEXT%g
5183 s%@LIBGCJ_CFLAGS@%$LIBGCJ_CFLAGS%g
5184 s%@LIBGCJ_CXXFLAGS@%$LIBGCJ_CXXFLAGS%g
5185 s%@LIBGCJ_JAVAFLAGS@%$LIBGCJ_JAVAFLAGS%g
5186 s%@INCLTDL@%$INCLTDL%g
5187 s%@LIBLTDL@%$LIBLTDL%g
5188 s%@DIRLTDL@%$DIRLTDL%g
5190 s%@LIBTOOL@%$LIBTOOL%g
5191 s%@subdirs@%$subdirs%g
5192 s%@COMPPATH@%$COMPPATH%g
5193 s%@TESTSUBDIR_TRUE@%$TESTSUBDIR_TRUE%g
5194 s%@TESTSUBDIR_FALSE@%$TESTSUBDIR_FALSE%g
5195 s%@LIBDATASTARTSPEC@%$LIBDATASTARTSPEC%g
5197 s%@SYSTEMSPEC@%$SYSTEMSPEC%g
5198 s%@ZLIBSPEC@%$ZLIBSPEC%g
5199 s%@GCLIBS@%$GCLIBS%g
5200 s%@GCINCS@%$GCINCS%g
5201 s%@GCDEPS@%$GCDEPS%g
5202 s%@GCOBJS@%$GCOBJS%g
5203 s%@GCSPEC@%$GCSPEC%g
5204 s%@THREADLIBS@%$THREADLIBS%g
5205 s%@THREADINCS@%$THREADINCS%g
5206 s%@THREADDEPS@%$THREADDEPS%g
5207 s%@THREADOBJS@%$THREADOBJS%g
5208 s%@THREADSPEC@%$THREADSPEC%g
5209 s%@USING_GCC_TRUE@%$USING_GCC_TRUE%g
5210 s%@USING_GCC_FALSE@%$USING_GCC_FALSE%g
5214 s%@DIVIDESPEC@%$DIVIDESPEC%g
5215 s%@EXCEPTIONSPEC@%$EXCEPTIONSPEC%g
5216 s%@FORCELIBGCCSPEC@%$FORCELIBGCCSPEC%g
5217 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
5218 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
5219 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
5220 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
5221 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
5222 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
5223 s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
5224 s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
5225 s%@NEEDS_DATA_START_TRUE@%$NEEDS_DATA_START_TRUE%g
5226 s%@NEEDS_DATA_START_FALSE@%$NEEDS_DATA_START_FALSE%g
5227 s%@EH_COMMON_INCLUDE@%$EH_COMMON_INCLUDE%g
5228 s%@AM_RUNTESTFLAGS@%$AM_RUNTESTFLAGS%g
5229 s%@ALLOCA@%$ALLOCA%g
5236 cat >> $CONFIG_STATUS <<\EOF
5238 # Split the substitutions into bite-sized pieces for seds with
5239 # small command number limits, like on Digital OSF/1 and HP-UX.
5240 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5241 ac_file=1 # Number of current file.
5242 ac_beg=1 # First line for current file.
5243 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5246 while $ac_more_lines; do
5247 if test $ac_beg -gt 1; then
5248 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5250 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5252 if test ! -s conftest.s$ac_file; then
5254 rm -f conftest.s$ac_file
5256 if test -z "$ac_sed_cmds"; then
5257 ac_sed_cmds="sed -f conftest.s$ac_file"
5259 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5261 ac_file=`expr $ac_file + 1`
5263 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5266 if test -z "$ac_sed_cmds"; then
5271 cat >> $CONFIG_STATUS <<EOF
5273 CONFIG_FILES=\${CONFIG_FILES-"Makefile libgcj.spec gcj/Makefile include/Makefile testsuite/Makefile"}
5275 cat >> $CONFIG_STATUS <<\EOF
5276 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5277 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5279 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5280 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5281 *) ac_file_in="${ac_file}.in" ;;
5284 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5286 # Remove last slash and all that follows it. Not all systems have dirname.
5287 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5288 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5289 # The file is in a subdirectory.
5290 test ! -d "$ac_dir" && mkdir "$ac_dir"
5291 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5292 # A "../" for each directory in $ac_dir_suffix.
5293 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5295 ac_dir_suffix= ac_dots=
5298 case "$ac_given_srcdir" in
5300 if test -z "$ac_dots"; then top_srcdir=.
5301 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5302 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5304 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5305 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5308 case "$ac_given_INSTALL" in
5309 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5310 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5313 echo creating "$ac_file"
5315 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5317 *Makefile*) ac_comsub="1i\\
5318 # $configure_input" ;;
5322 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5324 s%@configure_input@%$configure_input%g
5325 s%@srcdir@%$srcdir%g
5326 s%@top_srcdir@%$top_srcdir%g
5327 s%@INSTALL@%$INSTALL%g
5328 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5332 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5333 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5335 # ac_d sets the value in "#define NAME VALUE" lines.
5336 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5337 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5340 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5341 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5342 ac_uB='\([ ]\)%\1#\2define\3'
5345 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5346 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5347 ac_eB='$%\1#\2define\3'
5351 if test "${CONFIG_HEADERS+set}" != set; then
5353 cat >> $CONFIG_STATUS <<EOF
5354 CONFIG_HEADERS="include/config.h"
5356 cat >> $CONFIG_STATUS <<\EOF
5358 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5359 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5361 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5362 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5363 *) ac_file_in="${ac_file}.in" ;;
5366 echo creating $ac_file
5368 rm -f conftest.frag conftest.in conftest.out
5369 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5370 cat $ac_file_inputs > conftest.in
5374 # Transform confdefs.h into a sed script conftest.vals that substitutes
5375 # the proper values into config.h.in to produce config.h. And first:
5376 # Protect against being on the right side of a sed subst in config.status.
5377 # Protect against being in an unquoted here document in config.status.
5379 cat > conftest.hdr <<\EOF
5382 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5386 sed -n -f conftest.hdr confdefs.h > conftest.vals
5389 # This sed command replaces #undef with comments. This is necessary, for
5390 # example, in the case of _POSIX_SOURCE, which is predefined and required
5391 # on some systems where configure will not decide to define it.
5392 cat >> conftest.vals <<\EOF
5393 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5396 # Break up conftest.vals because some shells have a limit on
5397 # the size of here documents, and old seds have small limits too.
5402 ac_lines=`grep -c . conftest.vals`
5403 # grep -c gives empty output for an empty file on some AIX systems.
5404 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5405 # Write a limited-size here document to conftest.frag.
5406 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5407 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5409 sed -f conftest.frag conftest.in > conftest.out
5411 mv conftest.out conftest.in
5413 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5415 mv conftest.tail conftest.vals
5419 cat >> $CONFIG_STATUS <<\EOF
5420 rm -f conftest.frag conftest.h
5421 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5422 cat conftest.in >> conftest.h
5424 if cmp -s $ac_file conftest.h 2>/dev/null; then
5425 echo "$ac_file is unchanged"
5428 # Remove last slash and all that follows it. Not all systems have dirname.
5429 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5430 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5431 # The file is in a subdirectory.
5432 test ! -d "$ac_dir" && mkdir "$ac_dir"
5435 mv conftest.h $ac_file
5441 cat >> $CONFIG_STATUS <<EOF
5442 ac_sources="java/io/$FILE_DESCRIPTOR java/lang/${PROCESS}Process.java java/lang/nat${PROCESS}Process.cc include/$GCHDR include/$THREADH $SIGNAL_HANDLER"
5443 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"
5446 cat >> $CONFIG_STATUS <<\EOF
5447 srcdir=$ac_given_srcdir
5448 while test -n "$ac_sources"; do
5449 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
5450 set $ac_sources; ac_source=$1; shift; ac_sources=$*
5452 echo "linking $srcdir/$ac_source to $ac_dest"
5454 if test ! -r $srcdir/$ac_source; then
5455 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
5459 # Make relative symlinks.
5460 # Remove last slash and all that follows it. Not all systems have dirname.
5461 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
5462 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
5463 # The dest file is in a subdirectory.
5464 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
5465 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
5466 # A "../" for each directory in $ac_dest_dir_suffix.
5467 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
5469 ac_dest_dir_suffix= ac_dots=
5473 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
5474 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
5477 # Make a symlink if possible; otherwise try a hard link.
5478 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
5479 ln $srcdir/$ac_source $ac_dest; then :
5481 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
5485 cat >> $CONFIG_STATUS <<EOF
5490 with_multisubdir=${with_multisubdir}
5491 ac_configure_args="${multilib_arg} ${ac_configure_args}"
5492 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
5493 libgcj_basedir=${libgcj_basedir}
5498 cat >> $CONFIG_STATUS <<\EOF
5499 test -z "$CONFIG_HEADERS" || echo timestamp > include/stamp-h
5500 if test -n "$CONFIG_FILES"; then
5501 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
5505 chmod +x $CONFIG_STATUS
5506 rm -fr confdefs* $ac_clean_files
5507 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5509 if test "$no_recursion" != yes; then
5511 # Remove --cache-file and --srcdir arguments so they do not pile up.
5512 ac_sub_configure_args=
5514 for ac_arg in $ac_configure_args; do
5515 if test -n "$ac_prev"; then
5520 -cache-file | --cache-file | --cache-fil | --cache-fi \
5521 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
5522 ac_prev=cache_file ;;
5523 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
5524 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
5526 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
5528 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
5530 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
5534 for ac_config_dir in $DIRLTDL; do
5536 # Do not complain, so a configure script can configure whichever
5537 # parts of a large source tree are present.
5538 if test ! -d $srcdir/$ac_config_dir; then
5542 echo configuring in $ac_config_dir
5547 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
5549 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
5557 # A "../" for each directory in /$ac_config_dir.
5558 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
5561 .) # No --srcdir option. We are building in place.
5562 ac_sub_srcdir=$srcdir ;;
5563 /*) # Absolute path.
5564 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
5566 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
5569 # Check for guested configure; otherwise get Cygnus style configure.
5570 if test -f $ac_sub_srcdir/configure; then
5571 ac_sub_configure=$ac_sub_srcdir/configure
5572 elif test -f $ac_sub_srcdir/configure.in; then
5573 ac_sub_configure=$ac_configure
5575 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
5579 # The recursion is here.
5580 if test -n "$ac_sub_configure"; then
5582 # Make the cache file name correct relative to the subdirectory.
5583 case "$cache_file" in
5584 /*) ac_sub_cache_file=$cache_file ;;
5586 ac_sub_cache_file="$ac_dots$cache_file" ;;
5588 case "$ac_given_INSTALL" in
5589 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5590 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5593 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
5594 # The eval makes quoting arguments work.
5595 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
5598 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }