3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --with-target-subdir=SUBDIR
16 configuring in a subdirectory"
18 --with-cross-host=HOST configuring with a cross compiler"
20 --enable-multilib build many library versions (default)"
22 --enable-maintainer-mode enable make rules and dependencies not useful
23 (and sometimes confusing) to the casual installer"
25 --enable-shared[=PKGS] build shared libraries [default=yes]"
27 --enable-static[=PKGS] build static libraries [default=yes]"
29 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
31 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
33 --disable-libtool-lock avoid locking (might break parallel builds)"
35 --with-pic try to use only PIC/non-PIC objects [default=use both]"
37 --enable-fast-character prefer speed over size for Character"
39 --disable-getenv-properties
40 don't set system properties from GCJ_PROPERTIES"
42 --enable-hash-synchronization
43 Use global hash table for monitor locks"
45 --enable-libgcj-debug enable runtime debugging code"
47 --enable-interpreter enable interpreter"
49 --enable-sjlj-exceptions force use of builtin_setjmp for exceptions"
51 --disable-java-net disable java.net"
53 --without-libffi don't use libffi"
55 --disable-jvmpi disable JVMPI support"
57 --with-ecos enable runtime eCos target support"
59 --with-system-zlib use installed libz"
61 --enable-java-gc=TYPE choose garbage collector [boehm]"
63 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
65 --with-x use the X Window System"
67 --enable-java-awt list of AWT peer implementations to be built"
69 # Initialize some variables set by options.
70 # The variables have the same names as the options, with
71 # dashes changed to underlines.
73 cache_file=./config.cache
82 program_transform_name=s,x,x,
91 bindir='${exec_prefix}/bin'
92 sbindir='${exec_prefix}/sbin'
93 libexecdir='${exec_prefix}/libexec'
94 datadir='${prefix}/share'
95 sysconfdir='${prefix}/etc'
96 sharedstatedir='${prefix}/com'
97 localstatedir='${prefix}/var'
98 libdir='${exec_prefix}/lib'
99 includedir='${prefix}/include'
100 oldincludedir='/usr/include'
101 infodir='${prefix}/info'
102 mandir='${prefix}/man'
104 # Initialize some other variables.
107 SHELL=${CONFIG_SHELL-/bin/sh}
108 # Maximum number of lines to put in a shell here document.
115 # If the previous option needs an argument, assign it.
116 if test -n "$ac_prev"; then
117 eval "$ac_prev=\$ac_option"
123 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
127 # Accept the important Cygnus configure options, so we can diagnose typos.
131 -bindir | --bindir | --bindi | --bind | --bin | --bi)
133 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
134 bindir="$ac_optarg" ;;
136 -build | --build | --buil | --bui | --bu)
138 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
139 build="$ac_optarg" ;;
141 -cache-file | --cache-file | --cache-fil | --cache-fi \
142 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
143 ac_prev=cache_file ;;
144 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
145 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
146 cache_file="$ac_optarg" ;;
148 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
150 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
152 datadir="$ac_optarg" ;;
154 -disable-* | --disable-*)
155 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
156 # Reject names that are not valid shell variable names.
157 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
158 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
160 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
161 eval "enable_${ac_feature}=no" ;;
163 -enable-* | --enable-*)
164 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
165 # Reject names that are not valid shell variable names.
166 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
167 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
169 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
174 eval "enable_${ac_feature}='$ac_optarg'" ;;
176 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
177 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
178 | --exec | --exe | --ex)
179 ac_prev=exec_prefix ;;
180 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
181 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
182 | --exec=* | --exe=* | --ex=*)
183 exec_prefix="$ac_optarg" ;;
185 -gas | --gas | --ga | --g)
186 # Obsolete; use --with-gas.
189 -help | --help | --hel | --he)
190 # Omit some internal or obsolete options to make the list less imposing.
191 # This message is too long to be a string in the A/UX 3.1 sh.
193 Usage: configure [options] [host]
194 Options: [defaults in brackets after descriptions]
196 --cache-file=FILE cache test results in FILE
197 --help print this message
198 --no-create do not create output files
199 --quiet, --silent do not print \`checking...' messages
200 --site-file=FILE use FILE as the site file
201 --version print the version of autoconf that created configure
202 Directory and file names:
203 --prefix=PREFIX install architecture-independent files in PREFIX
205 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
207 --bindir=DIR user executables in DIR [EPREFIX/bin]
208 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
209 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
210 --datadir=DIR read-only architecture-independent data in DIR
212 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
213 --sharedstatedir=DIR modifiable architecture-independent data in DIR
215 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
216 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
217 --includedir=DIR C header files in DIR [PREFIX/include]
218 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
219 --infodir=DIR info documentation in DIR [PREFIX/info]
220 --mandir=DIR man documentation in DIR [PREFIX/man]
221 --srcdir=DIR find the sources in DIR [configure dir or ..]
222 --program-prefix=PREFIX prepend PREFIX to installed program names
223 --program-suffix=SUFFIX append SUFFIX to installed program names
224 --program-transform-name=PROGRAM
225 run sed PROGRAM on installed program names
229 --build=BUILD configure for building on BUILD [BUILD=HOST]
230 --host=HOST configure for HOST [guessed]
231 --target=TARGET configure for TARGET [TARGET=HOST]
232 Features and packages:
233 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
234 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
235 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
236 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
237 --x-includes=DIR X include files are in DIR
238 --x-libraries=DIR X library files are in DIR
240 if test -n "$ac_help"; then
241 echo "--enable and --with options recognized:$ac_help"
245 -host | --host | --hos | --ho)
247 -host=* | --host=* | --hos=* | --ho=*)
250 -includedir | --includedir | --includedi | --included | --include \
251 | --includ | --inclu | --incl | --inc)
252 ac_prev=includedir ;;
253 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
254 | --includ=* | --inclu=* | --incl=* | --inc=*)
255 includedir="$ac_optarg" ;;
257 -infodir | --infodir | --infodi | --infod | --info | --inf)
259 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
260 infodir="$ac_optarg" ;;
262 -libdir | --libdir | --libdi | --libd)
264 -libdir=* | --libdir=* | --libdi=* | --libd=*)
265 libdir="$ac_optarg" ;;
267 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
268 | --libexe | --libex | --libe)
269 ac_prev=libexecdir ;;
270 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
271 | --libexe=* | --libex=* | --libe=*)
272 libexecdir="$ac_optarg" ;;
274 -localstatedir | --localstatedir | --localstatedi | --localstated \
275 | --localstate | --localstat | --localsta | --localst \
276 | --locals | --local | --loca | --loc | --lo)
277 ac_prev=localstatedir ;;
278 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
279 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
280 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
281 localstatedir="$ac_optarg" ;;
283 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
285 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
286 mandir="$ac_optarg" ;;
289 # Obsolete; use --without-fp.
292 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
296 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
297 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
300 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
301 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
302 | --oldin | --oldi | --old | --ol | --o)
303 ac_prev=oldincludedir ;;
304 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
305 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
306 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
307 oldincludedir="$ac_optarg" ;;
309 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
311 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
312 prefix="$ac_optarg" ;;
314 -program-prefix | --program-prefix | --program-prefi | --program-pref \
315 | --program-pre | --program-pr | --program-p)
316 ac_prev=program_prefix ;;
317 -program-prefix=* | --program-prefix=* | --program-prefi=* \
318 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
319 program_prefix="$ac_optarg" ;;
321 -program-suffix | --program-suffix | --program-suffi | --program-suff \
322 | --program-suf | --program-su | --program-s)
323 ac_prev=program_suffix ;;
324 -program-suffix=* | --program-suffix=* | --program-suffi=* \
325 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
326 program_suffix="$ac_optarg" ;;
328 -program-transform-name | --program-transform-name \
329 | --program-transform-nam | --program-transform-na \
330 | --program-transform-n | --program-transform- \
331 | --program-transform | --program-transfor \
332 | --program-transfo | --program-transf \
333 | --program-trans | --program-tran \
334 | --progr-tra | --program-tr | --program-t)
335 ac_prev=program_transform_name ;;
336 -program-transform-name=* | --program-transform-name=* \
337 | --program-transform-nam=* | --program-transform-na=* \
338 | --program-transform-n=* | --program-transform-=* \
339 | --program-transform=* | --program-transfor=* \
340 | --program-transfo=* | --program-transf=* \
341 | --program-trans=* | --program-tran=* \
342 | --progr-tra=* | --program-tr=* | --program-t=*)
343 program_transform_name="$ac_optarg" ;;
345 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
346 | -silent | --silent | --silen | --sile | --sil)
349 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
351 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
353 sbindir="$ac_optarg" ;;
355 -sharedstatedir | --sharedstatedir | --sharedstatedi \
356 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
357 | --sharedst | --shareds | --shared | --share | --shar \
359 ac_prev=sharedstatedir ;;
360 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
361 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
362 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
364 sharedstatedir="$ac_optarg" ;;
366 -site | --site | --sit)
368 -site=* | --site=* | --sit=*)
371 -site-file | --site-file | --site-fil | --site-fi | --site-f)
373 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
374 sitefile="$ac_optarg" ;;
376 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
378 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
379 srcdir="$ac_optarg" ;;
381 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
382 | --syscon | --sysco | --sysc | --sys | --sy)
383 ac_prev=sysconfdir ;;
384 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
385 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
386 sysconfdir="$ac_optarg" ;;
388 -target | --target | --targe | --targ | --tar | --ta | --t)
390 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
391 target="$ac_optarg" ;;
393 -v | -verbose | --verbose | --verbos | --verbo | --verb)
396 -version | --version | --versio | --versi | --vers)
397 echo "configure generated by autoconf version 2.13"
401 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
402 # Reject names that are not valid shell variable names.
403 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
404 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
406 ac_package=`echo $ac_package| sed 's/-/_/g'`
411 eval "with_${ac_package}='$ac_optarg'" ;;
413 -without-* | --without-*)
414 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
415 # Reject names that are not valid shell variable names.
416 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
417 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
419 ac_package=`echo $ac_package| sed 's/-/_/g'`
420 eval "with_${ac_package}=no" ;;
423 # Obsolete; use --with-x.
426 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
427 | --x-incl | --x-inc | --x-in | --x-i)
428 ac_prev=x_includes ;;
429 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
430 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
431 x_includes="$ac_optarg" ;;
433 -x-libraries | --x-libraries | --x-librarie | --x-librari \
434 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
435 ac_prev=x_libraries ;;
436 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
437 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
438 x_libraries="$ac_optarg" ;;
440 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
444 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
445 echo "configure: warning: $ac_option: invalid host type" 1>&2
447 if test "x$nonopt" != xNONE; then
448 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
456 if test -n "$ac_prev"; then
457 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
460 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
462 # File descriptor usage:
465 # 2 errors and warnings
466 # 3 some systems may open it to /dev/tty
467 # 4 used on the Kubota Titan
468 # 6 checking for... messages and results
469 # 5 compiler messages saved in config.log
470 if test "$silent" = yes; then
478 This file contains any messages produced by compilers while
479 running configure, to aid debugging if configure makes a mistake.
482 # Strip out --no-create and --no-recursion so they do not pile up.
483 # Also quote any args containing shell metacharacters.
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c) ;;
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
492 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
493 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
494 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
499 # Only set these to C if already set. These must not be set unconditionally
500 # because not all systems understand e.g. LANG=C (notably SCO).
501 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
502 # Non-C LC_CTYPE values break the ctype check.
503 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
504 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
505 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
506 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
508 # confdefs.h avoids OS command line length limits that DEFS can exceed.
509 rm -rf conftest* confdefs.h
510 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
513 # A filename unique to this package, relative to the directory that
514 # configure is in, which we can look for to find out if srcdir is correct.
515 ac_unique_file=java/lang/System.java
517 # Find the source files, if location was not specified.
518 if test -z "$srcdir"; then
519 ac_srcdir_defaulted=yes
520 # Try the directory containing this script, then its parent.
522 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
523 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
525 if test ! -r $srcdir/$ac_unique_file; then
529 ac_srcdir_defaulted=no
531 if test ! -r $srcdir/$ac_unique_file; then
532 if test "$ac_srcdir_defaulted" = yes; then
533 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
535 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
538 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
540 # Prefer explicitly selected file to automatically selected ones.
541 if test -z "$sitefile"; then
542 if test -z "$CONFIG_SITE"; then
543 if test "x$prefix" != xNONE; then
544 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
546 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
550 CONFIG_SITE="$sitefile"
552 for ac_site_file in $CONFIG_SITE; do
553 if test -r "$ac_site_file"; then
554 echo "loading site script $ac_site_file"
559 if test -r "$cache_file"; then
560 echo "loading cache $cache_file"
563 echo "creating cache $cache_file"
568 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
569 ac_cpp='$CPP $CPPFLAGS'
570 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
571 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
572 cross_compiling=$ac_cv_prog_cc_cross
576 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
577 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
578 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
585 ac_n= ac_c='\c' ac_t=
590 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
591 echo "configure:592: checking whether ln -s works" >&5
592 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
593 echo $ac_n "(cached) $ac_c" 1>&6
596 if ln -s X conftestdata 2>/dev/null
599 ac_cv_prog_LN_S="ln -s"
604 LN_S="$ac_cv_prog_LN_S"
605 if test "$ac_cv_prog_LN_S" = "ln -s"; then
606 echo "$ac_t""yes" 1>&6
608 echo "$ac_t""no" 1>&6
612 # Check whether --with-target-subdir or --without-target-subdir was given.
613 if test "${with_target_subdir+set}" = set; then
614 withval="$with_target_subdir"
618 # Check whether --with-cross-host or --without-cross-host was given.
619 if test "${with_cross_host+set}" = set; then
620 withval="$with_cross_host"
625 # Find a good install program. We prefer a C program (faster),
626 # so one script is as good as another. But avoid the broken or
627 # incompatible versions:
628 # SysV /etc/install, /usr/sbin/install
629 # SunOS /usr/etc/install
632 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
633 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
634 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
635 # ./install, which can be erroneously created by make from ./install.sh.
636 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
637 echo "configure:638: checking for a BSD compatible install" >&5
638 if test -z "$INSTALL"; then
639 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
640 echo $ac_n "(cached) $ac_c" 1>&6
642 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
643 for ac_dir in $PATH; do
644 # Account for people who put trailing slashes in PATH elements.
646 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
648 # OSF1 and SCO ODT 3.0 have their own names for install.
649 # Don't use installbsd from OSF since it installs stuff as root
651 for ac_prog in ginstall scoinst install; do
652 if test -f $ac_dir/$ac_prog; then
653 if test $ac_prog = install &&
654 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
655 # AIX install. It has an incompatible calling convention.
658 ac_cv_path_install="$ac_dir/$ac_prog -c"
669 if test "${ac_cv_path_install+set}" = set; then
670 INSTALL="$ac_cv_path_install"
672 # As a last resort, use the slow shell script. We don't cache a
673 # path for INSTALL within a source directory, because that will
674 # break other packages using the cache if that directory is
675 # removed, or if the path is relative.
676 INSTALL="$ac_install_sh"
679 echo "$ac_t""$INSTALL" 1>&6
681 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
682 # It thinks the first close brace ends the variable substitution.
683 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
685 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
687 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
689 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
690 echo "configure:691: checking whether build environment is sane" >&5
693 echo timestamp > conftestfile
694 # Do `set' in a subshell so we don't clobber the current shell's
695 # arguments. Must try -L first in case configure is actually a
696 # symlink; some systems play weird games with the mod time of symlinks
697 # (eg FreeBSD returns the mod time of the symlink's containing
700 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
701 if test "$*" = "X"; then
703 set X `ls -t $srcdir/configure conftestfile`
705 if test "$*" != "X $srcdir/configure conftestfile" \
706 && test "$*" != "X conftestfile $srcdir/configure"; then
708 # If neither matched, then we have a broken ls. This can happen
709 # if, for instance, CONFIG_SHELL is bash and it inherits a
710 # broken ls alias from the environment. This has actually
711 # happened. Such a system could not be considered "sane".
712 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
713 alias in your environment" 1>&2; exit 1; }
716 test "$2" = conftestfile
722 { echo "configure: error: newly created file is older than distributed files!
723 Check your system clock" 1>&2; exit 1; }
726 echo "$ac_t""yes" 1>&6
727 if test "$program_transform_name" = s,x,x,; then
728 program_transform_name=
730 # Double any \ or $. echo might interpret backslashes.
731 cat <<\EOF_SED > conftestsed
732 s,\\,\\\\,g; s,\$,$$,g
734 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
737 test "$program_prefix" != NONE &&
738 program_transform_name="s,^,${program_prefix},; $program_transform_name"
739 # Use a double $ so make ignores it.
740 test "$program_suffix" != NONE &&
741 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
743 # sed with no file args requires a program.
744 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
746 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
747 echo "configure:748: checking whether ${MAKE-make} sets \${MAKE}" >&5
748 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
749 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
750 echo $ac_n "(cached) $ac_c" 1>&6
752 cat > conftestmake <<\EOF
754 @echo 'ac_maketemp="${MAKE}"'
756 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
757 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
758 if test -n "$ac_maketemp"; then
759 eval ac_cv_prog_make_${ac_make}_set=yes
761 eval ac_cv_prog_make_${ac_make}_set=no
765 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
766 echo "$ac_t""yes" 1>&6
769 echo "$ac_t""no" 1>&6
770 SET_MAKE="MAKE=${MAKE-make}"
773 if test $host != $build; then
774 ac_tool_prefix=${host_alias}-
779 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
780 echo "configure:781: checking for Cygwin environment" >&5
781 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
782 echo $ac_n "(cached) $ac_c" 1>&6
784 cat > conftest.$ac_ext <<EOF
785 #line 786 "configure"
786 #include "confdefs.h"
791 #define __CYGWIN__ __CYGWIN32__
796 if { (eval echo configure:797: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
800 echo "configure: failed program was:" >&5
801 cat conftest.$ac_ext >&5
809 echo "$ac_t""$ac_cv_cygwin" 1>&6
811 test "$ac_cv_cygwin" = yes && CYGWIN=yes
812 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
813 echo "configure:814: checking for mingw32 environment" >&5
814 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
815 echo $ac_n "(cached) $ac_c" 1>&6
817 cat > conftest.$ac_ext <<EOF
818 #line 819 "configure"
819 #include "confdefs.h"
825 if { (eval echo configure:826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
829 echo "configure: failed program was:" >&5
830 cat conftest.$ac_ext >&5
838 echo "$ac_t""$ac_cv_mingw32" 1>&6
840 test "$ac_cv_mingw32" = yes && MINGW32=yes
842 # Check whether --enable-multilib or --disable-multilib was given.
843 if test "${enable_multilib+set}" = set; then
844 enableval="$enable_multilib"
845 case "${enableval}" in
848 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
855 # When building with srcdir == objdir, links to the source files will
856 # be created in directories within the target_subdir. We have to
857 # adjust toplevel_srcdir accordingly, so that configure finds
858 # install-sh and other auxiliary files that live in the top-level
860 if test "${srcdir}" = "."; then
861 if test -z "${with_target_subdir}"; then
864 if test "${with_target_subdir}" != "."; then
865 toprel="${with_multisrctop}../.."
867 toprel="${with_multisrctop}.."
874 libgcj_basedir=$srcdir/$toprel/./libjava
878 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
879 if test -f $ac_dir/install-sh; then
881 ac_install_sh="$ac_aux_dir/install-sh -c"
883 elif test -f $ac_dir/install.sh; then
885 ac_install_sh="$ac_aux_dir/install.sh -c"
889 if test -z "$ac_aux_dir"; then
890 { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
892 ac_config_guess=$ac_aux_dir/config.guess
893 ac_config_sub=$ac_aux_dir/config.sub
894 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
897 # This overrides the previous occurrence for automake, but not for
898 # autoconf, which is exactly what we want.
900 for ac_dir in .. $srcdir/..; do
901 if test -f $ac_dir/install-sh; then
903 ac_install_sh="$ac_aux_dir/install-sh -c"
905 elif test -f $ac_dir/install.sh; then
907 ac_install_sh="$ac_aux_dir/install.sh -c"
911 if test -z "$ac_aux_dir"; then
912 { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
914 ac_config_guess=$ac_aux_dir/config.guess
915 ac_config_sub=$ac_aux_dir/config.sub
916 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
920 # This works around an automake problem.
921 mkinstalldirs="`cd $ac_aux_dir && pwd`/mkinstalldirs"
925 # Do some error checking and defaulting for the host and target type.
927 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
930 # 1. You are not allowed to specify --host, --target, and nonopt at the
932 # 2. Host defaults to nonopt.
933 # 3. If nonopt is not specified, then host defaults to the current host,
934 # as determined by config.guess.
935 # 4. Target and build default to nonopt.
936 # 5. If nonopt is not specified, then target and build default to host.
938 # The aliases save the names the user supplied, while $host etc.
939 # will get canonicalized.
940 case $host---$target---$nonopt in
941 NONE---*---* | *---NONE---* | *---*---NONE) ;;
942 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
946 # Make sure we can run config.sub.
947 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
948 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
951 echo $ac_n "checking host system type""... $ac_c" 1>&6
952 echo "configure:953: checking host system type" >&5
955 case "$host_alias" in
959 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
960 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
962 *) host_alias=$nonopt ;;
966 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
967 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
968 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
969 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
970 echo "$ac_t""$host" 1>&6
972 echo $ac_n "checking target system type""... $ac_c" 1>&6
973 echo "configure:974: checking target system type" >&5
976 case "$target_alias" in
979 NONE) target_alias=$host_alias ;;
980 *) target_alias=$nonopt ;;
984 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
985 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
986 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
987 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
988 echo "$ac_t""$target" 1>&6
990 echo $ac_n "checking build system type""... $ac_c" 1>&6
991 echo "configure:992: checking build system type" >&5
994 case "$build_alias" in
997 NONE) build_alias=$host_alias ;;
998 *) build_alias=$nonopt ;;
1002 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1003 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1004 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1005 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1006 echo "$ac_t""$build" 1>&6
1008 test "$host_alias" != "$target_alias" &&
1009 test "$program_prefix$program_suffix$program_transform_name" = \
1011 program_prefix=${target_alias}-
1017 # Extract the first word of "gcc", so it can be a program name with args.
1018 set dummy gcc; ac_word=$2
1019 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1020 echo "configure:1021: checking for $ac_word" >&5
1021 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1022 echo $ac_n "(cached) $ac_c" 1>&6
1024 if test -n "$CC"; then
1025 ac_cv_prog_CC="$CC" # Let the user override the test.
1027 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1029 for ac_dir in $ac_dummy; do
1030 test -z "$ac_dir" && ac_dir=.
1031 if test -f $ac_dir/$ac_word; then
1040 if test -n "$CC"; then
1041 echo "$ac_t""$CC" 1>&6
1043 echo "$ac_t""no" 1>&6
1046 if test -z "$CC"; then
1047 # Extract the first word of "cc", so it can be a program name with args.
1048 set dummy cc; ac_word=$2
1049 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1050 echo "configure:1051: checking for $ac_word" >&5
1051 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1052 echo $ac_n "(cached) $ac_c" 1>&6
1054 if test -n "$CC"; then
1055 ac_cv_prog_CC="$CC" # Let the user override the test.
1057 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1060 for ac_dir in $ac_dummy; do
1061 test -z "$ac_dir" && ac_dir=.
1062 if test -f $ac_dir/$ac_word; then
1063 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1064 ac_prog_rejected=yes
1072 if test $ac_prog_rejected = yes; then
1073 # We found a bogon in the path, so make sure we never use it.
1074 set dummy $ac_cv_prog_CC
1076 if test $# -gt 0; then
1077 # We chose a different compiler from the bogus one.
1078 # However, it has the same basename, so the bogon will be chosen
1079 # first if we set CC to just the basename; use the full file name.
1081 set dummy "$ac_dir/$ac_word" "$@"
1089 if test -n "$CC"; then
1090 echo "$ac_t""$CC" 1>&6
1092 echo "$ac_t""no" 1>&6
1095 if test -z "$CC"; then
1096 case "`uname -s`" in
1098 # Extract the first word of "cl", so it can be a program name with args.
1099 set dummy cl; ac_word=$2
1100 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1101 echo "configure:1102: checking for $ac_word" >&5
1102 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1103 echo $ac_n "(cached) $ac_c" 1>&6
1105 if test -n "$CC"; then
1106 ac_cv_prog_CC="$CC" # Let the user override the test.
1108 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1110 for ac_dir in $ac_dummy; do
1111 test -z "$ac_dir" && ac_dir=.
1112 if test -f $ac_dir/$ac_word; then
1121 if test -n "$CC"; then
1122 echo "$ac_t""$CC" 1>&6
1124 echo "$ac_t""no" 1>&6
1129 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1133 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1134 echo "configure:1135: checking whether we are using GNU C" >&5
1135 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1136 echo $ac_n "(cached) $ac_c" 1>&6
1138 cat > conftest.c <<EOF
1143 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1144: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1150 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1152 if test $ac_cv_prog_gcc = yes; then
1158 ac_test_CFLAGS="${CFLAGS+set}"
1159 ac_save_CFLAGS="$CFLAGS"
1161 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1162 echo "configure:1163: checking whether ${CC-cc} accepts -g" >&5
1163 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1164 echo $ac_n "(cached) $ac_c" 1>&6
1166 echo 'void f(){}' > conftest.c
1167 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1176 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1177 if test "$ac_test_CFLAGS" = set; then
1178 CFLAGS="$ac_save_CFLAGS"
1179 elif test $ac_cv_prog_cc_g = yes; then
1180 if test "$GCC" = yes; then
1186 if test "$GCC" = yes; then
1193 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1195 # Extract the first word of "$ac_prog", so it can be a program name with args.
1196 set dummy $ac_prog; ac_word=$2
1197 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1198 echo "configure:1199: checking for $ac_word" >&5
1199 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1200 echo $ac_n "(cached) $ac_c" 1>&6
1202 if test -n "$CXX"; then
1203 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1205 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1207 for ac_dir in $ac_dummy; do
1208 test -z "$ac_dir" && ac_dir=.
1209 if test -f $ac_dir/$ac_word; then
1210 ac_cv_prog_CXX="$ac_prog"
1217 CXX="$ac_cv_prog_CXX"
1218 if test -n "$CXX"; then
1219 echo "$ac_t""$CXX" 1>&6
1221 echo "$ac_t""no" 1>&6
1224 test -n "$CXX" && break
1226 test -n "$CXX" || CXX="gcc"
1230 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1231 echo "configure:1232: checking whether we are using GNU C++" >&5
1232 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1233 echo $ac_n "(cached) $ac_c" 1>&6
1235 cat > conftest.C <<EOF
1240 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1241: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1247 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1249 if test $ac_cv_prog_gxx = yes; then
1255 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1256 ac_save_CXXFLAGS="$CXXFLAGS"
1258 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1259 echo "configure:1260: checking whether ${CXX-g++} accepts -g" >&5
1260 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1261 echo $ac_n "(cached) $ac_c" 1>&6
1263 echo 'void f(){}' > conftest.cc
1264 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1265 ac_cv_prog_cxx_g=yes
1273 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1274 if test "$ac_test_CXXFLAGS" = set; then
1275 CXXFLAGS="$ac_save_CXXFLAGS"
1276 elif test $ac_cv_prog_cxx_g = yes; then
1277 if test "$GXX" = yes; then
1283 if test "$GXX" = yes; then
1297 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1298 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1300 cat >> confdefs.h <<EOF
1301 #define PACKAGE "$PACKAGE"
1304 cat >> confdefs.h <<EOF
1305 #define VERSION "$VERSION"
1310 missing_dir=`cd $ac_aux_dir && pwd`
1311 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1312 echo "configure:1313: checking for working aclocal" >&5
1313 # Run test in a subshell; some versions of sh will print an error if
1314 # an executable is not found, even if stderr is redirected.
1315 # Redirect stdin to placate older versions of autoconf. Sigh.
1316 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1318 echo "$ac_t""found" 1>&6
1320 ACLOCAL="$missing_dir/missing aclocal"
1321 echo "$ac_t""missing" 1>&6
1324 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1325 echo "configure:1326: checking for working autoconf" >&5
1326 # Run test in a subshell; some versions of sh will print an error if
1327 # an executable is not found, even if stderr is redirected.
1328 # Redirect stdin to placate older versions of autoconf. Sigh.
1329 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1331 echo "$ac_t""found" 1>&6
1333 AUTOCONF="$missing_dir/missing autoconf"
1334 echo "$ac_t""missing" 1>&6
1337 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1338 echo "configure:1339: checking for working automake" >&5
1339 # Run test in a subshell; some versions of sh will print an error if
1340 # an executable is not found, even if stderr is redirected.
1341 # Redirect stdin to placate older versions of autoconf. Sigh.
1342 if (automake --version) < /dev/null > /dev/null 2>&1; then
1344 echo "$ac_t""found" 1>&6
1346 AUTOMAKE="$missing_dir/missing automake"
1347 echo "$ac_t""missing" 1>&6
1350 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1351 echo "configure:1352: checking for working autoheader" >&5
1352 # Run test in a subshell; some versions of sh will print an error if
1353 # an executable is not found, even if stderr is redirected.
1354 # Redirect stdin to placate older versions of autoconf. Sigh.
1355 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1356 AUTOHEADER=autoheader
1357 echo "$ac_t""found" 1>&6
1359 AUTOHEADER="$missing_dir/missing autoheader"
1360 echo "$ac_t""missing" 1>&6
1363 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1364 echo "configure:1365: checking for working makeinfo" >&5
1365 # Run test in a subshell; some versions of sh will print an error if
1366 # an executable is not found, even if stderr is redirected.
1367 # Redirect stdin to placate older versions of autoconf. Sigh.
1368 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1370 echo "$ac_t""found" 1>&6
1372 MAKEINFO="$missing_dir/missing makeinfo"
1373 echo "$ac_t""missing" 1>&6
1378 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we dont
1379 # run it explicitly here, it will be run implicitly before
1380 # LIBGCJ_CONFIGURE, which doesn't work because that means that it will
1381 # be run before AC_CANONICAL_HOST.
1382 echo $ac_n "checking build system type""... $ac_c" 1>&6
1383 echo "configure:1384: checking build system type" >&5
1386 case "$build_alias" in
1389 NONE) build_alias=$host_alias ;;
1390 *) build_alias=$nonopt ;;
1394 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1395 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1396 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1397 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1398 echo "$ac_t""$build" 1>&6
1401 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1402 set dummy ${ac_tool_prefix}as; ac_word=$2
1403 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1404 echo "configure:1405: checking for $ac_word" >&5
1405 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1406 echo $ac_n "(cached) $ac_c" 1>&6
1408 if test -n "$AS"; then
1409 ac_cv_prog_AS="$AS" # Let the user override the test.
1411 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1413 for ac_dir in $ac_dummy; do
1414 test -z "$ac_dir" && ac_dir=.
1415 if test -f $ac_dir/$ac_word; then
1416 ac_cv_prog_AS="${ac_tool_prefix}as"
1421 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1425 if test -n "$AS"; then
1426 echo "$ac_t""$AS" 1>&6
1428 echo "$ac_t""no" 1>&6
1433 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1434 set dummy ${ac_tool_prefix}ar; ac_word=$2
1435 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1436 echo "configure:1437: checking for $ac_word" >&5
1437 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1438 echo $ac_n "(cached) $ac_c" 1>&6
1440 if test -n "$AR"; then
1441 ac_cv_prog_AR="$AR" # Let the user override the test.
1443 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1445 for ac_dir in $ac_dummy; do
1446 test -z "$ac_dir" && ac_dir=.
1447 if test -f $ac_dir/$ac_word; then
1448 ac_cv_prog_AR="${ac_tool_prefix}ar"
1453 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1457 if test -n "$AR"; then
1458 echo "$ac_t""$AR" 1>&6
1460 echo "$ac_t""no" 1>&6
1465 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1466 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1467 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1468 echo "configure:1469: checking for $ac_word" >&5
1469 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1470 echo $ac_n "(cached) $ac_c" 1>&6
1472 if test -n "$RANLIB"; then
1473 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1475 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1477 for ac_dir in $ac_dummy; do
1478 test -z "$ac_dir" && ac_dir=.
1479 if test -f $ac_dir/$ac_word; then
1480 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1487 RANLIB="$ac_cv_prog_RANLIB"
1488 if test -n "$RANLIB"; then
1489 echo "$ac_t""$RANLIB" 1>&6
1491 echo "$ac_t""no" 1>&6
1495 if test -z "$ac_cv_prog_RANLIB"; then
1496 if test -n "$ac_tool_prefix"; then
1497 # Extract the first word of "ranlib", so it can be a program name with args.
1498 set dummy ranlib; ac_word=$2
1499 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1500 echo "configure:1501: checking for $ac_word" >&5
1501 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1502 echo $ac_n "(cached) $ac_c" 1>&6
1504 if test -n "$RANLIB"; then
1505 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1507 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1509 for ac_dir in $ac_dummy; do
1510 test -z "$ac_dir" && ac_dir=.
1511 if test -f $ac_dir/$ac_word; then
1512 ac_cv_prog_RANLIB="ranlib"
1517 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1520 RANLIB="$ac_cv_prog_RANLIB"
1521 if test -n "$RANLIB"; then
1522 echo "$ac_t""$RANLIB" 1>&6
1524 echo "$ac_t""no" 1>&6
1533 # Find a good install program. We prefer a C program (faster),
1534 # so one script is as good as another. But avoid the broken or
1535 # incompatible versions:
1536 # SysV /etc/install, /usr/sbin/install
1537 # SunOS /usr/etc/install
1538 # IRIX /sbin/install
1540 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1541 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1542 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1543 # ./install, which can be erroneously created by make from ./install.sh.
1544 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1545 echo "configure:1546: checking for a BSD compatible install" >&5
1546 if test -z "$INSTALL"; then
1547 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1548 echo $ac_n "(cached) $ac_c" 1>&6
1550 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1551 for ac_dir in $PATH; do
1552 # Account for people who put trailing slashes in PATH elements.
1554 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1556 # OSF1 and SCO ODT 3.0 have their own names for install.
1557 # Don't use installbsd from OSF since it installs stuff as root
1559 for ac_prog in ginstall scoinst install; do
1560 if test -f $ac_dir/$ac_prog; then
1561 if test $ac_prog = install &&
1562 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1563 # AIX install. It has an incompatible calling convention.
1566 ac_cv_path_install="$ac_dir/$ac_prog -c"
1577 if test "${ac_cv_path_install+set}" = set; then
1578 INSTALL="$ac_cv_path_install"
1580 # As a last resort, use the slow shell script. We don't cache a
1581 # path for INSTALL within a source directory, because that will
1582 # break other packages using the cache if that directory is
1583 # removed, or if the path is relative.
1584 INSTALL="$ac_install_sh"
1587 echo "$ac_t""$INSTALL" 1>&6
1589 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1590 # It thinks the first close brace ends the variable substitution.
1591 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1593 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1595 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1598 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1599 echo "configure:1600: checking whether to enable maintainer-specific portions of Makefiles" >&5
1600 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1601 if test "${enable_maintainer_mode+set}" = set; then
1602 enableval="$enable_maintainer_mode"
1603 USE_MAINTAINER_MODE=$enableval
1605 USE_MAINTAINER_MODE=no
1608 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1611 if test $USE_MAINTAINER_MODE = yes; then
1612 MAINTAINER_MODE_TRUE=
1613 MAINTAINER_MODE_FALSE='#'
1615 MAINTAINER_MODE_TRUE='#'
1616 MAINTAINER_MODE_FALSE=
1618 MAINT=$MAINTAINER_MODE_TRUE
1622 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1623 # at least currently, we never actually build a program, so we never
1624 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1625 # fails, because we are probably configuring with a cross compiler
1626 # which cant create executables. So we include AC_EXEEXT to keep
1627 # automake happy, but we dont execute it, since we dont care about
1630 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1631 # to nothing, so nothing would remain between `then' and `fi' if it
1632 # were not for the `:' below.
1636 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1637 echo "configure:1638: checking for executable suffix" >&5
1638 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1639 echo $ac_n "(cached) $ac_c" 1>&6
1641 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1645 echo 'int main () { return 0; }' > conftest.$ac_ext
1647 if { (eval echo configure:1648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1648 for file in conftest.*; do
1650 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1651 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1655 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1658 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1663 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1664 echo "$ac_t""${ac_cv_exeext}" 1>&6
1669 # configure.host sets the following important variables
1670 # libgcj_cflags - host specific C compiler flags
1671 # libgcj_cxxflags - host specific C++ compiler flags
1672 # libgcj_javaflags - host specific Java compiler flags
1678 . ${srcdir}/configure.host
1680 LIBGCJ_CFLAGS="${libgcj_cflags}"
1681 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
1682 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
1692 # Only use libltdl for native builds.
1693 if test -z "${with_cross_host}"; then
1694 case $enable_ltdl_convenience in
1695 no) { echo "configure: error: this package needs a convenience libltdl" 1>&2; exit 1; } ;;
1696 "") enable_ltdl_convenience=yes
1697 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
1699 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
1700 INCLTDL='-I${top_srcdir}/''libltdl'
1704 cat >> confdefs.h <<\EOF
1708 # Sigh. Libtool's macro doesn't do the right thing.
1709 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
1710 # FIXME: this is a hack.
1711 sub_auxdir="`cd $ac_aux_dir && pwd`"
1712 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
1717 # Check whether --enable-shared or --disable-shared was given.
1718 if test "${enable_shared+set}" = set; then
1719 enableval="$enable_shared"
1720 p=${PACKAGE-default}
1722 yes) enable_shared=yes ;;
1723 no) enable_shared=no ;;
1726 # Look at the argument we got. We use all the common list separators.
1727 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1728 for pkg in $enableval; do
1729 if test "X$pkg" = "X$p"; then
1740 # Check whether --enable-static or --disable-static was given.
1741 if test "${enable_static+set}" = set; then
1742 enableval="$enable_static"
1743 p=${PACKAGE-default}
1745 yes) enable_static=yes ;;
1746 no) enable_static=no ;;
1749 # Look at the argument we got. We use all the common list separators.
1750 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1751 for pkg in $enableval; do
1752 if test "X$pkg" = "X$p"; then
1763 # Check whether --enable-fast-install or --disable-fast-install was given.
1764 if test "${enable_fast_install+set}" = set; then
1765 enableval="$enable_fast_install"
1766 p=${PACKAGE-default}
1768 yes) enable_fast_install=yes ;;
1769 no) enable_fast_install=no ;;
1771 enable_fast_install=no
1772 # Look at the argument we got. We use all the common list separators.
1773 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1774 for pkg in $enableval; do
1775 if test "X$pkg" = "X$p"; then
1776 enable_fast_install=yes
1783 enable_fast_install=yes
1786 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1787 if test "${with_gnu_ld+set}" = set; then
1788 withval="$with_gnu_ld"
1789 test "$withval" = no || with_gnu_ld=yes
1795 if test "$GCC" = yes; then
1796 # Check if gcc -print-prog-name=ld gives a path.
1797 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1798 echo "configure:1799: checking for ld used by GCC" >&5
1801 # gcc leaves a trailing carriage return which upsets mingw
1802 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1804 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1807 # Accept absolute paths.
1808 [\\/]* | [A-Za-z]:[\\/]*)
1809 re_direlt='/[^/][^/]*/\.\./'
1810 # Canonicalize the path of ld
1811 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1812 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1813 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1815 test -z "$LD" && LD="$ac_prog"
1818 # If it fails, then pretend we aren't using GCC.
1822 # If it is relative, then search for the first ld in PATH.
1826 elif test "$with_gnu_ld" = yes; then
1827 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1828 echo "configure:1829: checking for GNU ld" >&5
1830 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1831 echo "configure:1832: checking for non-GNU ld" >&5
1833 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1834 echo $ac_n "(cached) $ac_c" 1>&6
1836 if test -z "$LD"; then
1837 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1838 for ac_dir in $PATH; do
1839 test -z "$ac_dir" && ac_dir=.
1840 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1841 lt_cv_path_LD="$ac_dir/$ac_prog"
1842 # Check to see if the program is GNU ld. I'd rather use --version,
1843 # but apparently some GNU ld's only accept -v.
1844 # Break only if it was the GNU/non-GNU ld that we prefer.
1845 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1846 test "$with_gnu_ld" != no && break
1848 test "$with_gnu_ld" != yes && break
1854 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1859 if test -n "$LD"; then
1860 echo "$ac_t""$LD" 1>&6
1862 echo "$ac_t""no" 1>&6
1864 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1865 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1866 echo "configure:1867: checking if the linker ($LD) is GNU ld" >&5
1867 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1868 echo $ac_n "(cached) $ac_c" 1>&6
1870 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1871 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1872 lt_cv_prog_gnu_ld=yes
1874 lt_cv_prog_gnu_ld=no
1878 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1879 with_gnu_ld=$lt_cv_prog_gnu_ld
1882 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1883 echo "configure:1884: checking for $LD option to reload object files" >&5
1884 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1885 echo $ac_n "(cached) $ac_c" 1>&6
1887 lt_cv_ld_reload_flag='-r'
1890 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1891 reload_flag=$lt_cv_ld_reload_flag
1892 test -n "$reload_flag" && reload_flag=" $reload_flag"
1894 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1895 echo "configure:1896: checking for BSD-compatible nm" >&5
1896 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1897 echo $ac_n "(cached) $ac_c" 1>&6
1899 if test -n "$NM"; then
1900 # Let the user override the test.
1903 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1904 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1905 test -z "$ac_dir" && ac_dir=.
1906 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1907 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1908 # Check to see if the nm accepts a BSD-compat flag.
1909 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1910 # nm: unknown option "B" ignored
1911 # Tru64's nm complains that /dev/null is an invalid object file
1912 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1913 lt_cv_path_NM="$tmp_nm -B"
1915 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1916 lt_cv_path_NM="$tmp_nm -p"
1919 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1920 continue # so that we can try to find one that supports BSD flags
1925 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1930 echo "$ac_t""$NM" 1>&6
1932 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1933 echo "configure:1934: checking how to recognise dependant libraries" >&5
1934 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1935 echo $ac_n "(cached) $ac_c" 1>&6
1937 lt_cv_file_magic_cmd='$MAGIC_CMD'
1938 lt_cv_file_magic_test_file=
1939 lt_cv_deplibs_check_method='unknown'
1940 # Need to set the preceding variable on all platforms that support
1941 # interlibrary dependencies.
1942 # 'none' -- dependencies not supported.
1943 # `unknown' -- same as none, but documents that we really don't know.
1944 # 'pass_all' -- all dependencies passed with no checks.
1945 # 'test_compile' -- check by making test program.
1946 # 'file_magic [regex]' -- check by looking for files in library path
1947 # which responds to the $file_magic_cmd with a given egrep regex.
1948 # If you have `file' or equivalent on your system and you're not sure
1949 # whether `pass_all' will *always* work, you probably want this one.
1953 lt_cv_deplibs_check_method=pass_all
1957 lt_cv_deplibs_check_method=pass_all
1961 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1962 lt_cv_file_magic_cmd='/usr/bin/file -L'
1963 lt_cv_file_magic_test_file=/shlib/libc.so
1966 cygwin* | mingw* |pw32*)
1967 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1968 lt_cv_file_magic_cmd='$OBJDUMP -f'
1971 darwin* | rhapsody*)
1972 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1973 lt_cv_file_magic_cmd='/usr/bin/file -L'
1975 rhapsody* | darwin1.012)
1976 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1979 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1985 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1988 # Not sure whether the presence of OpenBSD here was a mistake.
1989 # Let's accept both of them until this is cleared up.
1990 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1991 lt_cv_file_magic_cmd=/usr/bin/file
1992 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1996 lt_cv_deplibs_check_method=pass_all
2001 lt_cv_deplibs_check_method=pass_all
2005 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2006 lt_cv_file_magic_cmd=/usr/bin/file
2007 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2013 # this will be overridden with pass_all, but let us keep it just in case
2014 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2018 *-32|*"-32 ") libmagic=32-bit;;
2019 *-n32|*"-n32 ") libmagic=N32;;
2020 *-64|*"-64 ") libmagic=64-bit;;
2021 *) libmagic=never-match;;
2023 # this will be overridden with pass_all, but let us keep it just in case
2024 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2027 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2028 lt_cv_deplibs_check_method=pass_all
2031 # This must be Linux ELF.
2034 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2035 lt_cv_deplibs_check_method=pass_all ;;
2037 # glibc up to 2.1.1 does not perform some relocations on ARM
2038 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2040 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2044 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2045 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2047 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2052 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2053 lt_cv_file_magic_cmd=/usr/bin/file
2054 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2057 osf3* | osf4* | osf5*)
2058 # this will be overridden with pass_all, but let us keep it just in case
2059 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2060 lt_cv_file_magic_test_file=/shlib/libc.so
2061 lt_cv_deplibs_check_method=pass_all
2065 lt_cv_deplibs_check_method=pass_all
2069 lt_cv_deplibs_check_method=pass_all
2070 lt_cv_file_magic_test_file=/lib/libc.so
2073 sysv5uw[78]* | sysv4*uw2*)
2074 lt_cv_deplibs_check_method=pass_all
2077 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2078 case $host_vendor in
2080 lt_cv_deplibs_check_method=pass_all
2083 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
2084 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2092 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2093 file_magic_cmd=$lt_cv_file_magic_cmd
2094 deplibs_check_method=$lt_cv_deplibs_check_method
2096 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2097 echo "configure:2098: checking for object suffix" >&5
2098 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2099 echo $ac_n "(cached) $ac_c" 1>&6
2102 echo 'int i = 1;' > conftest.$ac_ext
2103 if { (eval echo configure:2104: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2104 for ac_file in conftest.*; do
2107 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2111 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2116 echo "$ac_t""$ac_cv_objext" 1>&6
2117 OBJEXT=$ac_cv_objext
2118 ac_objext=$ac_cv_objext
2120 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2122 # Only perform the check for file, if the check method requires it
2123 case $deplibs_check_method in
2125 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2126 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2127 echo "configure:2128: checking for ${ac_tool_prefix}file" >&5
2128 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2129 echo $ac_n "(cached) $ac_c" 1>&6
2133 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2136 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2139 ac_save_MAGIC_CMD="$MAGIC_CMD"
2140 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2141 ac_dummy="/usr/bin:$PATH"
2142 for ac_dir in $ac_dummy; do
2143 test -z "$ac_dir" && ac_dir=.
2144 if test -f $ac_dir/${ac_tool_prefix}file; then
2145 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2146 if test -n "$file_magic_test_file"; then
2147 case $deplibs_check_method in
2149 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2150 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2151 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2152 egrep "$file_magic_regex" > /dev/null; then
2157 *** Warning: the command libtool uses to detect shared libraries,
2158 *** $file_magic_cmd, produces output that libtool cannot recognize.
2159 *** The result is that libtool may fail to recognize shared libraries
2160 *** as such. This will affect the creation of libtool libraries that
2161 *** depend on shared libraries, but programs linked with such libtool
2162 *** libraries will work regardless of this problem. Nevertheless, you
2163 *** may want to report the problem to your system manager and/or to
2164 *** bug-libtool@gnu.org
2174 MAGIC_CMD="$ac_save_MAGIC_CMD"
2179 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2180 if test -n "$MAGIC_CMD"; then
2181 echo "$ac_t""$MAGIC_CMD" 1>&6
2183 echo "$ac_t""no" 1>&6
2186 if test -z "$lt_cv_path_MAGIC_CMD"; then
2187 if test -n "$ac_tool_prefix"; then
2188 echo $ac_n "checking for file""... $ac_c" 1>&6
2189 echo "configure:2190: checking for file" >&5
2190 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2191 echo $ac_n "(cached) $ac_c" 1>&6
2195 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2198 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2201 ac_save_MAGIC_CMD="$MAGIC_CMD"
2202 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2203 ac_dummy="/usr/bin:$PATH"
2204 for ac_dir in $ac_dummy; do
2205 test -z "$ac_dir" && ac_dir=.
2206 if test -f $ac_dir/file; then
2207 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2208 if test -n "$file_magic_test_file"; then
2209 case $deplibs_check_method in
2211 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2212 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2213 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2214 egrep "$file_magic_regex" > /dev/null; then
2219 *** Warning: the command libtool uses to detect shared libraries,
2220 *** $file_magic_cmd, produces output that libtool cannot recognize.
2221 *** The result is that libtool may fail to recognize shared libraries
2222 *** as such. This will affect the creation of libtool libraries that
2223 *** depend on shared libraries, but programs linked with such libtool
2224 *** libraries will work regardless of this problem. Nevertheless, you
2225 *** may want to report the problem to your system manager and/or to
2226 *** bug-libtool@gnu.org
2236 MAGIC_CMD="$ac_save_MAGIC_CMD"
2241 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2242 if test -n "$MAGIC_CMD"; then
2243 echo "$ac_t""$MAGIC_CMD" 1>&6
2245 echo "$ac_t""no" 1>&6
2257 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2258 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2259 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2260 echo "configure:2261: checking for $ac_word" >&5
2261 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2262 echo $ac_n "(cached) $ac_c" 1>&6
2264 if test -n "$RANLIB"; then
2265 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2267 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2269 for ac_dir in $ac_dummy; do
2270 test -z "$ac_dir" && ac_dir=.
2271 if test -f $ac_dir/$ac_word; then
2272 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2279 RANLIB="$ac_cv_prog_RANLIB"
2280 if test -n "$RANLIB"; then
2281 echo "$ac_t""$RANLIB" 1>&6
2283 echo "$ac_t""no" 1>&6
2287 if test -z "$ac_cv_prog_RANLIB"; then
2288 if test -n "$ac_tool_prefix"; then
2289 # Extract the first word of "ranlib", so it can be a program name with args.
2290 set dummy ranlib; ac_word=$2
2291 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2292 echo "configure:2293: checking for $ac_word" >&5
2293 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2294 echo $ac_n "(cached) $ac_c" 1>&6
2296 if test -n "$RANLIB"; then
2297 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2299 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2301 for ac_dir in $ac_dummy; do
2302 test -z "$ac_dir" && ac_dir=.
2303 if test -f $ac_dir/$ac_word; then
2304 ac_cv_prog_RANLIB="ranlib"
2309 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2312 RANLIB="$ac_cv_prog_RANLIB"
2313 if test -n "$RANLIB"; then
2314 echo "$ac_t""$RANLIB" 1>&6
2316 echo "$ac_t""no" 1>&6
2324 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2325 set dummy ${ac_tool_prefix}strip; ac_word=$2
2326 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2327 echo "configure:2328: checking for $ac_word" >&5
2328 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2329 echo $ac_n "(cached) $ac_c" 1>&6
2331 if test -n "$STRIP"; then
2332 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2334 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2336 for ac_dir in $ac_dummy; do
2337 test -z "$ac_dir" && ac_dir=.
2338 if test -f $ac_dir/$ac_word; then
2339 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2346 STRIP="$ac_cv_prog_STRIP"
2347 if test -n "$STRIP"; then
2348 echo "$ac_t""$STRIP" 1>&6
2350 echo "$ac_t""no" 1>&6
2354 if test -z "$ac_cv_prog_STRIP"; then
2355 if test -n "$ac_tool_prefix"; then
2356 # Extract the first word of "strip", so it can be a program name with args.
2357 set dummy strip; ac_word=$2
2358 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2359 echo "configure:2360: checking for $ac_word" >&5
2360 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2361 echo $ac_n "(cached) $ac_c" 1>&6
2363 if test -n "$STRIP"; then
2364 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2366 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2368 for ac_dir in $ac_dummy; do
2369 test -z "$ac_dir" && ac_dir=.
2370 if test -f $ac_dir/$ac_word; then
2371 ac_cv_prog_STRIP="strip"
2376 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2379 STRIP="$ac_cv_prog_STRIP"
2380 if test -n "$STRIP"; then
2381 echo "$ac_t""$STRIP" 1>&6
2383 echo "$ac_t""no" 1>&6
2392 # Check for any special flags to pass to ltconfig.
2393 libtool_flags="--cache-file=$cache_file"
2394 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2395 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2396 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2397 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2398 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2399 libtool_flags="$libtool_flags --enable-dlopen"
2401 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2402 if test "${enable_libtool_lock+set}" = set; then
2403 enableval="$enable_libtool_lock"
2407 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2408 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2410 # Check whether --with-pic or --without-pic was given.
2411 if test "${with_pic+set}" = set; then
2418 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2419 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2421 # Some flags need to be propagated to the compiler or linker for good
2425 # Find out which ABI we are using.
2426 echo '#line 2427 "configure"' > conftest.$ac_ext
2427 if { (eval echo configure:2428: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2428 case `/usr/bin/file conftest.$ac_objext` in
2444 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2445 SAVE_CFLAGS="$CFLAGS"
2446 CFLAGS="$CFLAGS -belf"
2447 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2448 echo "configure:2449: checking whether the C compiler needs -belf" >&5
2449 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2450 echo $ac_n "(cached) $ac_c" 1>&6
2454 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2455 ac_cpp='$CPP $CPPFLAGS'
2456 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2457 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2458 cross_compiling=$ac_cv_prog_cc_cross
2460 cat > conftest.$ac_ext <<EOF
2461 #line 2462 "configure"
2462 #include "confdefs.h"
2468 if { (eval echo configure:2469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2470 lt_cv_cc_needs_belf=yes
2472 echo "configure: failed program was:" >&5
2473 cat conftest.$ac_ext >&5
2475 lt_cv_cc_needs_belf=no
2479 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2480 ac_cpp='$CPP $CPPFLAGS'
2481 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2482 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2483 cross_compiling=$ac_cv_prog_cc_cross
2487 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2488 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2489 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2490 CFLAGS="$SAVE_CFLAGS"
2497 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2498 echo "configure:2499: checking how to run the C++ preprocessor" >&5
2499 if test -z "$CXXCPP"; then
2500 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2501 echo $ac_n "(cached) $ac_c" 1>&6
2504 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2505 ac_cpp='$CXXCPP $CPPFLAGS'
2506 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2507 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2508 cross_compiling=$ac_cv_prog_cxx_cross
2509 CXXCPP="${CXX-g++} -E"
2510 cat > conftest.$ac_ext <<EOF
2511 #line 2512 "configure"
2512 #include "confdefs.h"
2515 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2516 { (eval echo configure:2517: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2517 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2518 if test -z "$ac_err"; then
2522 echo "configure: failed program was:" >&5
2523 cat conftest.$ac_ext >&5
2528 ac_cv_prog_CXXCPP="$CXXCPP"
2530 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2531 ac_cpp='$CPP $CPPFLAGS'
2532 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2533 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2534 cross_compiling=$ac_cv_prog_cc_cross
2537 CXXCPP="$ac_cv_prog_CXXCPP"
2538 echo "$ac_t""$CXXCPP" 1>&6
2541 # Save cache, so that ltconfig can load it
2542 cat > confcache <<\EOF
2543 # This file is a shell script that caches the results of configure
2544 # tests run on this system so they can be shared between configure
2545 # scripts and configure runs. It is not useful on other systems.
2546 # If it contains results you don't want to keep, you may remove or edit it.
2548 # By default, configure uses ./config.cache as the cache file,
2549 # creating it if it does not exist already. You can give configure
2550 # the --cache-file=FILE option to use a different cache file; that is
2551 # what configure does when it calls configure scripts in
2552 # subdirectories, so they share the cache.
2553 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2554 # config.status only pays attention to the cache file if you give it the
2555 # --recheck option to rerun configure.
2558 # The following way of writing the cache mishandles newlines in values,
2559 # but we know of no workaround that is simple, portable, and efficient.
2560 # So, don't put newlines in cache variables' values.
2561 # Ultrix sh set writes to stderr and can't be redirected directly,
2562 # and sets the high bit in the cache file unless we assign to the vars.
2564 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2566 # `set' does not quote correctly, so add quotes (double-quote substitution
2567 # turns \\\\ into \\, and sed turns \\ into \).
2569 -e "s/'/'\\\\''/g" \
2570 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2573 # `set' quotes correctly as required by POSIX, so do not add quotes.
2574 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2577 if cmp -s $cache_file confcache; then
2580 if test -w $cache_file; then
2581 echo "updating cache $cache_file"
2582 cat confcache > $cache_file
2584 echo "not updating unwritable cache $cache_file"
2590 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2591 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2592 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2593 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2594 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2595 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2596 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2597 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2598 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2599 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2601 # Reload cache, that may have been modified by ltconfig
2602 if test -r "$cache_file"; then
2603 echo "loading cache $cache_file"
2606 echo "creating cache $cache_file"
2611 # This can be used to rebuild libtool when needed
2612 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2614 # Always use our own libtool.
2615 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2617 # Redirect the config.log output again, so that the ltconfig log is not
2618 # clobbered by the next message.
2619 exec 5>>./config.log
2623 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2625 lt_save_CFLAGS="$CFLAGS"
2626 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2627 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2628 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2629 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2630 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2631 deplibs_check_method="$deplibs_check_method" \
2632 file_magic_cmd="$file_magic_cmd" \
2633 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2634 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2635 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2637 CFLAGS="$lt_save_CFLAGS"
2639 # Redirect the config.log output again, so that the ltconfig log is not
2640 # clobbered by the next message.
2641 exec 5>>./config.log
2651 if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
2660 if test -d $srcdir/testsuite; then
2662 TESTSUBDIR_FALSE='#'
2668 # Check whether --enable-fast-character or --disable-fast-character was given.
2669 if test "${enable_fast_character+set}" = set; then
2670 enableval="$enable_fast_character"
2674 cat >> confdefs.h <<\EOF
2675 #define COMPACT_CHARACTER 1
2681 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
2682 if test "${enable_getenv_properties+set}" = set; then
2683 enableval="$enable_getenv_properties"
2688 if test -z "$enable_getenv_properties"; then
2689 enable_getenv_properties=${enable_getenv_properties_default-yes}
2691 if test "$enable_getenv_properties" = no; then
2692 cat >> confdefs.h <<\EOF
2693 #define DISABLE_GETENV_PROPERTIES 1
2699 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
2700 if test "${enable_hash_synchronization+set}" = set; then
2701 enableval="$enable_hash_synchronization"
2706 if test -z "$enable_hash_synchronization"; then
2707 enable_hash_synchronization=$enable_hash_synchronization_default
2713 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
2714 if test "${enable_libgcj_debug+set}" = set; then
2715 enableval="$enable_libgcj_debug"
2716 if test "$enable_libgcj_debug" = yes; then
2717 cat >> confdefs.h <<\EOF
2726 # Check whether --enable-interpreter or --disable-interpreter was given.
2727 if test "${enable_interpreter+set}" = set; then
2728 enableval="$enable_interpreter"
2729 if test "$enable_interpreter" = yes; then
2730 # This can also be set in configure.host.
2731 libgcj_interpreter=yes
2732 elif test "$enable_interpreter" = no; then
2733 libgcj_interpreter=no
2738 if test "$libgcj_interpreter" = yes; then
2739 cat >> confdefs.h <<\EOF
2740 #define INTERPRETER 1
2745 echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
2746 echo "configure:2747: checking for exception model to use" >&5
2749 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2750 ac_cpp='$CXXCPP $CPPFLAGS'
2751 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2752 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2753 cross_compiling=$ac_cv_prog_cxx_cross
2755 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
2756 if test "${enable_sjlj_exceptions+set}" = set; then
2757 enableval="$enable_sjlj_exceptions"
2760 cat > conftest.$ac_ext << EOF
2761 #line 2762 "configure"
2770 old_CXXFLAGS="$CXXFLAGS"
2772 if { (eval echo configure:2773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2773 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
2774 enable_sjlj_exceptions=yes
2775 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
2776 enable_sjlj_exceptions=no
2779 CXXFLAGS="$old_CXXFLAGS"
2783 if test x$enable_sjlj_exceptions = xyes; then
2784 cat >> confdefs.h <<\EOF
2785 #define SJLJ_EXCEPTIONS 1
2788 ac_exception_model_name=sjlj
2789 elif test x$enable_sjlj_exceptions = xno; then
2790 ac_exception_model_name="call frame"
2792 { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
2795 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2796 ac_cpp='$CPP $CPPFLAGS'
2797 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2798 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2799 cross_compiling=$ac_cv_prog_cc_cross
2801 echo "$ac_t""$ac_exception_model_name" 1>&6
2803 # Check whether --enable-java-net or --disable-java-net was given.
2804 if test "${enable_java_net+set}" = set; then
2805 enableval="$enable_java_net"
2810 if test -z "$enable_java_net"; then
2811 enable_java_net=${enable_java_net_default-yes}
2813 if test "$enable_java_net" = no; then
2814 cat >> confdefs.h <<\EOF
2815 #define DISABLE_JAVA_NET 1
2820 # Check whether --with-libffi or --without-libffi was given.
2821 if test "${with_libffi+set}" = set; then
2822 withval="$with_libffi"
2825 with_libffi=${with_libffi_default-yes}
2831 if test "$with_libffi" != no; then
2832 cat >> confdefs.h <<\EOF
2833 #define USE_LIBFFI 1
2836 LIBFFI=../libffi/libfficonvenience.la
2837 LIBFFIINCS="-I$(top_srcdir)/../libffi/include -I$(MULTIBUILDTOP)../libffi/include"
2842 # Check whether --enable-jvmpi or --disable-jvmpi was given.
2843 if test "${enable_jvmpi+set}" = set; then
2844 enableval="$enable_jvmpi"
2849 if test "$enable_jvmpi" != no; then
2850 cat >> confdefs.h <<\EOF
2851 #define ENABLE_JVMPI 1
2857 # Check whether --with-ecos or --without-ecos was given.
2858 if test "${with_ecos+set}" = set; then
2859 withval="$with_ecos"
2860 TARGET_ECOS="$with_ecos"
2865 case "$TARGET_ECOS" in
2867 FILE_DESCRIPTOR=natFileDescriptorPosix.cc
2868 PROCESS=${PROCESS-Posix}
2871 FILE_DESCRIPTOR=natFileDescriptorEcos.cc
2873 cat >> confdefs.h <<\EOF
2880 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2881 echo "configure:2882: checking how to run the C preprocessor" >&5
2882 # On Suns, sometimes $CPP names a directory.
2883 if test -n "$CPP" && test -d "$CPP"; then
2886 if test -z "$CPP"; then
2887 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2888 echo $ac_n "(cached) $ac_c" 1>&6
2890 # This must be in double quotes, not single quotes, because CPP may get
2891 # substituted into the Makefile and "${CC-cc}" will confuse make.
2893 # On the NeXT, cc -E runs the code through the compiler's parser,
2894 # not just through cpp.
2895 cat > conftest.$ac_ext <<EOF
2896 #line 2897 "configure"
2897 #include "confdefs.h"
2901 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2902 { (eval echo configure:2903: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2903 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2904 if test -z "$ac_err"; then
2908 echo "configure: failed program was:" >&5
2909 cat conftest.$ac_ext >&5
2911 CPP="${CC-cc} -E -traditional-cpp"
2912 cat > conftest.$ac_ext <<EOF
2913 #line 2914 "configure"
2914 #include "confdefs.h"
2918 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2919 { (eval echo configure:2920: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2920 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2921 if test -z "$ac_err"; then
2925 echo "configure: failed program was:" >&5
2926 cat conftest.$ac_ext >&5
2928 CPP="${CC-cc} -nologo -E"
2929 cat > conftest.$ac_ext <<EOF
2930 #line 2931 "configure"
2931 #include "confdefs.h"
2935 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2936 { (eval echo configure:2937: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2937 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2938 if test -z "$ac_err"; then
2942 echo "configure: failed program was:" >&5
2943 cat conftest.$ac_ext >&5
2952 ac_cv_prog_CPP="$CPP"
2954 CPP="$ac_cv_prog_CPP"
2956 ac_cv_prog_CPP="$CPP"
2958 echo "$ac_t""$CPP" 1>&6
2960 cat > conftest.$ac_ext <<EOF
2961 #line 2962 "configure"
2962 #include "confdefs.h"
2965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2966 egrep "uint32_t" >/dev/null 2>&1; then
2968 cat >> confdefs.h <<\EOF
2969 #define HAVE_INT32_DEFINED 1
2975 cat > conftest.$ac_ext <<EOF
2976 #line 2977 "configure"
2977 #include "confdefs.h"
2978 #include <inttypes.h>
2980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2981 egrep "uint32_t" >/dev/null 2>&1; then
2983 cat >> confdefs.h <<\EOF
2984 #define HAVE_INT32_DEFINED 1
2990 cat > conftest.$ac_ext <<EOF
2991 #line 2992 "configure"
2992 #include "confdefs.h"
2993 #include <sys/types.h>
2995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2996 egrep "u_int32_t" >/dev/null 2>&1; then
2998 cat >> confdefs.h <<\EOF
2999 #define HAVE_BSD_INT32_DEFINED 1
3005 cat > conftest.$ac_ext <<EOF
3006 #line 3007 "configure"
3007 #include "confdefs.h"
3008 #include <sys/config.h>
3010 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3011 egrep "u_int32_t" >/dev/null 2>&1; then
3013 cat >> confdefs.h <<\EOF
3014 #define HAVE_BSD_INT32_DEFINED 1
3022 cat > conftest.$ac_ext <<EOF
3023 #line 3024 "configure"
3024 #include "confdefs.h"
3027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3028 egrep "mktime" >/dev/null 2>&1; then
3030 cat >> confdefs.h <<\EOF
3031 #define HAVE_MKTIME 1
3037 cat > conftest.$ac_ext <<EOF
3038 #line 3039 "configure"
3039 #include "confdefs.h"
3042 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3043 egrep "localtime" >/dev/null 2>&1; then
3045 cat >> confdefs.h <<\EOF
3046 #define HAVE_LOCALTIME 1
3053 test -d java || mkdir java
3054 test -d java/io || mkdir java/io
3055 test -d gnu || mkdir gnu
3058 test -d java/lang || mkdir java/lang
3065 LIBGCJTESTSPEC="-L`pwd`/.libs -rpath `pwd`/.libs"
3068 # Check whether --with-system-zlib or --without-system-zlib was given.
3069 if test "${with_system_zlib+set}" = set; then
3070 withval="$with_system_zlib"
3081 echo $ac_n "checking for garbage collector to use""... $ac_c" 1>&6
3082 echo "configure:3083: checking for garbage collector to use" >&5
3083 # Check whether --enable-java-gc or --disable-java-gc was given.
3084 if test "${enable_java_gc+set}" = set; then
3085 enableval="$enable_java_gc"
3101 echo "$ac_t""boehm" 1>&6
3102 GCDEPS='$(top_builddir)/../boehm-gc/libgcjgc.la'
3103 # We include the path to the boehm-gc build directory.
3104 # See Makefile.am to understand why.
3105 GCLIBS="$GCDEPS -L\$(here)/../boehm-gc/$libsubdir"
3106 GCINCS='-I$(top_srcdir)/../boehm-gc/include'
3108 JC1GCSPEC='-fuse-boehm-gc'
3109 GCTESTSPEC="-L`pwd`/../boehm-gc/.libs -rpath `pwd`/../boehm-gc/.libs"
3110 GCINCS="$GCINCS `cat ../boehm-gc/boehm-cflags`"
3113 cat >> confdefs.h <<\EOF
3114 #define HAVE_BOEHM_GC 1
3119 echo "$ac_t""none" 1>&6
3124 { echo "configure: error: unrecognized collector \"$GC\"" 1>&2; exit 1; }
3137 echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3138 echo "configure:3139: checking for thread model used by GCC" >&5
3139 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3140 echo "$ac_t""$THREADS" 1>&6
3150 cat >> confdefs.h <<\EOF
3151 #define LINUX_THREADS 1
3157 decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks)
3158 { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
3161 { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
3173 THREADLIBS=-lpthread
3174 THREADSPEC=-lpthread
3175 THREADOBJS=posix-threads.lo
3176 THREADH=posix-threads.h
3177 # MIT pthreads doesn't seem to have the mutexattr functions.
3178 # But for now we don't check for it. We just assume you aren't
3179 # using MIT pthreads.
3180 cat >> confdefs.h <<\EOF
3181 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
3185 # If we're using the Boehm GC, then we happen to know that it
3186 # defines _REENTRANT, so we don't bother. Eww.
3187 if test "$GC" != boehm; then
3188 cat >> confdefs.h <<\EOF
3189 #define _REENTRANT 1
3193 cat >> confdefs.h <<\EOF
3194 #define _POSIX_PTHREAD_SEMANTICS 1
3200 THREADOBJS=no-threads.lo
3201 THREADH=no-threads.h
3212 # Hash synchronization is only useful with posix threads right now.
3213 if test "$enable_hash_synchronization" = yes && test "$THREADS" = "posix"; then
3214 HASH_SYNC_SPEC=-fhash-synchronization
3215 cat >> confdefs.h <<\EOF
3216 #define JV_HASH_SYNCHRONIZATION 1
3225 if test "$GCC" = yes; then
3237 # We're in the tree with gcc, and need to include some of its headers.
3238 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
3240 if test -n "${with_cross_host}"; then
3241 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
3242 # may not work correctly, because the compiler may not be able to
3245 # We assume newlib. This lets us hard-code the functions we know
3247 cat >> confdefs.h <<\EOF
3248 #define HAVE_MEMMOVE 1
3251 cat >> confdefs.h <<\EOF
3252 #define HAVE_MEMCPY 1
3255 cat >> confdefs.h <<\EOF
3256 #define HAVE_STRERROR 1
3259 cat >> confdefs.h <<\EOF
3260 #define HAVE_GMTIME_R 1
3263 cat >> confdefs.h <<\EOF
3264 #define HAVE_LOCALTIME_R 1
3267 cat >> confdefs.h <<\EOF
3268 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
3271 cat >> confdefs.h <<\EOF
3272 #define HAVE_ALLOCA 1
3276 cat >> confdefs.h <<\EOF
3282 ZLIBTESTSPEC="-L`pwd`/../zlib/.libs -rpath `pwd`/../zlib/.libs"
3284 # If Canadian cross, then don't pick up tools from the build
3286 if test x"$build" != x"$with_cross_host" && x"$build" != x"$target"; then
3289 GCJ="${target_alias}-gcj"
3293 for ac_func in strerror ioctl select fstat open fsync sleep
3295 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3296 echo "configure:3297: checking for $ac_func" >&5
3297 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3298 echo $ac_n "(cached) $ac_c" 1>&6
3300 cat > conftest.$ac_ext <<EOF
3301 #line 3302 "configure"
3302 #include "confdefs.h"
3303 /* System header to define __stub macros and hopefully few prototypes,
3304 which can conflict with char $ac_func(); below. */
3306 /* Override any gcc2 internal prototype to avoid an error. */
3307 /* We use char because int might match the return type of a gcc2
3308 builtin and then its argument prototype would still apply. */
3313 /* The GNU C library defines this for functions which it implements
3314 to always fail with ENOSYS. Some functions are actually named
3315 something starting with __ and the normal name is an alias. */
3316 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3324 if { (eval echo configure:3325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3326 eval "ac_cv_func_$ac_func=yes"
3328 echo "configure: failed program was:" >&5
3329 cat conftest.$ac_ext >&5
3331 eval "ac_cv_func_$ac_func=no"
3336 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3337 echo "$ac_t""yes" 1>&6
3338 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3339 cat >> confdefs.h <<EOF
3340 #define $ac_tr_func 1
3344 echo "$ac_t""no" 1>&6
3348 for ac_func in gmtime_r localtime_r readdir_r getpwuid_r getcwd
3350 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3351 echo "configure:3352: checking for $ac_func" >&5
3352 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3353 echo $ac_n "(cached) $ac_c" 1>&6
3355 cat > conftest.$ac_ext <<EOF
3356 #line 3357 "configure"
3357 #include "confdefs.h"
3358 /* System header to define __stub macros and hopefully few prototypes,
3359 which can conflict with char $ac_func(); below. */
3361 /* Override any gcc2 internal prototype to avoid an error. */
3362 /* We use char because int might match the return type of a gcc2
3363 builtin and then its argument prototype would still apply. */
3368 /* The GNU C library defines this for functions which it implements
3369 to always fail with ENOSYS. Some functions are actually named
3370 something starting with __ and the normal name is an alias. */
3371 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3379 if { (eval echo configure:3380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3381 eval "ac_cv_func_$ac_func=yes"
3383 echo "configure: failed program was:" >&5
3384 cat conftest.$ac_ext >&5
3386 eval "ac_cv_func_$ac_func=no"
3391 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3392 echo "$ac_t""yes" 1>&6
3393 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3394 cat >> confdefs.h <<EOF
3395 #define $ac_tr_func 1
3399 echo "$ac_t""no" 1>&6
3403 for ac_func in access stat mkdir rename rmdir unlink realpath utime chmod
3405 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3406 echo "configure:3407: checking for $ac_func" >&5
3407 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3408 echo $ac_n "(cached) $ac_c" 1>&6
3410 cat > conftest.$ac_ext <<EOF
3411 #line 3412 "configure"
3412 #include "confdefs.h"
3413 /* System header to define __stub macros and hopefully few prototypes,
3414 which can conflict with char $ac_func(); below. */
3416 /* Override any gcc2 internal prototype to avoid an error. */
3417 /* We use char because int might match the return type of a gcc2
3418 builtin and then its argument prototype would still apply. */
3423 /* The GNU C library defines this for functions which it implements
3424 to always fail with ENOSYS. Some functions are actually named
3425 something starting with __ and the normal name is an alias. */
3426 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3434 if { (eval echo configure:3435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3436 eval "ac_cv_func_$ac_func=yes"
3438 echo "configure: failed program was:" >&5
3439 cat conftest.$ac_ext >&5
3441 eval "ac_cv_func_$ac_func=no"
3446 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3447 echo "$ac_t""yes" 1>&6
3448 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3449 cat >> confdefs.h <<EOF
3450 #define $ac_tr_func 1
3454 echo "$ac_t""no" 1>&6
3458 for ac_func in nl_langinfo setlocale
3460 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3461 echo "configure:3462: checking for $ac_func" >&5
3462 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3463 echo $ac_n "(cached) $ac_c" 1>&6
3465 cat > conftest.$ac_ext <<EOF
3466 #line 3467 "configure"
3467 #include "confdefs.h"
3468 /* System header to define __stub macros and hopefully few prototypes,
3469 which can conflict with char $ac_func(); below. */
3471 /* Override any gcc2 internal prototype to avoid an error. */
3472 /* We use char because int might match the return type of a gcc2
3473 builtin and then its argument prototype would still apply. */
3478 /* The GNU C library defines this for functions which it implements
3479 to always fail with ENOSYS. Some functions are actually named
3480 something starting with __ and the normal name is an alias. */
3481 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3489 if { (eval echo configure:3490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3491 eval "ac_cv_func_$ac_func=yes"
3493 echo "configure: failed program was:" >&5
3494 cat conftest.$ac_ext >&5
3496 eval "ac_cv_func_$ac_func=no"
3501 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3502 echo "$ac_t""yes" 1>&6
3503 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3504 cat >> confdefs.h <<EOF
3505 #define $ac_tr_func 1
3509 echo "$ac_t""no" 1>&6
3513 for ac_func in inet_aton inet_addr
3515 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3516 echo "configure:3517: checking for $ac_func" >&5
3517 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3518 echo $ac_n "(cached) $ac_c" 1>&6
3520 cat > conftest.$ac_ext <<EOF
3521 #line 3522 "configure"
3522 #include "confdefs.h"
3523 /* System header to define __stub macros and hopefully few prototypes,
3524 which can conflict with char $ac_func(); below. */
3526 /* Override any gcc2 internal prototype to avoid an error. */
3527 /* We use char because int might match the return type of a gcc2
3528 builtin and then its argument prototype would still apply. */
3533 /* The GNU C library defines this for functions which it implements
3534 to always fail with ENOSYS. Some functions are actually named
3535 something starting with __ and the normal name is an alias. */
3536 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3544 if { (eval echo configure:3545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3546 eval "ac_cv_func_$ac_func=yes"
3548 echo "configure: failed program was:" >&5
3549 cat conftest.$ac_ext >&5
3551 eval "ac_cv_func_$ac_func=no"
3556 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3557 echo "$ac_t""yes" 1>&6
3558 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3559 cat >> confdefs.h <<EOF
3560 #define $ac_tr_func 1
3564 echo "$ac_t""no" 1>&6
3568 for ac_func in inet_pton uname inet_ntoa
3570 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3571 echo "configure:3572: checking for $ac_func" >&5
3572 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3573 echo $ac_n "(cached) $ac_c" 1>&6
3575 cat > conftest.$ac_ext <<EOF
3576 #line 3577 "configure"
3577 #include "confdefs.h"
3578 /* System header to define __stub macros and hopefully few prototypes,
3579 which can conflict with char $ac_func(); below. */
3581 /* Override any gcc2 internal prototype to avoid an error. */
3582 /* We use char because int might match the return type of a gcc2
3583 builtin and then its argument prototype would still apply. */
3588 /* The GNU C library defines this for functions which it implements
3589 to always fail with ENOSYS. Some functions are actually named
3590 something starting with __ and the normal name is an alias. */
3591 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3599 if { (eval echo configure:3600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3601 eval "ac_cv_func_$ac_func=yes"
3603 echo "configure: failed program was:" >&5
3604 cat conftest.$ac_ext >&5
3606 eval "ac_cv_func_$ac_func=no"
3611 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3612 echo "$ac_t""yes" 1>&6
3613 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3614 cat >> confdefs.h <<EOF
3615 #define $ac_tr_func 1
3619 echo "$ac_t""no" 1>&6
3623 for ac_func in backtrace fork execvp pipe sigaction
3625 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3626 echo "configure:3627: checking for $ac_func" >&5
3627 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3628 echo $ac_n "(cached) $ac_c" 1>&6
3630 cat > conftest.$ac_ext <<EOF
3631 #line 3632 "configure"
3632 #include "confdefs.h"
3633 /* System header to define __stub macros and hopefully few prototypes,
3634 which can conflict with char $ac_func(); below. */
3636 /* Override any gcc2 internal prototype to avoid an error. */
3637 /* We use char because int might match the return type of a gcc2
3638 builtin and then its argument prototype would still apply. */
3643 /* The GNU C library defines this for functions which it implements
3644 to always fail with ENOSYS. Some functions are actually named
3645 something starting with __ and the normal name is an alias. */
3646 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3654 if { (eval echo configure:3655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3656 eval "ac_cv_func_$ac_func=yes"
3658 echo "configure: failed program was:" >&5
3659 cat conftest.$ac_ext >&5
3661 eval "ac_cv_func_$ac_func=no"
3666 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3667 echo "$ac_t""yes" 1>&6
3668 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3669 cat >> confdefs.h <<EOF
3670 #define $ac_tr_func 1
3674 echo "$ac_t""no" 1>&6
3678 for ac_hdr in execinfo.h unistd.h dlfcn.h
3680 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3681 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3682 echo "configure:3683: checking for $ac_hdr" >&5
3683 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3684 echo $ac_n "(cached) $ac_c" 1>&6
3686 cat > conftest.$ac_ext <<EOF
3687 #line 3688 "configure"
3688 #include "confdefs.h"
3691 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3692 { (eval echo configure:3693: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3693 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3694 if test -z "$ac_err"; then
3696 eval "ac_cv_header_$ac_safe=yes"
3699 echo "configure: failed program was:" >&5
3700 cat conftest.$ac_ext >&5
3702 eval "ac_cv_header_$ac_safe=no"
3706 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3707 echo "$ac_t""yes" 1>&6
3708 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3709 cat >> confdefs.h <<EOF
3710 #define $ac_tr_hdr 1
3714 echo "$ac_t""no" 1>&6
3718 echo $ac_n "checking for dladdr in -ldl""... $ac_c" 1>&6
3719 echo "configure:3720: checking for dladdr in -ldl" >&5
3720 ac_lib_var=`echo dl'_'dladdr | sed 'y%./+-%__p_%'`
3721 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3722 echo $ac_n "(cached) $ac_c" 1>&6
3724 ac_save_LIBS="$LIBS"
3726 cat > conftest.$ac_ext <<EOF
3727 #line 3728 "configure"
3728 #include "confdefs.h"
3729 /* Override any gcc2 internal prototype to avoid an error. */
3730 /* We use char because int might match the return type of a gcc2
3731 builtin and then its argument prototype would still apply. */
3738 if { (eval echo configure:3739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3740 eval "ac_cv_lib_$ac_lib_var=yes"
3742 echo "configure: failed program was:" >&5
3743 cat conftest.$ac_ext >&5
3745 eval "ac_cv_lib_$ac_lib_var=no"
3748 LIBS="$ac_save_LIBS"
3751 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3752 echo "$ac_t""yes" 1>&6
3754 cat >> confdefs.h <<\EOF
3755 #define HAVE_DLADDR 1
3759 echo "$ac_t""no" 1>&6
3762 for ac_file in /proc/self/exe
3765 ac_safe=`echo "$ac_file" | sed 'y%./+-%__p_%'`
3766 echo $ac_n "checking for $ac_file""... $ac_c" 1>&6
3767 echo "configure:3768: checking for $ac_file" >&5
3768 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
3769 echo $ac_n "(cached) $ac_c" 1>&6
3771 if test "$cross_compiling" = yes; then
3772 { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
3774 if test -r $ac_file; then
3775 eval "ac_cv_file_$ac_safe=yes"
3777 eval "ac_cv_file_$ac_safe=no"
3781 if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
3782 echo "$ac_t""yes" 1>&6
3783 ac_tr_file=HAVE_`echo $ac_file | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3784 cat >> confdefs.h <<EOF
3785 #define $ac_tr_file 1
3788 cat >> confdefs.h <<\EOF
3789 #define HAVE_PROC_SELF_EXE 1
3793 echo "$ac_t""no" 1>&6
3801 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
3802 if test "${with_libiconv_prefix+set}" = set; then
3803 withval="$with_libiconv_prefix"
3805 for dir in `echo "$withval" | tr : ' '`; do
3806 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
3807 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
3813 echo $ac_n "checking for iconv""... $ac_c" 1>&6
3814 echo "configure:3815: checking for iconv" >&5
3815 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
3816 echo $ac_n "(cached) $ac_c" 1>&6
3819 am_cv_func_iconv="no, consider installing GNU libiconv"
3821 cat > conftest.$ac_ext <<EOF
3822 #line 3823 "configure"
3823 #include "confdefs.h"
3827 iconv_t cd = iconv_open("","");
3828 iconv(cd,NULL,NULL,NULL,NULL);
3832 if { (eval echo configure:3833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3834 am_cv_func_iconv=yes
3836 echo "configure: failed program was:" >&5
3837 cat conftest.$ac_ext >&5
3840 if test "$am_cv_func_iconv" != yes; then
3841 am_save_LIBS="$LIBS"
3842 LIBS="$LIBS -liconv"
3843 cat > conftest.$ac_ext <<EOF
3844 #line 3845 "configure"
3845 #include "confdefs.h"
3849 iconv_t cd = iconv_open("","");
3850 iconv(cd,NULL,NULL,NULL,NULL);
3854 if { (eval echo configure:3855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3857 am_cv_func_iconv=yes
3859 echo "configure: failed program was:" >&5
3860 cat conftest.$ac_ext >&5
3863 LIBS="$am_save_LIBS"
3868 echo "$ac_t""$am_cv_func_iconv" 1>&6
3869 if test "$am_cv_func_iconv" = yes; then
3870 cat >> confdefs.h <<\EOF
3871 #define HAVE_ICONV 1
3874 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
3875 echo "configure:3876: checking for iconv declaration" >&5
3876 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
3877 echo $ac_n "(cached) $ac_c" 1>&6
3880 cat > conftest.$ac_ext <<EOF
3881 #line 3882 "configure"
3882 #include "confdefs.h"
3890 #if defined(__STDC__) || defined(__cplusplus)
3891 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
3900 if { (eval echo configure:3901: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3902 am_cv_proto_iconv_arg1=""
3904 echo "configure: failed program was:" >&5
3905 cat conftest.$ac_ext >&5
3907 am_cv_proto_iconv_arg1="const"
3910 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
3913 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
3914 echo "$ac_t""${ac_t:-
3915 }$am_cv_proto_iconv" 1>&6
3916 cat >> confdefs.h <<EOF
3917 #define ICONV_CONST $am_cv_proto_iconv_arg1
3922 if test "$am_cv_lib_iconv" = yes; then
3928 for ac_func in gethostbyname_r
3930 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3931 echo "configure:3932: checking for $ac_func" >&5
3932 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3933 echo $ac_n "(cached) $ac_c" 1>&6
3935 cat > conftest.$ac_ext <<EOF
3936 #line 3937 "configure"
3937 #include "confdefs.h"
3938 /* System header to define __stub macros and hopefully few prototypes,
3939 which can conflict with char $ac_func(); below. */
3941 /* Override any gcc2 internal prototype to avoid an error. */
3942 /* We use char because int might match the return type of a gcc2
3943 builtin and then its argument prototype would still apply. */
3948 /* The GNU C library defines this for functions which it implements
3949 to always fail with ENOSYS. Some functions are actually named
3950 something starting with __ and the normal name is an alias. */
3951 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3959 if { (eval echo configure:3960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3961 eval "ac_cv_func_$ac_func=yes"
3963 echo "configure: failed program was:" >&5
3964 cat conftest.$ac_ext >&5
3966 eval "ac_cv_func_$ac_func=no"
3971 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3972 echo "$ac_t""yes" 1>&6
3973 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3974 cat >> confdefs.h <<EOF
3975 #define $ac_tr_func 1
3978 cat >> confdefs.h <<\EOF
3979 #define HAVE_GETHOSTBYNAME_R 1
3982 # There are two different kinds of gethostbyname_r.
3983 # We look for the one that returns `int'.
3984 # Hopefully this check is robust enough.
3985 cat > conftest.$ac_ext <<EOF
3986 #line 3987 "configure"
3987 #include "confdefs.h"
3990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3991 egrep "int.*gethostbyname_r" >/dev/null 2>&1; then
3994 cat >> confdefs.h <<\EOF
3995 #define GETHOSTBYNAME_R_RETURNS_INT 1
4003 *" -D_REENTRANT "*) ;;
4005 echo $ac_n "checking whether gethostbyname_r declaration requires -D_REENTRANT""... $ac_c" 1>&6
4006 echo "configure:4007: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
4007 if eval "test \"`echo '$''{'libjava_cv_gethostbyname_r_needs_reentrant'+set}'`\" = set"; then
4008 echo $ac_n "(cached) $ac_c" 1>&6
4012 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4013 ac_cpp='$CXXCPP $CPPFLAGS'
4014 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4015 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4016 cross_compiling=$ac_cv_prog_cxx_cross
4018 cat > conftest.$ac_ext <<EOF
4019 #line 4020 "configure"
4020 #include "confdefs.h"
4023 gethostbyname_r("", 0, 0);
4026 if { (eval echo configure:4027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4028 libjava_cv_gethostbyname_r_needs_reentrant=no
4030 echo "configure: failed program was:" >&5
4031 cat conftest.$ac_ext >&5
4033 CPPFLAGS_SAVE="$CPPFLAGS"
4034 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
4035 cat > conftest.$ac_ext <<EOF
4036 #line 4037 "configure"
4037 #include "confdefs.h"
4040 gethostbyname_r("", 0, 0);
4043 if { (eval echo configure:4044: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4045 libjava_cv_gethostbyname_r_needs_reentrant=yes
4047 echo "configure: failed program was:" >&5
4048 cat conftest.$ac_ext >&5
4050 libjava_cv_gethostbyname_r_needs_reentrant=fail
4053 CPPFLAGS="$CPPFLAGS_SAVE"
4058 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4059 ac_cpp='$CPP $CPPFLAGS'
4060 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4061 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4062 cross_compiling=$ac_cv_prog_cc_cross
4067 echo "$ac_t""$libjava_cv_gethostbyname_r_needs_reentrant" 1>&6
4068 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
4069 cat >> confdefs.h <<\EOF
4070 #define _REENTRANT 1
4077 echo $ac_n "checking for struct hostent_data""... $ac_c" 1>&6
4078 echo "configure:4079: checking for struct hostent_data" >&5
4079 if eval "test \"`echo '$''{'libjava_cv_struct_hostent_data'+set}'`\" = set"; then
4080 echo $ac_n "(cached) $ac_c" 1>&6
4082 cat > conftest.$ac_ext <<EOF
4083 #line 4084 "configure"
4084 #include "confdefs.h"
4086 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
4087 # define _REENTRANT 1
4091 struct hostent_data data;
4094 if { (eval echo configure:4095: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4096 libjava_cv_struct_hostent_data=yes
4098 echo "configure: failed program was:" >&5
4099 cat conftest.$ac_ext >&5
4101 libjava_cv_struct_hostent_data=no
4106 echo "$ac_t""$libjava_cv_struct_hostent_data" 1>&6
4107 if test "x$libjava_cv_struct_hostent_data" = xyes; then
4108 cat >> confdefs.h <<\EOF
4109 #define HAVE_STRUCT_HOSTENT_DATA 1
4115 echo "$ac_t""no" 1>&6
4120 for ac_func in gethostbyaddr_r
4122 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4123 echo "configure:4124: checking for $ac_func" >&5
4124 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4125 echo $ac_n "(cached) $ac_c" 1>&6
4127 cat > conftest.$ac_ext <<EOF
4128 #line 4129 "configure"
4129 #include "confdefs.h"
4130 /* System header to define __stub macros and hopefully few prototypes,
4131 which can conflict with char $ac_func(); below. */
4133 /* Override any gcc2 internal prototype to avoid an error. */
4134 /* We use char because int might match the return type of a gcc2
4135 builtin and then its argument prototype would still apply. */
4140 /* The GNU C library defines this for functions which it implements
4141 to always fail with ENOSYS. Some functions are actually named
4142 something starting with __ and the normal name is an alias. */
4143 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4151 if { (eval echo configure:4152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4153 eval "ac_cv_func_$ac_func=yes"
4155 echo "configure: failed program was:" >&5
4156 cat conftest.$ac_ext >&5
4158 eval "ac_cv_func_$ac_func=no"
4163 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4164 echo "$ac_t""yes" 1>&6
4165 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4166 cat >> confdefs.h <<EOF
4167 #define $ac_tr_func 1
4170 cat >> confdefs.h <<\EOF
4171 #define HAVE_GETHOSTBYADDR_R 1
4174 # There are two different kinds of gethostbyaddr_r.
4175 # We look for the one that returns `int'.
4176 # Hopefully this check is robust enough.
4177 cat > conftest.$ac_ext <<EOF
4178 #line 4179 "configure"
4179 #include "confdefs.h"
4182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4183 egrep "int.*gethostbyaddr_r" >/dev/null 2>&1; then
4186 cat >> confdefs.h <<\EOF
4187 #define GETHOSTBYADDR_R_RETURNS_INT 1
4194 echo "$ac_t""no" 1>&6
4199 for ac_func in gethostname
4201 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4202 echo "configure:4203: checking for $ac_func" >&5
4203 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4204 echo $ac_n "(cached) $ac_c" 1>&6
4206 cat > conftest.$ac_ext <<EOF
4207 #line 4208 "configure"
4208 #include "confdefs.h"
4209 /* System header to define __stub macros and hopefully few prototypes,
4210 which can conflict with char $ac_func(); below. */
4212 /* Override any gcc2 internal prototype to avoid an error. */
4213 /* We use char because int might match the return type of a gcc2
4214 builtin and then its argument prototype would still apply. */
4219 /* The GNU C library defines this for functions which it implements
4220 to always fail with ENOSYS. Some functions are actually named
4221 something starting with __ and the normal name is an alias. */
4222 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4230 if { (eval echo configure:4231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4232 eval "ac_cv_func_$ac_func=yes"
4234 echo "configure: failed program was:" >&5
4235 cat conftest.$ac_ext >&5
4237 eval "ac_cv_func_$ac_func=no"
4242 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4243 echo "$ac_t""yes" 1>&6
4244 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4245 cat >> confdefs.h <<EOF
4246 #define $ac_tr_func 1
4249 cat >> confdefs.h <<\EOF
4250 #define HAVE_GETHOSTNAME 1
4253 cat > conftest.$ac_ext <<EOF
4254 #line 4255 "configure"
4255 #include "confdefs.h"
4258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4259 egrep "gethostname" >/dev/null 2>&1; then
4262 cat >> confdefs.h <<\EOF
4263 #define HAVE_GETHOSTNAME_DECL 1
4270 echo "$ac_t""no" 1>&6
4275 # Look for these functions in the thread library, but only bother
4276 # if using POSIX threads.
4277 if test "$THREADS" = posix; then
4279 LIBS="$LIBS $THREADLIBS"
4280 # Some POSIX thread systems don't have pthread_mutexattr_settype.
4282 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
4284 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4285 echo "configure:4286: checking for $ac_func" >&5
4286 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4287 echo $ac_n "(cached) $ac_c" 1>&6
4289 cat > conftest.$ac_ext <<EOF
4290 #line 4291 "configure"
4291 #include "confdefs.h"
4292 /* System header to define __stub macros and hopefully few prototypes,
4293 which can conflict with char $ac_func(); below. */
4295 /* Override any gcc2 internal prototype to avoid an error. */
4296 /* We use char because int might match the return type of a gcc2
4297 builtin and then its argument prototype would still apply. */
4302 /* The GNU C library defines this for functions which it implements
4303 to always fail with ENOSYS. Some functions are actually named
4304 something starting with __ and the normal name is an alias. */
4305 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4313 if { (eval echo configure:4314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4315 eval "ac_cv_func_$ac_func=yes"
4317 echo "configure: failed program was:" >&5
4318 cat conftest.$ac_ext >&5
4320 eval "ac_cv_func_$ac_func=no"
4325 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4326 echo "$ac_t""yes" 1>&6
4327 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4328 cat >> confdefs.h <<EOF
4329 #define $ac_tr_func 1
4333 echo "$ac_t""no" 1>&6
4338 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
4339 # Solaris 7 the name librt is preferred.
4340 for ac_func in sched_yield
4342 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4343 echo "configure:4344: checking for $ac_func" >&5
4344 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4345 echo $ac_n "(cached) $ac_c" 1>&6
4347 cat > conftest.$ac_ext <<EOF
4348 #line 4349 "configure"
4349 #include "confdefs.h"
4350 /* System header to define __stub macros and hopefully few prototypes,
4351 which can conflict with char $ac_func(); below. */
4353 /* Override any gcc2 internal prototype to avoid an error. */
4354 /* We use char because int might match the return type of a gcc2
4355 builtin and then its argument prototype would still apply. */
4360 /* The GNU C library defines this for functions which it implements
4361 to always fail with ENOSYS. Some functions are actually named
4362 something starting with __ and the normal name is an alias. */
4363 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4371 if { (eval echo configure:4372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4373 eval "ac_cv_func_$ac_func=yes"
4375 echo "configure: failed program was:" >&5
4376 cat conftest.$ac_ext >&5
4378 eval "ac_cv_func_$ac_func=no"
4383 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4384 echo "$ac_t""yes" 1>&6
4385 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4386 cat >> confdefs.h <<EOF
4387 #define $ac_tr_func 1
4391 echo "$ac_t""no" 1>&6
4392 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
4393 echo "configure:4394: checking for sched_yield in -lrt" >&5
4394 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
4395 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4396 echo $ac_n "(cached) $ac_c" 1>&6
4398 ac_save_LIBS="$LIBS"
4400 cat > conftest.$ac_ext <<EOF
4401 #line 4402 "configure"
4402 #include "confdefs.h"
4403 /* Override any gcc2 internal prototype to avoid an error. */
4404 /* We use char because int might match the return type of a gcc2
4405 builtin and then its argument prototype would still apply. */
4412 if { (eval echo configure:4413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4414 eval "ac_cv_lib_$ac_lib_var=yes"
4416 echo "configure: failed program was:" >&5
4417 cat conftest.$ac_ext >&5
4419 eval "ac_cv_lib_$ac_lib_var=no"
4422 LIBS="$ac_save_LIBS"
4425 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4426 echo "$ac_t""yes" 1>&6
4428 cat >> confdefs.h <<\EOF
4429 #define HAVE_SCHED_YIELD 1
4432 THREADLIBS="$THREADLIBS -lrt"
4433 THREADSPEC="$THREADSPEC -lrt"
4435 echo "$ac_t""no" 1>&6
4437 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
4438 echo "configure:4439: checking for sched_yield in -lposix4" >&5
4439 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
4440 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4441 echo $ac_n "(cached) $ac_c" 1>&6
4443 ac_save_LIBS="$LIBS"
4444 LIBS="-lposix4 $LIBS"
4445 cat > conftest.$ac_ext <<EOF
4446 #line 4447 "configure"
4447 #include "confdefs.h"
4448 /* Override any gcc2 internal prototype to avoid an error. */
4449 /* We use char because int might match the return type of a gcc2
4450 builtin and then its argument prototype would still apply. */
4457 if { (eval echo configure:4458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4459 eval "ac_cv_lib_$ac_lib_var=yes"
4461 echo "configure: failed program was:" >&5
4462 cat conftest.$ac_ext >&5
4464 eval "ac_cv_lib_$ac_lib_var=no"
4467 LIBS="$ac_save_LIBS"
4470 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4471 echo "$ac_t""yes" 1>&6
4473 cat >> confdefs.h <<\EOF
4474 #define HAVE_SCHED_YIELD 1
4477 THREADLIBS="$THREADLIBS -lposix4"
4478 THREADSPEC="$THREADSPEC -lposix4"
4480 echo "$ac_t""no" 1>&6
4490 # We can save a little space at runtime if the mutex has m_count
4491 # or __m_count. This is a nice hack for Linux.
4492 cat > conftest.$ac_ext <<EOF
4493 #line 4494 "configure"
4494 #include "confdefs.h"
4495 #include <pthread.h>
4498 extern pthread_mutex_t *mutex; int q = mutex->m_count;
4502 if { (eval echo configure:4503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4504 cat >> confdefs.h <<\EOF
4505 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
4509 echo "configure: failed program was:" >&5
4510 cat conftest.$ac_ext >&5
4513 cat > conftest.$ac_ext <<EOF
4514 #line 4515 "configure"
4515 #include "confdefs.h"
4516 #include <pthread.h>
4519 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
4523 if { (eval echo configure:4524: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4525 cat >> confdefs.h <<\EOF
4526 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
4530 echo "configure: failed program was:" >&5
4531 cat conftest.$ac_ext >&5
4538 # We require a way to get the time.
4540 for ac_func in gettimeofday time ftime
4542 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4543 echo "configure:4544: checking for $ac_func" >&5
4544 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4545 echo $ac_n "(cached) $ac_c" 1>&6
4547 cat > conftest.$ac_ext <<EOF
4548 #line 4549 "configure"
4549 #include "confdefs.h"
4550 /* System header to define __stub macros and hopefully few prototypes,
4551 which can conflict with char $ac_func(); below. */
4553 /* Override any gcc2 internal prototype to avoid an error. */
4554 /* We use char because int might match the return type of a gcc2
4555 builtin and then its argument prototype would still apply. */
4560 /* The GNU C library defines this for functions which it implements
4561 to always fail with ENOSYS. Some functions are actually named
4562 something starting with __ and the normal name is an alias. */
4563 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4571 if { (eval echo configure:4572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4573 eval "ac_cv_func_$ac_func=yes"
4575 echo "configure: failed program was:" >&5
4576 cat conftest.$ac_ext >&5
4578 eval "ac_cv_func_$ac_func=no"
4583 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4584 echo "$ac_t""yes" 1>&6
4585 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4586 cat >> confdefs.h <<EOF
4587 #define $ac_tr_func 1
4591 echo "$ac_t""no" 1>&6
4595 if test "$time_found" = no; then
4596 { echo "configure: error: no function found to get the time" 1>&2; exit 1; }
4599 for ac_func in memmove
4601 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4602 echo "configure:4603: checking for $ac_func" >&5
4603 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4604 echo $ac_n "(cached) $ac_c" 1>&6
4606 cat > conftest.$ac_ext <<EOF
4607 #line 4608 "configure"
4608 #include "confdefs.h"
4609 /* System header to define __stub macros and hopefully few prototypes,
4610 which can conflict with char $ac_func(); below. */
4612 /* Override any gcc2 internal prototype to avoid an error. */
4613 /* We use char because int might match the return type of a gcc2
4614 builtin and then its argument prototype would still apply. */
4619 /* The GNU C library defines this for functions which it implements
4620 to always fail with ENOSYS. Some functions are actually named
4621 something starting with __ and the normal name is an alias. */
4622 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4630 if { (eval echo configure:4631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4632 eval "ac_cv_func_$ac_func=yes"
4634 echo "configure: failed program was:" >&5
4635 cat conftest.$ac_ext >&5
4637 eval "ac_cv_func_$ac_func=no"
4642 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4643 echo "$ac_t""yes" 1>&6
4644 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4645 cat >> confdefs.h <<EOF
4646 #define $ac_tr_func 1
4650 echo "$ac_t""no" 1>&6
4655 # We require memcpy.
4657 for ac_func in memcpy
4659 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4660 echo "configure:4661: checking for $ac_func" >&5
4661 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4662 echo $ac_n "(cached) $ac_c" 1>&6
4664 cat > conftest.$ac_ext <<EOF
4665 #line 4666 "configure"
4666 #include "confdefs.h"
4667 /* System header to define __stub macros and hopefully few prototypes,
4668 which can conflict with char $ac_func(); below. */
4670 /* Override any gcc2 internal prototype to avoid an error. */
4671 /* We use char because int might match the return type of a gcc2
4672 builtin and then its argument prototype would still apply. */
4677 /* The GNU C library defines this for functions which it implements
4678 to always fail with ENOSYS. Some functions are actually named
4679 something starting with __ and the normal name is an alias. */
4680 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4688 if { (eval echo configure:4689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4690 eval "ac_cv_func_$ac_func=yes"
4692 echo "configure: failed program was:" >&5
4693 cat conftest.$ac_ext >&5
4695 eval "ac_cv_func_$ac_func=no"
4700 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4701 echo "$ac_t""yes" 1>&6
4702 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4703 cat >> confdefs.h <<EOF
4704 #define $ac_tr_func 1
4708 echo "$ac_t""no" 1>&6
4712 if test "$memcpy_found" = no; then
4713 { echo "configure: error: memcpy is required" 1>&2; exit 1; }
4716 # Some library-finding code we stole from Tcl.
4717 #--------------------------------------------------------------------
4718 # Check for the existence of the -lsocket and -lnsl libraries.
4719 # The order here is important, so that they end up in the right
4720 # order in the command line generated by make. Here are some
4721 # special considerations:
4722 # 1. Use "connect" and "accept" to check for -lsocket, and
4723 # "gethostbyname" to check for -lnsl.
4724 # 2. Use each function name only once: can't redo a check because
4725 # autoconf caches the results of the last check and won't redo it.
4726 # 3. Use -lnsl and -lsocket only if they supply procedures that
4727 # aren't already present in the normal libraries. This is because
4728 # IRIX 5.2 has libraries, but they aren't needed and they're
4729 # bogus: they goof up name resolution if used.
4730 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
4731 # To get around this problem, check for both libraries together
4732 # if -lsocket doesn't work by itself.
4733 #--------------------------------------------------------------------
4735 echo $ac_n "checking for socket libraries""... $ac_c" 1>&6
4736 echo "configure:4737: checking for socket libraries" >&5
4737 if eval "test \"`echo '$''{'gcj_cv_lib_sockets'+set}'`\" = set"; then
4738 echo $ac_n "(cached) $ac_c" 1>&6
4742 unset ac_cv_func_connect
4743 echo $ac_n "checking for connect""... $ac_c" 1>&6
4744 echo "configure:4745: checking for connect" >&5
4745 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
4746 echo $ac_n "(cached) $ac_c" 1>&6
4748 cat > conftest.$ac_ext <<EOF
4749 #line 4750 "configure"
4750 #include "confdefs.h"
4751 /* System header to define __stub macros and hopefully few prototypes,
4752 which can conflict with char connect(); below. */
4754 /* Override any gcc2 internal prototype to avoid an error. */
4755 /* We use char because int might match the return type of a gcc2
4756 builtin and then its argument prototype would still apply. */
4761 /* The GNU C library defines this for functions which it implements
4762 to always fail with ENOSYS. Some functions are actually named
4763 something starting with __ and the normal name is an alias. */
4764 #if defined (__stub_connect) || defined (__stub___connect)
4772 if { (eval echo configure:4773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4774 eval "ac_cv_func_connect=yes"
4776 echo "configure: failed program was:" >&5
4777 cat conftest.$ac_ext >&5
4779 eval "ac_cv_func_connect=no"
4784 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
4785 echo "$ac_t""yes" 1>&6
4788 echo "$ac_t""no" 1>&6
4792 if test "$gcj_checkSocket" = 1; then
4793 unset ac_cv_func_connect
4794 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4795 echo "configure:4796: checking for main in -lsocket" >&5
4796 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
4797 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4798 echo $ac_n "(cached) $ac_c" 1>&6
4800 ac_save_LIBS="$LIBS"
4801 LIBS="-lsocket $LIBS"
4802 cat > conftest.$ac_ext <<EOF
4803 #line 4804 "configure"
4804 #include "confdefs.h"
4810 if { (eval echo configure:4811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4812 eval "ac_cv_lib_$ac_lib_var=yes"
4814 echo "configure: failed program was:" >&5
4815 cat conftest.$ac_ext >&5
4817 eval "ac_cv_lib_$ac_lib_var=no"
4820 LIBS="$ac_save_LIBS"
4823 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4824 echo "$ac_t""yes" 1>&6
4825 gcj_cv_lib_sockets="-lsocket"
4827 echo "$ac_t""no" 1>&6
4832 if test "$gcj_checkBoth" = 1; then
4834 LIBS="$LIBS -lsocket -lnsl"
4835 unset ac_cv_func_accept
4836 echo $ac_n "checking for accept""... $ac_c" 1>&6
4837 echo "configure:4838: checking for accept" >&5
4838 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
4839 echo $ac_n "(cached) $ac_c" 1>&6
4841 cat > conftest.$ac_ext <<EOF
4842 #line 4843 "configure"
4843 #include "confdefs.h"
4844 /* System header to define __stub macros and hopefully few prototypes,
4845 which can conflict with char accept(); below. */
4847 /* Override any gcc2 internal prototype to avoid an error. */
4848 /* We use char because int might match the return type of a gcc2
4849 builtin and then its argument prototype would still apply. */
4854 /* The GNU C library defines this for functions which it implements
4855 to always fail with ENOSYS. Some functions are actually named
4856 something starting with __ and the normal name is an alias. */
4857 #if defined (__stub_accept) || defined (__stub___accept)
4865 if { (eval echo configure:4866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4867 eval "ac_cv_func_accept=yes"
4869 echo "configure: failed program was:" >&5
4870 cat conftest.$ac_ext >&5
4872 eval "ac_cv_func_accept=no"
4877 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
4878 echo "$ac_t""yes" 1>&6
4880 gcj_cv_lib_sockets="-lsocket -lnsl"
4882 echo "$ac_t""no" 1>&6
4885 unset ac_cv_func_accept
4888 unset ac_cv_func_gethostbyname
4890 LIBS="$LIBS $gcj_cv_lib_sockets"
4891 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4892 echo "configure:4893: checking for gethostbyname" >&5
4893 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
4894 echo $ac_n "(cached) $ac_c" 1>&6
4896 cat > conftest.$ac_ext <<EOF
4897 #line 4898 "configure"
4898 #include "confdefs.h"
4899 /* System header to define __stub macros and hopefully few prototypes,
4900 which can conflict with char gethostbyname(); below. */
4902 /* Override any gcc2 internal prototype to avoid an error. */
4903 /* We use char because int might match the return type of a gcc2
4904 builtin and then its argument prototype would still apply. */
4905 char gethostbyname();
4909 /* The GNU C library defines this for functions which it implements
4910 to always fail with ENOSYS. Some functions are actually named
4911 something starting with __ and the normal name is an alias. */
4912 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4920 if { (eval echo configure:4921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4922 eval "ac_cv_func_gethostbyname=yes"
4924 echo "configure: failed program was:" >&5
4925 cat conftest.$ac_ext >&5
4927 eval "ac_cv_func_gethostbyname=no"
4932 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
4933 echo "$ac_t""yes" 1>&6
4936 echo "$ac_t""no" 1>&6
4937 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
4938 echo "configure:4939: checking for main in -lnsl" >&5
4939 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
4940 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4941 echo $ac_n "(cached) $ac_c" 1>&6
4943 ac_save_LIBS="$LIBS"
4945 cat > conftest.$ac_ext <<EOF
4946 #line 4947 "configure"
4947 #include "confdefs.h"
4953 if { (eval echo configure:4954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4955 eval "ac_cv_lib_$ac_lib_var=yes"
4957 echo "configure: failed program was:" >&5
4958 cat conftest.$ac_ext >&5
4960 eval "ac_cv_lib_$ac_lib_var=no"
4963 LIBS="$ac_save_LIBS"
4966 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4967 echo "$ac_t""yes" 1>&6
4968 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
4970 echo "$ac_t""no" 1>&6
4975 unset ac_cv_func_gethostbyname
4980 echo "$ac_t""$gcj_cv_lib_sockets" 1>&6
4981 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
4983 if test "$with_system_zlib" = yes; then
4984 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
4985 echo "configure:4986: checking for deflate in -lz" >&5
4986 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
4987 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4988 echo $ac_n "(cached) $ac_c" 1>&6
4990 ac_save_LIBS="$LIBS"
4992 cat > conftest.$ac_ext <<EOF
4993 #line 4994 "configure"
4994 #include "confdefs.h"
4995 /* Override any gcc2 internal prototype to avoid an error. */
4996 /* We use char because int might match the return type of a gcc2
4997 builtin and then its argument prototype would still apply. */
5004 if { (eval echo configure:5005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5006 eval "ac_cv_lib_$ac_lib_var=yes"
5008 echo "configure: failed program was:" >&5
5009 cat conftest.$ac_ext >&5
5011 eval "ac_cv_lib_$ac_lib_var=no"
5014 LIBS="$ac_save_LIBS"
5017 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5018 echo "$ac_t""yes" 1>&6
5021 echo "$ac_t""no" 1>&6
5027 ZLIBTESTSPEC="-L`pwd`/../zlib/.libs -rpath `pwd`/../zlib/.libs"
5030 # On Solaris, and maybe other architectures, the Boehm collector
5032 if test "$GC" = boehm; then
5033 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
5034 echo "configure:5035: checking for main in -ldl" >&5
5035 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
5036 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5037 echo $ac_n "(cached) $ac_c" 1>&6
5039 ac_save_LIBS="$LIBS"
5041 cat > conftest.$ac_ext <<EOF
5042 #line 5043 "configure"
5043 #include "confdefs.h"
5049 if { (eval echo configure:5050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5051 eval "ac_cv_lib_$ac_lib_var=yes"
5053 echo "configure: failed program was:" >&5
5054 cat conftest.$ac_ext >&5
5056 eval "ac_cv_lib_$ac_lib_var=no"
5059 LIBS="$ac_save_LIBS"
5062 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5063 echo "$ac_t""yes" 1>&6
5064 SYSTEMSPEC="$SYSTEMSPEC -ldl"
5066 echo "$ac_t""no" 1>&6
5071 if test -z "${with_multisubdir}"; then
5075 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
5078 if test -x "${builddotdot}/../../gcc/gcj"; then
5079 dir="`cd ${builddotdot}/../../gcc && pwd`"
5080 GCJ="$dir/gcj -B`pwd`/ -B$dir/"
5088 # Create it, so that compile/link tests don't fail
5089 test -f libgcj.spec || touch libgcj.spec
5091 # We must search the source tree for java.lang, since we still don't
5092 # have libgcj.jar nor java/lang/*.class
5093 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
5094 CPPFLAGS="$CPPFLAGS -I`pwd` -I`cd $srcdir && pwd`"
5096 # Since some classes depend on this one, we need its source available
5097 # before we can do any GCJ compilation test :-(
5098 if test ! -f gnu/classpath/Configuration.java; then
5099 test -d gnu || mkdir gnu
5100 test -d gnu/classpath || mkdir gnu/classpath
5101 sed 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
5102 < $srcdir/gnu/classpath/Configuration.java.in \
5103 > gnu/classpath/Configuration.java
5104 # We do not want to redirect the output of the grep below to /dev/null,
5105 # but we add /dev/null to the input list so that grep will print the
5106 # filename of Configuration.java in case it finds any matches.
5107 if grep @ gnu/classpath/Configuration.java /dev/null; then
5108 { echo "configure: error: configure.in is missing the substitutions above" 1>&2; exit 1; }
5112 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
5113 set dummy ${ac_tool_prefix}gcj; ac_word=$2
5114 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5115 echo "configure:5116: checking for $ac_word" >&5
5116 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
5117 echo $ac_n "(cached) $ac_c" 1>&6
5119 if test -n "$GCJ"; then
5120 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5122 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5124 for ac_dir in $ac_dummy; do
5125 test -z "$ac_dir" && ac_dir=.
5126 if test -f $ac_dir/$ac_word; then
5127 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
5134 GCJ="$ac_cv_prog_GCJ"
5135 if test -n "$GCJ"; then
5136 echo "$ac_t""$GCJ" 1>&6
5138 echo "$ac_t""no" 1>&6
5142 if test -z "$ac_cv_prog_GCJ"; then
5143 if test -n "$ac_tool_prefix"; then
5144 # Extract the first word of "gcj", so it can be a program name with args.
5145 set dummy gcj; ac_word=$2
5146 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5147 echo "configure:5148: checking for $ac_word" >&5
5148 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
5149 echo $ac_n "(cached) $ac_c" 1>&6
5151 if test -n "$GCJ"; then
5152 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5154 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5156 for ac_dir in $ac_dummy; do
5157 test -z "$ac_dir" && ac_dir=.
5158 if test -f $ac_dir/$ac_word; then
5159 ac_cv_prog_GCJ="gcj"
5164 test -z "$ac_cv_prog_GCJ" && ac_cv_prog_GCJ="no"
5167 GCJ="$ac_cv_prog_GCJ"
5168 if test -n "$GCJ"; then
5169 echo "$ac_t""$GCJ" 1>&6
5171 echo "$ac_t""no" 1>&6
5179 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
5183 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
5185 lt_save_CFLAGS="$CFLAGS"
5186 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
5187 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5188 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5189 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5190 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5191 deplibs_check_method="$deplibs_check_method" \
5192 file_magic_cmd="$file_magic_cmd" \
5193 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5194 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
5195 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
5197 CFLAGS="$lt_save_CFLAGS"
5199 # Redirect the config.log output again, so that the ltconfig log is not
5200 # clobbered by the next message.
5201 exec 5>>./config.log
5206 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
5208 echo $ac_n "checking size of void *""... $ac_c" 1>&6
5209 echo "configure:5210: checking size of void *" >&5
5210 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
5211 echo $ac_n "(cached) $ac_c" 1>&6
5213 if test "$cross_compiling" = yes; then
5214 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5216 cat > conftest.$ac_ext <<EOF
5217 #line 5218 "configure"
5218 #include "confdefs.h"
5222 FILE *f=fopen("conftestval", "w");
5224 fprintf(f, "%d\n", sizeof(void *));
5228 if { (eval echo configure:5229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5230 ac_cv_sizeof_void_p=`cat conftestval`
5232 echo "configure: failed program was:" >&5
5233 cat conftest.$ac_ext >&5
5235 ac_cv_sizeof_void_p=0
5241 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
5242 cat >> confdefs.h <<EOF
5243 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5251 if test "x$ZLIBSPEC" = "x-lzgcj"; then
5252 # We include the path to the zlib build directory.
5253 # See Makefile.am to understand why.
5254 ZDEPS='$(top_builddir)/../zlib/libzgcj.la'
5255 ZLIBS="$ZDEPS -L\$(here)/../zlib/$libsubdir"
5256 ZINCS='-I$(top_srcdir)/../zlib'
5268 if test "$CANADIAN" = yes; then
5277 if test "$NULL_TARGET" = yes; then
5279 NULL_TARGET_FALSE='#'
5281 NULL_TARGET_TRUE='#'
5286 if test "$NATIVE" = yes || test "$NULL_TARGET" = yes; then
5295 if test -z "$with_cross_host"; then
5297 USE_LIBDIR_FALSE='#'
5304 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
5305 NEEDS_DATA_START_TRUE=
5306 NEEDS_DATA_START_FALSE='#'
5308 NEEDS_DATA_START_TRUE='#'
5309 NEEDS_DATA_START_FALSE=
5313 # Determine gcj version number.
5315 gcjvers="`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`"
5317 cat >> confdefs.h <<EOF
5318 #define GCJVERSION "$gcjvers"
5325 echo $ac_n "checking for g++ -ffloat-store bug""... $ac_c" 1>&6
5326 echo "configure:5327: checking for g++ -ffloat-store bug" >&5
5327 save_CFLAGS="$CFLAGS"
5328 CFLAGS="-x c++ -O2 -ffloat-store"
5329 cat > conftest.$ac_ext <<EOF
5330 #line 5331 "configure"
5331 #include "confdefs.h"
5337 if { (eval echo configure:5338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5339 echo "$ac_t""no" 1>&6
5341 echo "configure: failed program was:" >&5
5342 cat conftest.$ac_ext >&5
5344 cat >> confdefs.h <<\EOF
5345 #define __NO_MATH_INLINES 1
5348 echo "$ac_t""yes" 1>&6
5351 CFLAGS="$save_CFLAGS"
5353 for ac_hdr in unistd.h bstring.h sys/time.h sys/types.h fcntl.h sys/ioctl.h sys/filio.h sys/stat.h sys/select.h sys/socket.h netinet/in.h arpa/inet.h netdb.h pwd.h sys/config.h inttypes.h stdint.h langinfo.h locale.h
5355 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5356 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5357 echo "configure:5358: checking for $ac_hdr" >&5
5358 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5359 echo $ac_n "(cached) $ac_c" 1>&6
5361 cat > conftest.$ac_ext <<EOF
5362 #line 5363 "configure"
5363 #include "confdefs.h"
5366 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5367 { (eval echo configure:5368: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5368 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5369 if test -z "$ac_err"; then
5371 eval "ac_cv_header_$ac_safe=yes"
5374 echo "configure: failed program was:" >&5
5375 cat conftest.$ac_ext >&5
5377 eval "ac_cv_header_$ac_safe=no"
5381 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5382 echo "$ac_t""yes" 1>&6
5383 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5384 cat >> confdefs.h <<EOF
5385 #define $ac_tr_hdr 1
5389 echo "$ac_t""no" 1>&6
5393 for ac_hdr in dirent.h
5395 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5396 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5397 echo "configure:5398: checking for $ac_hdr" >&5
5398 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5399 echo $ac_n "(cached) $ac_c" 1>&6
5401 cat > conftest.$ac_ext <<EOF
5402 #line 5403 "configure"
5403 #include "confdefs.h"
5406 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5407 { (eval echo configure:5408: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5408 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5409 if test -z "$ac_err"; then
5411 eval "ac_cv_header_$ac_safe=yes"
5414 echo "configure: failed program was:" >&5
5415 cat conftest.$ac_ext >&5
5417 eval "ac_cv_header_$ac_safe=no"
5421 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5422 echo "$ac_t""yes" 1>&6
5423 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5424 cat >> confdefs.h <<EOF
5425 #define $ac_tr_hdr 1
5429 echo "$ac_t""no" 1>&6
5434 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5435 echo "configure:5436: checking for ANSI C header files" >&5
5436 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5437 echo $ac_n "(cached) $ac_c" 1>&6
5439 cat > conftest.$ac_ext <<EOF
5440 #line 5441 "configure"
5441 #include "confdefs.h"
5447 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5448 { (eval echo configure:5449: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5449 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5450 if test -z "$ac_err"; then
5452 ac_cv_header_stdc=yes
5455 echo "configure: failed program was:" >&5
5456 cat conftest.$ac_ext >&5
5458 ac_cv_header_stdc=no
5462 if test $ac_cv_header_stdc = yes; then
5463 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5464 cat > conftest.$ac_ext <<EOF
5465 #line 5466 "configure"
5466 #include "confdefs.h"
5469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5470 egrep "memchr" >/dev/null 2>&1; then
5474 ac_cv_header_stdc=no
5480 if test $ac_cv_header_stdc = yes; then
5481 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5482 cat > conftest.$ac_ext <<EOF
5483 #line 5484 "configure"
5484 #include "confdefs.h"
5487 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5488 egrep "free" >/dev/null 2>&1; then
5492 ac_cv_header_stdc=no
5498 if test $ac_cv_header_stdc = yes; then
5499 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5500 if test "$cross_compiling" = yes; then
5503 cat > conftest.$ac_ext <<EOF
5504 #line 5505 "configure"
5505 #include "confdefs.h"
5507 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5508 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5509 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5510 int main () { int i; for (i = 0; i < 256; i++)
5511 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5515 if { (eval echo configure:5516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5519 echo "configure: failed program was:" >&5
5520 cat conftest.$ac_ext >&5
5522 ac_cv_header_stdc=no
5530 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5531 if test $ac_cv_header_stdc = yes; then
5532 cat >> confdefs.h <<\EOF
5533 #define STDC_HEADERS 1
5538 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
5539 echo "configure:5540: checking for ssize_t" >&5
5540 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
5541 echo $ac_n "(cached) $ac_c" 1>&6
5543 cat > conftest.$ac_ext <<EOF
5544 #line 5545 "configure"
5545 #include "confdefs.h"
5546 #include <sys/types.h>
5552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5553 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5555 ac_cv_type_ssize_t=yes
5558 ac_cv_type_ssize_t=no
5563 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
5564 if test $ac_cv_type_ssize_t = no; then
5565 cat >> confdefs.h <<\EOF
5572 echo $ac_n "checking for in_addr_t""... $ac_c" 1>&6
5573 echo "configure:5574: checking for in_addr_t" >&5
5574 cat > conftest.$ac_ext <<EOF
5575 #line 5576 "configure"
5576 #include "confdefs.h"
5577 #include <sys/types.h>
5582 #if HAVE_NETINET_IN_H
5583 #include <netinet/in.h>
5589 if { (eval echo configure:5590: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5591 cat >> confdefs.h <<\EOF
5592 #define HAVE_IN_ADDR_T 1
5595 echo "$ac_t""yes" 1>&6
5597 echo "configure: failed program was:" >&5
5598 cat conftest.$ac_ext >&5
5600 echo "$ac_t""no" 1>&6
5604 echo $ac_n "checking whether struct ip_mreq is in netinet/in.h""... $ac_c" 1>&6
5605 echo "configure:5606: checking whether struct ip_mreq is in netinet/in.h" >&5
5606 cat > conftest.$ac_ext <<EOF
5607 #line 5608 "configure"
5608 #include "confdefs.h"
5609 #include <netinet/in.h>
5611 struct ip_mreq mreq;
5614 if { (eval echo configure:5615: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5616 cat >> confdefs.h <<\EOF
5617 #define HAVE_STRUCT_IP_MREQ 1
5620 echo "$ac_t""yes" 1>&6
5622 echo "configure: failed program was:" >&5
5623 cat conftest.$ac_ext >&5
5625 echo "$ac_t""no" 1>&6
5629 echo $ac_n "checking whether struct sockaddr_in6 is in netinet/in.h""... $ac_c" 1>&6
5630 echo "configure:5631: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
5631 cat > conftest.$ac_ext <<EOF
5632 #line 5633 "configure"
5633 #include "confdefs.h"
5634 #include <netinet/in.h>
5636 struct sockaddr_in6 addr6;
5639 if { (eval echo configure:5640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5641 cat >> confdefs.h <<\EOF
5642 #define HAVE_INET6 1
5645 echo "$ac_t""yes" 1>&6
5647 echo "configure: failed program was:" >&5
5648 cat conftest.$ac_ext >&5
5650 echo "$ac_t""no" 1>&6
5654 echo $ac_n "checking for socklen_t in sys/socket.h""... $ac_c" 1>&6
5655 echo "configure:5656: checking for socklen_t in sys/socket.h" >&5
5656 cat > conftest.$ac_ext <<EOF
5657 #line 5658 "configure"
5658 #include "confdefs.h"
5659 #include <sys/types.h>
5660 #include <sys/socket.h>
5665 if { (eval echo configure:5666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5667 cat >> confdefs.h <<\EOF
5668 #define HAVE_SOCKLEN_T 1
5671 echo "$ac_t""yes" 1>&6
5673 echo "configure: failed program was:" >&5
5674 cat conftest.$ac_ext >&5
5676 echo "$ac_t""no" 1>&6
5680 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
5681 echo "configure:5682: checking for tm_gmtoff in struct tm" >&5
5682 cat > conftest.$ac_ext <<EOF
5683 #line 5684 "configure"
5684 #include "confdefs.h"
5687 struct tm tim; tim.tm_gmtoff = 0;
5690 if { (eval echo configure:5691: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5692 cat >> confdefs.h <<\EOF
5693 #define STRUCT_TM_HAS_GMTOFF 1
5696 echo "$ac_t""yes" 1>&6
5698 echo "configure: failed program was:" >&5
5699 cat conftest.$ac_ext >&5
5701 echo "$ac_t""no" 1>&6
5702 echo $ac_n "checking for global timezone variable""... $ac_c" 1>&6
5703 echo "configure:5704: checking for global timezone variable" >&5
5704 cat > conftest.$ac_ext <<EOF
5705 #line 5706 "configure"
5706 #include "confdefs.h"
5712 if { (eval echo configure:5713: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5714 cat >> confdefs.h <<\EOF
5715 #define HAVE_TIMEZONE 1
5718 echo "$ac_t""yes" 1>&6
5720 echo "configure: failed program was:" >&5
5721 cat conftest.$ac_ext >&5
5723 echo "$ac_t""no" 1>&6
5729 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5730 # for constant arguments. Useless!
5731 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5732 echo "configure:5733: checking for working alloca.h" >&5
5733 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5734 echo $ac_n "(cached) $ac_c" 1>&6
5736 cat > conftest.$ac_ext <<EOF
5737 #line 5738 "configure"
5738 #include "confdefs.h"
5741 char *p = alloca(2 * sizeof(int));
5744 if { (eval echo configure:5745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5746 ac_cv_header_alloca_h=yes
5748 echo "configure: failed program was:" >&5
5749 cat conftest.$ac_ext >&5
5751 ac_cv_header_alloca_h=no
5756 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5757 if test $ac_cv_header_alloca_h = yes; then
5758 cat >> confdefs.h <<\EOF
5759 #define HAVE_ALLOCA_H 1
5764 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5765 echo "configure:5766: checking for alloca" >&5
5766 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5767 echo $ac_n "(cached) $ac_c" 1>&6
5769 cat > conftest.$ac_ext <<EOF
5770 #line 5771 "configure"
5771 #include "confdefs.h"
5774 # define alloca __builtin_alloca
5777 # include <malloc.h>
5778 # define alloca _alloca
5781 # include <alloca.h>
5786 # ifndef alloca /* predefined by HP cc +Olibcalls */
5795 char *p = (char *) alloca(1);
5798 if { (eval echo configure:5799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5800 ac_cv_func_alloca_works=yes
5802 echo "configure: failed program was:" >&5
5803 cat conftest.$ac_ext >&5
5805 ac_cv_func_alloca_works=no
5810 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5811 if test $ac_cv_func_alloca_works = yes; then
5812 cat >> confdefs.h <<\EOF
5813 #define HAVE_ALLOCA 1
5818 if test $ac_cv_func_alloca_works = no; then
5819 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5820 # that cause trouble. Some versions do not even contain alloca or
5821 # contain a buggy version. If you still want to use their alloca,
5822 # use ar to extract alloca.o from them instead of compiling alloca.c.
5823 ALLOCA=alloca.${ac_objext}
5824 cat >> confdefs.h <<\EOF
5829 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5830 echo "configure:5831: checking whether alloca needs Cray hooks" >&5
5831 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5832 echo $ac_n "(cached) $ac_c" 1>&6
5834 cat > conftest.$ac_ext <<EOF
5835 #line 5836 "configure"
5836 #include "confdefs.h"
5837 #if defined(CRAY) && ! defined(CRAY2)
5844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5845 egrep "webecray" >/dev/null 2>&1; then
5856 echo "$ac_t""$ac_cv_os_cray" 1>&6
5857 if test $ac_cv_os_cray = yes; then
5858 for ac_func in _getb67 GETB67 getb67; do
5859 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5860 echo "configure:5861: checking for $ac_func" >&5
5861 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5862 echo $ac_n "(cached) $ac_c" 1>&6
5864 cat > conftest.$ac_ext <<EOF
5865 #line 5866 "configure"
5866 #include "confdefs.h"
5867 /* System header to define __stub macros and hopefully few prototypes,
5868 which can conflict with char $ac_func(); below. */
5870 /* Override any gcc2 internal prototype to avoid an error. */
5871 /* We use char because int might match the return type of a gcc2
5872 builtin and then its argument prototype would still apply. */
5877 /* The GNU C library defines this for functions which it implements
5878 to always fail with ENOSYS. Some functions are actually named
5879 something starting with __ and the normal name is an alias. */
5880 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5888 if { (eval echo configure:5889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5890 eval "ac_cv_func_$ac_func=yes"
5892 echo "configure: failed program was:" >&5
5893 cat conftest.$ac_ext >&5
5895 eval "ac_cv_func_$ac_func=no"
5900 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5901 echo "$ac_t""yes" 1>&6
5902 cat >> confdefs.h <<EOF
5903 #define CRAY_STACKSEG_END $ac_func
5908 echo "$ac_t""no" 1>&6
5914 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5915 echo "configure:5916: checking stack direction for C alloca" >&5
5916 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5917 echo $ac_n "(cached) $ac_c" 1>&6
5919 if test "$cross_compiling" = yes; then
5920 ac_cv_c_stack_direction=0
5922 cat > conftest.$ac_ext <<EOF
5923 #line 5924 "configure"
5924 #include "confdefs.h"
5925 find_stack_direction ()
5927 static char *addr = 0;
5932 return find_stack_direction ();
5935 return (&dummy > addr) ? 1 : -1;
5939 exit (find_stack_direction() < 0);
5942 if { (eval echo configure:5943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5944 ac_cv_c_stack_direction=1
5946 echo "configure: failed program was:" >&5
5947 cat conftest.$ac_ext >&5
5949 ac_cv_c_stack_direction=-1
5956 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5957 cat >> confdefs.h <<EOF
5958 #define STACK_DIRECTION $ac_cv_c_stack_direction
5966 # Extract the first word of "$ac_prog", so it can be a program name with args.
5967 set dummy $ac_prog; ac_word=$2
5968 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5969 echo "configure:5970: checking for $ac_word" >&5
5970 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
5971 echo $ac_n "(cached) $ac_c" 1>&6
5973 if test -n "$PERL"; then
5974 ac_cv_prog_PERL="$PERL" # Let the user override the test.
5976 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5978 for ac_dir in $ac_dummy; do
5979 test -z "$ac_dir" && ac_dir=.
5980 if test -f $ac_dir/$ac_word; then
5981 ac_cv_prog_PERL="$ac_prog"
5988 PERL="$ac_cv_prog_PERL"
5989 if test -n "$PERL"; then
5990 echo "$ac_t""$PERL" 1>&6
5992 echo "$ac_t""no" 1>&6
5995 test -n "$PERL" && break
5997 test -n "$PERL" || PERL="false"
6004 SIGNAL_HANDLER=include/i386-signal.h
6007 SIGNAL_HANDLER=include/sparc-signal.h
6010 # SYSDEP_SOURCES=sysdep/ia64.c
6011 # test -d sysdep || mkdir sysdep
6014 SIGNAL_HANDLER=include/dwarf2-signal.h
6017 SIGNAL_HANDLER=include/dwarf2-signal.h
6020 SIGNAL_HANDLER=include/default-signal.h
6024 # If we're using sjlj exceptions, forget what we just learned.
6025 if test "$enable_sjlj_exceptions" = yes; then
6026 SIGNAL_HANDLER=include/default-signal.h
6033 if test "${multilib}" = "yes"; then
6034 multilib_arg="--enable-multilib"
6039 # If we find X, set shell vars x_includes and x_libraries to the
6040 # paths, otherwise set no_x=yes.
6041 # Uses ac_ vars as temps to allow command line to override cache and checks.
6042 # --without-x overrides everything else, but does not touch the cache.
6043 echo $ac_n "checking for X""... $ac_c" 1>&6
6044 echo "configure:6045: checking for X" >&5
6046 # Check whether --with-x or --without-x was given.
6047 if test "${with_x+set}" = set; then
6052 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6053 if test "x$with_x" = xno; then
6054 # The user explicitly disabled X.
6057 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6058 # Both variables are already set.
6061 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
6062 echo $ac_n "(cached) $ac_c" 1>&6
6064 # One or both of the vars are not set, and there is no cached value.
6065 ac_x_includes=NO ac_x_libraries=NO
6067 if mkdir conftestdir; then
6069 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6070 cat > Imakefile <<'EOF'
6072 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6074 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6075 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6076 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6077 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6078 for ac_extension in a so sl; do
6079 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6080 test -f $ac_im_libdir/libX11.$ac_extension; then
6081 ac_im_usrlibdir=$ac_im_libdir; break
6084 # Screen out bogus values from the imake configuration. They are
6085 # bogus both because they are the default anyway, and because
6086 # using them would break gcc on systems where it needs fixed includes.
6087 case "$ac_im_incroot" in
6089 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
6091 case "$ac_im_usrlibdir" in
6093 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
6100 if test "$ac_x_includes" = NO; then
6101 # Guess where to find include files, by looking for this one X11 .h file.
6102 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
6104 # First, try using that file with no special directory specified.
6105 cat > conftest.$ac_ext <<EOF
6106 #line 6107 "configure"
6107 #include "confdefs.h"
6108 #include <$x_direct_test_include>
6110 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6111 { (eval echo configure:6112: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6112 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6113 if test -z "$ac_err"; then
6115 # We can compile using X headers with no special include directory.
6119 echo "configure: failed program was:" >&5
6120 cat conftest.$ac_ext >&5
6122 # Look for the header file in a standard set of common directories.
6123 # Check X11 before X11Rn because it is often a symlink to the current release.
6126 /usr/X11R6/include \
6127 /usr/X11R5/include \
6128 /usr/X11R4/include \
6131 /usr/include/X11R6 \
6132 /usr/include/X11R5 \
6133 /usr/include/X11R4 \
6135 /usr/local/X11/include \
6136 /usr/local/X11R6/include \
6137 /usr/local/X11R5/include \
6138 /usr/local/X11R4/include \
6140 /usr/local/include/X11 \
6141 /usr/local/include/X11R6 \
6142 /usr/local/include/X11R5 \
6143 /usr/local/include/X11R4 \
6147 /usr/XFree86/include/X11 \
6150 /usr/local/include \
6151 /usr/unsupported/include \
6152 /usr/athena/include \
6153 /usr/local/x11r5/include \
6154 /usr/lpp/Xamples/include \
6156 /usr/openwin/include \
6157 /usr/openwin/share/include \
6160 if test -r "$ac_dir/$x_direct_test_include"; then
6161 ac_x_includes=$ac_dir
6167 fi # $ac_x_includes = NO
6169 if test "$ac_x_libraries" = NO; then
6170 # Check for the libraries.
6172 test -z "$x_direct_test_library" && x_direct_test_library=Xt
6173 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
6175 # See if we find them without any special options.
6176 # Don't add to $LIBS permanently.
6177 ac_save_LIBS="$LIBS"
6178 LIBS="-l$x_direct_test_library $LIBS"
6179 cat > conftest.$ac_ext <<EOF
6180 #line 6181 "configure"
6181 #include "confdefs.h"
6184 ${x_direct_test_function}()
6187 if { (eval echo configure:6188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6189 LIBS="$ac_save_LIBS"
6190 # We can link X programs with no special library path.
6193 echo "configure: failed program was:" >&5
6194 cat conftest.$ac_ext >&5
6196 LIBS="$ac_save_LIBS"
6197 # First see if replacing the include by lib works.
6198 # Check X11 before X11Rn because it is often a symlink to the current release.
6199 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
6210 /usr/local/X11/lib \
6211 /usr/local/X11R6/lib \
6212 /usr/local/X11R5/lib \
6213 /usr/local/X11R4/lib \
6215 /usr/local/lib/X11 \
6216 /usr/local/lib/X11R6 \
6217 /usr/local/lib/X11R5 \
6218 /usr/local/lib/X11R4 \
6222 /usr/XFree86/lib/X11 \
6226 /usr/unsupported/lib \
6228 /usr/local/x11r5/lib \
6229 /usr/lpp/Xamples/lib \
6233 /usr/openwin/share/lib \
6236 for ac_extension in a so sl; do
6237 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
6238 ac_x_libraries=$ac_dir
6245 fi # $ac_x_libraries = NO
6247 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
6248 # Didn't find X anywhere. Cache the known absence of X.
6249 ac_cv_have_x="have_x=no"
6251 # Record where we found X for the cache.
6252 ac_cv_have_x="have_x=yes \
6253 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6257 eval "$ac_cv_have_x"
6260 if test "$have_x" != yes; then
6261 echo "$ac_t""$have_x" 1>&6
6264 # If each of the values was on the command line, it overrides each guess.
6265 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6266 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6267 # Update the cache value to reflect the command line values.
6268 ac_cv_have_x="have_x=yes \
6269 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6270 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
6273 if test "$no_x" = yes; then
6274 # Not all programs may use this symbol, but it does not hurt to define it.
6275 cat >> confdefs.h <<\EOF
6276 #define X_DISPLAY_MISSING 1
6279 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6281 if test -n "$x_includes"; then
6282 X_CFLAGS="$X_CFLAGS -I$x_includes"
6285 # It would also be nice to do this for all -L options, not just this one.
6286 if test -n "$x_libraries"; then
6287 X_LIBS="$X_LIBS -L$x_libraries"
6288 # For Solaris; some versions of Sun CC require a space after -R and
6289 # others require no space. Words are not sufficient . . . .
6290 case "`(uname -sr) 2>/dev/null`" in
6292 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
6293 echo "configure:6294: checking whether -R must be followed by a space" >&5
6294 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
6295 cat > conftest.$ac_ext <<EOF
6296 #line 6297 "configure"
6297 #include "confdefs.h"
6303 if { (eval echo configure:6304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6307 echo "configure: failed program was:" >&5
6308 cat conftest.$ac_ext >&5
6313 if test $ac_R_nospace = yes; then
6314 echo "$ac_t""no" 1>&6
6315 X_LIBS="$X_LIBS -R$x_libraries"
6317 LIBS="$ac_xsave_LIBS -R $x_libraries"
6318 cat > conftest.$ac_ext <<EOF
6319 #line 6320 "configure"
6320 #include "confdefs.h"
6326 if { (eval echo configure:6327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6330 echo "configure: failed program was:" >&5
6331 cat conftest.$ac_ext >&5
6336 if test $ac_R_space = yes; then
6337 echo "$ac_t""yes" 1>&6
6338 X_LIBS="$X_LIBS -R $x_libraries"
6340 echo "$ac_t""neither works" 1>&6
6343 LIBS="$ac_xsave_LIBS"
6347 # Check for system-dependent libraries X programs must link with.
6348 # Do this before checking for the system-independent R6 libraries
6349 # (-lICE), since we may need -lsocket or whatever for X linking.
6351 if test "$ISC" = yes; then
6352 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6354 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
6355 # libraries were built with DECnet support. And karl@cs.umb.edu says
6356 # the Alpha needs dnet_stub (dnet does not exist).
6357 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
6358 echo "configure:6359: checking for dnet_ntoa in -ldnet" >&5
6359 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6360 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6361 echo $ac_n "(cached) $ac_c" 1>&6
6363 ac_save_LIBS="$LIBS"
6365 cat > conftest.$ac_ext <<EOF
6366 #line 6367 "configure"
6367 #include "confdefs.h"
6368 /* Override any gcc2 internal prototype to avoid an error. */
6369 /* We use char because int might match the return type of a gcc2
6370 builtin and then its argument prototype would still apply. */
6377 if { (eval echo configure:6378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6379 eval "ac_cv_lib_$ac_lib_var=yes"
6381 echo "configure: failed program was:" >&5
6382 cat conftest.$ac_ext >&5
6384 eval "ac_cv_lib_$ac_lib_var=no"
6387 LIBS="$ac_save_LIBS"
6390 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6391 echo "$ac_t""yes" 1>&6
6392 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6394 echo "$ac_t""no" 1>&6
6397 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6398 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
6399 echo "configure:6400: checking for dnet_ntoa in -ldnet_stub" >&5
6400 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6401 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6402 echo $ac_n "(cached) $ac_c" 1>&6
6404 ac_save_LIBS="$LIBS"
6405 LIBS="-ldnet_stub $LIBS"
6406 cat > conftest.$ac_ext <<EOF
6407 #line 6408 "configure"
6408 #include "confdefs.h"
6409 /* Override any gcc2 internal prototype to avoid an error. */
6410 /* We use char because int might match the return type of a gcc2
6411 builtin and then its argument prototype would still apply. */
6418 if { (eval echo configure:6419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6420 eval "ac_cv_lib_$ac_lib_var=yes"
6422 echo "configure: failed program was:" >&5
6423 cat conftest.$ac_ext >&5
6425 eval "ac_cv_lib_$ac_lib_var=no"
6428 LIBS="$ac_save_LIBS"
6431 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6432 echo "$ac_t""yes" 1>&6
6433 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6435 echo "$ac_t""no" 1>&6
6440 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6441 # to get the SysV transport functions.
6442 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
6444 # The nsl library prevents programs from opening the X display
6445 # on Irix 5.2, according to dickey@clark.net.
6446 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
6447 echo "configure:6448: checking for gethostbyname" >&5
6448 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
6449 echo $ac_n "(cached) $ac_c" 1>&6
6451 cat > conftest.$ac_ext <<EOF
6452 #line 6453 "configure"
6453 #include "confdefs.h"
6454 /* System header to define __stub macros and hopefully few prototypes,
6455 which can conflict with char gethostbyname(); below. */
6457 /* Override any gcc2 internal prototype to avoid an error. */
6458 /* We use char because int might match the return type of a gcc2
6459 builtin and then its argument prototype would still apply. */
6460 char gethostbyname();
6464 /* The GNU C library defines this for functions which it implements
6465 to always fail with ENOSYS. Some functions are actually named
6466 something starting with __ and the normal name is an alias. */
6467 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6475 if { (eval echo configure:6476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6477 eval "ac_cv_func_gethostbyname=yes"
6479 echo "configure: failed program was:" >&5
6480 cat conftest.$ac_ext >&5
6482 eval "ac_cv_func_gethostbyname=no"
6487 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
6488 echo "$ac_t""yes" 1>&6
6491 echo "$ac_t""no" 1>&6
6494 if test $ac_cv_func_gethostbyname = no; then
6495 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
6496 echo "configure:6497: checking for gethostbyname in -lnsl" >&5
6497 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
6498 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6499 echo $ac_n "(cached) $ac_c" 1>&6
6501 ac_save_LIBS="$LIBS"
6503 cat > conftest.$ac_ext <<EOF
6504 #line 6505 "configure"
6505 #include "confdefs.h"
6506 /* Override any gcc2 internal prototype to avoid an error. */
6507 /* We use char because int might match the return type of a gcc2
6508 builtin and then its argument prototype would still apply. */
6509 char gethostbyname();
6515 if { (eval echo configure:6516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6517 eval "ac_cv_lib_$ac_lib_var=yes"
6519 echo "configure: failed program was:" >&5
6520 cat conftest.$ac_ext >&5
6522 eval "ac_cv_lib_$ac_lib_var=no"
6525 LIBS="$ac_save_LIBS"
6528 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6529 echo "$ac_t""yes" 1>&6
6530 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6532 echo "$ac_t""no" 1>&6
6537 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6538 # socket/setsockopt and other routines are undefined under SCO ODT
6539 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6540 # on later versions), says simon@lia.di.epfl.ch: it contains
6541 # gethostby* variants that don't use the nameserver (or something).
6542 # -lsocket must be given before -lnsl if both are needed.
6543 # We assume that if connect needs -lnsl, so does gethostbyname.
6544 echo $ac_n "checking for connect""... $ac_c" 1>&6
6545 echo "configure:6546: checking for connect" >&5
6546 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
6547 echo $ac_n "(cached) $ac_c" 1>&6
6549 cat > conftest.$ac_ext <<EOF
6550 #line 6551 "configure"
6551 #include "confdefs.h"
6552 /* System header to define __stub macros and hopefully few prototypes,
6553 which can conflict with char connect(); below. */
6555 /* Override any gcc2 internal prototype to avoid an error. */
6556 /* We use char because int might match the return type of a gcc2
6557 builtin and then its argument prototype would still apply. */
6562 /* The GNU C library defines this for functions which it implements
6563 to always fail with ENOSYS. Some functions are actually named
6564 something starting with __ and the normal name is an alias. */
6565 #if defined (__stub_connect) || defined (__stub___connect)
6573 if { (eval echo configure:6574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6575 eval "ac_cv_func_connect=yes"
6577 echo "configure: failed program was:" >&5
6578 cat conftest.$ac_ext >&5
6580 eval "ac_cv_func_connect=no"
6585 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
6586 echo "$ac_t""yes" 1>&6
6589 echo "$ac_t""no" 1>&6
6592 if test $ac_cv_func_connect = no; then
6593 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
6594 echo "configure:6595: checking for connect in -lsocket" >&5
6595 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
6596 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6597 echo $ac_n "(cached) $ac_c" 1>&6
6599 ac_save_LIBS="$LIBS"
6600 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6601 cat > conftest.$ac_ext <<EOF
6602 #line 6603 "configure"
6603 #include "confdefs.h"
6604 /* Override any gcc2 internal prototype to avoid an error. */
6605 /* We use char because int might match the return type of a gcc2
6606 builtin and then its argument prototype would still apply. */
6613 if { (eval echo configure:6614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6615 eval "ac_cv_lib_$ac_lib_var=yes"
6617 echo "configure: failed program was:" >&5
6618 cat conftest.$ac_ext >&5
6620 eval "ac_cv_lib_$ac_lib_var=no"
6623 LIBS="$ac_save_LIBS"
6626 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6627 echo "$ac_t""yes" 1>&6
6628 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6630 echo "$ac_t""no" 1>&6
6635 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
6636 echo $ac_n "checking for remove""... $ac_c" 1>&6
6637 echo "configure:6638: checking for remove" >&5
6638 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
6639 echo $ac_n "(cached) $ac_c" 1>&6
6641 cat > conftest.$ac_ext <<EOF
6642 #line 6643 "configure"
6643 #include "confdefs.h"
6644 /* System header to define __stub macros and hopefully few prototypes,
6645 which can conflict with char remove(); below. */
6647 /* Override any gcc2 internal prototype to avoid an error. */
6648 /* We use char because int might match the return type of a gcc2
6649 builtin and then its argument prototype would still apply. */
6654 /* The GNU C library defines this for functions which it implements
6655 to always fail with ENOSYS. Some functions are actually named
6656 something starting with __ and the normal name is an alias. */
6657 #if defined (__stub_remove) || defined (__stub___remove)
6665 if { (eval echo configure:6666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6667 eval "ac_cv_func_remove=yes"
6669 echo "configure: failed program was:" >&5
6670 cat conftest.$ac_ext >&5
6672 eval "ac_cv_func_remove=no"
6677 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
6678 echo "$ac_t""yes" 1>&6
6681 echo "$ac_t""no" 1>&6
6684 if test $ac_cv_func_remove = no; then
6685 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
6686 echo "configure:6687: checking for remove in -lposix" >&5
6687 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
6688 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6689 echo $ac_n "(cached) $ac_c" 1>&6
6691 ac_save_LIBS="$LIBS"
6692 LIBS="-lposix $LIBS"
6693 cat > conftest.$ac_ext <<EOF
6694 #line 6695 "configure"
6695 #include "confdefs.h"
6696 /* Override any gcc2 internal prototype to avoid an error. */
6697 /* We use char because int might match the return type of a gcc2
6698 builtin and then its argument prototype would still apply. */
6705 if { (eval echo configure:6706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6707 eval "ac_cv_lib_$ac_lib_var=yes"
6709 echo "configure: failed program was:" >&5
6710 cat conftest.$ac_ext >&5
6712 eval "ac_cv_lib_$ac_lib_var=no"
6715 LIBS="$ac_save_LIBS"
6718 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6719 echo "$ac_t""yes" 1>&6
6720 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6722 echo "$ac_t""no" 1>&6
6727 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6728 echo $ac_n "checking for shmat""... $ac_c" 1>&6
6729 echo "configure:6730: checking for shmat" >&5
6730 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
6731 echo $ac_n "(cached) $ac_c" 1>&6
6733 cat > conftest.$ac_ext <<EOF
6734 #line 6735 "configure"
6735 #include "confdefs.h"
6736 /* System header to define __stub macros and hopefully few prototypes,
6737 which can conflict with char shmat(); below. */
6739 /* Override any gcc2 internal prototype to avoid an error. */
6740 /* We use char because int might match the return type of a gcc2
6741 builtin and then its argument prototype would still apply. */
6746 /* The GNU C library defines this for functions which it implements
6747 to always fail with ENOSYS. Some functions are actually named
6748 something starting with __ and the normal name is an alias. */
6749 #if defined (__stub_shmat) || defined (__stub___shmat)
6757 if { (eval echo configure:6758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6759 eval "ac_cv_func_shmat=yes"
6761 echo "configure: failed program was:" >&5
6762 cat conftest.$ac_ext >&5
6764 eval "ac_cv_func_shmat=no"
6769 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
6770 echo "$ac_t""yes" 1>&6
6773 echo "$ac_t""no" 1>&6
6776 if test $ac_cv_func_shmat = no; then
6777 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
6778 echo "configure:6779: checking for shmat in -lipc" >&5
6779 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
6780 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6781 echo $ac_n "(cached) $ac_c" 1>&6
6783 ac_save_LIBS="$LIBS"
6785 cat > conftest.$ac_ext <<EOF
6786 #line 6787 "configure"
6787 #include "confdefs.h"
6788 /* Override any gcc2 internal prototype to avoid an error. */
6789 /* We use char because int might match the return type of a gcc2
6790 builtin and then its argument prototype would still apply. */
6797 if { (eval echo configure:6798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6799 eval "ac_cv_lib_$ac_lib_var=yes"
6801 echo "configure: failed program was:" >&5
6802 cat conftest.$ac_ext >&5
6804 eval "ac_cv_lib_$ac_lib_var=no"
6807 LIBS="$ac_save_LIBS"
6810 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6811 echo "$ac_t""yes" 1>&6
6812 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6814 echo "$ac_t""no" 1>&6
6820 # Check for libraries that X11R6 Xt/Xaw programs need.
6821 ac_save_LDFLAGS="$LDFLAGS"
6822 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6823 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6824 # check for ICE first), but we must link in the order -lSM -lICE or
6825 # we get undefined symbols. So assume we have SM if we have ICE.
6826 # These have to be linked with before -lX11, unlike the other
6827 # libraries we check for below, so use a different variable.
6828 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
6829 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
6830 echo "configure:6831: checking for IceConnectionNumber in -lICE" >&5
6831 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
6832 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6833 echo $ac_n "(cached) $ac_c" 1>&6
6835 ac_save_LIBS="$LIBS"
6836 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6837 cat > conftest.$ac_ext <<EOF
6838 #line 6839 "configure"
6839 #include "confdefs.h"
6840 /* Override any gcc2 internal prototype to avoid an error. */
6841 /* We use char because int might match the return type of a gcc2
6842 builtin and then its argument prototype would still apply. */
6843 char IceConnectionNumber();
6846 IceConnectionNumber()
6849 if { (eval echo configure:6850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6851 eval "ac_cv_lib_$ac_lib_var=yes"
6853 echo "configure: failed program was:" >&5
6854 cat conftest.$ac_ext >&5
6856 eval "ac_cv_lib_$ac_lib_var=no"
6859 LIBS="$ac_save_LIBS"
6862 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6863 echo "$ac_t""yes" 1>&6
6864 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6866 echo "$ac_t""no" 1>&6
6869 LDFLAGS="$ac_save_LDFLAGS"
6874 # Check whether --enable-java-awt or --disable-java-awt was given.
6875 if test "${enable_java_awt+set}" = set; then
6876 enableval="$enable_java_awt"
6881 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
6885 for peer in $peerlibs ; do
6888 if test "$no_x" = yes; then
6889 echo "*** xlib peers requested but no X library available" 1>&2
6899 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
6906 if test "$use_xlib_awt" = yes; then
6915 if test "$use_gtk_awt" = yes; then
6927 # We get this from the environment.
6931 cat > confcache <<\EOF
6932 # This file is a shell script that caches the results of configure
6933 # tests run on this system so they can be shared between configure
6934 # scripts and configure runs. It is not useful on other systems.
6935 # If it contains results you don't want to keep, you may remove or edit it.
6937 # By default, configure uses ./config.cache as the cache file,
6938 # creating it if it does not exist already. You can give configure
6939 # the --cache-file=FILE option to use a different cache file; that is
6940 # what configure does when it calls configure scripts in
6941 # subdirectories, so they share the cache.
6942 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6943 # config.status only pays attention to the cache file if you give it the
6944 # --recheck option to rerun configure.
6947 # The following way of writing the cache mishandles newlines in values,
6948 # but we know of no workaround that is simple, portable, and efficient.
6949 # So, don't put newlines in cache variables' values.
6950 # Ultrix sh set writes to stderr and can't be redirected directly,
6951 # and sets the high bit in the cache file unless we assign to the vars.
6953 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6955 # `set' does not quote correctly, so add quotes (double-quote substitution
6956 # turns \\\\ into \\, and sed turns \\ into \).
6958 -e "s/'/'\\\\''/g" \
6959 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6962 # `set' quotes correctly as required by POSIX, so do not add quotes.
6963 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6966 if cmp -s $cache_file confcache; then
6969 if test -w $cache_file; then
6970 echo "updating cache $cache_file"
6971 cat confcache > $cache_file
6973 echo "not updating unwritable cache $cache_file"
6978 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6980 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6981 # Let make expand exec_prefix.
6982 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6984 # Any assignment to VPATH causes Sun make to only execute
6985 # the first set of double-colon rules, so remove it if not needed.
6986 # If there is a colon in the path, we need to keep it.
6987 if test "x$srcdir" = x.; then
6988 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6991 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6993 DEFS=-DHAVE_CONFIG_H
6995 # Without the "./", some shells look in PATH for config.status.
6996 : ${CONFIG_STATUS=./config.status}
6998 echo creating $CONFIG_STATUS
6999 rm -f $CONFIG_STATUS
7000 cat > $CONFIG_STATUS <<EOF
7002 # Generated automatically by configure.
7003 # Run this file to recreate the current configuration.
7004 # This directory was configured as follows,
7005 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7007 # $0 $ac_configure_args
7009 # Compiler output produced by configure, useful for debugging
7010 # configure, is in ./config.log if it exists.
7012 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7015 case "\$ac_option" in
7016 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7017 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7018 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7019 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7020 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7022 -help | --help | --hel | --he | --h)
7023 echo "\$ac_cs_usage"; exit 0 ;;
7024 *) echo "\$ac_cs_usage"; exit 1 ;;
7028 ac_given_srcdir=$srcdir
7029 ac_given_INSTALL="$INSTALL"
7031 trap 'rm -fr `echo "Makefile libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile include/config.h gcj/libgcj-config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7033 cat >> $CONFIG_STATUS <<EOF
7035 # Protect against being on the right side of a sed subst in config.status.
7036 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7037 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7041 s%@CFLAGS@%$CFLAGS%g
7042 s%@CPPFLAGS@%$CPPFLAGS%g
7043 s%@CXXFLAGS@%$CXXFLAGS%g
7044 s%@FFLAGS@%$FFLAGS%g
7046 s%@LDFLAGS@%$LDFLAGS%g
7048 s%@exec_prefix@%$exec_prefix%g
7049 s%@prefix@%$prefix%g
7050 s%@program_transform_name@%$program_transform_name%g
7051 s%@bindir@%$bindir%g
7052 s%@sbindir@%$sbindir%g
7053 s%@libexecdir@%$libexecdir%g
7054 s%@datadir@%$datadir%g
7055 s%@sysconfdir@%$sysconfdir%g
7056 s%@sharedstatedir@%$sharedstatedir%g
7057 s%@localstatedir@%$localstatedir%g
7058 s%@libdir@%$libdir%g
7059 s%@includedir@%$includedir%g
7060 s%@oldincludedir@%$oldincludedir%g
7061 s%@infodir@%$infodir%g
7062 s%@mandir@%$mandir%g
7064 s%@libgcj_basedir@%$libgcj_basedir%g
7065 s%@mkinstalldirs@%$mkinstalldirs%g
7067 s%@host_alias@%$host_alias%g
7068 s%@host_cpu@%$host_cpu%g
7069 s%@host_vendor@%$host_vendor%g
7070 s%@host_os@%$host_os%g
7071 s%@target@%$target%g
7072 s%@target_alias@%$target_alias%g
7073 s%@target_cpu@%$target_cpu%g
7074 s%@target_vendor@%$target_vendor%g
7075 s%@target_os@%$target_os%g
7077 s%@build_alias@%$build_alias%g
7078 s%@build_cpu@%$build_cpu%g
7079 s%@build_vendor@%$build_vendor%g
7080 s%@build_os@%$build_os%g
7083 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7084 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7085 s%@INSTALL_DATA@%$INSTALL_DATA%g
7086 s%@PACKAGE@%$PACKAGE%g
7087 s%@VERSION@%$VERSION%g
7088 s%@ACLOCAL@%$ACLOCAL%g
7089 s%@AUTOCONF@%$AUTOCONF%g
7090 s%@AUTOMAKE@%$AUTOMAKE%g
7091 s%@AUTOHEADER@%$AUTOHEADER%g
7092 s%@MAKEINFO@%$MAKEINFO%g
7093 s%@SET_MAKE@%$SET_MAKE%g
7096 s%@RANLIB@%$RANLIB%g
7097 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
7098 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
7100 s%@EXEEXT@%$EXEEXT%g
7101 s%@LIBGCJ_CFLAGS@%$LIBGCJ_CFLAGS%g
7102 s%@LIBGCJ_CXXFLAGS@%$LIBGCJ_CXXFLAGS%g
7103 s%@LIBGCJ_JAVAFLAGS@%$LIBGCJ_JAVAFLAGS%g
7104 s%@INCLTDL@%$INCLTDL%g
7105 s%@LIBLTDL@%$LIBLTDL%g
7106 s%@DIRLTDL@%$DIRLTDL%g
7107 s%@OBJEXT@%$OBJEXT%g
7109 s%@LIBTOOL@%$LIBTOOL%g
7110 s%@CXXCPP@%$CXXCPP%g
7111 s%@subdirs@%$subdirs%g
7112 s%@COMPPATH@%$COMPPATH%g
7113 s%@TESTSUBDIR_TRUE@%$TESTSUBDIR_TRUE%g
7114 s%@TESTSUBDIR_FALSE@%$TESTSUBDIR_FALSE%g
7115 s%@LIBGCJDEBUG@%$LIBGCJDEBUG%g
7116 s%@LIBFFI@%$LIBFFI%g
7117 s%@LIBFFIINCS@%$LIBFFIINCS%g
7119 s%@SYSTEMSPEC@%$SYSTEMSPEC%g
7120 s%@LIBGCJTESTSPEC@%$LIBGCJTESTSPEC%g
7121 s%@ZLIBSPEC@%$ZLIBSPEC%g
7122 s%@ZLIBTESTSPEC@%$ZLIBTESTSPEC%g
7123 s%@GCLIBS@%$GCLIBS%g
7124 s%@GCINCS@%$GCINCS%g
7125 s%@GCDEPS@%$GCDEPS%g
7126 s%@GCOBJS@%$GCOBJS%g
7127 s%@GCSPEC@%$GCSPEC%g
7128 s%@JC1GCSPEC@%$JC1GCSPEC%g
7129 s%@GCTESTSPEC@%$GCTESTSPEC%g
7130 s%@THREADLIBS@%$THREADLIBS%g
7131 s%@THREADINCS@%$THREADINCS%g
7132 s%@THREADDEPS@%$THREADDEPS%g
7133 s%@THREADOBJS@%$THREADOBJS%g
7134 s%@THREADSPEC@%$THREADSPEC%g
7135 s%@HASH_SYNC_SPEC@%$HASH_SYNC_SPEC%g
7136 s%@USING_GCC_TRUE@%$USING_GCC_TRUE%g
7137 s%@USING_GCC_FALSE@%$USING_GCC_FALSE%g
7138 s%@LIBICONV@%$LIBICONV%g
7140 s%@GCJFLAGS@%$GCJFLAGS%g
7144 s%@DIVIDESPEC@%$DIVIDESPEC%g
7145 s%@EXCEPTIONSPEC@%$EXCEPTIONSPEC%g
7146 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
7147 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
7148 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
7149 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
7150 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
7151 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
7152 s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
7153 s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
7154 s%@NEEDS_DATA_START_TRUE@%$NEEDS_DATA_START_TRUE%g
7155 s%@NEEDS_DATA_START_FALSE@%$NEEDS_DATA_START_FALSE%g
7156 s%@GCC_UNWIND_INCLUDE@%$GCC_UNWIND_INCLUDE%g
7157 s%@GCJVERSION@%$GCJVERSION%g
7158 s%@AM_RUNTESTFLAGS@%$AM_RUNTESTFLAGS%g
7159 s%@ALLOCA@%$ALLOCA%g
7161 s%@SYSDEP_SOURCES@%$SYSDEP_SOURCES%g
7162 s%@X_CFLAGS@%$X_CFLAGS%g
7163 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
7164 s%@X_LIBS@%$X_LIBS%g
7165 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
7166 s%@XLIB_AWT_TRUE@%$XLIB_AWT_TRUE%g
7167 s%@XLIB_AWT_FALSE@%$XLIB_AWT_FALSE%g
7168 s%@GTK_AWT_TRUE@%$GTK_AWT_TRUE%g
7169 s%@GTK_AWT_FALSE@%$GTK_AWT_FALSE%g
7175 cat >> $CONFIG_STATUS <<\EOF
7177 # Split the substitutions into bite-sized pieces for seds with
7178 # small command number limits, like on Digital OSF/1 and HP-UX.
7179 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7180 ac_file=1 # Number of current file.
7181 ac_beg=1 # First line for current file.
7182 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7185 while $ac_more_lines; do
7186 if test $ac_beg -gt 1; then
7187 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7189 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7191 if test ! -s conftest.s$ac_file; then
7193 rm -f conftest.s$ac_file
7195 if test -z "$ac_sed_cmds"; then
7196 ac_sed_cmds="sed -f conftest.s$ac_file"
7198 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7200 ac_file=`expr $ac_file + 1`
7202 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7205 if test -z "$ac_sed_cmds"; then
7210 cat >> $CONFIG_STATUS <<EOF
7212 CONFIG_FILES=\${CONFIG_FILES-"Makefile libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile"}
7214 cat >> $CONFIG_STATUS <<\EOF
7215 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7216 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7218 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7219 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7220 *) ac_file_in="${ac_file}.in" ;;
7223 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7225 # Remove last slash and all that follows it. Not all systems have dirname.
7226 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7227 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7228 # The file is in a subdirectory.
7229 test ! -d "$ac_dir" && mkdir "$ac_dir"
7230 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7231 # A "../" for each directory in $ac_dir_suffix.
7232 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7234 ac_dir_suffix= ac_dots=
7237 case "$ac_given_srcdir" in
7239 if test -z "$ac_dots"; then top_srcdir=.
7240 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7241 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7243 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7244 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7247 case "$ac_given_INSTALL" in
7248 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7249 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7252 echo creating "$ac_file"
7254 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7256 *Makefile*) ac_comsub="1i\\
7257 # $configure_input" ;;
7261 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7263 s%@configure_input@%$configure_input%g
7264 s%@srcdir@%$srcdir%g
7265 s%@top_srcdir@%$top_srcdir%g
7266 s%@INSTALL@%$INSTALL%g
7267 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7271 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7272 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7274 # ac_d sets the value in "#define NAME VALUE" lines.
7275 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7276 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7279 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7280 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7281 ac_uB='\([ ]\)%\1#\2define\3'
7284 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7285 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7286 ac_eB='$%\1#\2define\3'
7290 if test "${CONFIG_HEADERS+set}" != set; then
7292 cat >> $CONFIG_STATUS <<EOF
7293 CONFIG_HEADERS="include/config.h gcj/libgcj-config.h"
7295 cat >> $CONFIG_STATUS <<\EOF
7297 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7298 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7300 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7301 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7302 *) ac_file_in="${ac_file}.in" ;;
7305 echo creating $ac_file
7307 rm -f conftest.frag conftest.in conftest.out
7308 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7309 cat $ac_file_inputs > conftest.in
7313 # Transform confdefs.h into a sed script conftest.vals that substitutes
7314 # the proper values into config.h.in to produce config.h. And first:
7315 # Protect against being on the right side of a sed subst in config.status.
7316 # Protect against being in an unquoted here document in config.status.
7318 cat > conftest.hdr <<\EOF
7321 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7325 sed -n -f conftest.hdr confdefs.h > conftest.vals
7328 # This sed command replaces #undef with comments. This is necessary, for
7329 # example, in the case of _POSIX_SOURCE, which is predefined and required
7330 # on some systems where configure will not decide to define it.
7331 cat >> conftest.vals <<\EOF
7332 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7335 # Break up conftest.vals because some shells have a limit on
7336 # the size of here documents, and old seds have small limits too.
7341 ac_lines=`grep -c . conftest.vals`
7342 # grep -c gives empty output for an empty file on some AIX systems.
7343 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7344 # Write a limited-size here document to conftest.frag.
7345 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7346 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7348 sed -f conftest.frag conftest.in > conftest.out
7350 mv conftest.out conftest.in
7352 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7354 mv conftest.tail conftest.vals
7358 cat >> $CONFIG_STATUS <<\EOF
7359 rm -f conftest.frag conftest.h
7360 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7361 cat conftest.in >> conftest.h
7363 if cmp -s $ac_file conftest.h 2>/dev/null; then
7364 echo "$ac_file is unchanged"
7367 # Remove last slash and all that follows it. Not all systems have dirname.
7368 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7369 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7370 # The file is in a subdirectory.
7371 test ! -d "$ac_dir" && mkdir "$ac_dir"
7374 mv conftest.h $ac_file
7380 cat >> $CONFIG_STATUS <<EOF
7381 ac_sources="java/io/$FILE_DESCRIPTOR java/lang/${PROCESS}Process.java java/lang/nat${PROCESS}Process.cc include/$GCHDR include/$THREADH $SIGNAL_HANDLER"
7382 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"
7385 cat >> $CONFIG_STATUS <<\EOF
7386 srcdir=$ac_given_srcdir
7387 while test -n "$ac_sources"; do
7388 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
7389 set $ac_sources; ac_source=$1; shift; ac_sources=$*
7391 echo "linking $srcdir/$ac_source to $ac_dest"
7393 if test ! -r $srcdir/$ac_source; then
7394 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
7398 # Make relative symlinks.
7399 # Remove last slash and all that follows it. Not all systems have dirname.
7400 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
7401 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
7402 # The dest file is in a subdirectory.
7403 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
7404 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
7405 # A "../" for each directory in $ac_dest_dir_suffix.
7406 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
7408 ac_dest_dir_suffix= ac_dots=
7412 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
7413 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
7416 # Make a symlink if possible; otherwise try a hard link.
7417 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
7418 ln $srcdir/$ac_source $ac_dest; then :
7420 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
7424 cat >> $CONFIG_STATUS <<EOF
7429 with_multisubdir=${with_multisubdir}
7430 ac_configure_args="${multilib_arg} ${ac_configure_args}"
7431 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
7432 libgcj_basedir=${libgcj_basedir}
7437 cat >> $CONFIG_STATUS <<\EOF
7439 for am_file in include/config.h gcj/libgcj-config.h; do
7440 case " $CONFIG_HEADERS " in
7442 echo timestamp > `echo $am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
7445 am_indx=`expr "$am_indx" + 1`
7447 # Only add multilib support code if we just rebuilt top-level Makefile.
7448 case " $CONFIG_FILES " in
7450 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
7454 # Make subdirectories and `.d' files. Look in both srcdir and
7455 # builddir for the .java files.
7458 ( (cd $srcdir && find . -name '*.java' -print) ;
7459 find . -name '*.java' -print) | \
7460 fgrep -v testsuite | \
7461 sed -e 's/\.java/.d/' | \
7463 echo "include $f" >> deps.mk
7466 d=`echo $f | sed -e 's,/[^/]*$,,'`
7468 $libgcj_basedir/../mkinstalldirs $d
7475 chmod +x $CONFIG_STATUS
7476 rm -fr confdefs* $ac_clean_files
7477 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7479 if test "$no_recursion" != yes; then
7481 # Remove --cache-file and --srcdir arguments so they do not pile up.
7482 ac_sub_configure_args=
7484 for ac_arg in $ac_configure_args; do
7485 if test -n "$ac_prev"; then
7490 -cache-file | --cache-file | --cache-fil | --cache-fi \
7491 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
7492 ac_prev=cache_file ;;
7493 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
7494 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
7496 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
7498 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
7500 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
7504 for ac_config_dir in $DIRLTDL; do
7506 # Do not complain, so a configure script can configure whichever
7507 # parts of a large source tree are present.
7508 if test ! -d $srcdir/$ac_config_dir; then
7512 echo configuring in $ac_config_dir
7517 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
7519 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
7527 # A "../" for each directory in /$ac_config_dir.
7528 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
7531 .) # No --srcdir option. We are building in place.
7532 ac_sub_srcdir=$srcdir ;;
7533 /*) # Absolute path.
7534 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
7536 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
7539 # Check for guested configure; otherwise get Cygnus style configure.
7540 if test -f $ac_sub_srcdir/configure; then
7541 ac_sub_configure=$ac_sub_srcdir/configure
7542 elif test -f $ac_sub_srcdir/configure.in; then
7543 ac_sub_configure=$ac_configure
7545 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
7549 # The recursion is here.
7550 if test -n "$ac_sub_configure"; then
7552 # Make the cache file name correct relative to the subdirectory.
7553 case "$cache_file" in
7554 /*) ac_sub_cache_file=$cache_file ;;
7556 ac_sub_cache_file="$ac_dots$cache_file" ;;
7558 case "$ac_given_INSTALL" in
7559 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7560 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7563 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
7564 # The eval makes quoting arguments work.
7565 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
7568 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }