3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --with-target-subdir=SUBDIR
16 configuring in a subdirectory"
18 --with-cross-host=HOST configuring with a cross compiler"
20 --enable-multilib build many library versions (default)"
22 --enable-maintainer-mode enable make rules and dependencies not useful
23 (and sometimes confusing) to the casual installer"
25 --enable-shared[=PKGS] build shared libraries [default=yes]"
27 --enable-static[=PKGS] build static libraries [default=yes]"
29 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
31 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
33 --disable-libtool-lock force libtool not to do file locking"
35 --enable-fast-character prefer speed over size for Character"
37 --enable-libgcj-debug enable runtime debugging code"
39 --enable-interpreter enable interpreter"
41 --with-ecos enable runtime eCos target support"
43 --with-system-zlib use installed libz"
45 --enable-java-gc=TYPE choose garbage collector [boehm]"
47 --enable-threads=TYPE choose threading package"
49 # Initialize some variables set by options.
50 # The variables have the same names as the options, with
51 # dashes changed to underlines.
53 cache_file=./config.cache
62 program_transform_name=s,x,x,
70 bindir='${exec_prefix}/bin'
71 sbindir='${exec_prefix}/sbin'
72 libexecdir='${exec_prefix}/libexec'
73 datadir='${prefix}/share'
74 sysconfdir='${prefix}/etc'
75 sharedstatedir='${prefix}/com'
76 localstatedir='${prefix}/var'
77 libdir='${exec_prefix}/lib'
78 includedir='${prefix}/include'
79 oldincludedir='/usr/include'
80 infodir='${prefix}/info'
81 mandir='${prefix}/man'
83 # Initialize some other variables.
86 SHELL=${CONFIG_SHELL-/bin/sh}
87 # Maximum number of lines to put in a shell here document.
94 # If the previous option needs an argument, assign it.
95 if test -n "$ac_prev"; then
96 eval "$ac_prev=\$ac_option"
102 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
106 # Accept the important Cygnus configure options, so we can diagnose typos.
110 -bindir | --bindir | --bindi | --bind | --bin | --bi)
112 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
113 bindir="$ac_optarg" ;;
115 -build | --build | --buil | --bui | --bu)
117 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
118 build="$ac_optarg" ;;
120 -cache-file | --cache-file | --cache-fil | --cache-fi \
121 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
122 ac_prev=cache_file ;;
123 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
124 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
125 cache_file="$ac_optarg" ;;
127 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
129 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
131 datadir="$ac_optarg" ;;
133 -disable-* | --disable-*)
134 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
135 # Reject names that are not valid shell variable names.
136 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
137 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
139 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
140 eval "enable_${ac_feature}=no" ;;
142 -enable-* | --enable-*)
143 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
144 # Reject names that are not valid shell variable names.
145 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
146 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
148 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
153 eval "enable_${ac_feature}='$ac_optarg'" ;;
155 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
156 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
157 | --exec | --exe | --ex)
158 ac_prev=exec_prefix ;;
159 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
160 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
161 | --exec=* | --exe=* | --ex=*)
162 exec_prefix="$ac_optarg" ;;
164 -gas | --gas | --ga | --g)
165 # Obsolete; use --with-gas.
168 -help | --help | --hel | --he)
169 # Omit some internal or obsolete options to make the list less imposing.
170 # This message is too long to be a string in the A/UX 3.1 sh.
172 Usage: configure [options] [host]
173 Options: [defaults in brackets after descriptions]
175 --cache-file=FILE cache test results in FILE
176 --help print this message
177 --no-create do not create output files
178 --quiet, --silent do not print \`checking...' messages
179 --version print the version of autoconf that created configure
180 Directory and file names:
181 --prefix=PREFIX install architecture-independent files in PREFIX
183 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
185 --bindir=DIR user executables in DIR [EPREFIX/bin]
186 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
187 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
188 --datadir=DIR read-only architecture-independent data in DIR
190 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
191 --sharedstatedir=DIR modifiable architecture-independent data in DIR
193 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
194 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
195 --includedir=DIR C header files in DIR [PREFIX/include]
196 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
197 --infodir=DIR info documentation in DIR [PREFIX/info]
198 --mandir=DIR man documentation in DIR [PREFIX/man]
199 --srcdir=DIR find the sources in DIR [configure dir or ..]
200 --program-prefix=PREFIX prepend PREFIX to installed program names
201 --program-suffix=SUFFIX append SUFFIX to installed program names
202 --program-transform-name=PROGRAM
203 run sed PROGRAM on installed program names
207 --build=BUILD configure for building on BUILD [BUILD=HOST]
208 --host=HOST configure for HOST [guessed]
209 --target=TARGET configure for TARGET [TARGET=HOST]
210 Features and packages:
211 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
212 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
213 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
214 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
215 --x-includes=DIR X include files are in DIR
216 --x-libraries=DIR X library files are in DIR
218 if test -n "$ac_help"; then
219 echo "--enable and --with options recognized:$ac_help"
223 -host | --host | --hos | --ho)
225 -host=* | --host=* | --hos=* | --ho=*)
228 -includedir | --includedir | --includedi | --included | --include \
229 | --includ | --inclu | --incl | --inc)
230 ac_prev=includedir ;;
231 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
232 | --includ=* | --inclu=* | --incl=* | --inc=*)
233 includedir="$ac_optarg" ;;
235 -infodir | --infodir | --infodi | --infod | --info | --inf)
237 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
238 infodir="$ac_optarg" ;;
240 -libdir | --libdir | --libdi | --libd)
242 -libdir=* | --libdir=* | --libdi=* | --libd=*)
243 libdir="$ac_optarg" ;;
245 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
246 | --libexe | --libex | --libe)
247 ac_prev=libexecdir ;;
248 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
249 | --libexe=* | --libex=* | --libe=*)
250 libexecdir="$ac_optarg" ;;
252 -localstatedir | --localstatedir | --localstatedi | --localstated \
253 | --localstate | --localstat | --localsta | --localst \
254 | --locals | --local | --loca | --loc | --lo)
255 ac_prev=localstatedir ;;
256 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
257 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
258 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
259 localstatedir="$ac_optarg" ;;
261 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
263 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
264 mandir="$ac_optarg" ;;
267 # Obsolete; use --without-fp.
270 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
274 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
275 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
278 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
279 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
280 | --oldin | --oldi | --old | --ol | --o)
281 ac_prev=oldincludedir ;;
282 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
283 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
284 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
285 oldincludedir="$ac_optarg" ;;
287 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
289 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
290 prefix="$ac_optarg" ;;
292 -program-prefix | --program-prefix | --program-prefi | --program-pref \
293 | --program-pre | --program-pr | --program-p)
294 ac_prev=program_prefix ;;
295 -program-prefix=* | --program-prefix=* | --program-prefi=* \
296 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
297 program_prefix="$ac_optarg" ;;
299 -program-suffix | --program-suffix | --program-suffi | --program-suff \
300 | --program-suf | --program-su | --program-s)
301 ac_prev=program_suffix ;;
302 -program-suffix=* | --program-suffix=* | --program-suffi=* \
303 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
304 program_suffix="$ac_optarg" ;;
306 -program-transform-name | --program-transform-name \
307 | --program-transform-nam | --program-transform-na \
308 | --program-transform-n | --program-transform- \
309 | --program-transform | --program-transfor \
310 | --program-transfo | --program-transf \
311 | --program-trans | --program-tran \
312 | --progr-tra | --program-tr | --program-t)
313 ac_prev=program_transform_name ;;
314 -program-transform-name=* | --program-transform-name=* \
315 | --program-transform-nam=* | --program-transform-na=* \
316 | --program-transform-n=* | --program-transform-=* \
317 | --program-transform=* | --program-transfor=* \
318 | --program-transfo=* | --program-transf=* \
319 | --program-trans=* | --program-tran=* \
320 | --progr-tra=* | --program-tr=* | --program-t=*)
321 program_transform_name="$ac_optarg" ;;
323 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
324 | -silent | --silent | --silen | --sile | --sil)
327 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
329 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
331 sbindir="$ac_optarg" ;;
333 -sharedstatedir | --sharedstatedir | --sharedstatedi \
334 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
335 | --sharedst | --shareds | --shared | --share | --shar \
337 ac_prev=sharedstatedir ;;
338 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
339 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
340 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
342 sharedstatedir="$ac_optarg" ;;
344 -site | --site | --sit)
346 -site=* | --site=* | --sit=*)
349 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
351 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
352 srcdir="$ac_optarg" ;;
354 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
355 | --syscon | --sysco | --sysc | --sys | --sy)
356 ac_prev=sysconfdir ;;
357 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
358 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
359 sysconfdir="$ac_optarg" ;;
361 -target | --target | --targe | --targ | --tar | --ta | --t)
363 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
364 target="$ac_optarg" ;;
366 -v | -verbose | --verbose | --verbos | --verbo | --verb)
369 -version | --version | --versio | --versi | --vers)
370 echo "configure generated by autoconf version 2.13"
374 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
375 # Reject names that are not valid shell variable names.
376 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
377 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
379 ac_package=`echo $ac_package| sed 's/-/_/g'`
384 eval "with_${ac_package}='$ac_optarg'" ;;
386 -without-* | --without-*)
387 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
388 # Reject names that are not valid shell variable names.
389 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
390 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
392 ac_package=`echo $ac_package| sed 's/-/_/g'`
393 eval "with_${ac_package}=no" ;;
396 # Obsolete; use --with-x.
399 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
400 | --x-incl | --x-inc | --x-in | --x-i)
401 ac_prev=x_includes ;;
402 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
403 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
404 x_includes="$ac_optarg" ;;
406 -x-libraries | --x-libraries | --x-librarie | --x-librari \
407 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
408 ac_prev=x_libraries ;;
409 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
410 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
411 x_libraries="$ac_optarg" ;;
413 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
417 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
418 echo "configure: warning: $ac_option: invalid host type" 1>&2
420 if test "x$nonopt" != xNONE; then
421 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
429 if test -n "$ac_prev"; then
430 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
433 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
435 # File descriptor usage:
438 # 2 errors and warnings
439 # 3 some systems may open it to /dev/tty
440 # 4 used on the Kubota Titan
441 # 6 checking for... messages and results
442 # 5 compiler messages saved in config.log
443 if test "$silent" = yes; then
451 This file contains any messages produced by compilers while
452 running configure, to aid debugging if configure makes a mistake.
455 # Strip out --no-create and --no-recursion so they do not pile up.
456 # Also quote any args containing shell metacharacters.
461 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
462 | --no-cr | --no-c) ;;
463 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
464 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
465 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
466 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
467 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
472 # Only set these to C if already set. These must not be set unconditionally
473 # because not all systems understand e.g. LANG=C (notably SCO).
474 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
475 # Non-C LC_CTYPE values break the ctype check.
476 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
477 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
478 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
479 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
481 # confdefs.h avoids OS command line length limits that DEFS can exceed.
482 rm -rf conftest* confdefs.h
483 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
486 # A filename unique to this package, relative to the directory that
487 # configure is in, which we can look for to find out if srcdir is correct.
488 ac_unique_file=java/lang/System.java
490 # Find the source files, if location was not specified.
491 if test -z "$srcdir"; then
492 ac_srcdir_defaulted=yes
493 # Try the directory containing this script, then its parent.
495 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
496 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
498 if test ! -r $srcdir/$ac_unique_file; then
502 ac_srcdir_defaulted=no
504 if test ! -r $srcdir/$ac_unique_file; then
505 if test "$ac_srcdir_defaulted" = yes; then
506 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
508 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
511 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
513 # Prefer explicitly selected file to automatically selected ones.
514 if test -z "$CONFIG_SITE"; then
515 if test "x$prefix" != xNONE; then
516 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
518 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
521 for ac_site_file in $CONFIG_SITE; do
522 if test -r "$ac_site_file"; then
523 echo "loading site script $ac_site_file"
528 if test -r "$cache_file"; then
529 echo "loading cache $cache_file"
532 echo "creating cache $cache_file"
537 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
538 ac_cpp='$CPP $CPPFLAGS'
539 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
540 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
541 cross_compiling=$ac_cv_prog_cc_cross
545 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
546 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
547 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
554 ac_n= ac_c='\c' ac_t=
560 for ac_dir in .. $srcdir/..; do
561 if test -f $ac_dir/install-sh; then
563 ac_install_sh="$ac_aux_dir/install-sh -c"
565 elif test -f $ac_dir/install.sh; then
567 ac_install_sh="$ac_aux_dir/install.sh -c"
571 if test -z "$ac_aux_dir"; then
572 { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
574 ac_config_guess=$ac_aux_dir/config.guess
575 ac_config_sub=$ac_aux_dir/config.sub
576 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
580 # Do some error checking and defaulting for the host and target type.
582 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
585 # 1. You are not allowed to specify --host, --target, and nonopt at the
587 # 2. Host defaults to nonopt.
588 # 3. If nonopt is not specified, then host defaults to the current host,
589 # as determined by config.guess.
590 # 4. Target and build default to nonopt.
591 # 5. If nonopt is not specified, then target and build default to host.
593 # The aliases save the names the user supplied, while $host etc.
594 # will get canonicalized.
595 case $host---$target---$nonopt in
596 NONE---*---* | *---NONE---* | *---*---NONE) ;;
597 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
601 # Make sure we can run config.sub.
602 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
603 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
606 echo $ac_n "checking host system type""... $ac_c" 1>&6
607 echo "configure:608: checking host system type" >&5
610 case "$host_alias" in
614 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
615 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
617 *) host_alias=$nonopt ;;
621 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
622 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
623 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
624 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
625 echo "$ac_t""$host" 1>&6
627 echo $ac_n "checking target system type""... $ac_c" 1>&6
628 echo "configure:629: checking target system type" >&5
631 case "$target_alias" in
634 NONE) target_alias=$host_alias ;;
635 *) target_alias=$nonopt ;;
639 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
640 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
641 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
642 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
643 echo "$ac_t""$target" 1>&6
645 echo $ac_n "checking build system type""... $ac_c" 1>&6
646 echo "configure:647: checking build system type" >&5
649 case "$build_alias" in
652 NONE) build_alias=$host_alias ;;
653 *) build_alias=$nonopt ;;
657 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
658 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
659 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
660 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
661 echo "$ac_t""$build" 1>&6
663 test "$host_alias" != "$target_alias" &&
664 test "$program_prefix$program_suffix$program_transform_name" = \
666 program_prefix=${target_alias}-
669 # Check whether --with-target-subdir or --without-target-subdir was given.
670 if test "${with_target_subdir+set}" = set; then
671 withval="$with_target_subdir"
675 # Check whether --with-cross-host or --without-cross-host was given.
676 if test "${with_cross_host+set}" = set; then
677 withval="$with_cross_host"
682 # Find a good install program. We prefer a C program (faster),
683 # so one script is as good as another. But avoid the broken or
684 # incompatible versions:
685 # SysV /etc/install, /usr/sbin/install
686 # SunOS /usr/etc/install
689 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
690 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
691 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
692 # ./install, which can be erroneously created by make from ./install.sh.
693 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
694 echo "configure:695: checking for a BSD compatible install" >&5
695 if test -z "$INSTALL"; then
696 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
697 echo $ac_n "(cached) $ac_c" 1>&6
699 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
700 for ac_dir in $PATH; do
701 # Account for people who put trailing slashes in PATH elements.
703 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
705 # OSF1 and SCO ODT 3.0 have their own names for install.
706 # Don't use installbsd from OSF since it installs stuff as root
708 for ac_prog in ginstall scoinst install; do
709 if test -f $ac_dir/$ac_prog; then
710 if test $ac_prog = install &&
711 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
712 # AIX install. It has an incompatible calling convention.
715 ac_cv_path_install="$ac_dir/$ac_prog -c"
726 if test "${ac_cv_path_install+set}" = set; then
727 INSTALL="$ac_cv_path_install"
729 # As a last resort, use the slow shell script. We don't cache a
730 # path for INSTALL within a source directory, because that will
731 # break other packages using the cache if that directory is
732 # removed, or if the path is relative.
733 INSTALL="$ac_install_sh"
736 echo "$ac_t""$INSTALL" 1>&6
738 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
739 # It thinks the first close brace ends the variable substitution.
740 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
742 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
744 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
746 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
747 echo "configure:748: checking whether build environment is sane" >&5
750 echo timestamp > conftestfile
751 # Do `set' in a subshell so we don't clobber the current shell's
752 # arguments. Must try -L first in case configure is actually a
753 # symlink; some systems play weird games with the mod time of symlinks
754 # (eg FreeBSD returns the mod time of the symlink's containing
757 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
758 if test "$*" = "X"; then
760 set X `ls -t $srcdir/configure conftestfile`
762 if test "$*" != "X $srcdir/configure conftestfile" \
763 && test "$*" != "X conftestfile $srcdir/configure"; then
765 # If neither matched, then we have a broken ls. This can happen
766 # if, for instance, CONFIG_SHELL is bash and it inherits a
767 # broken ls alias from the environment. This has actually
768 # happened. Such a system could not be considered "sane".
769 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
770 alias in your environment" 1>&2; exit 1; }
773 test "$2" = conftestfile
779 { echo "configure: error: newly created file is older than distributed files!
780 Check your system clock" 1>&2; exit 1; }
783 echo "$ac_t""yes" 1>&6
784 if test "$program_transform_name" = s,x,x,; then
785 program_transform_name=
787 # Double any \ or $. echo might interpret backslashes.
788 cat <<\EOF_SED > conftestsed
789 s,\\,\\\\,g; s,\$,$$,g
791 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
794 test "$program_prefix" != NONE &&
795 program_transform_name="s,^,${program_prefix},; $program_transform_name"
796 # Use a double $ so make ignores it.
797 test "$program_suffix" != NONE &&
798 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
800 # sed with no file args requires a program.
801 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
803 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
804 echo "configure:805: checking whether ${MAKE-make} sets \${MAKE}" >&5
805 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
806 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
807 echo $ac_n "(cached) $ac_c" 1>&6
809 cat > conftestmake <<\EOF
811 @echo 'ac_maketemp="${MAKE}"'
813 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
814 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
815 if test -n "$ac_maketemp"; then
816 eval ac_cv_prog_make_${ac_make}_set=yes
818 eval ac_cv_prog_make_${ac_make}_set=no
822 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
823 echo "$ac_t""yes" 1>&6
826 echo "$ac_t""no" 1>&6
827 SET_MAKE="MAKE=${MAKE-make}"
830 if test $host != $build; then
831 ac_tool_prefix=${host_alias}-
836 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
837 echo "configure:838: checking for Cygwin environment" >&5
838 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
839 echo $ac_n "(cached) $ac_c" 1>&6
841 cat > conftest.$ac_ext <<EOF
842 #line 843 "configure"
843 #include "confdefs.h"
848 #define __CYGWIN__ __CYGWIN32__
853 if { (eval echo configure:854: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
857 echo "configure: failed program was:" >&5
858 cat conftest.$ac_ext >&5
866 echo "$ac_t""$ac_cv_cygwin" 1>&6
868 test "$ac_cv_cygwin" = yes && CYGWIN=yes
869 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
870 echo "configure:871: checking for mingw32 environment" >&5
871 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
872 echo $ac_n "(cached) $ac_c" 1>&6
874 cat > conftest.$ac_ext <<EOF
875 #line 876 "configure"
876 #include "confdefs.h"
882 if { (eval echo configure:883: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
886 echo "configure: failed program was:" >&5
887 cat conftest.$ac_ext >&5
895 echo "$ac_t""$ac_cv_mingw32" 1>&6
897 test "$ac_cv_mingw32" = yes && MINGW32=yes
899 # Check whether --enable-multilib or --disable-multilib was given.
900 if test "${enable_multilib+set}" = set; then
901 enableval="$enable_multilib"
902 case "${enableval}" in
905 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
912 if test "${srcdir}" = "."; then
913 if test "${with_target_subdir}" != "."; then
914 libgcj_basedir="${srcdir}/${with_multisrctop}../."
916 libgcj_basedir="${srcdir}/${with_multisrctop}."
919 libgcj_basedir="${srcdir}/."
924 # Make sure we can run config.sub.
925 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
926 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
929 echo $ac_n "checking host system type""... $ac_c" 1>&6
930 echo "configure:931: checking host system type" >&5
933 case "$host_alias" in
937 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
938 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
940 *) host_alias=$nonopt ;;
944 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
945 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
946 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
947 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
948 echo "$ac_t""$host" 1>&6
957 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
958 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
960 cat >> confdefs.h <<EOF
961 #define PACKAGE "$PACKAGE"
964 cat >> confdefs.h <<EOF
965 #define VERSION "$VERSION"
970 missing_dir=`cd $ac_aux_dir && pwd`
971 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
972 echo "configure:973: checking for working aclocal" >&5
973 # Run test in a subshell; some versions of sh will print an error if
974 # an executable is not found, even if stderr is redirected.
975 # Redirect stdin to placate older versions of autoconf. Sigh.
976 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
978 echo "$ac_t""found" 1>&6
980 ACLOCAL="$missing_dir/missing aclocal"
981 echo "$ac_t""missing" 1>&6
984 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
985 echo "configure:986: checking for working autoconf" >&5
986 # Run test in a subshell; some versions of sh will print an error if
987 # an executable is not found, even if stderr is redirected.
988 # Redirect stdin to placate older versions of autoconf. Sigh.
989 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
991 echo "$ac_t""found" 1>&6
993 AUTOCONF="$missing_dir/missing autoconf"
994 echo "$ac_t""missing" 1>&6
997 echo $ac_n "checking for working automake""... $ac_c" 1>&6
998 echo "configure:999: checking for working automake" >&5
999 # Run test in a subshell; some versions of sh will print an error if
1000 # an executable is not found, even if stderr is redirected.
1001 # Redirect stdin to placate older versions of autoconf. Sigh.
1002 if (automake --version) < /dev/null > /dev/null 2>&1; then
1004 echo "$ac_t""found" 1>&6
1006 AUTOMAKE="$missing_dir/missing automake"
1007 echo "$ac_t""missing" 1>&6
1010 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1011 echo "configure:1012: checking for working autoheader" >&5
1012 # Run test in a subshell; some versions of sh will print an error if
1013 # an executable is not found, even if stderr is redirected.
1014 # Redirect stdin to placate older versions of autoconf. Sigh.
1015 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1016 AUTOHEADER=autoheader
1017 echo "$ac_t""found" 1>&6
1019 AUTOHEADER="$missing_dir/missing autoheader"
1020 echo "$ac_t""missing" 1>&6
1023 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1024 echo "configure:1025: checking for working makeinfo" >&5
1025 # Run test in a subshell; some versions of sh will print an error if
1026 # an executable is not found, even if stderr is redirected.
1027 # Redirect stdin to placate older versions of autoconf. Sigh.
1028 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1030 echo "$ac_t""found" 1>&6
1032 MAKEINFO="$missing_dir/missing makeinfo"
1033 echo "$ac_t""missing" 1>&6
1038 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
1039 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
1040 # are probably using a cross compiler, which will not be able to fully
1041 # link an executable. This should really be fixed in autoconf
1046 # Extract the first word of "gcc", so it can be a program name with args.
1047 set dummy gcc; ac_word=$2
1048 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1049 echo "configure:1050: checking for $ac_word" >&5
1050 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1051 echo $ac_n "(cached) $ac_c" 1>&6
1053 if test -n "$CC"; then
1054 ac_cv_prog_CC="$CC" # Let the user override the test.
1056 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1058 for ac_dir in $ac_dummy; do
1059 test -z "$ac_dir" && ac_dir=.
1060 if test -f $ac_dir/$ac_word; then
1069 if test -n "$CC"; then
1070 echo "$ac_t""$CC" 1>&6
1072 echo "$ac_t""no" 1>&6
1075 if test -z "$CC"; then
1076 # Extract the first word of "cc", so it can be a program name with args.
1077 set dummy cc; ac_word=$2
1078 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1079 echo "configure:1080: checking for $ac_word" >&5
1080 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1081 echo $ac_n "(cached) $ac_c" 1>&6
1083 if test -n "$CC"; then
1084 ac_cv_prog_CC="$CC" # Let the user override the test.
1086 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1089 for ac_dir in $ac_dummy; do
1090 test -z "$ac_dir" && ac_dir=.
1091 if test -f $ac_dir/$ac_word; then
1092 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1093 ac_prog_rejected=yes
1101 if test $ac_prog_rejected = yes; then
1102 # We found a bogon in the path, so make sure we never use it.
1103 set dummy $ac_cv_prog_CC
1105 if test $# -gt 0; then
1106 # We chose a different compiler from the bogus one.
1107 # However, it has the same basename, so the bogon will be chosen
1108 # first if we set CC to just the basename; use the full file name.
1110 set dummy "$ac_dir/$ac_word" "$@"
1118 if test -n "$CC"; then
1119 echo "$ac_t""$CC" 1>&6
1121 echo "$ac_t""no" 1>&6
1124 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1127 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1128 echo "configure:1129: checking whether we are using GNU C" >&5
1129 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1130 echo $ac_n "(cached) $ac_c" 1>&6
1132 cat > conftest.c <<EOF
1137 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1138: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1144 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1146 if test $ac_cv_prog_gcc = yes; then
1148 ac_test_CFLAGS="${CFLAGS+set}"
1149 ac_save_CFLAGS="$CFLAGS"
1151 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1152 echo "configure:1153: checking whether ${CC-cc} accepts -g" >&5
1153 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1154 echo $ac_n "(cached) $ac_c" 1>&6
1156 echo 'void f(){}' > conftest.c
1157 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1166 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1167 if test "$ac_test_CFLAGS" = set; then
1168 CFLAGS="$ac_save_CFLAGS"
1169 elif test $ac_cv_prog_cc_g = yes; then
1176 test "${CFLAGS+set}" = set || CFLAGS="-g"
1180 # Likewise for AC_PROG_CXX.
1183 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1185 # Extract the first word of "$ac_prog", so it can be a program name with args.
1186 set dummy $ac_prog; ac_word=$2
1187 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1188 echo "configure:1189: checking for $ac_word" >&5
1189 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1190 echo $ac_n "(cached) $ac_c" 1>&6
1192 if test -n "$CXX"; then
1193 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1195 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1197 for ac_dir in $ac_dummy; do
1198 test -z "$ac_dir" && ac_dir=.
1199 if test -f $ac_dir/$ac_word; then
1200 ac_cv_prog_CXX="$ac_prog"
1207 CXX="$ac_cv_prog_CXX"
1208 if test -n "$CXX"; then
1209 echo "$ac_t""$CXX" 1>&6
1211 echo "$ac_t""no" 1>&6
1214 test -n "$CXX" && break
1216 test -n "$CXX" || CXX="gcc"
1218 test -z "$CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1220 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1221 echo "configure:1222: checking whether we are using GNU C++" >&5
1222 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1223 echo $ac_n "(cached) $ac_c" 1>&6
1225 cat > conftest.C <<EOF
1230 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1237 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1239 if test $ac_cv_prog_gxx = yes; then
1241 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1242 ac_save_CXXFLAGS="$CXXFLAGS"
1244 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1245 echo "configure:1246: checking whether ${CXX-g++} accepts -g" >&5
1246 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1247 echo $ac_n "(cached) $ac_c" 1>&6
1249 echo 'void f(){}' > conftest.cc
1250 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1251 ac_cv_prog_cxx_g=yes
1259 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1260 if test "$ac_test_CXXFLAGS" = set; then
1261 CXXFLAGS="$ac_save_CXXFLAGS"
1262 elif test $ac_cv_prog_cxx_g = yes; then
1269 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1273 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we dont
1274 # run it explicitly here, it will be run implicitly before
1275 # LIBGCJ_CONFIGURE, which doesn't work because that means that it will
1276 # be run before AC_CANONICAL_HOST.
1277 echo $ac_n "checking build system type""... $ac_c" 1>&6
1278 echo "configure:1279: checking build system type" >&5
1281 case "$build_alias" in
1284 NONE) build_alias=$host_alias ;;
1285 *) build_alias=$nonopt ;;
1289 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1290 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1291 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1292 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1293 echo "$ac_t""$build" 1>&6
1296 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1297 set dummy ${ac_tool_prefix}as; ac_word=$2
1298 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1299 echo "configure:1300: checking for $ac_word" >&5
1300 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1301 echo $ac_n "(cached) $ac_c" 1>&6
1303 if test -n "$AS"; then
1304 ac_cv_prog_AS="$AS" # Let the user override the test.
1306 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1308 for ac_dir in $ac_dummy; do
1309 test -z "$ac_dir" && ac_dir=.
1310 if test -f $ac_dir/$ac_word; then
1311 ac_cv_prog_AS="${ac_tool_prefix}as"
1316 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1320 if test -n "$AS"; then
1321 echo "$ac_t""$AS" 1>&6
1323 echo "$ac_t""no" 1>&6
1328 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1329 set dummy ${ac_tool_prefix}ar; ac_word=$2
1330 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1331 echo "configure:1332: checking for $ac_word" >&5
1332 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1333 echo $ac_n "(cached) $ac_c" 1>&6
1335 if test -n "$AR"; then
1336 ac_cv_prog_AR="$AR" # Let the user override the test.
1338 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1340 for ac_dir in $ac_dummy; do
1341 test -z "$ac_dir" && ac_dir=.
1342 if test -f $ac_dir/$ac_word; then
1343 ac_cv_prog_AR="${ac_tool_prefix}ar"
1348 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1352 if test -n "$AR"; then
1353 echo "$ac_t""$AR" 1>&6
1355 echo "$ac_t""no" 1>&6
1360 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1361 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1362 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1363 echo "configure:1364: checking for $ac_word" >&5
1364 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1365 echo $ac_n "(cached) $ac_c" 1>&6
1367 if test -n "$RANLIB"; then
1368 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1370 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1372 for ac_dir in $ac_dummy; do
1373 test -z "$ac_dir" && ac_dir=.
1374 if test -f $ac_dir/$ac_word; then
1375 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1382 RANLIB="$ac_cv_prog_RANLIB"
1383 if test -n "$RANLIB"; then
1384 echo "$ac_t""$RANLIB" 1>&6
1386 echo "$ac_t""no" 1>&6
1390 if test -z "$ac_cv_prog_RANLIB"; then
1391 if test -n "$ac_tool_prefix"; then
1392 # Extract the first word of "ranlib", so it can be a program name with args.
1393 set dummy ranlib; ac_word=$2
1394 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1395 echo "configure:1396: checking for $ac_word" >&5
1396 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1397 echo $ac_n "(cached) $ac_c" 1>&6
1399 if test -n "$RANLIB"; then
1400 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1402 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1404 for ac_dir in $ac_dummy; do
1405 test -z "$ac_dir" && ac_dir=.
1406 if test -f $ac_dir/$ac_word; then
1407 ac_cv_prog_RANLIB="ranlib"
1412 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1415 RANLIB="$ac_cv_prog_RANLIB"
1416 if test -n "$RANLIB"; then
1417 echo "$ac_t""$RANLIB" 1>&6
1419 echo "$ac_t""no" 1>&6
1428 # Find a good install program. We prefer a C program (faster),
1429 # so one script is as good as another. But avoid the broken or
1430 # incompatible versions:
1431 # SysV /etc/install, /usr/sbin/install
1432 # SunOS /usr/etc/install
1433 # IRIX /sbin/install
1435 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1436 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1437 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1438 # ./install, which can be erroneously created by make from ./install.sh.
1439 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1440 echo "configure:1441: checking for a BSD compatible install" >&5
1441 if test -z "$INSTALL"; then
1442 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1443 echo $ac_n "(cached) $ac_c" 1>&6
1445 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1446 for ac_dir in $PATH; do
1447 # Account for people who put trailing slashes in PATH elements.
1449 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1451 # OSF1 and SCO ODT 3.0 have their own names for install.
1452 # Don't use installbsd from OSF since it installs stuff as root
1454 for ac_prog in ginstall scoinst install; do
1455 if test -f $ac_dir/$ac_prog; then
1456 if test $ac_prog = install &&
1457 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1458 # AIX install. It has an incompatible calling convention.
1461 ac_cv_path_install="$ac_dir/$ac_prog -c"
1472 if test "${ac_cv_path_install+set}" = set; then
1473 INSTALL="$ac_cv_path_install"
1475 # As a last resort, use the slow shell script. We don't cache a
1476 # path for INSTALL within a source directory, because that will
1477 # break other packages using the cache if that directory is
1478 # removed, or if the path is relative.
1479 INSTALL="$ac_install_sh"
1482 echo "$ac_t""$INSTALL" 1>&6
1484 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1485 # It thinks the first close brace ends the variable substitution.
1486 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1488 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1490 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1493 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1494 echo "configure:1495: checking whether to enable maintainer-specific portions of Makefiles" >&5
1495 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1496 if test "${enable_maintainer_mode+set}" = set; then
1497 enableval="$enable_maintainer_mode"
1498 USE_MAINTAINER_MODE=$enableval
1500 USE_MAINTAINER_MODE=no
1503 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1506 if test $USE_MAINTAINER_MODE = yes; then
1507 MAINTAINER_MODE_TRUE=
1508 MAINTAINER_MODE_FALSE='#'
1510 MAINTAINER_MODE_TRUE='#'
1511 MAINTAINER_MODE_FALSE=
1513 MAINT=$MAINTAINER_MODE_TRUE
1517 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1518 # at least currently, we never actually build a program, so we never
1519 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1520 # fails, because we are probably configuring with a cross compiler
1521 # which cant create executables. So we include AC_EXEEXT to keep
1522 # automake happy, but we dont execute it, since we dont care about
1527 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1528 echo "configure:1529: checking for executable suffix" >&5
1529 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1530 echo $ac_n "(cached) $ac_c" 1>&6
1532 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1536 echo 'int main () { return 0; }' > conftest.$ac_ext
1538 if { (eval echo configure:1539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1539 for file in conftest.*; do
1541 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1542 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1546 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1549 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1554 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1555 echo "$ac_t""${ac_cv_exeext}" 1>&6
1560 # configure.host sets the following important variables
1561 # libgcj_cflags - host specific C compiler flags
1562 # libgcj_cxxflags - host specific C++ compiler flags
1563 # libgcj_javaflags - host specific Java compiler flags
1569 . ${libgcj_basedir}/configure.host
1571 case ${libgcj_basedir} in
1572 /* | A-Za-z:/\\*) libgcj_flagbasedir=${libgcj_basedir} ;;
1573 *) libgcj_flagbasedir='$(top_builddir)/'${libgcj_basedir} ;;
1576 LIBGCJ_CFLAGS="${libgcj_cflags}"
1577 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
1578 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
1588 # Check whether --enable-shared or --disable-shared was given.
1589 if test "${enable_shared+set}" = set; then
1590 enableval="$enable_shared"
1591 p=${PACKAGE-default}
1592 case "$enableval" in
1593 yes) enable_shared=yes ;;
1594 no) enable_shared=no ;;
1597 # Look at the argument we got. We use all the common list separators.
1598 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1599 for pkg in $enableval; do
1600 if test "X$pkg" = "X$p"; then
1611 # Check whether --enable-static or --disable-static was given.
1612 if test "${enable_static+set}" = set; then
1613 enableval="$enable_static"
1614 p=${PACKAGE-default}
1615 case "$enableval" in
1616 yes) enable_static=yes ;;
1617 no) enable_static=no ;;
1620 # Look at the argument we got. We use all the common list separators.
1621 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1622 for pkg in $enableval; do
1623 if test "X$pkg" = "X$p"; then
1634 # Check whether --enable-fast-install or --disable-fast-install was given.
1635 if test "${enable_fast_install+set}" = set; then
1636 enableval="$enable_fast_install"
1637 p=${PACKAGE-default}
1638 case "$enableval" in
1639 yes) enable_fast_install=yes ;;
1640 no) enable_fast_install=no ;;
1642 enable_fast_install=no
1643 # Look at the argument we got. We use all the common list separators.
1644 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1645 for pkg in $enableval; do
1646 if test "X$pkg" = "X$p"; then
1647 enable_fast_install=yes
1654 enable_fast_install=yes
1657 # Extract the first word of "ranlib", so it can be a program name with args.
1658 set dummy ranlib; ac_word=$2
1659 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1660 echo "configure:1661: checking for $ac_word" >&5
1661 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1662 echo $ac_n "(cached) $ac_c" 1>&6
1664 if test -n "$RANLIB"; then
1665 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1667 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1669 for ac_dir in $ac_dummy; do
1670 test -z "$ac_dir" && ac_dir=.
1671 if test -f $ac_dir/$ac_word; then
1672 ac_cv_prog_RANLIB="ranlib"
1677 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1680 RANLIB="$ac_cv_prog_RANLIB"
1681 if test -n "$RANLIB"; then
1682 echo "$ac_t""$RANLIB" 1>&6
1684 echo "$ac_t""no" 1>&6
1687 # Extract the first word of "gcc", so it can be a program name with args.
1688 set dummy gcc; ac_word=$2
1689 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1690 echo "configure:1691: checking for $ac_word" >&5
1691 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1692 echo $ac_n "(cached) $ac_c" 1>&6
1694 if test -n "$CC"; then
1695 ac_cv_prog_CC="$CC" # Let the user override the test.
1697 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1699 for ac_dir in $ac_dummy; do
1700 test -z "$ac_dir" && ac_dir=.
1701 if test -f $ac_dir/$ac_word; then
1710 if test -n "$CC"; then
1711 echo "$ac_t""$CC" 1>&6
1713 echo "$ac_t""no" 1>&6
1716 if test -z "$CC"; then
1717 # Extract the first word of "cc", so it can be a program name with args.
1718 set dummy cc; ac_word=$2
1719 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1720 echo "configure:1721: checking for $ac_word" >&5
1721 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1722 echo $ac_n "(cached) $ac_c" 1>&6
1724 if test -n "$CC"; then
1725 ac_cv_prog_CC="$CC" # Let the user override the test.
1727 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1730 for ac_dir in $ac_dummy; do
1731 test -z "$ac_dir" && ac_dir=.
1732 if test -f $ac_dir/$ac_word; then
1733 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1734 ac_prog_rejected=yes
1742 if test $ac_prog_rejected = yes; then
1743 # We found a bogon in the path, so make sure we never use it.
1744 set dummy $ac_cv_prog_CC
1746 if test $# -gt 0; then
1747 # We chose a different compiler from the bogus one.
1748 # However, it has the same basename, so the bogon will be chosen
1749 # first if we set CC to just the basename; use the full file name.
1751 set dummy "$ac_dir/$ac_word" "$@"
1759 if test -n "$CC"; then
1760 echo "$ac_t""$CC" 1>&6
1762 echo "$ac_t""no" 1>&6
1765 if test -z "$CC"; then
1766 case "`uname -s`" in
1768 # Extract the first word of "cl", so it can be a program name with args.
1769 set dummy cl; ac_word=$2
1770 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1771 echo "configure:1772: checking for $ac_word" >&5
1772 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1773 echo $ac_n "(cached) $ac_c" 1>&6
1775 if test -n "$CC"; then
1776 ac_cv_prog_CC="$CC" # Let the user override the test.
1778 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1780 for ac_dir in $ac_dummy; do
1781 test -z "$ac_dir" && ac_dir=.
1782 if test -f $ac_dir/$ac_word; then
1791 if test -n "$CC"; then
1792 echo "$ac_t""$CC" 1>&6
1794 echo "$ac_t""no" 1>&6
1799 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1802 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1803 echo "configure:1804: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1806 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1807 ac_cpp='$CPP $CPPFLAGS'
1808 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1809 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1810 cross_compiling=$ac_cv_prog_cc_cross
1812 cat > conftest.$ac_ext << EOF
1814 #line 1815 "configure"
1815 #include "confdefs.h"
1819 if { (eval echo configure:1820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1820 ac_cv_prog_cc_works=yes
1821 # If we can't run a trivial program, we are probably using a cross compiler.
1822 if (./conftest; exit) 2>/dev/null; then
1823 ac_cv_prog_cc_cross=no
1825 ac_cv_prog_cc_cross=yes
1828 echo "configure: failed program was:" >&5
1829 cat conftest.$ac_ext >&5
1830 ac_cv_prog_cc_works=no
1834 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1835 ac_cpp='$CPP $CPPFLAGS'
1836 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1837 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1838 cross_compiling=$ac_cv_prog_cc_cross
1840 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1841 if test $ac_cv_prog_cc_works = no; then
1842 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1844 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1845 echo "configure:1846: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1846 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1847 cross_compiling=$ac_cv_prog_cc_cross
1849 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1850 echo "configure:1851: checking whether we are using GNU C" >&5
1851 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1852 echo $ac_n "(cached) $ac_c" 1>&6
1854 cat > conftest.c <<EOF
1859 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1866 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1868 if test $ac_cv_prog_gcc = yes; then
1874 ac_test_CFLAGS="${CFLAGS+set}"
1875 ac_save_CFLAGS="$CFLAGS"
1877 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1878 echo "configure:1879: checking whether ${CC-cc} accepts -g" >&5
1879 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1880 echo $ac_n "(cached) $ac_c" 1>&6
1882 echo 'void f(){}' > conftest.c
1883 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1892 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1893 if test "$ac_test_CFLAGS" = set; then
1894 CFLAGS="$ac_save_CFLAGS"
1895 elif test $ac_cv_prog_cc_g = yes; then
1896 if test "$GCC" = yes; then
1902 if test "$GCC" = yes; then
1909 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1910 if test "${with_gnu_ld+set}" = set; then
1911 withval="$with_gnu_ld"
1912 test "$withval" = no || with_gnu_ld=yes
1918 if test "$ac_cv_prog_gcc" = yes; then
1919 # Check if gcc -print-prog-name=ld gives a path.
1920 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1921 echo "configure:1922: checking for ld used by GCC" >&5
1922 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1924 # Accept absolute paths.
1925 /* | [A-Za-z]:[\\/]*)
1926 re_direlt='/[^/][^/]*/\.\./'
1927 # Canonicalize the path of ld
1928 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1929 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1930 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1932 test -z "$LD" && LD="$ac_prog"
1935 # If it fails, then pretend we aren't using GCC.
1939 # If it is relative, then search for the first ld in PATH.
1943 elif test "$with_gnu_ld" = yes; then
1944 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1945 echo "configure:1946: checking for GNU ld" >&5
1947 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1948 echo "configure:1949: checking for non-GNU ld" >&5
1950 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1951 echo $ac_n "(cached) $ac_c" 1>&6
1953 if test -z "$LD"; then
1954 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1955 for ac_dir in $PATH; do
1956 test -z "$ac_dir" && ac_dir=.
1957 if test -f "$ac_dir/$ac_prog"; then
1958 ac_cv_path_LD="$ac_dir/$ac_prog"
1959 # Check to see if the program is GNU ld. I'd rather use --version,
1960 # but apparently some GNU ld's only accept -v.
1961 # Break only if it was the GNU/non-GNU ld that we prefer.
1962 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1963 test "$with_gnu_ld" != no && break
1965 test "$with_gnu_ld" != yes && break
1971 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1976 if test -n "$LD"; then
1977 echo "$ac_t""$LD" 1>&6
1979 echo "$ac_t""no" 1>&6
1981 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1983 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1984 echo "configure:1985: checking if the linker ($LD) is GNU ld" >&5
1985 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1986 echo $ac_n "(cached) $ac_c" 1>&6
1988 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1989 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1990 ac_cv_prog_gnu_ld=yes
1992 ac_cv_prog_gnu_ld=no
1996 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1999 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2000 echo "configure:2001: checking for BSD-compatible nm" >&5
2001 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
2002 echo $ac_n "(cached) $ac_c" 1>&6
2004 if test -n "$NM"; then
2005 # Let the user override the test.
2008 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2009 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2010 test -z "$ac_dir" && ac_dir=.
2011 if test -f $ac_dir/nm; then
2012 # Check to see if the nm accepts a BSD-compat flag.
2013 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2014 # nm: unknown option "B" ignored
2015 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2016 ac_cv_path_NM="$ac_dir/nm -B"
2018 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2019 ac_cv_path_NM="$ac_dir/nm -p"
2022 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
2023 continue # so that we can try to find one that supports BSD flags
2028 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2033 echo "$ac_t""$NM" 1>&6
2036 # Check for command to grab the raw symbol name followed by C symbol from nm.
2037 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
2038 echo "configure:2039: checking command to parse $NM output" >&5
2039 if eval "test \"`echo '$''{'ac_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
2040 echo $ac_n "(cached) $ac_c" 1>&6
2042 # These are sane defaults that work on at least a few old systems.
2043 # {They come from Ultrix. What could be older than Ultrix?!! ;)}
2045 # Character class describing NM global symbol codes.
2046 ac_symcode='[BCDEGRST]'
2048 # Regexp to match symbols that can be accessed directly from C.
2049 ac_sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
2051 # Transform the above into a raw symbol and a C symbol.
2052 ac_symxfrm='\1 \2\3 \3'
2054 # Transform an extracted symbol line into a proper C declaration
2055 ac_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
2057 # Define system-specific variables.
2063 ac_symcode='[ABCDGISTW]'
2066 ac_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'"
2069 ac_symcode='[BCDEGRST]'
2076 # If we're using GNU nm, then use its standard symbol codes.
2077 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
2078 ac_symcode='[ABCDGISTW]'
2081 # Try without a prefix undercore, then with it.
2082 for ac_symprfx in "" "_"; do
2084 ac_cv_sys_global_symbol_pipe="sed -n -e 's/^.* \($ac_symcode\) *\($ac_symprfx\)$ac_sympat$/$ac_symxfrm/p'"
2086 # Check to see that the pipe works correctly.
2088 rm -f conftest.$ac_ext
2089 cat > conftest.$ac_ext <<EOF
2094 void nm_test_func(){}
2098 int main(){nm_test_var='a';nm_test_func;return 0;}
2101 if { (eval echo configure:2102: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2102 # Now try to grab the symbols.
2103 ac_nlist=conftest.nm
2105 if { (eval echo configure:2106: \"$NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then
2107 # Try sorting and uniquifying the output.
2108 if sort "$ac_nlist" | uniq > "$ac_nlist"T; then
2109 mv -f "$ac_nlist"T "$ac_nlist"
2114 # Make sure that we snagged all the symbols we need.
2115 if egrep ' nm_test_var$' "$ac_nlist" >/dev/null; then
2116 if egrep ' nm_test_func$' "$ac_nlist" >/dev/null; then
2117 cat <<EOF > conftest.c
2123 # Now generate the symbol file.
2124 eval "$ac_global_symbol_to_cdecl"' < "$ac_nlist" >> conftest.c'
2126 cat <<EOF >> conftest.c
2127 #if defined (__STDC__) && __STDC__
2128 # define lt_ptr_t void *
2130 # define lt_ptr_t char *
2134 /* The mapping between symbol names and symbols. */
2139 lt_preloaded_symbols[] =
2142 sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$ac_nlist" >> conftest.c
2143 cat <<\EOF >> conftest.c
2151 # Now try linking the two files.
2152 mv conftest.$ac_objext conftestm.$ac_objext
2153 ac_save_LIBS="$LIBS"
2154 ac_save_CFLAGS="$CFLAGS"
2155 LIBS="conftestm.$ac_objext"
2156 CFLAGS="$CFLAGS$no_builtin_flag"
2157 if { (eval echo configure:2158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2160 echo "configure: failed program was:" >&5
2163 LIBS="$ac_save_LIBS"
2164 CFLAGS="$ac_save_CFLAGS"
2166 echo "cannot find nm_test_func in $ac_nlist" >&5
2169 echo "cannot find nm_test_var in $ac_nlist" >&5
2172 echo "cannot run $ac_cv_sys_global_symbol_pipe" >&5
2175 echo "$progname: failed program was:" >&5
2180 # Do not use the global_symbol_pipe unless it works.
2181 if test "$ac_pipe_works" = yes; then
2182 if test x"$ac_symprfx" = x"_"; then
2183 ac_cv_sys_symbol_underscore=yes
2185 ac_cv_sys_symbol_underscore=no
2189 ac_cv_sys_global_symbol_pipe=
2197 if test -z "$ac_cv_sys_global_symbol_pipe"; then
2200 echo "$ac_t""$ac_result" 1>&6
2202 echo $ac_n "checking for _ prefix in compiled symbols""... $ac_c" 1>&6
2203 echo "configure:2204: checking for _ prefix in compiled symbols" >&5
2204 if eval "test \"`echo '$''{'ac_cv_sys_symbol_underscore'+set}'`\" = set"; then
2205 echo $ac_n "(cached) $ac_c" 1>&6
2207 ac_cv_sys_symbol_underscore=no
2208 cat > conftest.$ac_ext <<EOF
2209 void nm_test_func(){}
2210 int main(){nm_test_func;return 0;}
2212 if { (eval echo configure:2213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2213 # Now try to grab the symbols.
2214 ac_nlist=conftest.nm
2215 if { (eval echo configure:2216: \"$NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then
2216 # See whether the symbols have a leading underscore.
2217 if egrep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
2218 ac_cv_sys_symbol_underscore=yes
2220 if egrep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
2223 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
2227 echo "configure: cannot run $ac_cv_sys_global_symbol_pipe" >&5
2230 echo "configure: failed program was:" >&5
2237 echo "$ac_t""$ac_cv_sys_symbol_underscore" 1>&6
2238 USE_SYMBOL_UNDERSCORE=${ac_cv_sys_symbol_underscore=no}
2240 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2241 echo "configure:2242: checking whether ln -s works" >&5
2242 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2243 echo $ac_n "(cached) $ac_c" 1>&6
2246 if ln -s X conftestdata 2>/dev/null
2249 ac_cv_prog_LN_S="ln -s"
2254 LN_S="$ac_cv_prog_LN_S"
2255 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2256 echo "$ac_t""yes" 1>&6
2258 echo "$ac_t""no" 1>&6
2262 # Check for any special flags to pass to ltconfig.
2263 libtool_flags="--cache-file=$cache_file"
2264 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2265 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2266 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2267 test "$lt_dlopen" = yes && libtool_flags="$libtool_flags --enable-dlopen"
2268 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
2269 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2270 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2272 # Some flags need to be propagated to the compiler or linker for good
2276 # Find out which ABI we are using.
2277 echo '#line 2278 "configure"' > conftest.$ac_ext
2278 if { (eval echo configure:2279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2279 case "`/usr/bin/file conftest.o`" in
2295 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2296 SAVE_CFLAGS="$CFLAGS"
2297 CFLAGS="$CFLAGS -belf"
2298 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2299 echo "configure:2300: checking whether the C compiler needs -belf" >&5
2300 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2301 echo $ac_n "(cached) $ac_c" 1>&6
2303 cat > conftest.$ac_ext <<EOF
2304 #line 2305 "configure"
2305 #include "confdefs.h"
2311 if { (eval echo configure:2312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2313 lt_cv_cc_needs_belf=yes
2315 echo "configure: failed program was:" >&5
2316 cat conftest.$ac_ext >&5
2318 lt_cv_cc_needs_belf=no
2323 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2324 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2325 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2326 CFLAGS="$SAVE_CFLAGS"
2331 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
2332 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
2333 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2334 echo "configure:2335: checking for $ac_word" >&5
2335 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2336 echo $ac_n "(cached) $ac_c" 1>&6
2338 if test -n "$DLLTOOL"; then
2339 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2341 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2343 for ac_dir in $ac_dummy; do
2344 test -z "$ac_dir" && ac_dir=.
2345 if test -f $ac_dir/$ac_word; then
2346 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
2353 DLLTOOL="$ac_cv_prog_DLLTOOL"
2354 if test -n "$DLLTOOL"; then
2355 echo "$ac_t""$DLLTOOL" 1>&6
2357 echo "$ac_t""no" 1>&6
2361 if test -z "$ac_cv_prog_DLLTOOL"; then
2362 if test -n "$ac_tool_prefix"; then
2363 # Extract the first word of "dlltool", so it can be a program name with args.
2364 set dummy dlltool; ac_word=$2
2365 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2366 echo "configure:2367: checking for $ac_word" >&5
2367 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2368 echo $ac_n "(cached) $ac_c" 1>&6
2370 if test -n "$DLLTOOL"; then
2371 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2373 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2375 for ac_dir in $ac_dummy; do
2376 test -z "$ac_dir" && ac_dir=.
2377 if test -f $ac_dir/$ac_word; then
2378 ac_cv_prog_DLLTOOL="dlltool"
2383 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
2386 DLLTOOL="$ac_cv_prog_DLLTOOL"
2387 if test -n "$DLLTOOL"; then
2388 echo "$ac_t""$DLLTOOL" 1>&6
2390 echo "$ac_t""no" 1>&6
2398 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2399 set dummy ${ac_tool_prefix}as; ac_word=$2
2400 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2401 echo "configure:2402: checking for $ac_word" >&5
2402 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2403 echo $ac_n "(cached) $ac_c" 1>&6
2405 if test -n "$AS"; then
2406 ac_cv_prog_AS="$AS" # Let the user override the test.
2408 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2410 for ac_dir in $ac_dummy; do
2411 test -z "$ac_dir" && ac_dir=.
2412 if test -f $ac_dir/$ac_word; then
2413 ac_cv_prog_AS="${ac_tool_prefix}as"
2421 if test -n "$AS"; then
2422 echo "$ac_t""$AS" 1>&6
2424 echo "$ac_t""no" 1>&6
2428 if test -z "$ac_cv_prog_AS"; then
2429 if test -n "$ac_tool_prefix"; then
2430 # Extract the first word of "as", so it can be a program name with args.
2431 set dummy as; ac_word=$2
2432 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2433 echo "configure:2434: checking for $ac_word" >&5
2434 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2435 echo $ac_n "(cached) $ac_c" 1>&6
2437 if test -n "$AS"; then
2438 ac_cv_prog_AS="$AS" # Let the user override the test.
2440 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2442 for ac_dir in $ac_dummy; do
2443 test -z "$ac_dir" && ac_dir=.
2444 if test -f $ac_dir/$ac_word; then
2450 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
2454 if test -n "$AS"; then
2455 echo "$ac_t""$AS" 1>&6
2457 echo "$ac_t""no" 1>&6
2470 # enable the --disable-libtool-lock switch
2472 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2473 if test "${enable_libtool_lock+set}" = set; then
2474 enableval="$enable_libtool_lock"
2475 need_locks=$enableval
2481 if test x"$need_locks" = xno; then
2482 libtool_flags="$libtool_flags --disable-lock"
2486 # Save cache, so that ltconfig can load it
2487 cat > confcache <<\EOF
2488 # This file is a shell script that caches the results of configure
2489 # tests run on this system so they can be shared between configure
2490 # scripts and configure runs. It is not useful on other systems.
2491 # If it contains results you don't want to keep, you may remove or edit it.
2493 # By default, configure uses ./config.cache as the cache file,
2494 # creating it if it does not exist already. You can give configure
2495 # the --cache-file=FILE option to use a different cache file; that is
2496 # what configure does when it calls configure scripts in
2497 # subdirectories, so they share the cache.
2498 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2499 # config.status only pays attention to the cache file if you give it the
2500 # --recheck option to rerun configure.
2503 # The following way of writing the cache mishandles newlines in values,
2504 # but we know of no workaround that is simple, portable, and efficient.
2505 # So, don't put newlines in cache variables' values.
2506 # Ultrix sh set writes to stderr and can't be redirected directly,
2507 # and sets the high bit in the cache file unless we assign to the vars.
2509 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2511 # `set' does not quote correctly, so add quotes (double-quote substitution
2512 # turns \\\\ into \\, and sed turns \\ into \).
2514 -e "s/'/'\\\\''/g" \
2515 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2518 # `set' quotes correctly as required by POSIX, so do not add quotes.
2519 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2522 if cmp -s $cache_file confcache; then
2525 if test -w $cache_file; then
2526 echo "updating cache $cache_file"
2527 cat confcache > $cache_file
2529 echo "not updating unwritable cache $cache_file"
2535 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2536 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2537 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
2538 DLLTOOL="$DLLTOOL" AS="$AS" \
2539 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2540 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2541 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2543 # Reload cache, that may have been modified by ltconfig
2544 if test -r "$cache_file"; then
2545 echo "loading cache $cache_file"
2548 echo "creating cache $cache_file"
2553 # This can be used to rebuild libtool when needed
2554 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
2556 # Always use our own libtool.
2557 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2559 # Redirect the config.log output again, so that the ltconfig log is not
2560 # clobbered by the next message.
2561 exec 5>>./config.log
2564 if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
2573 if test -d $srcdir/testsuite; then
2575 TESTSUBDIR_FALSE='#'
2581 # Check whether --enable-fast-character or --disable-fast-character was given.
2582 if test "${enable_fast_character+set}" = set; then
2583 enableval="$enable_fast_character"
2587 cat >> confdefs.h <<\EOF
2588 #define COMPACT_CHARACTER 1
2594 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
2595 if test "${enable_libgcj_debug+set}" = set; then
2596 enableval="$enable_libgcj_debug"
2597 if test "$enable_libgcj_debug" = yes; then
2598 cat >> confdefs.h <<\EOF
2606 # Check whether --enable-interpreter or --disable-interpreter was given.
2607 if test "${enable_interpreter+set}" = set; then
2608 enableval="$enable_interpreter"
2609 if test "$enable_interpreter" = yes; then
2610 cat >> confdefs.h <<\EOF
2611 #define INTERPRETER 1
2619 # Check whether --with-ecos or --without-ecos was given.
2620 if test "${with_ecos+set}" = set; then
2621 withval="$with_ecos"
2622 TARGET_ECOS="$with_ecos"
2627 case "$TARGET_ECOS" in
2629 FILE_DESCRIPTOR=natFileDescriptorPosix.cc
2633 FILE_DESCRIPTOR=natFileDescriptorEcos.cc
2635 cat >> confdefs.h <<\EOF
2642 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2643 echo "configure:2644: checking how to run the C preprocessor" >&5
2644 # On Suns, sometimes $CPP names a directory.
2645 if test -n "$CPP" && test -d "$CPP"; then
2648 if test -z "$CPP"; then
2649 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2650 echo $ac_n "(cached) $ac_c" 1>&6
2652 # This must be in double quotes, not single quotes, because CPP may get
2653 # substituted into the Makefile and "${CC-cc}" will confuse make.
2655 # On the NeXT, cc -E runs the code through the compiler's parser,
2656 # not just through cpp.
2657 cat > conftest.$ac_ext <<EOF
2658 #line 2659 "configure"
2659 #include "confdefs.h"
2663 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2664 { (eval echo configure:2665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2665 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2666 if test -z "$ac_err"; then
2670 echo "configure: failed program was:" >&5
2671 cat conftest.$ac_ext >&5
2673 CPP="${CC-cc} -E -traditional-cpp"
2674 cat > conftest.$ac_ext <<EOF
2675 #line 2676 "configure"
2676 #include "confdefs.h"
2680 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2681 { (eval echo configure:2682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2682 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2683 if test -z "$ac_err"; then
2687 echo "configure: failed program was:" >&5
2688 cat conftest.$ac_ext >&5
2690 CPP="${CC-cc} -nologo -E"
2691 cat > conftest.$ac_ext <<EOF
2692 #line 2693 "configure"
2693 #include "confdefs.h"
2697 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2698 { (eval echo configure:2699: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2699 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2700 if test -z "$ac_err"; then
2704 echo "configure: failed program was:" >&5
2705 cat conftest.$ac_ext >&5
2714 ac_cv_prog_CPP="$CPP"
2716 CPP="$ac_cv_prog_CPP"
2718 ac_cv_prog_CPP="$CPP"
2720 echo "$ac_t""$CPP" 1>&6
2722 cat > conftest.$ac_ext <<EOF
2723 #line 2724 "configure"
2724 #include "confdefs.h"
2727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2728 egrep "uint32_t" >/dev/null 2>&1; then
2730 cat >> confdefs.h <<\EOF
2731 #define HAVE_INT32_DEFINED 1
2737 cat > conftest.$ac_ext <<EOF
2738 #line 2739 "configure"
2739 #include "confdefs.h"
2740 #include <inttypes.h>
2742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2743 egrep "uint32_t" >/dev/null 2>&1; then
2745 cat >> confdefs.h <<\EOF
2746 #define HAVE_INT32_DEFINED 1
2752 cat > conftest.$ac_ext <<EOF
2753 #line 2754 "configure"
2754 #include "confdefs.h"
2755 #include <sys/types.h>
2757 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2758 egrep "u_int32_t" >/dev/null 2>&1; then
2760 cat >> confdefs.h <<\EOF
2761 #define HAVE_BSD_INT32_DEFINED 1
2767 cat > conftest.$ac_ext <<EOF
2768 #line 2769 "configure"
2769 #include "confdefs.h"
2770 #include <sys/config.h>
2772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2773 egrep "u_int32_t" >/dev/null 2>&1; then
2775 cat >> confdefs.h <<\EOF
2776 #define HAVE_BSD_INT32_DEFINED 1
2784 cat > conftest.$ac_ext <<EOF
2785 #line 2786 "configure"
2786 #include "confdefs.h"
2789 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2790 egrep "mktime" >/dev/null 2>&1; then
2792 cat >> confdefs.h <<\EOF
2793 #define HAVE_MKTIME 1
2799 cat > conftest.$ac_ext <<EOF
2800 #line 2801 "configure"
2801 #include "confdefs.h"
2804 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2805 egrep "localtime" >/dev/null 2>&1; then
2807 cat >> confdefs.h <<\EOF
2808 #define HAVE_LOCALTIME 1
2815 test -d java || mkdir java
2816 test -d java/io || mkdir java/io
2819 test -d java/lang || mkdir java/lang
2826 # Check whether --with-system-zlib or --without-system-zlib was given.
2827 if test "${with_system_zlib+set}" = set; then
2828 withval="$with_system_zlib"
2837 echo $ac_n "checking for garbage collector to use""... $ac_c" 1>&6
2838 echo "configure:2839: checking for garbage collector to use" >&5
2839 # Check whether --enable-java-gc or --disable-java-gc was given.
2840 if test "${enable_java_gc+set}" = set; then
2841 enableval="$enable_java_gc"
2855 echo "$ac_t""boehm" 1>&6
2856 GCDEPS='$(top_builddir)/../boehm-gc/libgcjgc.la'
2857 # We include the path to the boehm-gc build directory.
2858 # See Makefile.am to understand why.
2859 GCLIBS="$GCDEPS -L\$(here)/../boehm-gc/$libsubdir"
2860 GCINCS='-I$(top_srcdir)/../boehm-gc -I$(top_builddir)/../boehm-gc'
2862 GCINCS="$GCINCS `cat ../boehm-gc/boehm-cflags`"
2865 cat >> confdefs.h <<\EOF
2866 #define HAVE_BOEHM_GC 1
2871 echo "$ac_t""none" 1>&6
2876 { echo "configure: error: unrecognized collector \"$GC\"" 1>&2; exit 1; }
2887 echo $ac_n "checking for threads package to use""... $ac_c" 1>&6
2888 echo "configure:2889: checking for threads package to use" >&5
2889 # Check whether --enable-threads or --disable-threads was given.
2890 if test "${enable_threads+set}" = set; then
2891 enableval="$enable_threads"
2898 if test "$THREADS" = yes; then
2904 # FIXME: this isn't correct in all cases.
2911 # FIXME: for now, choose POSIX, because we implement that.
2912 # Later, choose irix threads.
2916 # FIXME: for now, choose POSIX, because we implement that.
2917 # Later, choose solaris threads.
2935 cat >> confdefs.h <<\EOF
2936 #define LINUX_THREADS 1
2944 decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks)
2945 { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
2948 { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
2951 echo "$ac_t""$THREADS" 1>&6
2961 THREADLIBS=-lpthread
2962 THREADSPEC=-lpthread
2963 THREADOBJS=posix-threads.lo
2964 THREADH=posix-threads.h
2965 # MIT pthreads doesn't seem to have the mutexattr functions.
2966 # But for now we don't check for it. We just assume you aren't
2967 # using MIT pthreads.
2968 cat >> confdefs.h <<\EOF
2969 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
2975 THREADDEPS='$(top_builddir)/../qthreads/libgcjcoop.la'
2976 # We include the path to the qthreads build directory.
2977 # See Makefile.am to understand why.
2978 THREADLIBS="$THREADDEPS -L\$(here)/../qthreads/$libsubdir"
2979 THREADSPEC='-lgcjcoop'
2980 THREADOBJS=quick-threads.lo
2981 THREADINCS='-I$(top_srcdir)/../qthreads'
2982 THREADH=quick-threads.h
2986 THREADOBJS=no-threads.lo
2987 THREADH=no-threads.h
2999 if test "$GCC" = yes; then
3010 # Find eh-common.h and support headers. If we're in the tree with
3011 # gcc, then look there. Otherwise look in compat-include. If all else
3012 # fails, just hope the user has set things up somehow.
3013 if test -r $srcdir/../gcc/eh-common.h; then
3014 EH_COMMON_INCLUDE='-I$(top_srcdir)/../gcc -I$(top_srcdir)/../include'
3016 if test -d $srcdir/../compat-include; then
3017 EH_COMMON_INCLUDE='-I$(top_srcdir)/../compat-include'
3023 if test -n "${with_cross_host}"; then
3024 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
3025 # may not work correctly, because the compiler may not be able to
3028 # We assume newlib. This lets us hard-code the functions we know
3030 cat >> confdefs.h <<\EOF
3031 #define HAVE_MEMMOVE 1
3034 cat >> confdefs.h <<\EOF
3035 #define HAVE_MEMCPY 1
3038 cat >> confdefs.h <<\EOF
3039 #define HAVE_STRERROR 1
3042 cat >> confdefs.h <<\EOF
3043 #define HAVE_CTIME_R 1
3046 cat >> confdefs.h <<\EOF
3047 #define HAVE_GMTIME_R 1
3050 cat >> confdefs.h <<\EOF
3051 #define HAVE_LOCALTIME_R 1
3054 cat >> confdefs.h <<\EOF
3055 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
3058 cat >> confdefs.h <<\EOF
3059 #define HAVE_ALLOCA 1
3065 # If Canadian cross, then don't pick up tools from the build
3067 if test "$build" != "$with_cross_host"; then
3070 GCJ="${target_alias}/gcj"
3075 for ac_func in strerror ioctl select fstat open fsync sleep
3077 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3078 echo "configure:3079: checking for $ac_func" >&5
3079 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3080 echo $ac_n "(cached) $ac_c" 1>&6
3082 cat > conftest.$ac_ext <<EOF
3083 #line 3084 "configure"
3084 #include "confdefs.h"
3085 /* System header to define __stub macros and hopefully few prototypes,
3086 which can conflict with char $ac_func(); below. */
3088 /* Override any gcc2 internal prototype to avoid an error. */
3089 /* We use char because int might match the return type of a gcc2
3090 builtin and then its argument prototype would still apply. */
3095 /* The GNU C library defines this for functions which it implements
3096 to always fail with ENOSYS. Some functions are actually named
3097 something starting with __ and the normal name is an alias. */
3098 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3106 if { (eval echo configure:3107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3108 eval "ac_cv_func_$ac_func=yes"
3110 echo "configure: failed program was:" >&5
3111 cat conftest.$ac_ext >&5
3113 eval "ac_cv_func_$ac_func=no"
3118 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3119 echo "$ac_t""yes" 1>&6
3120 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3121 cat >> confdefs.h <<EOF
3122 #define $ac_tr_func 1
3126 echo "$ac_t""no" 1>&6
3130 for ac_func in ctime_r ctime
3132 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3133 echo "configure:3134: checking for $ac_func" >&5
3134 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3135 echo $ac_n "(cached) $ac_c" 1>&6
3137 cat > conftest.$ac_ext <<EOF
3138 #line 3139 "configure"
3139 #include "confdefs.h"
3140 /* System header to define __stub macros and hopefully few prototypes,
3141 which can conflict with char $ac_func(); below. */
3143 /* Override any gcc2 internal prototype to avoid an error. */
3144 /* We use char because int might match the return type of a gcc2
3145 builtin and then its argument prototype would still apply. */
3150 /* The GNU C library defines this for functions which it implements
3151 to always fail with ENOSYS. Some functions are actually named
3152 something starting with __ and the normal name is an alias. */
3153 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3161 if { (eval echo configure:3162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3163 eval "ac_cv_func_$ac_func=yes"
3165 echo "configure: failed program was:" >&5
3166 cat conftest.$ac_ext >&5
3168 eval "ac_cv_func_$ac_func=no"
3173 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3174 echo "$ac_t""yes" 1>&6
3175 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3176 cat >> confdefs.h <<EOF
3177 #define $ac_tr_func 1
3181 echo "$ac_t""no" 1>&6
3185 for ac_func in gmtime_r localtime_r readdir_r getpwuid_r
3187 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3188 echo "configure:3189: checking for $ac_func" >&5
3189 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3190 echo $ac_n "(cached) $ac_c" 1>&6
3192 cat > conftest.$ac_ext <<EOF
3193 #line 3194 "configure"
3194 #include "confdefs.h"
3195 /* System header to define __stub macros and hopefully few prototypes,
3196 which can conflict with char $ac_func(); below. */
3198 /* Override any gcc2 internal prototype to avoid an error. */
3199 /* We use char because int might match the return type of a gcc2
3200 builtin and then its argument prototype would still apply. */
3205 /* The GNU C library defines this for functions which it implements
3206 to always fail with ENOSYS. Some functions are actually named
3207 something starting with __ and the normal name is an alias. */
3208 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3216 if { (eval echo configure:3217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3218 eval "ac_cv_func_$ac_func=yes"
3220 echo "configure: failed program was:" >&5
3221 cat conftest.$ac_ext >&5
3223 eval "ac_cv_func_$ac_func=no"
3228 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3229 echo "$ac_t""yes" 1>&6
3230 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3231 cat >> confdefs.h <<EOF
3232 #define $ac_tr_func 1
3236 echo "$ac_t""no" 1>&6
3240 for ac_func in access stat mkdir rename rmdir unlink realpath
3242 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3243 echo "configure:3244: checking for $ac_func" >&5
3244 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3245 echo $ac_n "(cached) $ac_c" 1>&6
3247 cat > conftest.$ac_ext <<EOF
3248 #line 3249 "configure"
3249 #include "confdefs.h"
3250 /* System header to define __stub macros and hopefully few prototypes,
3251 which can conflict with char $ac_func(); below. */
3253 /* Override any gcc2 internal prototype to avoid an error. */
3254 /* We use char because int might match the return type of a gcc2
3255 builtin and then its argument prototype would still apply. */
3260 /* The GNU C library defines this for functions which it implements
3261 to always fail with ENOSYS. Some functions are actually named
3262 something starting with __ and the normal name is an alias. */
3263 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3271 if { (eval echo configure:3272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3273 eval "ac_cv_func_$ac_func=yes"
3275 echo "configure: failed program was:" >&5
3276 cat conftest.$ac_ext >&5
3278 eval "ac_cv_func_$ac_func=no"
3283 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3284 echo "$ac_t""yes" 1>&6
3285 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3286 cat >> confdefs.h <<EOF
3287 #define $ac_tr_func 1
3291 echo "$ac_t""no" 1>&6
3295 for ac_func in inet_aton inet_addr
3297 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3298 echo "configure:3299: checking for $ac_func" >&5
3299 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3300 echo $ac_n "(cached) $ac_c" 1>&6
3302 cat > conftest.$ac_ext <<EOF
3303 #line 3304 "configure"
3304 #include "confdefs.h"
3305 /* System header to define __stub macros and hopefully few prototypes,
3306 which can conflict with char $ac_func(); below. */
3308 /* Override any gcc2 internal prototype to avoid an error. */
3309 /* We use char because int might match the return type of a gcc2
3310 builtin and then its argument prototype would still apply. */
3315 /* The GNU C library defines this for functions which it implements
3316 to always fail with ENOSYS. Some functions are actually named
3317 something starting with __ and the normal name is an alias. */
3318 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3326 if { (eval echo configure:3327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3328 eval "ac_cv_func_$ac_func=yes"
3330 echo "configure: failed program was:" >&5
3331 cat conftest.$ac_ext >&5
3333 eval "ac_cv_func_$ac_func=no"
3338 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3339 echo "$ac_t""yes" 1>&6
3340 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3341 cat >> confdefs.h <<EOF
3342 #define $ac_tr_func 1
3346 echo "$ac_t""no" 1>&6
3350 for ac_func in inet_pton uname inet_ntoa
3352 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3353 echo "configure:3354: checking for $ac_func" >&5
3354 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3355 echo $ac_n "(cached) $ac_c" 1>&6
3357 cat > conftest.$ac_ext <<EOF
3358 #line 3359 "configure"
3359 #include "confdefs.h"
3360 /* System header to define __stub macros and hopefully few prototypes,
3361 which can conflict with char $ac_func(); below. */
3363 /* Override any gcc2 internal prototype to avoid an error. */
3364 /* We use char because int might match the return type of a gcc2
3365 builtin and then its argument prototype would still apply. */
3370 /* The GNU C library defines this for functions which it implements
3371 to always fail with ENOSYS. Some functions are actually named
3372 something starting with __ and the normal name is an alias. */
3373 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3381 if { (eval echo configure:3382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3383 eval "ac_cv_func_$ac_func=yes"
3385 echo "configure: failed program was:" >&5
3386 cat conftest.$ac_ext >&5
3388 eval "ac_cv_func_$ac_func=no"
3393 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3394 echo "$ac_t""yes" 1>&6
3395 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3396 cat >> confdefs.h <<EOF
3397 #define $ac_tr_func 1
3401 echo "$ac_t""no" 1>&6
3406 for ac_func in gethostbyname_r
3408 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3409 echo "configure:3410: checking for $ac_func" >&5
3410 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3411 echo $ac_n "(cached) $ac_c" 1>&6
3413 cat > conftest.$ac_ext <<EOF
3414 #line 3415 "configure"
3415 #include "confdefs.h"
3416 /* System header to define __stub macros and hopefully few prototypes,
3417 which can conflict with char $ac_func(); below. */
3419 /* Override any gcc2 internal prototype to avoid an error. */
3420 /* We use char because int might match the return type of a gcc2
3421 builtin and then its argument prototype would still apply. */
3426 /* The GNU C library defines this for functions which it implements
3427 to always fail with ENOSYS. Some functions are actually named
3428 something starting with __ and the normal name is an alias. */
3429 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3437 if { (eval echo configure:3438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3439 eval "ac_cv_func_$ac_func=yes"
3441 echo "configure: failed program was:" >&5
3442 cat conftest.$ac_ext >&5
3444 eval "ac_cv_func_$ac_func=no"
3449 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3450 echo "$ac_t""yes" 1>&6
3451 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3452 cat >> confdefs.h <<EOF
3453 #define $ac_tr_func 1
3456 cat >> confdefs.h <<\EOF
3457 #define HAVE_GETHOSTBYNAME_R 1
3460 # There are two different kinds of gethostbyname_r.
3461 # We look for the one that returns `int'.
3462 # Hopefully this check is robust enough.
3463 cat > conftest.$ac_ext <<EOF
3464 #line 3465 "configure"
3465 #include "confdefs.h"
3468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3469 egrep "int.*gethostbyname_r" >/dev/null 2>&1; then
3472 cat >> confdefs.h <<\EOF
3473 #define GETHOSTBYNAME_R_RETURNS_INT 1
3481 *" -D_REENTRANT "*) ;;
3483 echo $ac_n "checking whether gethostbyname_r declaration requires -D_REENTRANT""... $ac_c" 1>&6
3484 echo "configure:3485: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
3485 if eval "test \"`echo '$''{'libjava_cv_gethostbyname_r_needs_reentrant'+set}'`\" = set"; then
3486 echo $ac_n "(cached) $ac_c" 1>&6
3490 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3491 ac_cpp='$CXXCPP $CPPFLAGS'
3492 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3493 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3494 cross_compiling=$ac_cv_prog_cxx_cross
3496 cat > conftest.$ac_ext <<EOF
3497 #line 3498 "configure"
3498 #include "confdefs.h"
3501 gethostbyname_r("", 0, 0);
3504 if { (eval echo configure:3505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3506 libjava_cv_gethostbyname_r_needs_reentrant=no
3508 echo "configure: failed program was:" >&5
3509 cat conftest.$ac_ext >&5
3511 CPPFLAGS_SAVE="$CPPFLAGS"
3512 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
3513 cat > conftest.$ac_ext <<EOF
3514 #line 3515 "configure"
3515 #include "confdefs.h"
3518 gethostbyname_r("", 0, 0);
3521 if { (eval echo configure:3522: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3523 libjava_cv_gethostbyname_r_needs_reentrant=yes
3525 echo "configure: failed program was:" >&5
3526 cat conftest.$ac_ext >&5
3528 libjava_cv_gethostbyname_r_needs_reentrant=fail
3531 CPPFLAGS="$CPPFLAGS_SAVE"
3536 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3537 ac_cpp='$CPP $CPPFLAGS'
3538 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3539 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3540 cross_compiling=$ac_cv_prog_cc_cross
3545 echo "$ac_t""$libjava_cv_gethostbyname_r_needs_reentrant" 1>&6
3546 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
3547 cat >> confdefs.h <<\EOF
3548 #define GETHOSTBYNAME_R_NEEDS_REENTRANT 1
3555 echo $ac_n "checking for struct hostent_data""... $ac_c" 1>&6
3556 echo "configure:3557: checking for struct hostent_data" >&5
3557 if eval "test \"`echo '$''{'libjava_cv_struct_hostent_data'+set}'`\" = set"; then
3558 echo $ac_n "(cached) $ac_c" 1>&6
3560 cat > conftest.$ac_ext <<EOF
3561 #line 3562 "configure"
3562 #include "confdefs.h"
3564 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
3565 # define _REENTRANT 1
3569 struct hostent_data data;
3572 if { (eval echo configure:3573: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3574 libjava_cv_struct_hostent_data=yes
3576 echo "configure: failed program was:" >&5
3577 cat conftest.$ac_ext >&5
3579 libjava_cv_struct_hostent_data=no
3584 echo "$ac_t""$libjava_cv_struct_hostent_data" 1>&6
3585 if test "x$libjava_cv_struct_hostent_data" = xyes; then
3586 cat >> confdefs.h <<\EOF
3587 #define HAVE_STRUCT_HOSTENT_DATA 1
3593 echo "$ac_t""no" 1>&6
3598 for ac_func in gethostbyaddr_r
3600 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3601 echo "configure:3602: checking for $ac_func" >&5
3602 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3603 echo $ac_n "(cached) $ac_c" 1>&6
3605 cat > conftest.$ac_ext <<EOF
3606 #line 3607 "configure"
3607 #include "confdefs.h"
3608 /* System header to define __stub macros and hopefully few prototypes,
3609 which can conflict with char $ac_func(); below. */
3611 /* Override any gcc2 internal prototype to avoid an error. */
3612 /* We use char because int might match the return type of a gcc2
3613 builtin and then its argument prototype would still apply. */
3618 /* The GNU C library defines this for functions which it implements
3619 to always fail with ENOSYS. Some functions are actually named
3620 something starting with __ and the normal name is an alias. */
3621 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3629 if { (eval echo configure:3630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3631 eval "ac_cv_func_$ac_func=yes"
3633 echo "configure: failed program was:" >&5
3634 cat conftest.$ac_ext >&5
3636 eval "ac_cv_func_$ac_func=no"
3641 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3642 echo "$ac_t""yes" 1>&6
3643 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3644 cat >> confdefs.h <<EOF
3645 #define $ac_tr_func 1
3648 cat >> confdefs.h <<\EOF
3649 #define HAVE_GETHOSTBYADDR_R 1
3652 # There are two different kinds of gethostbyaddr_r.
3653 # We look for the one that returns `int'.
3654 # Hopefully this check is robust enough.
3655 cat > conftest.$ac_ext <<EOF
3656 #line 3657 "configure"
3657 #include "confdefs.h"
3660 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3661 egrep "int.*gethostbyaddr_r" >/dev/null 2>&1; then
3664 cat >> confdefs.h <<\EOF
3665 #define GETHOSTBYADDR_R_RETURNS_INT 1
3672 echo "$ac_t""no" 1>&6
3677 for ac_func in gethostname
3679 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3680 echo "configure:3681: checking for $ac_func" >&5
3681 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3682 echo $ac_n "(cached) $ac_c" 1>&6
3684 cat > conftest.$ac_ext <<EOF
3685 #line 3686 "configure"
3686 #include "confdefs.h"
3687 /* System header to define __stub macros and hopefully few prototypes,
3688 which can conflict with char $ac_func(); below. */
3690 /* Override any gcc2 internal prototype to avoid an error. */
3691 /* We use char because int might match the return type of a gcc2
3692 builtin and then its argument prototype would still apply. */
3697 /* The GNU C library defines this for functions which it implements
3698 to always fail with ENOSYS. Some functions are actually named
3699 something starting with __ and the normal name is an alias. */
3700 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3708 if { (eval echo configure:3709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3710 eval "ac_cv_func_$ac_func=yes"
3712 echo "configure: failed program was:" >&5
3713 cat conftest.$ac_ext >&5
3715 eval "ac_cv_func_$ac_func=no"
3720 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3721 echo "$ac_t""yes" 1>&6
3722 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3723 cat >> confdefs.h <<EOF
3724 #define $ac_tr_func 1
3727 cat >> confdefs.h <<\EOF
3728 #define HAVE_GETHOSTNAME 1
3731 cat > conftest.$ac_ext <<EOF
3732 #line 3733 "configure"
3733 #include "confdefs.h"
3736 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3737 egrep "gethostname" >/dev/null 2>&1; then
3740 cat >> confdefs.h <<\EOF
3741 #define HAVE_GETHOSTNAME_DECL 1
3748 echo "$ac_t""no" 1>&6
3753 # Look for these functions in the thread library, but only bother
3754 # if using POSIX threads.
3755 if test "$THREADS" = posix; then
3757 LIBS="$LIBS $THREADLIBS"
3758 # Some POSIX thread systems don't have pthread_mutexattr_settype.
3760 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
3762 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3763 echo "configure:3764: checking for $ac_func" >&5
3764 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3765 echo $ac_n "(cached) $ac_c" 1>&6
3767 cat > conftest.$ac_ext <<EOF
3768 #line 3769 "configure"
3769 #include "confdefs.h"
3770 /* System header to define __stub macros and hopefully few prototypes,
3771 which can conflict with char $ac_func(); below. */
3773 /* Override any gcc2 internal prototype to avoid an error. */
3774 /* We use char because int might match the return type of a gcc2
3775 builtin and then its argument prototype would still apply. */
3780 /* The GNU C library defines this for functions which it implements
3781 to always fail with ENOSYS. Some functions are actually named
3782 something starting with __ and the normal name is an alias. */
3783 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3791 if { (eval echo configure:3792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3793 eval "ac_cv_func_$ac_func=yes"
3795 echo "configure: failed program was:" >&5
3796 cat conftest.$ac_ext >&5
3798 eval "ac_cv_func_$ac_func=no"
3803 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3804 echo "$ac_t""yes" 1>&6
3805 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3806 cat >> confdefs.h <<EOF
3807 #define $ac_tr_func 1
3811 echo "$ac_t""no" 1>&6
3816 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
3817 # Solaris 7 the name librt is preferred.
3818 for ac_func in sched_yield
3820 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3821 echo "configure:3822: checking for $ac_func" >&5
3822 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3823 echo $ac_n "(cached) $ac_c" 1>&6
3825 cat > conftest.$ac_ext <<EOF
3826 #line 3827 "configure"
3827 #include "confdefs.h"
3828 /* System header to define __stub macros and hopefully few prototypes,
3829 which can conflict with char $ac_func(); below. */
3831 /* Override any gcc2 internal prototype to avoid an error. */
3832 /* We use char because int might match the return type of a gcc2
3833 builtin and then its argument prototype would still apply. */
3838 /* The GNU C library defines this for functions which it implements
3839 to always fail with ENOSYS. Some functions are actually named
3840 something starting with __ and the normal name is an alias. */
3841 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3849 if { (eval echo configure:3850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3851 eval "ac_cv_func_$ac_func=yes"
3853 echo "configure: failed program was:" >&5
3854 cat conftest.$ac_ext >&5
3856 eval "ac_cv_func_$ac_func=no"
3861 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3862 echo "$ac_t""yes" 1>&6
3863 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3864 cat >> confdefs.h <<EOF
3865 #define $ac_tr_func 1
3869 echo "$ac_t""no" 1>&6
3870 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
3871 echo "configure:3872: checking for sched_yield in -lrt" >&5
3872 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
3873 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3874 echo $ac_n "(cached) $ac_c" 1>&6
3876 ac_save_LIBS="$LIBS"
3878 cat > conftest.$ac_ext <<EOF
3879 #line 3880 "configure"
3880 #include "confdefs.h"
3881 /* Override any gcc2 internal prototype to avoid an error. */
3882 /* We use char because int might match the return type of a gcc2
3883 builtin and then its argument prototype would still apply. */
3890 if { (eval echo configure:3891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3892 eval "ac_cv_lib_$ac_lib_var=yes"
3894 echo "configure: failed program was:" >&5
3895 cat conftest.$ac_ext >&5
3897 eval "ac_cv_lib_$ac_lib_var=no"
3900 LIBS="$ac_save_LIBS"
3903 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3904 echo "$ac_t""yes" 1>&6
3906 cat >> confdefs.h <<\EOF
3907 #define HAVE_SCHED_YIELD 1
3910 THREADLIBS="$THREADLIBS -lrt"
3911 THREADSPEC="$THREADSPEC -lrt"
3913 echo "$ac_t""no" 1>&6
3915 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
3916 echo "configure:3917: checking for sched_yield in -lposix4" >&5
3917 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
3918 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3919 echo $ac_n "(cached) $ac_c" 1>&6
3921 ac_save_LIBS="$LIBS"
3922 LIBS="-lposix4 $LIBS"
3923 cat > conftest.$ac_ext <<EOF
3924 #line 3925 "configure"
3925 #include "confdefs.h"
3926 /* Override any gcc2 internal prototype to avoid an error. */
3927 /* We use char because int might match the return type of a gcc2
3928 builtin and then its argument prototype would still apply. */
3935 if { (eval echo configure:3936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3937 eval "ac_cv_lib_$ac_lib_var=yes"
3939 echo "configure: failed program was:" >&5
3940 cat conftest.$ac_ext >&5
3942 eval "ac_cv_lib_$ac_lib_var=no"
3945 LIBS="$ac_save_LIBS"
3948 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3949 echo "$ac_t""yes" 1>&6
3951 cat >> confdefs.h <<\EOF
3952 #define HAVE_SCHED_YIELD 1
3955 THREADLIBS="$THREADLIBS -lposix4"
3956 THREADSPEC="$THREADSPEC -lposix4"
3958 echo "$ac_t""no" 1>&6
3968 # We can save a little space at runtime if the mutex has m_count
3969 # or __m_count. This is a nice hack for Linux.
3970 cat > conftest.$ac_ext <<EOF
3971 #line 3972 "configure"
3972 #include "confdefs.h"
3973 #include <pthread.h>
3976 extern pthread_mutex_t *mutex; int q = mutex->m_count;
3980 if { (eval echo configure:3981: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3982 cat >> confdefs.h <<\EOF
3983 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
3987 echo "configure: failed program was:" >&5
3988 cat conftest.$ac_ext >&5
3991 cat > conftest.$ac_ext <<EOF
3992 #line 3993 "configure"
3993 #include "confdefs.h"
3994 #include <pthread.h>
3997 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
4001 if { (eval echo configure:4002: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4003 cat >> confdefs.h <<\EOF
4004 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
4008 echo "configure: failed program was:" >&5
4009 cat conftest.$ac_ext >&5
4016 # We require a way to get the time.
4018 for ac_func in gettimeofday time ftime
4020 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4021 echo "configure:4022: checking for $ac_func" >&5
4022 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4023 echo $ac_n "(cached) $ac_c" 1>&6
4025 cat > conftest.$ac_ext <<EOF
4026 #line 4027 "configure"
4027 #include "confdefs.h"
4028 /* System header to define __stub macros and hopefully few prototypes,
4029 which can conflict with char $ac_func(); below. */
4031 /* Override any gcc2 internal prototype to avoid an error. */
4032 /* We use char because int might match the return type of a gcc2
4033 builtin and then its argument prototype would still apply. */
4038 /* The GNU C library defines this for functions which it implements
4039 to always fail with ENOSYS. Some functions are actually named
4040 something starting with __ and the normal name is an alias. */
4041 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4049 if { (eval echo configure:4050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4051 eval "ac_cv_func_$ac_func=yes"
4053 echo "configure: failed program was:" >&5
4054 cat conftest.$ac_ext >&5
4056 eval "ac_cv_func_$ac_func=no"
4061 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4062 echo "$ac_t""yes" 1>&6
4063 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4064 cat >> confdefs.h <<EOF
4065 #define $ac_tr_func 1
4069 echo "$ac_t""no" 1>&6
4073 if test "$time_found" = no; then
4074 { echo "configure: error: no function found to get the time" 1>&2; exit 1; }
4077 for ac_func in memmove
4079 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4080 echo "configure:4081: checking for $ac_func" >&5
4081 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4082 echo $ac_n "(cached) $ac_c" 1>&6
4084 cat > conftest.$ac_ext <<EOF
4085 #line 4086 "configure"
4086 #include "confdefs.h"
4087 /* System header to define __stub macros and hopefully few prototypes,
4088 which can conflict with char $ac_func(); below. */
4090 /* Override any gcc2 internal prototype to avoid an error. */
4091 /* We use char because int might match the return type of a gcc2
4092 builtin and then its argument prototype would still apply. */
4097 /* The GNU C library defines this for functions which it implements
4098 to always fail with ENOSYS. Some functions are actually named
4099 something starting with __ and the normal name is an alias. */
4100 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4108 if { (eval echo configure:4109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4110 eval "ac_cv_func_$ac_func=yes"
4112 echo "configure: failed program was:" >&5
4113 cat conftest.$ac_ext >&5
4115 eval "ac_cv_func_$ac_func=no"
4120 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4121 echo "$ac_t""yes" 1>&6
4122 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4123 cat >> confdefs.h <<EOF
4124 #define $ac_tr_func 1
4128 echo "$ac_t""no" 1>&6
4133 # We require memcpy.
4135 for ac_func in memcpy
4137 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4138 echo "configure:4139: checking for $ac_func" >&5
4139 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4140 echo $ac_n "(cached) $ac_c" 1>&6
4142 cat > conftest.$ac_ext <<EOF
4143 #line 4144 "configure"
4144 #include "confdefs.h"
4145 /* System header to define __stub macros and hopefully few prototypes,
4146 which can conflict with char $ac_func(); below. */
4148 /* Override any gcc2 internal prototype to avoid an error. */
4149 /* We use char because int might match the return type of a gcc2
4150 builtin and then its argument prototype would still apply. */
4155 /* The GNU C library defines this for functions which it implements
4156 to always fail with ENOSYS. Some functions are actually named
4157 something starting with __ and the normal name is an alias. */
4158 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4166 if { (eval echo configure:4167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4168 eval "ac_cv_func_$ac_func=yes"
4170 echo "configure: failed program was:" >&5
4171 cat conftest.$ac_ext >&5
4173 eval "ac_cv_func_$ac_func=no"
4178 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4179 echo "$ac_t""yes" 1>&6
4180 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4181 cat >> confdefs.h <<EOF
4182 #define $ac_tr_func 1
4186 echo "$ac_t""no" 1>&6
4190 if test "$memcpy_found" = no; then
4191 { echo "configure: error: memcpy is required" 1>&2; exit 1; }
4194 # Some library-finding code we stole from Tcl.
4195 #--------------------------------------------------------------------
4196 # Check for the existence of the -lsocket and -lnsl libraries.
4197 # The order here is important, so that they end up in the right
4198 # order in the command line generated by make. Here are some
4199 # special considerations:
4200 # 1. Use "connect" and "accept" to check for -lsocket, and
4201 # "gethostbyname" to check for -lnsl.
4202 # 2. Use each function name only once: can't redo a check because
4203 # autoconf caches the results of the last check and won't redo it.
4204 # 3. Use -lnsl and -lsocket only if they supply procedures that
4205 # aren't already present in the normal libraries. This is because
4206 # IRIX 5.2 has libraries, but they aren't needed and they're
4207 # bogus: they goof up name resolution if used.
4208 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
4209 # To get around this problem, check for both libraries together
4210 # if -lsocket doesn't work by itself.
4211 #--------------------------------------------------------------------
4213 echo $ac_n "checking for socket libraries""... $ac_c" 1>&6
4214 echo "configure:4215: checking for socket libraries" >&5
4215 if eval "test \"`echo '$''{'gcj_cv_lib_sockets'+set}'`\" = set"; then
4216 echo $ac_n "(cached) $ac_c" 1>&6
4220 unset ac_cv_func_connect
4221 echo $ac_n "checking for connect""... $ac_c" 1>&6
4222 echo "configure:4223: checking for connect" >&5
4223 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
4224 echo $ac_n "(cached) $ac_c" 1>&6
4226 cat > conftest.$ac_ext <<EOF
4227 #line 4228 "configure"
4228 #include "confdefs.h"
4229 /* System header to define __stub macros and hopefully few prototypes,
4230 which can conflict with char connect(); below. */
4232 /* Override any gcc2 internal prototype to avoid an error. */
4233 /* We use char because int might match the return type of a gcc2
4234 builtin and then its argument prototype would still apply. */
4239 /* The GNU C library defines this for functions which it implements
4240 to always fail with ENOSYS. Some functions are actually named
4241 something starting with __ and the normal name is an alias. */
4242 #if defined (__stub_connect) || defined (__stub___connect)
4250 if { (eval echo configure:4251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4252 eval "ac_cv_func_connect=yes"
4254 echo "configure: failed program was:" >&5
4255 cat conftest.$ac_ext >&5
4257 eval "ac_cv_func_connect=no"
4262 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
4263 echo "$ac_t""yes" 1>&6
4266 echo "$ac_t""no" 1>&6
4270 if test "$gcj_checkSocket" = 1; then
4271 unset ac_cv_func_connect
4272 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4273 echo "configure:4274: checking for main in -lsocket" >&5
4274 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
4275 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4276 echo $ac_n "(cached) $ac_c" 1>&6
4278 ac_save_LIBS="$LIBS"
4279 LIBS="-lsocket $LIBS"
4280 cat > conftest.$ac_ext <<EOF
4281 #line 4282 "configure"
4282 #include "confdefs.h"
4288 if { (eval echo configure:4289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4290 eval "ac_cv_lib_$ac_lib_var=yes"
4292 echo "configure: failed program was:" >&5
4293 cat conftest.$ac_ext >&5
4295 eval "ac_cv_lib_$ac_lib_var=no"
4298 LIBS="$ac_save_LIBS"
4301 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4302 echo "$ac_t""yes" 1>&6
4303 gcj_cv_lib_sockets="-lsocket"
4305 echo "$ac_t""no" 1>&6
4310 if test "$gcj_checkBoth" = 1; then
4312 LIBS="$LIBS -lsocket -lnsl"
4313 unset ac_cv_func_accept
4314 echo $ac_n "checking for accept""... $ac_c" 1>&6
4315 echo "configure:4316: checking for accept" >&5
4316 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
4317 echo $ac_n "(cached) $ac_c" 1>&6
4319 cat > conftest.$ac_ext <<EOF
4320 #line 4321 "configure"
4321 #include "confdefs.h"
4322 /* System header to define __stub macros and hopefully few prototypes,
4323 which can conflict with char accept(); below. */
4325 /* Override any gcc2 internal prototype to avoid an error. */
4326 /* We use char because int might match the return type of a gcc2
4327 builtin and then its argument prototype would still apply. */
4332 /* The GNU C library defines this for functions which it implements
4333 to always fail with ENOSYS. Some functions are actually named
4334 something starting with __ and the normal name is an alias. */
4335 #if defined (__stub_accept) || defined (__stub___accept)
4343 if { (eval echo configure:4344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4345 eval "ac_cv_func_accept=yes"
4347 echo "configure: failed program was:" >&5
4348 cat conftest.$ac_ext >&5
4350 eval "ac_cv_func_accept=no"
4355 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
4356 echo "$ac_t""yes" 1>&6
4358 gcj_cv_lib_sockets="-lsocket -lnsl"
4360 echo "$ac_t""no" 1>&6
4363 unset ac_cv_func_accept
4366 unset ac_cv_func_gethostbyname
4368 LIBS="$LIBS $gcj_cv_lib_sockets"
4369 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4370 echo "configure:4371: checking for gethostbyname" >&5
4371 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
4372 echo $ac_n "(cached) $ac_c" 1>&6
4374 cat > conftest.$ac_ext <<EOF
4375 #line 4376 "configure"
4376 #include "confdefs.h"
4377 /* System header to define __stub macros and hopefully few prototypes,
4378 which can conflict with char gethostbyname(); below. */
4380 /* Override any gcc2 internal prototype to avoid an error. */
4381 /* We use char because int might match the return type of a gcc2
4382 builtin and then its argument prototype would still apply. */
4383 char gethostbyname();
4387 /* The GNU C library defines this for functions which it implements
4388 to always fail with ENOSYS. Some functions are actually named
4389 something starting with __ and the normal name is an alias. */
4390 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4398 if { (eval echo configure:4399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4400 eval "ac_cv_func_gethostbyname=yes"
4402 echo "configure: failed program was:" >&5
4403 cat conftest.$ac_ext >&5
4405 eval "ac_cv_func_gethostbyname=no"
4410 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
4411 echo "$ac_t""yes" 1>&6
4414 echo "$ac_t""no" 1>&6
4415 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
4416 echo "configure:4417: checking for main in -lnsl" >&5
4417 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
4418 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4419 echo $ac_n "(cached) $ac_c" 1>&6
4421 ac_save_LIBS="$LIBS"
4423 cat > conftest.$ac_ext <<EOF
4424 #line 4425 "configure"
4425 #include "confdefs.h"
4431 if { (eval echo configure:4432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4433 eval "ac_cv_lib_$ac_lib_var=yes"
4435 echo "configure: failed program was:" >&5
4436 cat conftest.$ac_ext >&5
4438 eval "ac_cv_lib_$ac_lib_var=no"
4441 LIBS="$ac_save_LIBS"
4444 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4445 echo "$ac_t""yes" 1>&6
4446 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
4448 echo "$ac_t""no" 1>&6
4453 unset ac_cv_func_gethostbyname
4458 echo "$ac_t""$gcj_cv_lib_sockets" 1>&6
4459 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
4461 if test "$with_system_zlib" = yes; then
4462 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
4463 echo "configure:4464: checking for deflate in -lz" >&5
4464 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
4465 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4466 echo $ac_n "(cached) $ac_c" 1>&6
4468 ac_save_LIBS="$LIBS"
4470 cat > conftest.$ac_ext <<EOF
4471 #line 4472 "configure"
4472 #include "confdefs.h"
4473 /* Override any gcc2 internal prototype to avoid an error. */
4474 /* We use char because int might match the return type of a gcc2
4475 builtin and then its argument prototype would still apply. */
4482 if { (eval echo configure:4483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4484 eval "ac_cv_lib_$ac_lib_var=yes"
4486 echo "configure: failed program was:" >&5
4487 cat conftest.$ac_ext >&5
4489 eval "ac_cv_lib_$ac_lib_var=no"
4492 LIBS="$ac_save_LIBS"
4495 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4496 echo "$ac_t""yes" 1>&6
4499 echo "$ac_t""no" 1>&6
4507 # On Solaris, and maybe other architectures, the Boehm collector
4509 if test "$GC" = boehm; then
4510 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
4511 echo "configure:4512: checking for main in -ldl" >&5
4512 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
4513 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4514 echo $ac_n "(cached) $ac_c" 1>&6
4516 ac_save_LIBS="$LIBS"
4518 cat > conftest.$ac_ext <<EOF
4519 #line 4520 "configure"
4520 #include "confdefs.h"
4526 if { (eval echo configure:4527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4528 eval "ac_cv_lib_$ac_lib_var=yes"
4530 echo "configure: failed program was:" >&5
4531 cat conftest.$ac_ext >&5
4533 eval "ac_cv_lib_$ac_lib_var=no"
4536 LIBS="$ac_save_LIBS"
4539 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4540 echo "$ac_t""yes" 1>&6
4541 SYSTEMSPEC="$SYSTEMSPEC -ldl"
4543 echo "$ac_t""no" 1>&6
4548 if test -d "$libgcj_basedir/../gcc/java"; then
4560 if test "x$ZLIBSPEC" = "x-lzgcj"; then
4561 # We include the path to the zlib build directory.
4562 # See Makefile.am to understand why.
4563 ZDEPS='$(top_builddir)/../zlib/libzgcj.la'
4564 ZLIBS="$ZDEPS -L\$(here)/../zlib/$libsubdir"
4565 ZINCS='-I$(top_srcdir)/../zlib'
4576 if test "$CANADIAN" = yes; then
4585 if test "$NULL_TARGET" = yes; then
4587 NULL_TARGET_FALSE='#'
4589 NULL_TARGET_TRUE='#'
4594 if test "$CANADIAN" = no || test "$NULL_TARGET" = yes; then
4603 if test -z "$with_cross_host"; then
4605 USE_LIBDIR_FALSE='#'
4612 # Determine gcj version number.
4613 if test "$GCJ" = ""; then
4614 if test -z "${with_multisubdir}"; then
4617 builddotdot=`echo ${with_multisubdir} | sed -e 's:^/^/*:..:g'`
4619 dir="`cd ${builddotdot}/../../gcc && pwd`"
4620 GCJ="$dir/gcj -B$dir/"
4623 gcjvers="`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`"
4625 cat >> confdefs.h <<EOF
4626 #define GCJVERSION "$gcjvers"
4630 # See if gcj supports -fuse-divide-subroutine. gcc 2.95 does not, and
4631 # we want to continue to support that version.
4632 cat > conftest.java << 'END'
4633 public class conftest { }
4636 $GCJ -fuse-divide-subroutine -fsyntax-only conftest.java > /dev/null 2>&1 \
4639 if test "$use_fuse" = no; then
4645 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
4647 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4648 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4649 echo "configure:4650: checking for $ac_hdr" >&5
4650 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4651 echo $ac_n "(cached) $ac_c" 1>&6
4653 cat > conftest.$ac_ext <<EOF
4654 #line 4655 "configure"
4655 #include "confdefs.h"
4658 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4659 { (eval echo configure:4660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4660 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4661 if test -z "$ac_err"; then
4663 eval "ac_cv_header_$ac_safe=yes"
4666 echo "configure: failed program was:" >&5
4667 cat conftest.$ac_ext >&5
4669 eval "ac_cv_header_$ac_safe=no"
4673 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4674 echo "$ac_t""yes" 1>&6
4675 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4676 cat >> confdefs.h <<EOF
4677 #define $ac_tr_hdr 1
4681 echo "$ac_t""no" 1>&6
4685 for ac_hdr in dirent.h
4687 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4688 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4689 echo "configure:4690: checking for $ac_hdr" >&5
4690 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4691 echo $ac_n "(cached) $ac_c" 1>&6
4693 cat > conftest.$ac_ext <<EOF
4694 #line 4695 "configure"
4695 #include "confdefs.h"
4698 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4699 { (eval echo configure:4700: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4700 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4701 if test -z "$ac_err"; then
4703 eval "ac_cv_header_$ac_safe=yes"
4706 echo "configure: failed program was:" >&5
4707 cat conftest.$ac_ext >&5
4709 eval "ac_cv_header_$ac_safe=no"
4713 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4714 echo "$ac_t""yes" 1>&6
4715 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4716 cat >> confdefs.h <<EOF
4717 #define $ac_tr_hdr 1
4721 echo "$ac_t""no" 1>&6
4726 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4727 echo "configure:4728: checking for ANSI C header files" >&5
4728 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
4729 echo $ac_n "(cached) $ac_c" 1>&6
4731 cat > conftest.$ac_ext <<EOF
4732 #line 4733 "configure"
4733 #include "confdefs.h"
4739 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4740 { (eval echo configure:4741: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4741 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4742 if test -z "$ac_err"; then
4744 ac_cv_header_stdc=yes
4747 echo "configure: failed program was:" >&5
4748 cat conftest.$ac_ext >&5
4750 ac_cv_header_stdc=no
4754 if test $ac_cv_header_stdc = yes; then
4755 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4756 cat > conftest.$ac_ext <<EOF
4757 #line 4758 "configure"
4758 #include "confdefs.h"
4761 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4762 egrep "memchr" >/dev/null 2>&1; then
4766 ac_cv_header_stdc=no
4772 if test $ac_cv_header_stdc = yes; then
4773 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4774 cat > conftest.$ac_ext <<EOF
4775 #line 4776 "configure"
4776 #include "confdefs.h"
4779 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4780 egrep "free" >/dev/null 2>&1; then
4784 ac_cv_header_stdc=no
4790 if test $ac_cv_header_stdc = yes; then
4791 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4792 if test "$cross_compiling" = yes; then
4795 cat > conftest.$ac_ext <<EOF
4796 #line 4797 "configure"
4797 #include "confdefs.h"
4799 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4800 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4801 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4802 int main () { int i; for (i = 0; i < 256; i++)
4803 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4807 if { (eval echo configure:4808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4811 echo "configure: failed program was:" >&5
4812 cat conftest.$ac_ext >&5
4814 ac_cv_header_stdc=no
4822 echo "$ac_t""$ac_cv_header_stdc" 1>&6
4823 if test $ac_cv_header_stdc = yes; then
4824 cat >> confdefs.h <<\EOF
4825 #define STDC_HEADERS 1
4830 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
4831 echo "configure:4832: checking for ssize_t" >&5
4832 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
4833 echo $ac_n "(cached) $ac_c" 1>&6
4835 cat > conftest.$ac_ext <<EOF
4836 #line 4837 "configure"
4837 #include "confdefs.h"
4838 #include <sys/types.h>
4844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4845 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4847 ac_cv_type_ssize_t=yes
4850 ac_cv_type_ssize_t=no
4855 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
4856 if test $ac_cv_type_ssize_t = no; then
4857 cat >> confdefs.h <<\EOF
4864 echo $ac_n "checking for in_addr_t""... $ac_c" 1>&6
4865 echo "configure:4866: checking for in_addr_t" >&5
4866 cat > conftest.$ac_ext <<EOF
4867 #line 4868 "configure"
4868 #include "confdefs.h"
4869 #include <sys/types.h>
4874 #if HAVE_NETINET_IN_H
4875 #include <netinet/in.h>
4881 if { (eval echo configure:4882: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4883 cat >> confdefs.h <<\EOF
4884 #define HAVE_IN_ADDR_T 1
4887 echo "$ac_t""yes" 1>&6
4889 echo "configure: failed program was:" >&5
4890 cat conftest.$ac_ext >&5
4892 echo "$ac_t""no" 1>&6
4896 echo $ac_n "checking whether struct ip_mreq is in netinet/in.h""... $ac_c" 1>&6
4897 echo "configure:4898: checking whether struct ip_mreq is in netinet/in.h" >&5
4898 cat > conftest.$ac_ext <<EOF
4899 #line 4900 "configure"
4900 #include "confdefs.h"
4901 #include <netinet/in.h>
4903 struct ip_mreq mreq;
4906 if { (eval echo configure:4907: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4908 cat >> confdefs.h <<\EOF
4909 #define HAVE_STRUCT_IP_MREQ 1
4912 echo "$ac_t""yes" 1>&6
4914 echo "configure: failed program was:" >&5
4915 cat conftest.$ac_ext >&5
4917 echo "$ac_t""no" 1>&6
4921 echo $ac_n "checking whether struct sockaddr_in6 is in netinet/in.h""... $ac_c" 1>&6
4922 echo "configure:4923: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
4923 cat > conftest.$ac_ext <<EOF
4924 #line 4925 "configure"
4925 #include "confdefs.h"
4926 #include <netinet/in.h>
4928 struct sockaddr_in6 addr6;
4931 if { (eval echo configure:4932: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4933 cat >> confdefs.h <<\EOF
4934 #define HAVE_INET6 1
4937 echo "$ac_t""yes" 1>&6
4939 echo "configure: failed program was:" >&5
4940 cat conftest.$ac_ext >&5
4942 echo "$ac_t""no" 1>&6
4946 echo $ac_n "checking for socklen_t in sys/socket.h""... $ac_c" 1>&6
4947 echo "configure:4948: checking for socklen_t in sys/socket.h" >&5
4948 cat > conftest.$ac_ext <<EOF
4949 #line 4950 "configure"
4950 #include "confdefs.h"
4951 #include <sys/socket.h>
4956 if { (eval echo configure:4957: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4958 cat >> confdefs.h <<\EOF
4959 #define HAVE_SOCKLEN_T 1
4962 echo "$ac_t""yes" 1>&6
4964 echo "configure: failed program was:" >&5
4965 cat conftest.$ac_ext >&5
4967 echo "$ac_t""no" 1>&6
4971 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
4972 echo "configure:4973: checking for tm_gmtoff in struct tm" >&5
4973 cat > conftest.$ac_ext <<EOF
4974 #line 4975 "configure"
4975 #include "confdefs.h"
4978 struct tm tim; tim.tm_gmtoff = 0;
4981 if { (eval echo configure:4982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4983 cat >> confdefs.h <<\EOF
4984 #define STRUCT_TM_HAS_GMTOFF 1
4987 echo "$ac_t""yes" 1>&6
4989 echo "configure: failed program was:" >&5
4990 cat conftest.$ac_ext >&5
4992 echo "$ac_t""no" 1>&6
4993 echo $ac_n "checking for global timezone variable""... $ac_c" 1>&6
4994 echo "configure:4995: checking for global timezone variable" >&5
4995 cat > conftest.$ac_ext <<EOF
4996 #line 4997 "configure"
4997 #include "confdefs.h"
5003 if { (eval echo configure:5004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5005 cat >> confdefs.h <<\EOF
5006 #define HAVE_TIMEZONE 1
5009 echo "$ac_t""yes" 1>&6
5011 echo "configure: failed program was:" >&5
5012 cat conftest.$ac_ext >&5
5014 echo "$ac_t""no" 1>&6
5020 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5021 # for constant arguments. Useless!
5022 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5023 echo "configure:5024: checking for working alloca.h" >&5
5024 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5025 echo $ac_n "(cached) $ac_c" 1>&6
5027 cat > conftest.$ac_ext <<EOF
5028 #line 5029 "configure"
5029 #include "confdefs.h"
5032 char *p = alloca(2 * sizeof(int));
5035 if { (eval echo configure:5036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5037 ac_cv_header_alloca_h=yes
5039 echo "configure: failed program was:" >&5
5040 cat conftest.$ac_ext >&5
5042 ac_cv_header_alloca_h=no
5047 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5048 if test $ac_cv_header_alloca_h = yes; then
5049 cat >> confdefs.h <<\EOF
5050 #define HAVE_ALLOCA_H 1
5055 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5056 echo "configure:5057: checking for alloca" >&5
5057 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5058 echo $ac_n "(cached) $ac_c" 1>&6
5060 cat > conftest.$ac_ext <<EOF
5061 #line 5062 "configure"
5062 #include "confdefs.h"
5065 # define alloca __builtin_alloca
5068 # include <malloc.h>
5069 # define alloca _alloca
5072 # include <alloca.h>
5077 # ifndef alloca /* predefined by HP cc +Olibcalls */
5086 char *p = (char *) alloca(1);
5089 if { (eval echo configure:5090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5091 ac_cv_func_alloca_works=yes
5093 echo "configure: failed program was:" >&5
5094 cat conftest.$ac_ext >&5
5096 ac_cv_func_alloca_works=no
5101 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5102 if test $ac_cv_func_alloca_works = yes; then
5103 cat >> confdefs.h <<\EOF
5104 #define HAVE_ALLOCA 1
5109 if test $ac_cv_func_alloca_works = no; then
5110 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5111 # that cause trouble. Some versions do not even contain alloca or
5112 # contain a buggy version. If you still want to use their alloca,
5113 # use ar to extract alloca.o from them instead of compiling alloca.c.
5114 ALLOCA=alloca.${ac_objext}
5115 cat >> confdefs.h <<\EOF
5120 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5121 echo "configure:5122: checking whether alloca needs Cray hooks" >&5
5122 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5123 echo $ac_n "(cached) $ac_c" 1>&6
5125 cat > conftest.$ac_ext <<EOF
5126 #line 5127 "configure"
5127 #include "confdefs.h"
5128 #if defined(CRAY) && ! defined(CRAY2)
5135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5136 egrep "webecray" >/dev/null 2>&1; then
5147 echo "$ac_t""$ac_cv_os_cray" 1>&6
5148 if test $ac_cv_os_cray = yes; then
5149 for ac_func in _getb67 GETB67 getb67; do
5150 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5151 echo "configure:5152: checking for $ac_func" >&5
5152 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5153 echo $ac_n "(cached) $ac_c" 1>&6
5155 cat > conftest.$ac_ext <<EOF
5156 #line 5157 "configure"
5157 #include "confdefs.h"
5158 /* System header to define __stub macros and hopefully few prototypes,
5159 which can conflict with char $ac_func(); below. */
5161 /* Override any gcc2 internal prototype to avoid an error. */
5162 /* We use char because int might match the return type of a gcc2
5163 builtin and then its argument prototype would still apply. */
5168 /* The GNU C library defines this for functions which it implements
5169 to always fail with ENOSYS. Some functions are actually named
5170 something starting with __ and the normal name is an alias. */
5171 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5179 if { (eval echo configure:5180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5181 eval "ac_cv_func_$ac_func=yes"
5183 echo "configure: failed program was:" >&5
5184 cat conftest.$ac_ext >&5
5186 eval "ac_cv_func_$ac_func=no"
5191 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5192 echo "$ac_t""yes" 1>&6
5193 cat >> confdefs.h <<EOF
5194 #define CRAY_STACKSEG_END $ac_func
5199 echo "$ac_t""no" 1>&6
5205 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5206 echo "configure:5207: checking stack direction for C alloca" >&5
5207 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5208 echo $ac_n "(cached) $ac_c" 1>&6
5210 if test "$cross_compiling" = yes; then
5211 ac_cv_c_stack_direction=0
5213 cat > conftest.$ac_ext <<EOF
5214 #line 5215 "configure"
5215 #include "confdefs.h"
5216 find_stack_direction ()
5218 static char *addr = 0;
5223 return find_stack_direction ();
5226 return (&dummy > addr) ? 1 : -1;
5230 exit (find_stack_direction() < 0);
5233 if { (eval echo configure:5234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5235 ac_cv_c_stack_direction=1
5237 echo "configure: failed program was:" >&5
5238 cat conftest.$ac_ext >&5
5240 ac_cv_c_stack_direction=-1
5247 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5248 cat >> confdefs.h <<EOF
5249 #define STACK_DIRECTION $ac_cv_c_stack_direction
5257 # Extract the first word of "$ac_prog", so it can be a program name with args.
5258 set dummy $ac_prog; ac_word=$2
5259 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5260 echo "configure:5261: checking for $ac_word" >&5
5261 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
5262 echo $ac_n "(cached) $ac_c" 1>&6
5264 if test -n "$PERL"; then
5265 ac_cv_prog_PERL="$PERL" # Let the user override the test.
5267 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5269 for ac_dir in $ac_dummy; do
5270 test -z "$ac_dir" && ac_dir=.
5271 if test -f $ac_dir/$ac_word; then
5272 ac_cv_prog_PERL="$ac_prog"
5279 PERL="$ac_cv_prog_PERL"
5280 if test -n "$PERL"; then
5281 echo "$ac_t""$PERL" 1>&6
5283 echo "$ac_t""no" 1>&6
5286 test -n "$PERL" && break
5288 test -n "$PERL" || PERL="false"
5293 SIGNAL_HANDLER=include/i386-signal.h
5296 SIGNAL_HANDLER=include/sparc-signal.h
5299 SIGNAL_HANDLER=include/default-signal.h
5305 if test "${multilib}" = "yes"; then
5306 multilib_arg="--enable-multilib"
5315 cat > confcache <<\EOF
5316 # This file is a shell script that caches the results of configure
5317 # tests run on this system so they can be shared between configure
5318 # scripts and configure runs. It is not useful on other systems.
5319 # If it contains results you don't want to keep, you may remove or edit it.
5321 # By default, configure uses ./config.cache as the cache file,
5322 # creating it if it does not exist already. You can give configure
5323 # the --cache-file=FILE option to use a different cache file; that is
5324 # what configure does when it calls configure scripts in
5325 # subdirectories, so they share the cache.
5326 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5327 # config.status only pays attention to the cache file if you give it the
5328 # --recheck option to rerun configure.
5331 # The following way of writing the cache mishandles newlines in values,
5332 # but we know of no workaround that is simple, portable, and efficient.
5333 # So, don't put newlines in cache variables' values.
5334 # Ultrix sh set writes to stderr and can't be redirected directly,
5335 # and sets the high bit in the cache file unless we assign to the vars.
5337 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5339 # `set' does not quote correctly, so add quotes (double-quote substitution
5340 # turns \\\\ into \\, and sed turns \\ into \).
5342 -e "s/'/'\\\\''/g" \
5343 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5346 # `set' quotes correctly as required by POSIX, so do not add quotes.
5347 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5350 if cmp -s $cache_file confcache; then
5353 if test -w $cache_file; then
5354 echo "updating cache $cache_file"
5355 cat confcache > $cache_file
5357 echo "not updating unwritable cache $cache_file"
5362 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5364 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5365 # Let make expand exec_prefix.
5366 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5368 # Any assignment to VPATH causes Sun make to only execute
5369 # the first set of double-colon rules, so remove it if not needed.
5370 # If there is a colon in the path, we need to keep it.
5371 if test "x$srcdir" = x.; then
5372 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5375 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5377 DEFS=-DHAVE_CONFIG_H
5379 # Without the "./", some shells look in PATH for config.status.
5380 : ${CONFIG_STATUS=./config.status}
5382 echo creating $CONFIG_STATUS
5383 rm -f $CONFIG_STATUS
5384 cat > $CONFIG_STATUS <<EOF
5386 # Generated automatically by configure.
5387 # Run this file to recreate the current configuration.
5388 # This directory was configured as follows,
5389 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5391 # $0 $ac_configure_args
5393 # Compiler output produced by configure, useful for debugging
5394 # configure, is in ./config.log if it exists.
5396 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5399 case "\$ac_option" in
5400 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5401 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5402 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5403 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5404 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5406 -help | --help | --hel | --he | --h)
5407 echo "\$ac_cs_usage"; exit 0 ;;
5408 *) echo "\$ac_cs_usage"; exit 1 ;;
5412 ac_given_srcdir=$srcdir
5413 ac_given_INSTALL="$INSTALL"
5415 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
5417 cat >> $CONFIG_STATUS <<EOF
5419 # Protect against being on the right side of a sed subst in config.status.
5420 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5421 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5425 s%@CFLAGS@%$CFLAGS%g
5426 s%@CPPFLAGS@%$CPPFLAGS%g
5427 s%@CXXFLAGS@%$CXXFLAGS%g
5428 s%@FFLAGS@%$FFLAGS%g
5430 s%@LDFLAGS@%$LDFLAGS%g
5432 s%@exec_prefix@%$exec_prefix%g
5433 s%@prefix@%$prefix%g
5434 s%@program_transform_name@%$program_transform_name%g
5435 s%@bindir@%$bindir%g
5436 s%@sbindir@%$sbindir%g
5437 s%@libexecdir@%$libexecdir%g
5438 s%@datadir@%$datadir%g
5439 s%@sysconfdir@%$sysconfdir%g
5440 s%@sharedstatedir@%$sharedstatedir%g
5441 s%@localstatedir@%$localstatedir%g
5442 s%@libdir@%$libdir%g
5443 s%@includedir@%$includedir%g
5444 s%@oldincludedir@%$oldincludedir%g
5445 s%@infodir@%$infodir%g
5446 s%@mandir@%$mandir%g
5448 s%@host_alias@%$host_alias%g
5449 s%@host_cpu@%$host_cpu%g
5450 s%@host_vendor@%$host_vendor%g
5451 s%@host_os@%$host_os%g
5452 s%@target@%$target%g
5453 s%@target_alias@%$target_alias%g
5454 s%@target_cpu@%$target_cpu%g
5455 s%@target_vendor@%$target_vendor%g
5456 s%@target_os@%$target_os%g
5458 s%@build_alias@%$build_alias%g
5459 s%@build_cpu@%$build_cpu%g
5460 s%@build_vendor@%$build_vendor%g
5461 s%@build_os@%$build_os%g
5462 s%@libgcj_basedir@%$libgcj_basedir%g
5463 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5464 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5465 s%@INSTALL_DATA@%$INSTALL_DATA%g
5466 s%@PACKAGE@%$PACKAGE%g
5467 s%@VERSION@%$VERSION%g
5468 s%@ACLOCAL@%$ACLOCAL%g
5469 s%@AUTOCONF@%$AUTOCONF%g
5470 s%@AUTOMAKE@%$AUTOMAKE%g
5471 s%@AUTOHEADER@%$AUTOHEADER%g
5472 s%@MAKEINFO@%$MAKEINFO%g
5473 s%@SET_MAKE@%$SET_MAKE%g
5478 s%@RANLIB@%$RANLIB%g
5479 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
5480 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
5482 s%@EXEEXT@%$EXEEXT%g
5483 s%@LIBGCJ_CFLAGS@%$LIBGCJ_CFLAGS%g
5484 s%@LIBGCJ_CXXFLAGS@%$LIBGCJ_CXXFLAGS%g
5485 s%@LIBGCJ_JAVAFLAGS@%$LIBGCJ_JAVAFLAGS%g
5488 s%@USE_SYMBOL_UNDERSCORE@%$USE_SYMBOL_UNDERSCORE%g
5490 s%@DLLTOOL@%$DLLTOOL%g
5491 s%@LIBTOOL@%$LIBTOOL%g
5492 s%@COMPPATH@%$COMPPATH%g
5493 s%@TESTSUBDIR_TRUE@%$TESTSUBDIR_TRUE%g
5494 s%@TESTSUBDIR_FALSE@%$TESTSUBDIR_FALSE%g
5496 s%@SYSTEMSPEC@%$SYSTEMSPEC%g
5497 s%@ZLIBSPEC@%$ZLIBSPEC%g
5498 s%@GCLIBS@%$GCLIBS%g
5499 s%@GCINCS@%$GCINCS%g
5500 s%@GCDEPS@%$GCDEPS%g
5501 s%@GCOBJS@%$GCOBJS%g
5502 s%@GCSPEC@%$GCSPEC%g
5503 s%@THREADLIBS@%$THREADLIBS%g
5504 s%@THREADINCS@%$THREADINCS%g
5505 s%@THREADDEPS@%$THREADDEPS%g
5506 s%@THREADOBJS@%$THREADOBJS%g
5507 s%@THREADSPEC@%$THREADSPEC%g
5508 s%@USING_GCC_TRUE@%$USING_GCC_TRUE%g
5509 s%@USING_GCC_FALSE@%$USING_GCC_FALSE%g
5513 s%@DIVIDESPEC@%$DIVIDESPEC%g
5514 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
5515 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
5516 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
5517 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
5518 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
5519 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
5520 s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
5521 s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
5522 s%@EH_COMMON_INCLUDE@%$EH_COMMON_INCLUDE%g
5523 s%@AM_RUNTESTFLAGS@%$AM_RUNTESTFLAGS%g
5524 s%@ALLOCA@%$ALLOCA%g
5531 cat >> $CONFIG_STATUS <<\EOF
5533 # Split the substitutions into bite-sized pieces for seds with
5534 # small command number limits, like on Digital OSF/1 and HP-UX.
5535 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5536 ac_file=1 # Number of current file.
5537 ac_beg=1 # First line for current file.
5538 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5541 while $ac_more_lines; do
5542 if test $ac_beg -gt 1; then
5543 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5545 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5547 if test ! -s conftest.s$ac_file; then
5549 rm -f conftest.s$ac_file
5551 if test -z "$ac_sed_cmds"; then
5552 ac_sed_cmds="sed -f conftest.s$ac_file"
5554 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5556 ac_file=`expr $ac_file + 1`
5558 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5561 if test -z "$ac_sed_cmds"; then
5566 cat >> $CONFIG_STATUS <<EOF
5568 CONFIG_FILES=\${CONFIG_FILES-"Makefile libgcj.spec gcj/Makefile include/Makefile testsuite/Makefile"}
5570 cat >> $CONFIG_STATUS <<\EOF
5571 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5572 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5574 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5575 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5576 *) ac_file_in="${ac_file}.in" ;;
5579 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5581 # Remove last slash and all that follows it. Not all systems have dirname.
5582 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5583 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5584 # The file is in a subdirectory.
5585 test ! -d "$ac_dir" && mkdir "$ac_dir"
5586 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5587 # A "../" for each directory in $ac_dir_suffix.
5588 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5590 ac_dir_suffix= ac_dots=
5593 case "$ac_given_srcdir" in
5595 if test -z "$ac_dots"; then top_srcdir=.
5596 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5597 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5599 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5600 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5603 case "$ac_given_INSTALL" in
5604 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5605 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5608 echo creating "$ac_file"
5610 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5612 *Makefile*) ac_comsub="1i\\
5613 # $configure_input" ;;
5617 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5619 s%@configure_input@%$configure_input%g
5620 s%@srcdir@%$srcdir%g
5621 s%@top_srcdir@%$top_srcdir%g
5622 s%@INSTALL@%$INSTALL%g
5623 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5627 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5628 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5630 # ac_d sets the value in "#define NAME VALUE" lines.
5631 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5632 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5635 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5636 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5637 ac_uB='\([ ]\)%\1#\2define\3'
5640 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5641 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5642 ac_eB='$%\1#\2define\3'
5646 if test "${CONFIG_HEADERS+set}" != set; then
5648 cat >> $CONFIG_STATUS <<EOF
5649 CONFIG_HEADERS="include/config.h"
5651 cat >> $CONFIG_STATUS <<\EOF
5653 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5654 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5656 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5657 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5658 *) ac_file_in="${ac_file}.in" ;;
5661 echo creating $ac_file
5663 rm -f conftest.frag conftest.in conftest.out
5664 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5665 cat $ac_file_inputs > conftest.in
5669 # Transform confdefs.h into a sed script conftest.vals that substitutes
5670 # the proper values into config.h.in to produce config.h. And first:
5671 # Protect against being on the right side of a sed subst in config.status.
5672 # Protect against being in an unquoted here document in config.status.
5674 cat > conftest.hdr <<\EOF
5677 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5681 sed -n -f conftest.hdr confdefs.h > conftest.vals
5684 # This sed command replaces #undef with comments. This is necessary, for
5685 # example, in the case of _POSIX_SOURCE, which is predefined and required
5686 # on some systems where configure will not decide to define it.
5687 cat >> conftest.vals <<\EOF
5688 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5691 # Break up conftest.vals because some shells have a limit on
5692 # the size of here documents, and old seds have small limits too.
5697 ac_lines=`grep -c . conftest.vals`
5698 # grep -c gives empty output for an empty file on some AIX systems.
5699 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5700 # Write a limited-size here document to conftest.frag.
5701 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5702 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5704 sed -f conftest.frag conftest.in > conftest.out
5706 mv conftest.out conftest.in
5708 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5710 mv conftest.tail conftest.vals
5714 cat >> $CONFIG_STATUS <<\EOF
5715 rm -f conftest.frag conftest.h
5716 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5717 cat conftest.in >> conftest.h
5719 if cmp -s $ac_file conftest.h 2>/dev/null; then
5720 echo "$ac_file is unchanged"
5723 # Remove last slash and all that follows it. Not all systems have dirname.
5724 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5725 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5726 # The file is in a subdirectory.
5727 test ! -d "$ac_dir" && mkdir "$ac_dir"
5730 mv conftest.h $ac_file
5736 cat >> $CONFIG_STATUS <<EOF
5737 ac_sources="java/io/$FILE_DESCRIPTOR java/lang/${PROCESS}Process.java java/lang/nat${PROCESS}Process.cc include/$GCHDR include/$THREADH $SIGNAL_HANDLER"
5738 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"
5741 cat >> $CONFIG_STATUS <<\EOF
5742 srcdir=$ac_given_srcdir
5743 while test -n "$ac_sources"; do
5744 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
5745 set $ac_sources; ac_source=$1; shift; ac_sources=$*
5747 echo "linking $srcdir/$ac_source to $ac_dest"
5749 if test ! -r $srcdir/$ac_source; then
5750 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
5754 # Make relative symlinks.
5755 # Remove last slash and all that follows it. Not all systems have dirname.
5756 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
5757 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
5758 # The dest file is in a subdirectory.
5759 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
5760 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
5761 # A "../" for each directory in $ac_dest_dir_suffix.
5762 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
5764 ac_dest_dir_suffix= ac_dots=
5768 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
5769 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
5772 # Make a symlink if possible; otherwise try a hard link.
5773 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
5774 ln $srcdir/$ac_source $ac_dest; then :
5776 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
5780 cat >> $CONFIG_STATUS <<EOF
5785 with_multisubdir=${with_multisubdir}
5786 ac_configure_args="${multilib_arg} ${ac_configure_args}"
5787 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
5788 libgcj_basedir=${libgcj_basedir}
5793 cat >> $CONFIG_STATUS <<\EOF
5794 test -z "$CONFIG_HEADERS" || echo timestamp > include/stamp-h
5795 if test -n "$CONFIG_FILES"; then
5796 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
5800 chmod +x $CONFIG_STATUS
5801 rm -fr confdefs* $ac_clean_files
5802 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1