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 --disable-getenv-properties
38 don't set system properties from GCJ_PROPERTIES"
40 --enable-hash-synchronization
41 Use global hash table for monitor locks"
43 --enable-libgcj-debug enable runtime debugging code"
45 --enable-interpreter enable interpreter"
47 --enable-sjlj-exceptions force use of builtin_setjmp for exceptions"
49 --disable-java-net disable java.net"
51 --without-libffi don't use libffi"
53 --disable-jvmpi disable JVMPI support"
55 --with-ecos enable runtime eCos target support"
57 --with-system-zlib use installed libz"
59 --enable-java-gc=TYPE choose garbage collector [boehm]"
61 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
63 --with-x use the X Window System"
65 --enable-java-awt list of AWT peer implementations to be built"
67 # Initialize some variables set by options.
68 # The variables have the same names as the options, with
69 # dashes changed to underlines.
71 cache_file=./config.cache
80 program_transform_name=s,x,x,
88 bindir='${exec_prefix}/bin'
89 sbindir='${exec_prefix}/sbin'
90 libexecdir='${exec_prefix}/libexec'
91 datadir='${prefix}/share'
92 sysconfdir='${prefix}/etc'
93 sharedstatedir='${prefix}/com'
94 localstatedir='${prefix}/var'
95 libdir='${exec_prefix}/lib'
96 includedir='${prefix}/include'
97 oldincludedir='/usr/include'
98 infodir='${prefix}/info'
99 mandir='${prefix}/man'
101 # Initialize some other variables.
104 SHELL=${CONFIG_SHELL-/bin/sh}
105 # Maximum number of lines to put in a shell here document.
112 # If the previous option needs an argument, assign it.
113 if test -n "$ac_prev"; then
114 eval "$ac_prev=\$ac_option"
120 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
124 # Accept the important Cygnus configure options, so we can diagnose typos.
128 -bindir | --bindir | --bindi | --bind | --bin | --bi)
130 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
131 bindir="$ac_optarg" ;;
133 -build | --build | --buil | --bui | --bu)
135 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
136 build="$ac_optarg" ;;
138 -cache-file | --cache-file | --cache-fil | --cache-fi \
139 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
140 ac_prev=cache_file ;;
141 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
142 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
143 cache_file="$ac_optarg" ;;
145 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
147 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
149 datadir="$ac_optarg" ;;
151 -disable-* | --disable-*)
152 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
153 # Reject names that are not valid shell variable names.
154 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
155 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
157 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
158 eval "enable_${ac_feature}=no" ;;
160 -enable-* | --enable-*)
161 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
162 # Reject names that are not valid shell variable names.
163 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
164 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
166 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
171 eval "enable_${ac_feature}='$ac_optarg'" ;;
173 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
174 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
175 | --exec | --exe | --ex)
176 ac_prev=exec_prefix ;;
177 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
178 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
179 | --exec=* | --exe=* | --ex=*)
180 exec_prefix="$ac_optarg" ;;
182 -gas | --gas | --ga | --g)
183 # Obsolete; use --with-gas.
186 -help | --help | --hel | --he)
187 # Omit some internal or obsolete options to make the list less imposing.
188 # This message is too long to be a string in the A/UX 3.1 sh.
190 Usage: configure [options] [host]
191 Options: [defaults in brackets after descriptions]
193 --cache-file=FILE cache test results in FILE
194 --help print this message
195 --no-create do not create output files
196 --quiet, --silent do not print \`checking...' messages
197 --version print the version of autoconf that created configure
198 Directory and file names:
199 --prefix=PREFIX install architecture-independent files in PREFIX
201 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
203 --bindir=DIR user executables in DIR [EPREFIX/bin]
204 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
205 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
206 --datadir=DIR read-only architecture-independent data in DIR
208 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
209 --sharedstatedir=DIR modifiable architecture-independent data in DIR
211 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
212 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
213 --includedir=DIR C header files in DIR [PREFIX/include]
214 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
215 --infodir=DIR info documentation in DIR [PREFIX/info]
216 --mandir=DIR man documentation in DIR [PREFIX/man]
217 --srcdir=DIR find the sources in DIR [configure dir or ..]
218 --program-prefix=PREFIX prepend PREFIX to installed program names
219 --program-suffix=SUFFIX append SUFFIX to installed program names
220 --program-transform-name=PROGRAM
221 run sed PROGRAM on installed program names
225 --build=BUILD configure for building on BUILD [BUILD=HOST]
226 --host=HOST configure for HOST [guessed]
227 --target=TARGET configure for TARGET [TARGET=HOST]
228 Features and packages:
229 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
230 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
231 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
232 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
233 --x-includes=DIR X include files are in DIR
234 --x-libraries=DIR X library files are in DIR
236 if test -n "$ac_help"; then
237 echo "--enable and --with options recognized:$ac_help"
241 -host | --host | --hos | --ho)
243 -host=* | --host=* | --hos=* | --ho=*)
246 -includedir | --includedir | --includedi | --included | --include \
247 | --includ | --inclu | --incl | --inc)
248 ac_prev=includedir ;;
249 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
250 | --includ=* | --inclu=* | --incl=* | --inc=*)
251 includedir="$ac_optarg" ;;
253 -infodir | --infodir | --infodi | --infod | --info | --inf)
255 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
256 infodir="$ac_optarg" ;;
258 -libdir | --libdir | --libdi | --libd)
260 -libdir=* | --libdir=* | --libdi=* | --libd=*)
261 libdir="$ac_optarg" ;;
263 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
264 | --libexe | --libex | --libe)
265 ac_prev=libexecdir ;;
266 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
267 | --libexe=* | --libex=* | --libe=*)
268 libexecdir="$ac_optarg" ;;
270 -localstatedir | --localstatedir | --localstatedi | --localstated \
271 | --localstate | --localstat | --localsta | --localst \
272 | --locals | --local | --loca | --loc | --lo)
273 ac_prev=localstatedir ;;
274 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
275 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
276 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
277 localstatedir="$ac_optarg" ;;
279 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
281 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
282 mandir="$ac_optarg" ;;
285 # Obsolete; use --without-fp.
288 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
292 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
293 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
296 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
297 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
298 | --oldin | --oldi | --old | --ol | --o)
299 ac_prev=oldincludedir ;;
300 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
301 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
302 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
303 oldincludedir="$ac_optarg" ;;
305 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
307 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
308 prefix="$ac_optarg" ;;
310 -program-prefix | --program-prefix | --program-prefi | --program-pref \
311 | --program-pre | --program-pr | --program-p)
312 ac_prev=program_prefix ;;
313 -program-prefix=* | --program-prefix=* | --program-prefi=* \
314 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
315 program_prefix="$ac_optarg" ;;
317 -program-suffix | --program-suffix | --program-suffi | --program-suff \
318 | --program-suf | --program-su | --program-s)
319 ac_prev=program_suffix ;;
320 -program-suffix=* | --program-suffix=* | --program-suffi=* \
321 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
322 program_suffix="$ac_optarg" ;;
324 -program-transform-name | --program-transform-name \
325 | --program-transform-nam | --program-transform-na \
326 | --program-transform-n | --program-transform- \
327 | --program-transform | --program-transfor \
328 | --program-transfo | --program-transf \
329 | --program-trans | --program-tran \
330 | --progr-tra | --program-tr | --program-t)
331 ac_prev=program_transform_name ;;
332 -program-transform-name=* | --program-transform-name=* \
333 | --program-transform-nam=* | --program-transform-na=* \
334 | --program-transform-n=* | --program-transform-=* \
335 | --program-transform=* | --program-transfor=* \
336 | --program-transfo=* | --program-transf=* \
337 | --program-trans=* | --program-tran=* \
338 | --progr-tra=* | --program-tr=* | --program-t=*)
339 program_transform_name="$ac_optarg" ;;
341 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
342 | -silent | --silent | --silen | --sile | --sil)
345 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
347 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
349 sbindir="$ac_optarg" ;;
351 -sharedstatedir | --sharedstatedir | --sharedstatedi \
352 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
353 | --sharedst | --shareds | --shared | --share | --shar \
355 ac_prev=sharedstatedir ;;
356 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
357 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
358 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
360 sharedstatedir="$ac_optarg" ;;
362 -site | --site | --sit)
364 -site=* | --site=* | --sit=*)
367 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
369 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
370 srcdir="$ac_optarg" ;;
372 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
373 | --syscon | --sysco | --sysc | --sys | --sy)
374 ac_prev=sysconfdir ;;
375 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
376 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
377 sysconfdir="$ac_optarg" ;;
379 -target | --target | --targe | --targ | --tar | --ta | --t)
381 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
382 target="$ac_optarg" ;;
384 -v | -verbose | --verbose | --verbos | --verbo | --verb)
387 -version | --version | --versio | --versi | --vers)
388 echo "configure generated by autoconf version 2.13"
392 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
393 # Reject names that are not valid shell variable names.
394 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
395 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
397 ac_package=`echo $ac_package| sed 's/-/_/g'`
402 eval "with_${ac_package}='$ac_optarg'" ;;
404 -without-* | --without-*)
405 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
406 # Reject names that are not valid shell variable names.
407 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
408 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
410 ac_package=`echo $ac_package| sed 's/-/_/g'`
411 eval "with_${ac_package}=no" ;;
414 # Obsolete; use --with-x.
417 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
418 | --x-incl | --x-inc | --x-in | --x-i)
419 ac_prev=x_includes ;;
420 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
421 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
422 x_includes="$ac_optarg" ;;
424 -x-libraries | --x-libraries | --x-librarie | --x-librari \
425 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
426 ac_prev=x_libraries ;;
427 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
428 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
429 x_libraries="$ac_optarg" ;;
431 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
435 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
436 echo "configure: warning: $ac_option: invalid host type" 1>&2
438 if test "x$nonopt" != xNONE; then
439 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
447 if test -n "$ac_prev"; then
448 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
451 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
453 # File descriptor usage:
456 # 2 errors and warnings
457 # 3 some systems may open it to /dev/tty
458 # 4 used on the Kubota Titan
459 # 6 checking for... messages and results
460 # 5 compiler messages saved in config.log
461 if test "$silent" = yes; then
469 This file contains any messages produced by compilers while
470 running configure, to aid debugging if configure makes a mistake.
473 # Strip out --no-create and --no-recursion so they do not pile up.
474 # Also quote any args containing shell metacharacters.
479 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
480 | --no-cr | --no-c) ;;
481 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
482 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
483 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
484 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
485 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
490 # Only set these to C if already set. These must not be set unconditionally
491 # because not all systems understand e.g. LANG=C (notably SCO).
492 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
493 # Non-C LC_CTYPE values break the ctype check.
494 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
495 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
496 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
497 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
499 # confdefs.h avoids OS command line length limits that DEFS can exceed.
500 rm -rf conftest* confdefs.h
501 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
504 # A filename unique to this package, relative to the directory that
505 # configure is in, which we can look for to find out if srcdir is correct.
506 ac_unique_file=java/lang/System.java
508 # Find the source files, if location was not specified.
509 if test -z "$srcdir"; then
510 ac_srcdir_defaulted=yes
511 # Try the directory containing this script, then its parent.
513 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
514 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
516 if test ! -r $srcdir/$ac_unique_file; then
520 ac_srcdir_defaulted=no
522 if test ! -r $srcdir/$ac_unique_file; then
523 if test "$ac_srcdir_defaulted" = yes; then
524 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
526 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
529 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
531 # Prefer explicitly selected file to automatically selected ones.
532 if test -z "$CONFIG_SITE"; then
533 if test "x$prefix" != xNONE; then
534 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
536 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
539 for ac_site_file in $CONFIG_SITE; do
540 if test -r "$ac_site_file"; then
541 echo "loading site script $ac_site_file"
546 if test -r "$cache_file"; then
547 echo "loading cache $cache_file"
550 echo "creating cache $cache_file"
555 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
556 ac_cpp='$CPP $CPPFLAGS'
557 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
558 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
559 cross_compiling=$ac_cv_prog_cc_cross
563 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
564 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
565 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
572 ac_n= ac_c='\c' ac_t=
577 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
578 echo "configure:579: checking whether ln -s works" >&5
579 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
580 echo $ac_n "(cached) $ac_c" 1>&6
583 if ln -s X conftestdata 2>/dev/null
586 ac_cv_prog_LN_S="ln -s"
591 LN_S="$ac_cv_prog_LN_S"
592 if test "$ac_cv_prog_LN_S" = "ln -s"; then
593 echo "$ac_t""yes" 1>&6
595 echo "$ac_t""no" 1>&6
599 # Check whether --with-target-subdir or --without-target-subdir was given.
600 if test "${with_target_subdir+set}" = set; then
601 withval="$with_target_subdir"
605 # Check whether --with-cross-host or --without-cross-host was given.
606 if test "${with_cross_host+set}" = set; then
607 withval="$with_cross_host"
612 # Find a good install program. We prefer a C program (faster),
613 # so one script is as good as another. But avoid the broken or
614 # incompatible versions:
615 # SysV /etc/install, /usr/sbin/install
616 # SunOS /usr/etc/install
619 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
620 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
621 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
622 # ./install, which can be erroneously created by make from ./install.sh.
623 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
624 echo "configure:625: checking for a BSD compatible install" >&5
625 if test -z "$INSTALL"; then
626 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
627 echo $ac_n "(cached) $ac_c" 1>&6
629 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
630 for ac_dir in $PATH; do
631 # Account for people who put trailing slashes in PATH elements.
633 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
635 # OSF1 and SCO ODT 3.0 have their own names for install.
636 # Don't use installbsd from OSF since it installs stuff as root
638 for ac_prog in ginstall scoinst install; do
639 if test -f $ac_dir/$ac_prog; then
640 if test $ac_prog = install &&
641 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
642 # AIX install. It has an incompatible calling convention.
645 ac_cv_path_install="$ac_dir/$ac_prog -c"
656 if test "${ac_cv_path_install+set}" = set; then
657 INSTALL="$ac_cv_path_install"
659 # As a last resort, use the slow shell script. We don't cache a
660 # path for INSTALL within a source directory, because that will
661 # break other packages using the cache if that directory is
662 # removed, or if the path is relative.
663 INSTALL="$ac_install_sh"
666 echo "$ac_t""$INSTALL" 1>&6
668 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
669 # It thinks the first close brace ends the variable substitution.
670 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
672 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
674 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
676 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
677 echo "configure:678: checking whether build environment is sane" >&5
680 echo timestamp > conftestfile
681 # Do `set' in a subshell so we don't clobber the current shell's
682 # arguments. Must try -L first in case configure is actually a
683 # symlink; some systems play weird games with the mod time of symlinks
684 # (eg FreeBSD returns the mod time of the symlink's containing
687 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
688 if test "$*" = "X"; then
690 set X `ls -t $srcdir/configure conftestfile`
692 if test "$*" != "X $srcdir/configure conftestfile" \
693 && test "$*" != "X conftestfile $srcdir/configure"; then
695 # If neither matched, then we have a broken ls. This can happen
696 # if, for instance, CONFIG_SHELL is bash and it inherits a
697 # broken ls alias from the environment. This has actually
698 # happened. Such a system could not be considered "sane".
699 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
700 alias in your environment" 1>&2; exit 1; }
703 test "$2" = conftestfile
709 { echo "configure: error: newly created file is older than distributed files!
710 Check your system clock" 1>&2; exit 1; }
713 echo "$ac_t""yes" 1>&6
714 if test "$program_transform_name" = s,x,x,; then
715 program_transform_name=
717 # Double any \ or $. echo might interpret backslashes.
718 cat <<\EOF_SED > conftestsed
719 s,\\,\\\\,g; s,\$,$$,g
721 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
724 test "$program_prefix" != NONE &&
725 program_transform_name="s,^,${program_prefix},; $program_transform_name"
726 # Use a double $ so make ignores it.
727 test "$program_suffix" != NONE &&
728 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
730 # sed with no file args requires a program.
731 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
733 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
734 echo "configure:735: checking whether ${MAKE-make} sets \${MAKE}" >&5
735 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
736 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
737 echo $ac_n "(cached) $ac_c" 1>&6
739 cat > conftestmake <<\EOF
741 @echo 'ac_maketemp="${MAKE}"'
743 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
744 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
745 if test -n "$ac_maketemp"; then
746 eval ac_cv_prog_make_${ac_make}_set=yes
748 eval ac_cv_prog_make_${ac_make}_set=no
752 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
753 echo "$ac_t""yes" 1>&6
756 echo "$ac_t""no" 1>&6
757 SET_MAKE="MAKE=${MAKE-make}"
760 if test $host != $build; then
761 ac_tool_prefix=${host_alias}-
766 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
767 echo "configure:768: checking for Cygwin environment" >&5
768 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
769 echo $ac_n "(cached) $ac_c" 1>&6
771 cat > conftest.$ac_ext <<EOF
772 #line 773 "configure"
773 #include "confdefs.h"
778 #define __CYGWIN__ __CYGWIN32__
783 if { (eval echo configure:784: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
787 echo "configure: failed program was:" >&5
788 cat conftest.$ac_ext >&5
796 echo "$ac_t""$ac_cv_cygwin" 1>&6
798 test "$ac_cv_cygwin" = yes && CYGWIN=yes
799 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
800 echo "configure:801: checking for mingw32 environment" >&5
801 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
802 echo $ac_n "(cached) $ac_c" 1>&6
804 cat > conftest.$ac_ext <<EOF
805 #line 806 "configure"
806 #include "confdefs.h"
812 if { (eval echo configure:813: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
816 echo "configure: failed program was:" >&5
817 cat conftest.$ac_ext >&5
825 echo "$ac_t""$ac_cv_mingw32" 1>&6
827 test "$ac_cv_mingw32" = yes && MINGW32=yes
829 # Check whether --enable-multilib or --disable-multilib was given.
830 if test "${enable_multilib+set}" = set; then
831 enableval="$enable_multilib"
832 case "${enableval}" in
835 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
842 # When building with srcdir == objdir, links to the source files will
843 # be created in directories within the target_subdir. We have to
844 # adjust toplevel_srcdir accordingly, so that configure finds
845 # install-sh and other auxiliary files that live in the top-level
847 if test "${srcdir}" = "."; then
848 if test -z "${with_target_subdir}"; then
851 if test "${with_target_subdir}" != "."; then
852 toprel="${with_multisrctop}../.."
854 toprel="${with_multisrctop}.."
861 libgcj_basedir=$srcdir/$toprel/./libjava
865 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
866 if test -f $ac_dir/install-sh; then
868 ac_install_sh="$ac_aux_dir/install-sh -c"
870 elif test -f $ac_dir/install.sh; then
872 ac_install_sh="$ac_aux_dir/install.sh -c"
876 if test -z "$ac_aux_dir"; then
877 { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
879 ac_config_guess=$ac_aux_dir/config.guess
880 ac_config_sub=$ac_aux_dir/config.sub
881 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
884 # This overrides the previous occurrence for automake, but not for
885 # autoconf, which is exactly what we want.
887 for ac_dir in .. $srcdir/..; do
888 if test -f $ac_dir/install-sh; then
890 ac_install_sh="$ac_aux_dir/install-sh -c"
892 elif test -f $ac_dir/install.sh; then
894 ac_install_sh="$ac_aux_dir/install.sh -c"
898 if test -z "$ac_aux_dir"; then
899 { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
901 ac_config_guess=$ac_aux_dir/config.guess
902 ac_config_sub=$ac_aux_dir/config.sub
903 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
907 # This works around an automake problem.
908 mkinstalldirs="`cd $ac_aux_dir && pwd`/mkinstalldirs"
912 # Do some error checking and defaulting for the host and target type.
914 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
917 # 1. You are not allowed to specify --host, --target, and nonopt at the
919 # 2. Host defaults to nonopt.
920 # 3. If nonopt is not specified, then host defaults to the current host,
921 # as determined by config.guess.
922 # 4. Target and build default to nonopt.
923 # 5. If nonopt is not specified, then target and build default to host.
925 # The aliases save the names the user supplied, while $host etc.
926 # will get canonicalized.
927 case $host---$target---$nonopt in
928 NONE---*---* | *---NONE---* | *---*---NONE) ;;
929 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
933 # Make sure we can run config.sub.
934 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
935 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
938 echo $ac_n "checking host system type""... $ac_c" 1>&6
939 echo "configure:940: checking host system type" >&5
942 case "$host_alias" in
946 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
947 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
949 *) host_alias=$nonopt ;;
953 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
954 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
955 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
956 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
957 echo "$ac_t""$host" 1>&6
959 echo $ac_n "checking target system type""... $ac_c" 1>&6
960 echo "configure:961: checking target system type" >&5
963 case "$target_alias" in
966 NONE) target_alias=$host_alias ;;
967 *) target_alias=$nonopt ;;
971 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
972 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
973 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
974 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
975 echo "$ac_t""$target" 1>&6
977 echo $ac_n "checking build system type""... $ac_c" 1>&6
978 echo "configure:979: checking build system type" >&5
981 case "$build_alias" in
984 NONE) build_alias=$host_alias ;;
985 *) build_alias=$nonopt ;;
989 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
990 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
991 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
992 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
993 echo "$ac_t""$build" 1>&6
995 test "$host_alias" != "$target_alias" &&
996 test "$program_prefix$program_suffix$program_transform_name" = \
998 program_prefix=${target_alias}-
1004 # Extract the first word of "gcc", so it can be a program name with args.
1005 set dummy gcc; ac_word=$2
1006 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1007 echo "configure:1008: checking for $ac_word" >&5
1008 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1009 echo $ac_n "(cached) $ac_c" 1>&6
1011 if test -n "$CC"; then
1012 ac_cv_prog_CC="$CC" # Let the user override the test.
1014 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1016 for ac_dir in $ac_dummy; do
1017 test -z "$ac_dir" && ac_dir=.
1018 if test -f $ac_dir/$ac_word; then
1027 if test -n "$CC"; then
1028 echo "$ac_t""$CC" 1>&6
1030 echo "$ac_t""no" 1>&6
1033 if test -z "$CC"; then
1034 # Extract the first word of "cc", so it can be a program name with args.
1035 set dummy cc; ac_word=$2
1036 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1037 echo "configure:1038: checking for $ac_word" >&5
1038 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1039 echo $ac_n "(cached) $ac_c" 1>&6
1041 if test -n "$CC"; then
1042 ac_cv_prog_CC="$CC" # Let the user override the test.
1044 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1047 for ac_dir in $ac_dummy; do
1048 test -z "$ac_dir" && ac_dir=.
1049 if test -f $ac_dir/$ac_word; then
1050 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1051 ac_prog_rejected=yes
1059 if test $ac_prog_rejected = yes; then
1060 # We found a bogon in the path, so make sure we never use it.
1061 set dummy $ac_cv_prog_CC
1063 if test $# -gt 0; then
1064 # We chose a different compiler from the bogus one.
1065 # However, it has the same basename, so the bogon will be chosen
1066 # first if we set CC to just the basename; use the full file name.
1068 set dummy "$ac_dir/$ac_word" "$@"
1076 if test -n "$CC"; then
1077 echo "$ac_t""$CC" 1>&6
1079 echo "$ac_t""no" 1>&6
1082 if test -z "$CC"; then
1083 case "`uname -s`" in
1085 # Extract the first word of "cl", so it can be a program name with args.
1086 set dummy cl; ac_word=$2
1087 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1088 echo "configure:1089: checking for $ac_word" >&5
1089 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1090 echo $ac_n "(cached) $ac_c" 1>&6
1092 if test -n "$CC"; then
1093 ac_cv_prog_CC="$CC" # Let the user override the test.
1095 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1097 for ac_dir in $ac_dummy; do
1098 test -z "$ac_dir" && ac_dir=.
1099 if test -f $ac_dir/$ac_word; then
1108 if test -n "$CC"; then
1109 echo "$ac_t""$CC" 1>&6
1111 echo "$ac_t""no" 1>&6
1116 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1120 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1121 echo "configure:1122: checking whether we are using GNU C" >&5
1122 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1123 echo $ac_n "(cached) $ac_c" 1>&6
1125 cat > conftest.c <<EOF
1130 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1131: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1137 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1139 if test $ac_cv_prog_gcc = yes; then
1145 ac_test_CFLAGS="${CFLAGS+set}"
1146 ac_save_CFLAGS="$CFLAGS"
1148 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1149 echo "configure:1150: checking whether ${CC-cc} accepts -g" >&5
1150 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1151 echo $ac_n "(cached) $ac_c" 1>&6
1153 echo 'void f(){}' > conftest.c
1154 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1163 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1164 if test "$ac_test_CFLAGS" = set; then
1165 CFLAGS="$ac_save_CFLAGS"
1166 elif test $ac_cv_prog_cc_g = yes; then
1167 if test "$GCC" = yes; then
1173 if test "$GCC" = yes; then
1180 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1182 # Extract the first word of "$ac_prog", so it can be a program name with args.
1183 set dummy $ac_prog; ac_word=$2
1184 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1185 echo "configure:1186: checking for $ac_word" >&5
1186 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1187 echo $ac_n "(cached) $ac_c" 1>&6
1189 if test -n "$CXX"; then
1190 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1192 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1194 for ac_dir in $ac_dummy; do
1195 test -z "$ac_dir" && ac_dir=.
1196 if test -f $ac_dir/$ac_word; then
1197 ac_cv_prog_CXX="$ac_prog"
1204 CXX="$ac_cv_prog_CXX"
1205 if test -n "$CXX"; then
1206 echo "$ac_t""$CXX" 1>&6
1208 echo "$ac_t""no" 1>&6
1211 test -n "$CXX" && break
1213 test -n "$CXX" || CXX="gcc"
1217 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1218 echo "configure:1219: checking whether we are using GNU C++" >&5
1219 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1220 echo $ac_n "(cached) $ac_c" 1>&6
1222 cat > conftest.C <<EOF
1227 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1228: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1234 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1236 if test $ac_cv_prog_gxx = yes; then
1242 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1243 ac_save_CXXFLAGS="$CXXFLAGS"
1245 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1246 echo "configure:1247: checking whether ${CXX-g++} accepts -g" >&5
1247 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1248 echo $ac_n "(cached) $ac_c" 1>&6
1250 echo 'void f(){}' > conftest.cc
1251 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1252 ac_cv_prog_cxx_g=yes
1260 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1261 if test "$ac_test_CXXFLAGS" = set; then
1262 CXXFLAGS="$ac_save_CXXFLAGS"
1263 elif test $ac_cv_prog_cxx_g = yes; then
1264 if test "$GXX" = yes; then
1270 if test "$GXX" = yes; then
1284 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1285 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1287 cat >> confdefs.h <<EOF
1288 #define PACKAGE "$PACKAGE"
1291 cat >> confdefs.h <<EOF
1292 #define VERSION "$VERSION"
1297 missing_dir=`cd $ac_aux_dir && pwd`
1298 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1299 echo "configure:1300: checking for working aclocal" >&5
1300 # Run test in a subshell; some versions of sh will print an error if
1301 # an executable is not found, even if stderr is redirected.
1302 # Redirect stdin to placate older versions of autoconf. Sigh.
1303 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1305 echo "$ac_t""found" 1>&6
1307 ACLOCAL="$missing_dir/missing aclocal"
1308 echo "$ac_t""missing" 1>&6
1311 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1312 echo "configure:1313: checking for working autoconf" >&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 (autoconf --version) < /dev/null > /dev/null 2>&1; then
1318 echo "$ac_t""found" 1>&6
1320 AUTOCONF="$missing_dir/missing autoconf"
1321 echo "$ac_t""missing" 1>&6
1324 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1325 echo "configure:1326: checking for working automake" >&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 (automake --version) < /dev/null > /dev/null 2>&1; then
1331 echo "$ac_t""found" 1>&6
1333 AUTOMAKE="$missing_dir/missing automake"
1334 echo "$ac_t""missing" 1>&6
1337 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1338 echo "configure:1339: checking for working autoheader" >&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 (autoheader --version) < /dev/null > /dev/null 2>&1; then
1343 AUTOHEADER=autoheader
1344 echo "$ac_t""found" 1>&6
1346 AUTOHEADER="$missing_dir/missing autoheader"
1347 echo "$ac_t""missing" 1>&6
1350 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1351 echo "configure:1352: checking for working makeinfo" >&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 (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1357 echo "$ac_t""found" 1>&6
1359 MAKEINFO="$missing_dir/missing makeinfo"
1360 echo "$ac_t""missing" 1>&6
1365 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we don't
1366 # run it explicitly here, it will be run implicitly before
1367 # LIBGCJ_CONFIGURE, which doesn't work because that means that it will
1368 # be run before AC_CANONICAL_HOST.
1369 echo $ac_n "checking build system type""... $ac_c" 1>&6
1370 echo "configure:1371: checking build system type" >&5
1373 case "$build_alias" in
1376 NONE) build_alias=$host_alias ;;
1377 *) build_alias=$nonopt ;;
1381 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1382 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1383 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1384 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1385 echo "$ac_t""$build" 1>&6
1388 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1389 set dummy ${ac_tool_prefix}as; ac_word=$2
1390 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1391 echo "configure:1392: checking for $ac_word" >&5
1392 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1393 echo $ac_n "(cached) $ac_c" 1>&6
1395 if test -n "$AS"; then
1396 ac_cv_prog_AS="$AS" # Let the user override the test.
1398 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1400 for ac_dir in $ac_dummy; do
1401 test -z "$ac_dir" && ac_dir=.
1402 if test -f $ac_dir/$ac_word; then
1403 ac_cv_prog_AS="${ac_tool_prefix}as"
1408 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1412 if test -n "$AS"; then
1413 echo "$ac_t""$AS" 1>&6
1415 echo "$ac_t""no" 1>&6
1420 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1421 set dummy ${ac_tool_prefix}ar; ac_word=$2
1422 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1423 echo "configure:1424: checking for $ac_word" >&5
1424 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1425 echo $ac_n "(cached) $ac_c" 1>&6
1427 if test -n "$AR"; then
1428 ac_cv_prog_AR="$AR" # Let the user override the test.
1430 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1432 for ac_dir in $ac_dummy; do
1433 test -z "$ac_dir" && ac_dir=.
1434 if test -f $ac_dir/$ac_word; then
1435 ac_cv_prog_AR="${ac_tool_prefix}ar"
1440 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1444 if test -n "$AR"; then
1445 echo "$ac_t""$AR" 1>&6
1447 echo "$ac_t""no" 1>&6
1452 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1453 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1454 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1455 echo "configure:1456: checking for $ac_word" >&5
1456 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1457 echo $ac_n "(cached) $ac_c" 1>&6
1459 if test -n "$RANLIB"; then
1460 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1462 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1464 for ac_dir in $ac_dummy; do
1465 test -z "$ac_dir" && ac_dir=.
1466 if test -f $ac_dir/$ac_word; then
1467 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1474 RANLIB="$ac_cv_prog_RANLIB"
1475 if test -n "$RANLIB"; then
1476 echo "$ac_t""$RANLIB" 1>&6
1478 echo "$ac_t""no" 1>&6
1482 if test -z "$ac_cv_prog_RANLIB"; then
1483 if test -n "$ac_tool_prefix"; then
1484 # Extract the first word of "ranlib", so it can be a program name with args.
1485 set dummy ranlib; ac_word=$2
1486 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1487 echo "configure:1488: checking for $ac_word" >&5
1488 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1489 echo $ac_n "(cached) $ac_c" 1>&6
1491 if test -n "$RANLIB"; then
1492 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1494 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1496 for ac_dir in $ac_dummy; do
1497 test -z "$ac_dir" && ac_dir=.
1498 if test -f $ac_dir/$ac_word; then
1499 ac_cv_prog_RANLIB="ranlib"
1504 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1507 RANLIB="$ac_cv_prog_RANLIB"
1508 if test -n "$RANLIB"; then
1509 echo "$ac_t""$RANLIB" 1>&6
1511 echo "$ac_t""no" 1>&6
1520 # Find a good install program. We prefer a C program (faster),
1521 # so one script is as good as another. But avoid the broken or
1522 # incompatible versions:
1523 # SysV /etc/install, /usr/sbin/install
1524 # SunOS /usr/etc/install
1525 # IRIX /sbin/install
1527 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1528 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1529 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1530 # ./install, which can be erroneously created by make from ./install.sh.
1531 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1532 echo "configure:1533: checking for a BSD compatible install" >&5
1533 if test -z "$INSTALL"; then
1534 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1535 echo $ac_n "(cached) $ac_c" 1>&6
1537 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1538 for ac_dir in $PATH; do
1539 # Account for people who put trailing slashes in PATH elements.
1541 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1543 # OSF1 and SCO ODT 3.0 have their own names for install.
1544 # Don't use installbsd from OSF since it installs stuff as root
1546 for ac_prog in ginstall scoinst install; do
1547 if test -f $ac_dir/$ac_prog; then
1548 if test $ac_prog = install &&
1549 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1550 # AIX install. It has an incompatible calling convention.
1553 ac_cv_path_install="$ac_dir/$ac_prog -c"
1564 if test "${ac_cv_path_install+set}" = set; then
1565 INSTALL="$ac_cv_path_install"
1567 # As a last resort, use the slow shell script. We don't cache a
1568 # path for INSTALL within a source directory, because that will
1569 # break other packages using the cache if that directory is
1570 # removed, or if the path is relative.
1571 INSTALL="$ac_install_sh"
1574 echo "$ac_t""$INSTALL" 1>&6
1576 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1577 # It thinks the first close brace ends the variable substitution.
1578 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1580 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1582 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1585 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1586 echo "configure:1587: checking whether to enable maintainer-specific portions of Makefiles" >&5
1587 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1588 if test "${enable_maintainer_mode+set}" = set; then
1589 enableval="$enable_maintainer_mode"
1590 USE_MAINTAINER_MODE=$enableval
1592 USE_MAINTAINER_MODE=no
1595 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1598 if test $USE_MAINTAINER_MODE = yes; then
1599 MAINTAINER_MODE_TRUE=
1600 MAINTAINER_MODE_FALSE='#'
1602 MAINTAINER_MODE_TRUE='#'
1603 MAINTAINER_MODE_FALSE=
1605 MAINT=$MAINTAINER_MODE_TRUE
1609 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1610 # at least currently, we never actually build a program, so we never
1611 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1612 # fails, because we are probably configuring with a cross compiler
1613 # which cant create executables. So we include AC_EXEEXT to keep
1614 # automake happy, but we don't execute it, since we don't care about
1617 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1618 # to nothing, so nothing would remain between `then' and `fi' if it
1619 # were not for the `:' below.
1623 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1624 echo "configure:1625: checking for executable suffix" >&5
1625 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1626 echo $ac_n "(cached) $ac_c" 1>&6
1628 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1632 echo 'int main () { return 0; }' > conftest.$ac_ext
1634 if { (eval echo configure:1635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1635 for file in conftest.*; do
1637 *.c | *.o | *.obj) ;;
1638 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1642 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1645 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1650 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1651 echo "$ac_t""${ac_cv_exeext}" 1>&6
1656 # configure.host sets the following important variables
1657 # libgcj_cflags - host specific C compiler flags
1658 # libgcj_cxxflags - host specific C++ compiler flags
1659 # libgcj_javaflags - host specific Java compiler flags
1665 . ${srcdir}/configure.host
1667 LIBGCJ_CFLAGS="${libgcj_cflags}"
1668 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
1669 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
1679 # Only use libltdl for native builds.
1680 if test -z "${with_cross_host}"; then
1681 case $enable_ltdl_convenience in
1682 no) { echo "configure: error: this package needs a convenience libltdl" 1>&2; exit 1; } ;;
1683 "") enable_ltdl_convenience=yes
1684 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
1686 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
1687 INCLTDL='-I${top_srcdir}/''libltdl'
1691 cat >> confdefs.h <<\EOF
1695 # Sigh. Libtool's macro doesn't do the right thing.
1696 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
1697 # FIXME: this is a hack.
1698 sub_auxdir="`cd $ac_aux_dir && pwd`"
1699 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
1704 # Check whether --enable-shared or --disable-shared was given.
1705 if test "${enable_shared+set}" = set; then
1706 enableval="$enable_shared"
1707 p=${PACKAGE-default}
1709 yes) enable_shared=yes ;;
1710 no) enable_shared=no ;;
1713 # Look at the argument we got. We use all the common list separators.
1714 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1715 for pkg in $enableval; do
1716 if test "X$pkg" = "X$p"; then
1727 # Check whether --enable-static or --disable-static was given.
1728 if test "${enable_static+set}" = set; then
1729 enableval="$enable_static"
1730 p=${PACKAGE-default}
1732 yes) enable_static=yes ;;
1733 no) enable_static=no ;;
1736 # Look at the argument we got. We use all the common list separators.
1737 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1738 for pkg in $enableval; do
1739 if test "X$pkg" = "X$p"; then
1750 # Check whether --enable-fast-install or --disable-fast-install was given.
1751 if test "${enable_fast_install+set}" = set; then
1752 enableval="$enable_fast_install"
1753 p=${PACKAGE-default}
1755 yes) enable_fast_install=yes ;;
1756 no) enable_fast_install=no ;;
1758 enable_fast_install=no
1759 # Look at the argument we got. We use all the common list separators.
1760 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1761 for pkg in $enableval; do
1762 if test "X$pkg" = "X$p"; then
1763 enable_fast_install=yes
1770 enable_fast_install=yes
1773 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1774 if test "${with_gnu_ld+set}" = set; then
1775 withval="$with_gnu_ld"
1776 test "$withval" = no || with_gnu_ld=yes
1782 if test "$GCC" = yes; then
1783 # Check if gcc -print-prog-name=ld gives a path.
1784 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1785 echo "configure:1786: checking for ld used by GCC" >&5
1788 # gcc leaves a trailing carriage return which upsets mingw
1789 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1791 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1794 # Accept absolute paths.
1795 [\\/]* | [A-Za-z]:[\\/]*)
1796 re_direlt='/[^/][^/]*/\.\./'
1797 # Canonicalize the path of ld
1798 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1799 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1800 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1802 test -z "$LD" && LD="$ac_prog"
1805 # If it fails, then pretend we aren't using GCC.
1809 # If it is relative, then search for the first ld in PATH.
1813 elif test "$with_gnu_ld" = yes; then
1814 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1815 echo "configure:1816: checking for GNU ld" >&5
1817 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1818 echo "configure:1819: checking for non-GNU ld" >&5
1820 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1821 echo $ac_n "(cached) $ac_c" 1>&6
1823 if test -z "$LD"; then
1824 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1825 for ac_dir in $PATH; do
1826 test -z "$ac_dir" && ac_dir=.
1827 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1828 lt_cv_path_LD="$ac_dir/$ac_prog"
1829 # Check to see if the program is GNU ld. I'd rather use --version,
1830 # but apparently some GNU ld's only accept -v.
1831 # Break only if it was the GNU/non-GNU ld that we prefer.
1832 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1833 test "$with_gnu_ld" != no && break
1835 test "$with_gnu_ld" != yes && break
1841 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1846 if test -n "$LD"; then
1847 echo "$ac_t""$LD" 1>&6
1849 echo "$ac_t""no" 1>&6
1851 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1852 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1853 echo "configure:1854: checking if the linker ($LD) is GNU ld" >&5
1854 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1855 echo $ac_n "(cached) $ac_c" 1>&6
1857 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1858 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1859 lt_cv_prog_gnu_ld=yes
1861 lt_cv_prog_gnu_ld=no
1865 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1866 with_gnu_ld=$lt_cv_prog_gnu_ld
1869 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1870 echo "configure:1871: checking for $LD option to reload object files" >&5
1871 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1872 echo $ac_n "(cached) $ac_c" 1>&6
1874 lt_cv_ld_reload_flag='-r'
1877 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1878 reload_flag=$lt_cv_ld_reload_flag
1879 test -n "$reload_flag" && reload_flag=" $reload_flag"
1881 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1882 echo "configure:1883: checking for BSD-compatible nm" >&5
1883 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1884 echo $ac_n "(cached) $ac_c" 1>&6
1886 if test -n "$NM"; then
1887 # Let the user override the test.
1890 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1891 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1892 test -z "$ac_dir" && ac_dir=.
1893 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1894 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1895 # Check to see if the nm accepts a BSD-compat flag.
1896 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1897 # nm: unknown option "B" ignored
1898 # Tru64's nm complains that /dev/null is an invalid object file
1899 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1900 lt_cv_path_NM="$tmp_nm -B"
1902 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1903 lt_cv_path_NM="$tmp_nm -p"
1906 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1907 continue # so that we can try to find one that supports BSD flags
1912 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1917 echo "$ac_t""$NM" 1>&6
1919 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1920 echo "configure:1921: checking how to recognise dependant libraries" >&5
1921 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1922 echo $ac_n "(cached) $ac_c" 1>&6
1924 lt_cv_file_magic_cmd='$MAGIC_CMD'
1925 lt_cv_file_magic_test_file=
1926 lt_cv_deplibs_check_method='unknown'
1927 # Need to set the preceding variable on all platforms that support
1928 # interlibrary dependencies.
1929 # 'none' -- dependencies not supported.
1930 # `unknown' -- same as none, but documents that we really don't know.
1931 # 'pass_all' -- all dependencies passed with no checks.
1932 # 'test_compile' -- check by making test program.
1933 # 'file_magic [regex]' -- check by looking for files in library path
1934 # which responds to the $file_magic_cmd with a given egrep regex.
1935 # If you have `file' or equivalent on your system and you're not sure
1936 # whether `pass_all' will *always* work, you probably want this one.
1940 lt_cv_deplibs_check_method=pass_all
1944 lt_cv_deplibs_check_method=pass_all
1948 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1949 lt_cv_file_magic_cmd='/usr/bin/file -L'
1950 lt_cv_file_magic_test_file=/shlib/libc.so
1953 cygwin* | mingw* |pw32*)
1954 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1955 lt_cv_file_magic_cmd='$OBJDUMP -f'
1958 darwin* | rhapsody*)
1959 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1960 lt_cv_file_magic_cmd='/usr/bin/file -L'
1962 rhapsody* | darwin1.012)
1963 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1966 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1972 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1975 # Not sure whether the presence of OpenBSD here was a mistake.
1976 # Let's accept both of them until this is cleared up.
1977 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1978 lt_cv_file_magic_cmd=/usr/bin/file
1979 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1983 lt_cv_deplibs_check_method=pass_all
1988 lt_cv_deplibs_check_method=pass_all
1992 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1993 lt_cv_file_magic_cmd=/usr/bin/file
1994 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2000 # this will be overridden with pass_all, but let us keep it just in case
2001 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2005 *-32|*"-32 ") libmagic=32-bit;;
2006 *-n32|*"-n32 ") libmagic=N32;;
2007 *-64|*"-64 ") libmagic=64-bit;;
2008 *) libmagic=never-match;;
2010 # this will be overridden with pass_all, but let us keep it just in case
2011 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2014 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2015 lt_cv_deplibs_check_method=pass_all
2018 # This must be Linux ELF.
2021 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2022 lt_cv_deplibs_check_method=pass_all ;;
2024 # glibc up to 2.1.1 does not perform some relocations on ARM
2025 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2027 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2031 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2032 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2034 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2039 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2040 lt_cv_file_magic_cmd=/usr/bin/file
2041 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2044 osf3* | osf4* | osf5*)
2045 # this will be overridden with pass_all, but let us keep it just in case
2046 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2047 lt_cv_file_magic_test_file=/shlib/libc.so
2048 lt_cv_deplibs_check_method=pass_all
2052 lt_cv_deplibs_check_method=pass_all
2056 lt_cv_deplibs_check_method=pass_all
2057 lt_cv_file_magic_test_file=/lib/libc.so
2060 sysv5uw[78]* | sysv4*uw2*)
2061 lt_cv_deplibs_check_method=pass_all
2064 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2065 case $host_vendor in
2067 lt_cv_deplibs_check_method=pass_all
2070 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]'
2071 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2079 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2080 file_magic_cmd=$lt_cv_file_magic_cmd
2081 deplibs_check_method=$lt_cv_deplibs_check_method
2083 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2084 echo "configure:2085: checking for object suffix" >&5
2085 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2086 echo $ac_n "(cached) $ac_c" 1>&6
2089 echo 'int i = 1;' > conftest.$ac_ext
2090 if { (eval echo configure:2091: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2091 for ac_file in conftest.*; do
2094 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2098 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2103 echo "$ac_t""$ac_cv_objext" 1>&6
2104 OBJEXT=$ac_cv_objext
2105 ac_objext=$ac_cv_objext
2107 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2109 # Only perform the check for file, if the check method requires it
2110 case $deplibs_check_method in
2112 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2113 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2114 echo "configure:2115: checking for ${ac_tool_prefix}file" >&5
2115 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2116 echo $ac_n "(cached) $ac_c" 1>&6
2120 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2123 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2126 ac_save_MAGIC_CMD="$MAGIC_CMD"
2127 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2128 ac_dummy="/usr/bin:$PATH"
2129 for ac_dir in $ac_dummy; do
2130 test -z "$ac_dir" && ac_dir=.
2131 if test -f $ac_dir/${ac_tool_prefix}file; then
2132 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2133 if test -n "$file_magic_test_file"; then
2134 case $deplibs_check_method in
2136 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2137 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2138 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2139 egrep "$file_magic_regex" > /dev/null; then
2144 *** Warning: the command libtool uses to detect shared libraries,
2145 *** $file_magic_cmd, produces output that libtool cannot recognize.
2146 *** The result is that libtool may fail to recognize shared libraries
2147 *** as such. This will affect the creation of libtool libraries that
2148 *** depend on shared libraries, but programs linked with such libtool
2149 *** libraries will work regardless of this problem. Nevertheless, you
2150 *** may want to report the problem to your system manager and/or to
2151 *** bug-libtool@gnu.org
2161 MAGIC_CMD="$ac_save_MAGIC_CMD"
2166 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2167 if test -n "$MAGIC_CMD"; then
2168 echo "$ac_t""$MAGIC_CMD" 1>&6
2170 echo "$ac_t""no" 1>&6
2173 if test -z "$lt_cv_path_MAGIC_CMD"; then
2174 if test -n "$ac_tool_prefix"; then
2175 echo $ac_n "checking for file""... $ac_c" 1>&6
2176 echo "configure:2177: checking for file" >&5
2177 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2178 echo $ac_n "(cached) $ac_c" 1>&6
2182 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2185 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2188 ac_save_MAGIC_CMD="$MAGIC_CMD"
2189 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2190 ac_dummy="/usr/bin:$PATH"
2191 for ac_dir in $ac_dummy; do
2192 test -z "$ac_dir" && ac_dir=.
2193 if test -f $ac_dir/file; then
2194 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2195 if test -n "$file_magic_test_file"; then
2196 case $deplibs_check_method in
2198 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2199 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2200 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2201 egrep "$file_magic_regex" > /dev/null; then
2206 *** Warning: the command libtool uses to detect shared libraries,
2207 *** $file_magic_cmd, produces output that libtool cannot recognize.
2208 *** The result is that libtool may fail to recognize shared libraries
2209 *** as such. This will affect the creation of libtool libraries that
2210 *** depend on shared libraries, but programs linked with such libtool
2211 *** libraries will work regardless of this problem. Nevertheless, you
2212 *** may want to report the problem to your system manager and/or to
2213 *** bug-libtool@gnu.org
2223 MAGIC_CMD="$ac_save_MAGIC_CMD"
2228 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2229 if test -n "$MAGIC_CMD"; then
2230 echo "$ac_t""$MAGIC_CMD" 1>&6
2232 echo "$ac_t""no" 1>&6
2244 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2245 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2246 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2247 echo "configure:2248: checking for $ac_word" >&5
2248 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2249 echo $ac_n "(cached) $ac_c" 1>&6
2251 if test -n "$RANLIB"; then
2252 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2254 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2256 for ac_dir in $ac_dummy; do
2257 test -z "$ac_dir" && ac_dir=.
2258 if test -f $ac_dir/$ac_word; then
2259 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2266 RANLIB="$ac_cv_prog_RANLIB"
2267 if test -n "$RANLIB"; then
2268 echo "$ac_t""$RANLIB" 1>&6
2270 echo "$ac_t""no" 1>&6
2274 if test -z "$ac_cv_prog_RANLIB"; then
2275 if test -n "$ac_tool_prefix"; then
2276 # Extract the first word of "ranlib", so it can be a program name with args.
2277 set dummy ranlib; ac_word=$2
2278 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2279 echo "configure:2280: checking for $ac_word" >&5
2280 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2281 echo $ac_n "(cached) $ac_c" 1>&6
2283 if test -n "$RANLIB"; then
2284 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2286 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2288 for ac_dir in $ac_dummy; do
2289 test -z "$ac_dir" && ac_dir=.
2290 if test -f $ac_dir/$ac_word; then
2291 ac_cv_prog_RANLIB="ranlib"
2296 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2299 RANLIB="$ac_cv_prog_RANLIB"
2300 if test -n "$RANLIB"; then
2301 echo "$ac_t""$RANLIB" 1>&6
2303 echo "$ac_t""no" 1>&6
2311 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2312 set dummy ${ac_tool_prefix}strip; ac_word=$2
2313 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2314 echo "configure:2315: checking for $ac_word" >&5
2315 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2316 echo $ac_n "(cached) $ac_c" 1>&6
2318 if test -n "$STRIP"; then
2319 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2321 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2323 for ac_dir in $ac_dummy; do
2324 test -z "$ac_dir" && ac_dir=.
2325 if test -f $ac_dir/$ac_word; then
2326 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2333 STRIP="$ac_cv_prog_STRIP"
2334 if test -n "$STRIP"; then
2335 echo "$ac_t""$STRIP" 1>&6
2337 echo "$ac_t""no" 1>&6
2341 if test -z "$ac_cv_prog_STRIP"; then
2342 if test -n "$ac_tool_prefix"; then
2343 # Extract the first word of "strip", so it can be a program name with args.
2344 set dummy strip; ac_word=$2
2345 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2346 echo "configure:2347: checking for $ac_word" >&5
2347 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2348 echo $ac_n "(cached) $ac_c" 1>&6
2350 if test -n "$STRIP"; then
2351 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2353 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2355 for ac_dir in $ac_dummy; do
2356 test -z "$ac_dir" && ac_dir=.
2357 if test -f $ac_dir/$ac_word; then
2358 ac_cv_prog_STRIP="strip"
2363 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2366 STRIP="$ac_cv_prog_STRIP"
2367 if test -n "$STRIP"; then
2368 echo "$ac_t""$STRIP" 1>&6
2370 echo "$ac_t""no" 1>&6
2379 # Check for any special flags to pass to ltconfig.
2380 libtool_flags="--cache-file=$cache_file"
2381 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2382 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2383 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2384 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2385 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2386 libtool_flags="$libtool_flags --enable-dlopen"
2388 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2389 if test "${enable_libtool_lock+set}" = set; then
2390 enableval="$enable_libtool_lock"
2394 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2395 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2397 # Check whether --with-pic or --without-pic was given.
2398 if test "${with_pic+set}" = set; then
2405 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2406 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2408 # Some flags need to be propagated to the compiler or linker for good
2412 # Find out which ABI we are using.
2413 echo '#line 2414 "configure"' > conftest.$ac_ext
2414 if { (eval echo configure:2415: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2415 case `/usr/bin/file conftest.$ac_objext` in
2431 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2432 SAVE_CFLAGS="$CFLAGS"
2433 CFLAGS="$CFLAGS -belf"
2434 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2435 echo "configure:2436: checking whether the C compiler needs -belf" >&5
2436 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2437 echo $ac_n "(cached) $ac_c" 1>&6
2441 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2442 ac_cpp='$CPP $CPPFLAGS'
2443 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2444 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2445 cross_compiling=$ac_cv_prog_cc_cross
2447 cat > conftest.$ac_ext <<EOF
2448 #line 2449 "configure"
2449 #include "confdefs.h"
2455 if { (eval echo configure:2456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2457 lt_cv_cc_needs_belf=yes
2459 echo "configure: failed program was:" >&5
2460 cat conftest.$ac_ext >&5
2462 lt_cv_cc_needs_belf=no
2466 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2467 ac_cpp='$CPP $CPPFLAGS'
2468 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2469 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2470 cross_compiling=$ac_cv_prog_cc_cross
2474 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2475 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2476 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2477 CFLAGS="$SAVE_CFLAGS"
2484 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2485 echo "configure:2486: checking how to run the C++ preprocessor" >&5
2486 if test -z "$CXXCPP"; then
2487 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2488 echo $ac_n "(cached) $ac_c" 1>&6
2491 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2492 ac_cpp='$CXXCPP $CPPFLAGS'
2493 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2494 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2495 cross_compiling=$ac_cv_prog_cxx_cross
2496 CXXCPP="${CXX-g++} -E"
2497 cat > conftest.$ac_ext <<EOF
2498 #line 2499 "configure"
2499 #include "confdefs.h"
2502 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2503 { (eval echo configure:2504: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2504 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2505 if test -z "$ac_err"; then
2509 echo "configure: failed program was:" >&5
2510 cat conftest.$ac_ext >&5
2515 ac_cv_prog_CXXCPP="$CXXCPP"
2517 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2518 ac_cpp='$CPP $CPPFLAGS'
2519 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2520 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2521 cross_compiling=$ac_cv_prog_cc_cross
2524 CXXCPP="$ac_cv_prog_CXXCPP"
2525 echo "$ac_t""$CXXCPP" 1>&6
2528 # Save cache, so that ltconfig can load it
2529 cat > confcache <<\EOF
2530 # This file is a shell script that caches the results of configure
2531 # tests run on this system so they can be shared between configure
2532 # scripts and configure runs. It is not useful on other systems.
2533 # If it contains results you don't want to keep, you may remove or edit it.
2535 # By default, configure uses ./config.cache as the cache file,
2536 # creating it if it does not exist already. You can give configure
2537 # the --cache-file=FILE option to use a different cache file; that is
2538 # what configure does when it calls configure scripts in
2539 # subdirectories, so they share the cache.
2540 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2541 # config.status only pays attention to the cache file if you give it the
2542 # --recheck option to rerun configure.
2545 # The following way of writing the cache mishandles newlines in values,
2546 # but we know of no workaround that is simple, portable, and efficient.
2547 # So, don't put newlines in cache variables' values.
2548 # Ultrix sh set writes to stderr and can't be redirected directly,
2549 # and sets the high bit in the cache file unless we assign to the vars.
2551 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2553 # `set' does not quote correctly, so add quotes (double-quote substitution
2554 # turns \\\\ into \\, and sed turns \\ into \).
2556 -e "s/'/'\\\\''/g" \
2557 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2560 # `set' quotes correctly as required by POSIX, so do not add quotes.
2561 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2564 if cmp -s $cache_file confcache; then
2567 if test -w $cache_file; then
2568 echo "updating cache $cache_file"
2569 cat confcache > $cache_file
2571 echo "not updating unwritable cache $cache_file"
2577 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2578 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2579 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2580 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2581 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2582 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2583 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2584 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2585 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2586 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2588 # Reload cache, that may have been modified by ltconfig
2589 if test -r "$cache_file"; then
2590 echo "loading cache $cache_file"
2593 echo "creating cache $cache_file"
2598 # This can be used to rebuild libtool when needed
2599 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2601 # Always use our own libtool.
2602 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2604 # Redirect the config.log output again, so that the ltconfig log is not
2605 # clobbered by the next message.
2606 exec 5>>./config.log
2610 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2612 lt_save_CFLAGS="$CFLAGS"
2613 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2614 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2615 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2616 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2617 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2618 deplibs_check_method="$deplibs_check_method" \
2619 file_magic_cmd="$file_magic_cmd" \
2620 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2621 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2622 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2624 CFLAGS="$lt_save_CFLAGS"
2626 # Redirect the config.log output again, so that the ltconfig log is not
2627 # clobbered by the next message.
2628 exec 5>>./config.log
2638 if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
2647 if test -d $srcdir/testsuite; then
2649 TESTSUBDIR_FALSE='#'
2655 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
2656 if test "${enable_getenv_properties+set}" = set; then
2657 enableval="$enable_getenv_properties"
2662 if test -z "$enable_getenv_properties"; then
2663 enable_getenv_properties=${enable_getenv_properties_default-yes}
2665 if test "$enable_getenv_properties" = no; then
2666 cat >> confdefs.h <<\EOF
2667 #define DISABLE_GETENV_PROPERTIES 1
2672 if test -z "$enable_main_args"; then
2673 enable_main_args=${enable_main_args_default-yes}
2675 if test "$enable_main_args" = no; then
2676 cat >> confdefs.h <<\EOF
2677 #define DISABLE_MAIN_ARGS 1
2683 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
2684 if test "${enable_hash_synchronization+set}" = set; then
2685 enableval="$enable_hash_synchronization"
2690 if test -z "$enable_hash_synchronization"; then
2691 enable_hash_synchronization=$enable_hash_synchronization_default
2694 if test "${slow_pthread_self}" = "yes"; then
2695 cat >> confdefs.h <<\EOF
2696 #define SLOW_PTHREAD_SELF 1
2704 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
2705 if test "${enable_libgcj_debug+set}" = set; then
2706 enableval="$enable_libgcj_debug"
2707 if test "$enable_libgcj_debug" = yes; then
2708 cat >> confdefs.h <<\EOF
2717 # Check whether --enable-interpreter or --disable-interpreter was given.
2718 if test "${enable_interpreter+set}" = set; then
2719 enableval="$enable_interpreter"
2720 if test "$enable_interpreter" = yes; then
2721 # This can also be set in configure.host.
2722 libgcj_interpreter=yes
2723 elif test "$enable_interpreter" = no; then
2724 libgcj_interpreter=no
2729 if test "$libgcj_interpreter" = yes; then
2730 cat >> confdefs.h <<\EOF
2731 #define INTERPRETER 1
2736 echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
2737 echo "configure:2738: checking for exception model to use" >&5
2740 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2741 ac_cpp='$CXXCPP $CPPFLAGS'
2742 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2743 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2744 cross_compiling=$ac_cv_prog_cxx_cross
2746 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
2747 if test "${enable_sjlj_exceptions+set}" = set; then
2748 enableval="$enable_sjlj_exceptions"
2751 cat > conftest.$ac_ext << EOF
2752 #line 2753 "configure"
2761 old_CXXFLAGS="$CXXFLAGS"
2763 if { (eval echo configure:2764: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2764 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
2765 enable_sjlj_exceptions=yes
2766 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
2767 enable_sjlj_exceptions=no
2770 CXXFLAGS="$old_CXXFLAGS"
2774 if test x$enable_sjlj_exceptions = xyes; then
2775 cat >> confdefs.h <<\EOF
2776 #define SJLJ_EXCEPTIONS 1
2779 ac_exception_model_name=sjlj
2780 elif test x$enable_sjlj_exceptions = xno; then
2781 ac_exception_model_name="call frame"
2783 { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
2786 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2787 ac_cpp='$CPP $CPPFLAGS'
2788 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2789 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2790 cross_compiling=$ac_cv_prog_cc_cross
2792 echo "$ac_t""$ac_exception_model_name" 1>&6
2794 # Check whether --enable-java-net or --disable-java-net was given.
2795 if test "${enable_java_net+set}" = set; then
2796 enableval="$enable_java_net"
2801 if test -z "$enable_java_net"; then
2802 enable_java_net=${enable_java_net_default-yes}
2804 if test "$enable_java_net" = no; then
2805 cat >> confdefs.h <<\EOF
2806 #define DISABLE_JAVA_NET 1
2811 # Check whether --with-libffi or --without-libffi was given.
2812 if test "${with_libffi+set}" = set; then
2813 withval="$with_libffi"
2816 with_libffi=${with_libffi_default-yes}
2822 if test "$with_libffi" != no; then
2823 cat >> confdefs.h <<\EOF
2824 #define USE_LIBFFI 1
2827 LIBFFI=../libffi/libfficonvenience.la
2828 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I$(MULTIBUILDTOP)../libffi/include'
2833 # Check whether --enable-jvmpi or --disable-jvmpi was given.
2834 if test "${enable_jvmpi+set}" = set; then
2835 enableval="$enable_jvmpi"
2840 if test "$enable_jvmpi" != no; then
2841 cat >> confdefs.h <<\EOF
2842 #define ENABLE_JVMPI 1
2847 TARGET_ECOS=${PROCESS-"no"}
2848 # Check whether --with-ecos or --without-ecos was given.
2849 if test "${with_ecos+set}" = set; then
2850 withval="$with_ecos"
2851 TARGET_ECOS="$with_ecos"
2857 case "$TARGET_ECOS" in
2861 PLATFORMOBJS=win32.lo
2866 PLATFORMOBJS=posix.lo
2873 cat >> confdefs.h <<\EOF
2877 PLATFORMOBJS=posix.lo
2884 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2885 echo "configure:2886: checking how to run the C preprocessor" >&5
2886 # On Suns, sometimes $CPP names a directory.
2887 if test -n "$CPP" && test -d "$CPP"; then
2890 if test -z "$CPP"; then
2891 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2892 echo $ac_n "(cached) $ac_c" 1>&6
2894 # This must be in double quotes, not single quotes, because CPP may get
2895 # substituted into the Makefile and "${CC-cc}" will confuse make.
2897 # On the NeXT, cc -E runs the code through the compiler's parser,
2898 # not just through cpp.
2899 cat > conftest.$ac_ext <<EOF
2900 #line 2901 "configure"
2901 #include "confdefs.h"
2905 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2906 { (eval echo configure:2907: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2907 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2908 if test -z "$ac_err"; then
2912 echo "configure: failed program was:" >&5
2913 cat conftest.$ac_ext >&5
2915 CPP="${CC-cc} -E -traditional-cpp"
2916 cat > conftest.$ac_ext <<EOF
2917 #line 2918 "configure"
2918 #include "confdefs.h"
2922 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2923 { (eval echo configure:2924: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2924 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2925 if test -z "$ac_err"; then
2929 echo "configure: failed program was:" >&5
2930 cat conftest.$ac_ext >&5
2932 CPP="${CC-cc} -nologo -E"
2933 cat > conftest.$ac_ext <<EOF
2934 #line 2935 "configure"
2935 #include "confdefs.h"
2939 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2940 { (eval echo configure:2941: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2941 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2942 if test -z "$ac_err"; then
2946 echo "configure: failed program was:" >&5
2947 cat conftest.$ac_ext >&5
2956 ac_cv_prog_CPP="$CPP"
2958 CPP="$ac_cv_prog_CPP"
2960 ac_cv_prog_CPP="$CPP"
2962 echo "$ac_t""$CPP" 1>&6
2964 cat > conftest.$ac_ext <<EOF
2965 #line 2966 "configure"
2966 #include "confdefs.h"
2969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2970 egrep "uint32_t" >/dev/null 2>&1; then
2972 cat >> confdefs.h <<\EOF
2973 #define HAVE_INT32_DEFINED 1
2979 cat > conftest.$ac_ext <<EOF
2980 #line 2981 "configure"
2981 #include "confdefs.h"
2982 #include <inttypes.h>
2984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2985 egrep "uint32_t" >/dev/null 2>&1; then
2987 cat >> confdefs.h <<\EOF
2988 #define HAVE_INT32_DEFINED 1
2994 cat > conftest.$ac_ext <<EOF
2995 #line 2996 "configure"
2996 #include "confdefs.h"
2997 #include <sys/types.h>
2999 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3000 egrep "u_int32_t" >/dev/null 2>&1; then
3002 cat >> confdefs.h <<\EOF
3003 #define HAVE_BSD_INT32_DEFINED 1
3009 cat > conftest.$ac_ext <<EOF
3010 #line 3011 "configure"
3011 #include "confdefs.h"
3012 #include <sys/config.h>
3014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3015 egrep "u_int32_t" >/dev/null 2>&1; then
3017 cat >> confdefs.h <<\EOF
3018 #define HAVE_BSD_INT32_DEFINED 1
3026 cat > conftest.$ac_ext <<EOF
3027 #line 3028 "configure"
3028 #include "confdefs.h"
3031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3032 egrep "mktime" >/dev/null 2>&1; then
3034 cat >> confdefs.h <<\EOF
3035 #define HAVE_MKTIME 1
3041 cat > conftest.$ac_ext <<EOF
3042 #line 3043 "configure"
3043 #include "confdefs.h"
3046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3047 egrep "localtime" >/dev/null 2>&1; then
3049 cat >> confdefs.h <<\EOF
3050 #define HAVE_LOCALTIME 1
3057 test -d java || mkdir java
3058 test -d java/io || mkdir java/io
3059 test -d gnu || mkdir gnu
3063 test -d java/lang || mkdir java/lang
3069 SYSTEMSPEC="-lgdi32 -lwsock32 -lws2_32"
3077 LIBGCJTESTSPEC="-L`pwd`/.libs -rpath `pwd`/.libs"
3080 # Check whether --with-system-zlib or --without-system-zlib was given.
3081 if test "${with_system_zlib+set}" = set; then
3082 withval="$with_system_zlib"
3093 echo $ac_n "checking for garbage collector to use""... $ac_c" 1>&6
3094 echo "configure:3095: checking for garbage collector to use" >&5
3095 # Check whether --enable-java-gc or --disable-java-gc was given.
3096 if test "${enable_java_gc+set}" = set; then
3097 enableval="$enable_java_gc"
3113 echo "$ac_t""boehm" 1>&6
3114 GCDEPS='$(top_builddir)/../boehm-gc/libgcjgc.la'
3115 # We include the path to the boehm-gc build directory.
3116 # See Makefile.am to understand why.
3117 GCLIBS="$GCDEPS -L\$(here)/../boehm-gc/$libsubdir"
3118 GCINCS='-I$(top_srcdir)/../boehm-gc/include'
3120 JC1GCSPEC='-fuse-boehm-gc'
3121 GCTESTSPEC="-L`pwd`/../boehm-gc/.libs -rpath `pwd`/../boehm-gc/.libs"
3122 GCINCS="$GCINCS `cat ../boehm-gc/boehm-cflags`"
3125 cat >> confdefs.h <<\EOF
3126 #define HAVE_BOEHM_GC 1
3131 echo "$ac_t""none" 1>&6
3136 { echo "configure: error: unrecognized collector \"$GC\"" 1>&2; exit 1; }
3149 echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3150 echo "configure:3151: checking for thread model used by GCC" >&5
3151 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3152 echo "$ac_t""$THREADS" 1>&6
3162 cat >> confdefs.h <<\EOF
3163 #define LINUX_THREADS 1
3171 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
3172 { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
3175 { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
3189 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
3194 # Before FreeBSD 5, it didn't have -lpthread (or any library which
3195 # merely adds pthread_* functions) but it does have a -pthread switch
3196 # which is required at link-time to select -lc_r *instead* of -lc.
3198 # Don't set THREADSPEC here as might be expected since -pthread is
3199 # not processed when found within a spec file, it must come from
3200 # the command line. For now, the user must provide the -pthread
3201 # switch to link code compiled with gcj. In future, consider adding
3202 # support for weak references to pthread_* functions ala gthr.h API.
3203 THREADSPEC='%{!pthread: %eUnder this configuration, the user must provide -pthread when linking.}'
3206 # FreeBSD 5 implements a model much closer to other modern UNIX
3207 # which support threads. However, it still does not support
3213 THREADLIBS=-lpthread
3214 THREADSPEC=-lpthread
3217 THREADOBJS=posix-threads.lo
3218 THREADH=posix-threads.h
3219 # MIT pthreads doesn't seem to have the mutexattr functions.
3220 # But for now we don't check for it. We just assume you aren't
3221 # using MIT pthreads.
3222 cat >> confdefs.h <<\EOF
3223 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
3227 # If we're using the Boehm GC, then we happen to know that it
3228 # defines _REENTRANT, so we don't bother. Eww.
3229 if test "$GC" != boehm; then
3230 cat >> confdefs.h <<\EOF
3231 #define _REENTRANT 1
3235 cat >> confdefs.h <<\EOF
3236 #define _POSIX_PTHREAD_SEMANTICS 1
3242 THREADOBJS=win32-threads.lo
3243 THREADH=win32-threads.h
3247 THREADOBJS=no-threads.lo
3248 THREADH=no-threads.h
3261 # Hash synchronization is only useful with posix threads right now.
3262 if test "$enable_hash_synchronization" = yes && test "$THREADS" = "posix"; then
3263 HASH_SYNC_SPEC=-fhash-synchronization
3264 cat >> confdefs.h <<\EOF
3265 #define JV_HASH_SYNCHRONIZATION 1
3274 if test "$GCC" = yes; then
3286 # We're in the tree with gcc, and need to include some of its headers.
3287 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
3289 if test -n "${with_cross_host}"; then
3290 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
3291 # may not work correctly, because the compiler may not be able to
3294 # We assume newlib. This lets us hard-code the functions we know
3296 cat >> confdefs.h <<\EOF
3297 #define HAVE_MEMMOVE 1
3300 cat >> confdefs.h <<\EOF
3301 #define HAVE_MEMCPY 1
3304 cat >> confdefs.h <<\EOF
3305 #define HAVE_STRERROR 1
3308 cat >> confdefs.h <<\EOF
3309 #define HAVE_GMTIME_R 1
3312 cat >> confdefs.h <<\EOF
3313 #define HAVE_LOCALTIME_R 1
3316 cat >> confdefs.h <<\EOF
3317 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
3320 cat >> confdefs.h <<\EOF
3321 #define HAVE_ALLOCA 1
3325 cat >> confdefs.h <<\EOF
3331 ZLIBTESTSPEC="-L`pwd`/../zlib/.libs -rpath `pwd`/../zlib/.libs"
3333 # If Canadian cross, then don't pick up tools from the build
3335 if test x"$build" != x"$with_cross_host" && x"$build" != x"$target"; then
3338 GCJ="${target_alias}-gcj"
3342 for ac_func in strerror ioctl select fstat open fsync sleep opendir
3344 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3345 echo "configure:3346: checking for $ac_func" >&5
3346 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3347 echo $ac_n "(cached) $ac_c" 1>&6
3349 cat > conftest.$ac_ext <<EOF
3350 #line 3351 "configure"
3351 #include "confdefs.h"
3352 /* System header to define __stub macros and hopefully few prototypes,
3353 which can conflict with char $ac_func(); below. */
3355 /* Override any gcc2 internal prototype to avoid an error. */
3356 /* We use char because int might match the return type of a gcc2
3357 builtin and then its argument prototype would still apply. */
3362 /* The GNU C library defines this for functions which it implements
3363 to always fail with ENOSYS. Some functions are actually named
3364 something starting with __ and the normal name is an alias. */
3365 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3373 if { (eval echo configure:3374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3375 eval "ac_cv_func_$ac_func=yes"
3377 echo "configure: failed program was:" >&5
3378 cat conftest.$ac_ext >&5
3380 eval "ac_cv_func_$ac_func=no"
3385 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3386 echo "$ac_t""yes" 1>&6
3387 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3388 cat >> confdefs.h <<EOF
3389 #define $ac_tr_func 1
3393 echo "$ac_t""no" 1>&6
3397 for ac_func in gmtime_r localtime_r readdir_r getpwuid_r getcwd
3399 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3400 echo "configure:3401: checking for $ac_func" >&5
3401 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3402 echo $ac_n "(cached) $ac_c" 1>&6
3404 cat > conftest.$ac_ext <<EOF
3405 #line 3406 "configure"
3406 #include "confdefs.h"
3407 /* System header to define __stub macros and hopefully few prototypes,
3408 which can conflict with char $ac_func(); below. */
3410 /* Override any gcc2 internal prototype to avoid an error. */
3411 /* We use char because int might match the return type of a gcc2
3412 builtin and then its argument prototype would still apply. */
3417 /* The GNU C library defines this for functions which it implements
3418 to always fail with ENOSYS. Some functions are actually named
3419 something starting with __ and the normal name is an alias. */
3420 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3428 if { (eval echo configure:3429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3430 eval "ac_cv_func_$ac_func=yes"
3432 echo "configure: failed program was:" >&5
3433 cat conftest.$ac_ext >&5
3435 eval "ac_cv_func_$ac_func=no"
3440 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3441 echo "$ac_t""yes" 1>&6
3442 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3443 cat >> confdefs.h <<EOF
3444 #define $ac_tr_func 1
3448 echo "$ac_t""no" 1>&6
3452 for ac_func in access stat mkdir rename rmdir unlink realpath utime chmod
3454 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3455 echo "configure:3456: checking for $ac_func" >&5
3456 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3457 echo $ac_n "(cached) $ac_c" 1>&6
3459 cat > conftest.$ac_ext <<EOF
3460 #line 3461 "configure"
3461 #include "confdefs.h"
3462 /* System header to define __stub macros and hopefully few prototypes,
3463 which can conflict with char $ac_func(); below. */
3465 /* Override any gcc2 internal prototype to avoid an error. */
3466 /* We use char because int might match the return type of a gcc2
3467 builtin and then its argument prototype would still apply. */
3472 /* The GNU C library defines this for functions which it implements
3473 to always fail with ENOSYS. Some functions are actually named
3474 something starting with __ and the normal name is an alias. */
3475 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3483 if { (eval echo configure:3484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3485 eval "ac_cv_func_$ac_func=yes"
3487 echo "configure: failed program was:" >&5
3488 cat conftest.$ac_ext >&5
3490 eval "ac_cv_func_$ac_func=no"
3495 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3496 echo "$ac_t""yes" 1>&6
3497 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3498 cat >> confdefs.h <<EOF
3499 #define $ac_tr_func 1
3503 echo "$ac_t""no" 1>&6
3507 for ac_func in nl_langinfo setlocale
3509 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3510 echo "configure:3511: checking for $ac_func" >&5
3511 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3512 echo $ac_n "(cached) $ac_c" 1>&6
3514 cat > conftest.$ac_ext <<EOF
3515 #line 3516 "configure"
3516 #include "confdefs.h"
3517 /* System header to define __stub macros and hopefully few prototypes,
3518 which can conflict with char $ac_func(); below. */
3520 /* Override any gcc2 internal prototype to avoid an error. */
3521 /* We use char because int might match the return type of a gcc2
3522 builtin and then its argument prototype would still apply. */
3527 /* The GNU C library defines this for functions which it implements
3528 to always fail with ENOSYS. Some functions are actually named
3529 something starting with __ and the normal name is an alias. */
3530 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3538 if { (eval echo configure:3539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3540 eval "ac_cv_func_$ac_func=yes"
3542 echo "configure: failed program was:" >&5
3543 cat conftest.$ac_ext >&5
3545 eval "ac_cv_func_$ac_func=no"
3550 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3551 echo "$ac_t""yes" 1>&6
3552 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3553 cat >> confdefs.h <<EOF
3554 #define $ac_tr_func 1
3558 echo "$ac_t""no" 1>&6
3562 for ac_func in inet_aton inet_addr
3564 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3565 echo "configure:3566: checking for $ac_func" >&5
3566 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3567 echo $ac_n "(cached) $ac_c" 1>&6
3569 cat > conftest.$ac_ext <<EOF
3570 #line 3571 "configure"
3571 #include "confdefs.h"
3572 /* System header to define __stub macros and hopefully few prototypes,
3573 which can conflict with char $ac_func(); below. */
3575 /* Override any gcc2 internal prototype to avoid an error. */
3576 /* We use char because int might match the return type of a gcc2
3577 builtin and then its argument prototype would still apply. */
3582 /* The GNU C library defines this for functions which it implements
3583 to always fail with ENOSYS. Some functions are actually named
3584 something starting with __ and the normal name is an alias. */
3585 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3593 if { (eval echo configure:3594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3595 eval "ac_cv_func_$ac_func=yes"
3597 echo "configure: failed program was:" >&5
3598 cat conftest.$ac_ext >&5
3600 eval "ac_cv_func_$ac_func=no"
3605 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3606 echo "$ac_t""yes" 1>&6
3607 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3608 cat >> confdefs.h <<EOF
3609 #define $ac_tr_func 1
3613 echo "$ac_t""no" 1>&6
3617 for ac_func in inet_pton uname inet_ntoa
3619 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3620 echo "configure:3621: checking for $ac_func" >&5
3621 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3622 echo $ac_n "(cached) $ac_c" 1>&6
3624 cat > conftest.$ac_ext <<EOF
3625 #line 3626 "configure"
3626 #include "confdefs.h"
3627 /* System header to define __stub macros and hopefully few prototypes,
3628 which can conflict with char $ac_func(); below. */
3630 /* Override any gcc2 internal prototype to avoid an error. */
3631 /* We use char because int might match the return type of a gcc2
3632 builtin and then its argument prototype would still apply. */
3637 /* The GNU C library defines this for functions which it implements
3638 to always fail with ENOSYS. Some functions are actually named
3639 something starting with __ and the normal name is an alias. */
3640 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3648 if { (eval echo configure:3649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3650 eval "ac_cv_func_$ac_func=yes"
3652 echo "configure: failed program was:" >&5
3653 cat conftest.$ac_ext >&5
3655 eval "ac_cv_func_$ac_func=no"
3660 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3661 echo "$ac_t""yes" 1>&6
3662 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3663 cat >> confdefs.h <<EOF
3664 #define $ac_tr_func 1
3668 echo "$ac_t""no" 1>&6
3672 for ac_func in backtrace fork execvp pipe sigaction
3674 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3675 echo "configure:3676: checking for $ac_func" >&5
3676 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3677 echo $ac_n "(cached) $ac_c" 1>&6
3679 cat > conftest.$ac_ext <<EOF
3680 #line 3681 "configure"
3681 #include "confdefs.h"
3682 /* System header to define __stub macros and hopefully few prototypes,
3683 which can conflict with char $ac_func(); below. */
3685 /* Override any gcc2 internal prototype to avoid an error. */
3686 /* We use char because int might match the return type of a gcc2
3687 builtin and then its argument prototype would still apply. */
3692 /* The GNU C library defines this for functions which it implements
3693 to always fail with ENOSYS. Some functions are actually named
3694 something starting with __ and the normal name is an alias. */
3695 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3703 if { (eval echo configure:3704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3705 eval "ac_cv_func_$ac_func=yes"
3707 echo "configure: failed program was:" >&5
3708 cat conftest.$ac_ext >&5
3710 eval "ac_cv_func_$ac_func=no"
3715 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3716 echo "$ac_t""yes" 1>&6
3717 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3718 cat >> confdefs.h <<EOF
3719 #define $ac_tr_func 1
3723 echo "$ac_t""no" 1>&6
3727 for ac_hdr in execinfo.h unistd.h dlfcn.h
3729 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3730 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3731 echo "configure:3732: checking for $ac_hdr" >&5
3732 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3733 echo $ac_n "(cached) $ac_c" 1>&6
3735 cat > conftest.$ac_ext <<EOF
3736 #line 3737 "configure"
3737 #include "confdefs.h"
3740 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3741 { (eval echo configure:3742: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3742 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3743 if test -z "$ac_err"; then
3745 eval "ac_cv_header_$ac_safe=yes"
3748 echo "configure: failed program was:" >&5
3749 cat conftest.$ac_ext >&5
3751 eval "ac_cv_header_$ac_safe=no"
3755 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3756 echo "$ac_t""yes" 1>&6
3757 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3758 cat >> confdefs.h <<EOF
3759 #define $ac_tr_hdr 1
3763 echo "$ac_t""no" 1>&6
3767 echo $ac_n "checking for dladdr in -ldl""... $ac_c" 1>&6
3768 echo "configure:3769: checking for dladdr in -ldl" >&5
3769 ac_lib_var=`echo dl'_'dladdr | sed 'y%./+-%__p_%'`
3770 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3771 echo $ac_n "(cached) $ac_c" 1>&6
3773 ac_save_LIBS="$LIBS"
3775 cat > conftest.$ac_ext <<EOF
3776 #line 3777 "configure"
3777 #include "confdefs.h"
3778 /* Override any gcc2 internal prototype to avoid an error. */
3779 /* We use char because int might match the return type of a gcc2
3780 builtin and then its argument prototype would still apply. */
3787 if { (eval echo configure:3788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3789 eval "ac_cv_lib_$ac_lib_var=yes"
3791 echo "configure: failed program was:" >&5
3792 cat conftest.$ac_ext >&5
3794 eval "ac_cv_lib_$ac_lib_var=no"
3797 LIBS="$ac_save_LIBS"
3800 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3801 echo "$ac_t""yes" 1>&6
3803 cat >> confdefs.h <<\EOF
3804 #define HAVE_DLADDR 1
3808 echo "$ac_t""no" 1>&6
3811 for ac_file in /proc/self/exe
3814 ac_safe=`echo "$ac_file" | sed 'y%./+-%__p_%'`
3815 echo $ac_n "checking for $ac_file""... $ac_c" 1>&6
3816 echo "configure:3817: checking for $ac_file" >&5
3817 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
3818 echo $ac_n "(cached) $ac_c" 1>&6
3820 if test "$cross_compiling" = yes; then
3821 { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
3823 if test -r $ac_file; then
3824 eval "ac_cv_file_$ac_safe=yes"
3826 eval "ac_cv_file_$ac_safe=no"
3830 if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
3831 echo "$ac_t""yes" 1>&6
3832 ac_tr_file=HAVE_`echo $ac_file | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3833 cat >> confdefs.h <<EOF
3834 #define $ac_tr_file 1
3837 cat >> confdefs.h <<\EOF
3838 #define HAVE_PROC_SELF_EXE 1
3842 echo "$ac_t""no" 1>&6
3850 am_cv_lib_iconv_ldpath=
3851 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
3852 if test "${with_libiconv_prefix+set}" = set; then
3853 withval="$with_libiconv_prefix"
3855 for dir in `echo "$withval" | tr : ' '`; do
3856 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
3857 if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
3863 echo $ac_n "checking for iconv""... $ac_c" 1>&6
3864 echo "configure:3865: checking for iconv" >&5
3865 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
3866 echo $ac_n "(cached) $ac_c" 1>&6
3869 am_cv_func_iconv="no, consider installing GNU libiconv"
3871 cat > conftest.$ac_ext <<EOF
3872 #line 3873 "configure"
3873 #include "confdefs.h"
3877 iconv_t cd = iconv_open("","");
3878 iconv(cd,NULL,NULL,NULL,NULL);
3882 if { (eval echo configure:3883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3884 am_cv_func_iconv=yes
3886 echo "configure: failed program was:" >&5
3887 cat conftest.$ac_ext >&5
3890 if test "$am_cv_func_iconv" != yes; then
3891 am_save_LIBS="$LIBS"
3892 LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
3893 cat > conftest.$ac_ext <<EOF
3894 #line 3895 "configure"
3895 #include "confdefs.h"
3899 iconv_t cd = iconv_open("","");
3900 iconv(cd,NULL,NULL,NULL,NULL);
3904 if { (eval echo configure:3905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3907 am_cv_func_iconv=yes
3909 echo "configure: failed program was:" >&5
3910 cat conftest.$ac_ext >&5
3913 LIBS="$am_save_LIBS"
3918 echo "$ac_t""$am_cv_func_iconv" 1>&6
3919 if test "$am_cv_func_iconv" = yes; then
3920 cat >> confdefs.h <<\EOF
3921 #define HAVE_ICONV 1
3924 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
3925 echo "configure:3926: checking for iconv declaration" >&5
3926 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
3927 echo $ac_n "(cached) $ac_c" 1>&6
3930 cat > conftest.$ac_ext <<EOF
3931 #line 3932 "configure"
3932 #include "confdefs.h"
3940 #if defined(__STDC__) || defined(__cplusplus)
3941 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
3950 if { (eval echo configure:3951: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3952 am_cv_proto_iconv_arg1=""
3954 echo "configure: failed program was:" >&5
3955 cat conftest.$ac_ext >&5
3957 am_cv_proto_iconv_arg1="const"
3960 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);"
3963 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
3964 echo "$ac_t""${ac_t:-
3965 }$am_cv_proto_iconv" 1>&6
3966 cat >> confdefs.h <<EOF
3967 #define ICONV_CONST $am_cv_proto_iconv_arg1
3972 if test "$am_cv_lib_iconv" = yes; then
3973 LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
3977 if test $ac_cv_header_locale_h = yes; then
3978 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3979 echo "configure:3980: checking for LC_MESSAGES" >&5
3980 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3981 echo $ac_n "(cached) $ac_c" 1>&6
3983 cat > conftest.$ac_ext <<EOF
3984 #line 3985 "configure"
3985 #include "confdefs.h"
3991 if { (eval echo configure:3992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3993 am_cv_val_LC_MESSAGES=yes
3995 echo "configure: failed program was:" >&5
3996 cat conftest.$ac_ext >&5
3998 am_cv_val_LC_MESSAGES=no
4003 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
4004 if test $am_cv_val_LC_MESSAGES = yes; then
4005 cat >> confdefs.h <<\EOF
4006 #define HAVE_LC_MESSAGES 1
4011 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4012 echo "configure:4013: checking whether struct tm is in sys/time.h or time.h" >&5
4013 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
4014 echo $ac_n "(cached) $ac_c" 1>&6
4016 cat > conftest.$ac_ext <<EOF
4017 #line 4018 "configure"
4018 #include "confdefs.h"
4019 #include <sys/types.h>
4022 struct tm *tp; tp->tm_sec;
4025 if { (eval echo configure:4026: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4027 ac_cv_struct_tm=time.h
4029 echo "configure: failed program was:" >&5
4030 cat conftest.$ac_ext >&5
4032 ac_cv_struct_tm=sys/time.h
4037 echo "$ac_t""$ac_cv_struct_tm" 1>&6
4038 if test $ac_cv_struct_tm = sys/time.h; then
4039 cat >> confdefs.h <<\EOF
4040 #define TM_IN_SYS_TIME 1
4045 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
4046 echo "configure:4047: checking for tm_zone in struct tm" >&5
4047 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
4048 echo $ac_n "(cached) $ac_c" 1>&6
4050 cat > conftest.$ac_ext <<EOF
4051 #line 4052 "configure"
4052 #include "confdefs.h"
4053 #include <sys/types.h>
4054 #include <$ac_cv_struct_tm>
4056 struct tm tm; tm.tm_zone;
4059 if { (eval echo configure:4060: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4061 ac_cv_struct_tm_zone=yes
4063 echo "configure: failed program was:" >&5
4064 cat conftest.$ac_ext >&5
4066 ac_cv_struct_tm_zone=no
4071 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
4072 if test "$ac_cv_struct_tm_zone" = yes; then
4073 cat >> confdefs.h <<\EOF
4074 #define HAVE_TM_ZONE 1
4078 echo $ac_n "checking for tzname""... $ac_c" 1>&6
4079 echo "configure:4080: checking for tzname" >&5
4080 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
4081 echo $ac_n "(cached) $ac_c" 1>&6
4083 cat > conftest.$ac_ext <<EOF
4084 #line 4085 "configure"
4085 #include "confdefs.h"
4087 #ifndef tzname /* For SGI. */
4088 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4094 if { (eval echo configure:4095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4096 ac_cv_var_tzname=yes
4098 echo "configure: failed program was:" >&5
4099 cat conftest.$ac_ext >&5
4106 echo "$ac_t""$ac_cv_var_tzname" 1>&6
4107 if test $ac_cv_var_tzname = yes; then
4108 cat >> confdefs.h <<\EOF
4109 #define HAVE_TZNAME 1
4116 for ac_func in gethostbyname_r
4118 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4119 echo "configure:4120: checking for $ac_func" >&5
4120 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4121 echo $ac_n "(cached) $ac_c" 1>&6
4123 cat > conftest.$ac_ext <<EOF
4124 #line 4125 "configure"
4125 #include "confdefs.h"
4126 /* System header to define __stub macros and hopefully few prototypes,
4127 which can conflict with char $ac_func(); below. */
4129 /* Override any gcc2 internal prototype to avoid an error. */
4130 /* We use char because int might match the return type of a gcc2
4131 builtin and then its argument prototype would still apply. */
4136 /* The GNU C library defines this for functions which it implements
4137 to always fail with ENOSYS. Some functions are actually named
4138 something starting with __ and the normal name is an alias. */
4139 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4147 if { (eval echo configure:4148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4149 eval "ac_cv_func_$ac_func=yes"
4151 echo "configure: failed program was:" >&5
4152 cat conftest.$ac_ext >&5
4154 eval "ac_cv_func_$ac_func=no"
4159 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4160 echo "$ac_t""yes" 1>&6
4161 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4162 cat >> confdefs.h <<EOF
4163 #define $ac_tr_func 1
4166 cat >> confdefs.h <<\EOF
4167 #define HAVE_GETHOSTBYNAME_R 1
4170 # There are two different kinds of gethostbyname_r.
4171 # We look for the one that returns `int'.
4172 # Hopefully this check is robust enough.
4173 cat > conftest.$ac_ext <<EOF
4174 #line 4175 "configure"
4175 #include "confdefs.h"
4178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4179 egrep "int.*gethostbyname_r" >/dev/null 2>&1; then
4182 cat >> confdefs.h <<\EOF
4183 #define GETHOSTBYNAME_R_RETURNS_INT 1
4191 *" -D_REENTRANT "*) ;;
4193 echo $ac_n "checking whether gethostbyname_r declaration requires -D_REENTRANT""... $ac_c" 1>&6
4194 echo "configure:4195: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
4195 if eval "test \"`echo '$''{'libjava_cv_gethostbyname_r_needs_reentrant'+set}'`\" = set"; then
4196 echo $ac_n "(cached) $ac_c" 1>&6
4200 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4201 ac_cpp='$CXXCPP $CPPFLAGS'
4202 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4203 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4204 cross_compiling=$ac_cv_prog_cxx_cross
4206 cat > conftest.$ac_ext <<EOF
4207 #line 4208 "configure"
4208 #include "confdefs.h"
4211 gethostbyname_r("", 0, 0);
4214 if { (eval echo configure:4215: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4216 libjava_cv_gethostbyname_r_needs_reentrant=no
4218 echo "configure: failed program was:" >&5
4219 cat conftest.$ac_ext >&5
4221 CPPFLAGS_SAVE="$CPPFLAGS"
4222 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
4223 cat > conftest.$ac_ext <<EOF
4224 #line 4225 "configure"
4225 #include "confdefs.h"
4228 gethostbyname_r("", 0, 0);
4231 if { (eval echo configure:4232: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4233 libjava_cv_gethostbyname_r_needs_reentrant=yes
4235 echo "configure: failed program was:" >&5
4236 cat conftest.$ac_ext >&5
4238 libjava_cv_gethostbyname_r_needs_reentrant=fail
4241 CPPFLAGS="$CPPFLAGS_SAVE"
4246 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4247 ac_cpp='$CPP $CPPFLAGS'
4248 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4249 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4250 cross_compiling=$ac_cv_prog_cc_cross
4255 echo "$ac_t""$libjava_cv_gethostbyname_r_needs_reentrant" 1>&6
4256 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
4257 cat >> confdefs.h <<\EOF
4258 #define _REENTRANT 1
4265 echo $ac_n "checking for struct hostent_data""... $ac_c" 1>&6
4266 echo "configure:4267: checking for struct hostent_data" >&5
4267 if eval "test \"`echo '$''{'libjava_cv_struct_hostent_data'+set}'`\" = set"; then
4268 echo $ac_n "(cached) $ac_c" 1>&6
4270 cat > conftest.$ac_ext <<EOF
4271 #line 4272 "configure"
4272 #include "confdefs.h"
4274 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
4275 # define _REENTRANT 1
4279 struct hostent_data data;
4282 if { (eval echo configure:4283: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4284 libjava_cv_struct_hostent_data=yes
4286 echo "configure: failed program was:" >&5
4287 cat conftest.$ac_ext >&5
4289 libjava_cv_struct_hostent_data=no
4294 echo "$ac_t""$libjava_cv_struct_hostent_data" 1>&6
4295 if test "x$libjava_cv_struct_hostent_data" = xyes; then
4296 cat >> confdefs.h <<\EOF
4297 #define HAVE_STRUCT_HOSTENT_DATA 1
4303 echo "$ac_t""no" 1>&6
4308 # FIXME: libjava source code expects to find a prototype for
4309 # gethostbyaddr_r in netdb.h. The outer check ensures that
4310 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
4311 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
4312 # linkage check is enough, yet C++ code requires proper prototypes.)
4313 cat > conftest.$ac_ext <<EOF
4314 #line 4315 "configure"
4315 #include "confdefs.h"
4318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4319 egrep "gethostbyaddr_r" >/dev/null 2>&1; then
4322 for ac_func in gethostbyaddr_r
4324 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4325 echo "configure:4326: checking for $ac_func" >&5
4326 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4327 echo $ac_n "(cached) $ac_c" 1>&6
4329 cat > conftest.$ac_ext <<EOF
4330 #line 4331 "configure"
4331 #include "confdefs.h"
4332 /* System header to define __stub macros and hopefully few prototypes,
4333 which can conflict with char $ac_func(); below. */
4335 /* Override any gcc2 internal prototype to avoid an error. */
4336 /* We use char because int might match the return type of a gcc2
4337 builtin and then its argument prototype would still apply. */
4342 /* The GNU C library defines this for functions which it implements
4343 to always fail with ENOSYS. Some functions are actually named
4344 something starting with __ and the normal name is an alias. */
4345 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4353 if { (eval echo configure:4354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4355 eval "ac_cv_func_$ac_func=yes"
4357 echo "configure: failed program was:" >&5
4358 cat conftest.$ac_ext >&5
4360 eval "ac_cv_func_$ac_func=no"
4365 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4366 echo "$ac_t""yes" 1>&6
4367 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4368 cat >> confdefs.h <<EOF
4369 #define $ac_tr_func 1
4372 cat >> confdefs.h <<\EOF
4373 #define HAVE_GETHOSTBYADDR_R 1
4376 # There are two different kinds of gethostbyaddr_r.
4377 # We look for the one that returns `int'.
4378 # Hopefully this check is robust enough.
4379 cat > conftest.$ac_ext <<EOF
4380 #line 4381 "configure"
4381 #include "confdefs.h"
4384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4385 egrep "int.*gethostbyaddr_r" >/dev/null 2>&1; then
4388 cat >> confdefs.h <<\EOF
4389 #define GETHOSTBYADDR_R_RETURNS_INT 1
4396 echo "$ac_t""no" 1>&6
4404 for ac_func in gethostname
4406 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4407 echo "configure:4408: checking for $ac_func" >&5
4408 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4409 echo $ac_n "(cached) $ac_c" 1>&6
4411 cat > conftest.$ac_ext <<EOF
4412 #line 4413 "configure"
4413 #include "confdefs.h"
4414 /* System header to define __stub macros and hopefully few prototypes,
4415 which can conflict with char $ac_func(); below. */
4417 /* Override any gcc2 internal prototype to avoid an error. */
4418 /* We use char because int might match the return type of a gcc2
4419 builtin and then its argument prototype would still apply. */
4424 /* The GNU C library defines this for functions which it implements
4425 to always fail with ENOSYS. Some functions are actually named
4426 something starting with __ and the normal name is an alias. */
4427 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4435 if { (eval echo configure:4436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4437 eval "ac_cv_func_$ac_func=yes"
4439 echo "configure: failed program was:" >&5
4440 cat conftest.$ac_ext >&5
4442 eval "ac_cv_func_$ac_func=no"
4447 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4448 echo "$ac_t""yes" 1>&6
4449 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4450 cat >> confdefs.h <<EOF
4451 #define $ac_tr_func 1
4454 cat >> confdefs.h <<\EOF
4455 #define HAVE_GETHOSTNAME 1
4458 cat > conftest.$ac_ext <<EOF
4459 #line 4460 "configure"
4460 #include "confdefs.h"
4463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4464 egrep "gethostname" >/dev/null 2>&1; then
4467 cat >> confdefs.h <<\EOF
4468 #define HAVE_GETHOSTNAME_DECL 1
4475 echo "$ac_t""no" 1>&6
4480 # Look for these functions in the thread library, but only bother
4481 # if using POSIX threads.
4482 if test "$THREADS" = posix; then
4484 LIBS="$LIBS $THREADLIBS"
4485 # Some POSIX thread systems don't have pthread_mutexattr_settype.
4487 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
4489 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4490 echo "configure:4491: checking for $ac_func" >&5
4491 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4492 echo $ac_n "(cached) $ac_c" 1>&6
4494 cat > conftest.$ac_ext <<EOF
4495 #line 4496 "configure"
4496 #include "confdefs.h"
4497 /* System header to define __stub macros and hopefully few prototypes,
4498 which can conflict with char $ac_func(); below. */
4500 /* Override any gcc2 internal prototype to avoid an error. */
4501 /* We use char because int might match the return type of a gcc2
4502 builtin and then its argument prototype would still apply. */
4507 /* The GNU C library defines this for functions which it implements
4508 to always fail with ENOSYS. Some functions are actually named
4509 something starting with __ and the normal name is an alias. */
4510 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4518 if { (eval echo configure:4519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4520 eval "ac_cv_func_$ac_func=yes"
4522 echo "configure: failed program was:" >&5
4523 cat conftest.$ac_ext >&5
4525 eval "ac_cv_func_$ac_func=no"
4530 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4531 echo "$ac_t""yes" 1>&6
4532 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4533 cat >> confdefs.h <<EOF
4534 #define $ac_tr_func 1
4538 echo "$ac_t""no" 1>&6
4543 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
4544 # Solaris 7 the name librt is preferred.
4545 for ac_func in sched_yield
4547 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4548 echo "configure:4549: checking for $ac_func" >&5
4549 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4550 echo $ac_n "(cached) $ac_c" 1>&6
4552 cat > conftest.$ac_ext <<EOF
4553 #line 4554 "configure"
4554 #include "confdefs.h"
4555 /* System header to define __stub macros and hopefully few prototypes,
4556 which can conflict with char $ac_func(); below. */
4558 /* Override any gcc2 internal prototype to avoid an error. */
4559 /* We use char because int might match the return type of a gcc2
4560 builtin and then its argument prototype would still apply. */
4565 /* The GNU C library defines this for functions which it implements
4566 to always fail with ENOSYS. Some functions are actually named
4567 something starting with __ and the normal name is an alias. */
4568 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4576 if { (eval echo configure:4577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4578 eval "ac_cv_func_$ac_func=yes"
4580 echo "configure: failed program was:" >&5
4581 cat conftest.$ac_ext >&5
4583 eval "ac_cv_func_$ac_func=no"
4588 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4589 echo "$ac_t""yes" 1>&6
4590 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4591 cat >> confdefs.h <<EOF
4592 #define $ac_tr_func 1
4596 echo "$ac_t""no" 1>&6
4597 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
4598 echo "configure:4599: checking for sched_yield in -lrt" >&5
4599 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
4600 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4601 echo $ac_n "(cached) $ac_c" 1>&6
4603 ac_save_LIBS="$LIBS"
4605 cat > conftest.$ac_ext <<EOF
4606 #line 4607 "configure"
4607 #include "confdefs.h"
4608 /* Override any gcc2 internal prototype to avoid an error. */
4609 /* We use char because int might match the return type of a gcc2
4610 builtin and then its argument prototype would still apply. */
4617 if { (eval echo configure:4618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4619 eval "ac_cv_lib_$ac_lib_var=yes"
4621 echo "configure: failed program was:" >&5
4622 cat conftest.$ac_ext >&5
4624 eval "ac_cv_lib_$ac_lib_var=no"
4627 LIBS="$ac_save_LIBS"
4630 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4631 echo "$ac_t""yes" 1>&6
4633 cat >> confdefs.h <<\EOF
4634 #define HAVE_SCHED_YIELD 1
4637 THREADLIBS="$THREADLIBS -lrt"
4638 THREADSPEC="$THREADSPEC -lrt"
4640 echo "$ac_t""no" 1>&6
4642 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
4643 echo "configure:4644: checking for sched_yield in -lposix4" >&5
4644 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
4645 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4646 echo $ac_n "(cached) $ac_c" 1>&6
4648 ac_save_LIBS="$LIBS"
4649 LIBS="-lposix4 $LIBS"
4650 cat > conftest.$ac_ext <<EOF
4651 #line 4652 "configure"
4652 #include "confdefs.h"
4653 /* Override any gcc2 internal prototype to avoid an error. */
4654 /* We use char because int might match the return type of a gcc2
4655 builtin and then its argument prototype would still apply. */
4662 if { (eval echo configure:4663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4664 eval "ac_cv_lib_$ac_lib_var=yes"
4666 echo "configure: failed program was:" >&5
4667 cat conftest.$ac_ext >&5
4669 eval "ac_cv_lib_$ac_lib_var=no"
4672 LIBS="$ac_save_LIBS"
4675 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4676 echo "$ac_t""yes" 1>&6
4678 cat >> confdefs.h <<\EOF
4679 #define HAVE_SCHED_YIELD 1
4682 THREADLIBS="$THREADLIBS -lposix4"
4683 THREADSPEC="$THREADSPEC -lposix4"
4685 echo "$ac_t""no" 1>&6
4695 # We can save a little space at runtime if the mutex has m_count
4696 # or __m_count. This is a nice hack for Linux.
4697 cat > conftest.$ac_ext <<EOF
4698 #line 4699 "configure"
4699 #include "confdefs.h"
4700 #include <pthread.h>
4703 extern pthread_mutex_t *mutex; int q = mutex->m_count;
4707 if { (eval echo configure:4708: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4709 cat >> confdefs.h <<\EOF
4710 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
4714 echo "configure: failed program was:" >&5
4715 cat conftest.$ac_ext >&5
4718 cat > conftest.$ac_ext <<EOF
4719 #line 4720 "configure"
4720 #include "confdefs.h"
4721 #include <pthread.h>
4724 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
4728 if { (eval echo configure:4729: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4730 cat >> confdefs.h <<\EOF
4731 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
4735 echo "configure: failed program was:" >&5
4736 cat conftest.$ac_ext >&5
4743 # We require a way to get the time.
4745 for ac_func in gettimeofday time ftime
4747 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4748 echo "configure:4749: checking for $ac_func" >&5
4749 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4750 echo $ac_n "(cached) $ac_c" 1>&6
4752 cat > conftest.$ac_ext <<EOF
4753 #line 4754 "configure"
4754 #include "confdefs.h"
4755 /* System header to define __stub macros and hopefully few prototypes,
4756 which can conflict with char $ac_func(); below. */
4758 /* Override any gcc2 internal prototype to avoid an error. */
4759 /* We use char because int might match the return type of a gcc2
4760 builtin and then its argument prototype would still apply. */
4765 /* The GNU C library defines this for functions which it implements
4766 to always fail with ENOSYS. Some functions are actually named
4767 something starting with __ and the normal name is an alias. */
4768 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4776 if { (eval echo configure:4777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4778 eval "ac_cv_func_$ac_func=yes"
4780 echo "configure: failed program was:" >&5
4781 cat conftest.$ac_ext >&5
4783 eval "ac_cv_func_$ac_func=no"
4788 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4789 echo "$ac_t""yes" 1>&6
4790 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4791 cat >> confdefs.h <<EOF
4792 #define $ac_tr_func 1
4796 echo "$ac_t""no" 1>&6
4800 if test "$time_found" = no; then
4801 { echo "configure: error: no function found to get the time" 1>&2; exit 1; }
4804 for ac_func in memmove
4806 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4807 echo "configure:4808: checking for $ac_func" >&5
4808 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4809 echo $ac_n "(cached) $ac_c" 1>&6
4811 cat > conftest.$ac_ext <<EOF
4812 #line 4813 "configure"
4813 #include "confdefs.h"
4814 /* System header to define __stub macros and hopefully few prototypes,
4815 which can conflict with char $ac_func(); below. */
4817 /* Override any gcc2 internal prototype to avoid an error. */
4818 /* We use char because int might match the return type of a gcc2
4819 builtin and then its argument prototype would still apply. */
4824 /* The GNU C library defines this for functions which it implements
4825 to always fail with ENOSYS. Some functions are actually named
4826 something starting with __ and the normal name is an alias. */
4827 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4835 if { (eval echo configure:4836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4837 eval "ac_cv_func_$ac_func=yes"
4839 echo "configure: failed program was:" >&5
4840 cat conftest.$ac_ext >&5
4842 eval "ac_cv_func_$ac_func=no"
4847 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4848 echo "$ac_t""yes" 1>&6
4849 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4850 cat >> confdefs.h <<EOF
4851 #define $ac_tr_func 1
4855 echo "$ac_t""no" 1>&6
4860 # We require memcpy.
4862 for ac_func in memcpy
4864 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4865 echo "configure:4866: checking for $ac_func" >&5
4866 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4867 echo $ac_n "(cached) $ac_c" 1>&6
4869 cat > conftest.$ac_ext <<EOF
4870 #line 4871 "configure"
4871 #include "confdefs.h"
4872 /* System header to define __stub macros and hopefully few prototypes,
4873 which can conflict with char $ac_func(); below. */
4875 /* Override any gcc2 internal prototype to avoid an error. */
4876 /* We use char because int might match the return type of a gcc2
4877 builtin and then its argument prototype would still apply. */
4882 /* The GNU C library defines this for functions which it implements
4883 to always fail with ENOSYS. Some functions are actually named
4884 something starting with __ and the normal name is an alias. */
4885 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4893 if { (eval echo configure:4894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4895 eval "ac_cv_func_$ac_func=yes"
4897 echo "configure: failed program was:" >&5
4898 cat conftest.$ac_ext >&5
4900 eval "ac_cv_func_$ac_func=no"
4905 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4906 echo "$ac_t""yes" 1>&6
4907 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4908 cat >> confdefs.h <<EOF
4909 #define $ac_tr_func 1
4913 echo "$ac_t""no" 1>&6
4917 if test "$memcpy_found" = no; then
4918 { echo "configure: error: memcpy is required" 1>&2; exit 1; }
4921 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4922 echo "configure:4923: checking for dlopen in -ldl" >&5
4923 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4924 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4925 echo $ac_n "(cached) $ac_c" 1>&6
4927 ac_save_LIBS="$LIBS"
4929 cat > conftest.$ac_ext <<EOF
4930 #line 4931 "configure"
4931 #include "confdefs.h"
4932 /* Override any gcc2 internal prototype to avoid an error. */
4933 /* We use char because int might match the return type of a gcc2
4934 builtin and then its argument prototype would still apply. */
4941 if { (eval echo configure:4942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4943 eval "ac_cv_lib_$ac_lib_var=yes"
4945 echo "configure: failed program was:" >&5
4946 cat conftest.$ac_ext >&5
4948 eval "ac_cv_lib_$ac_lib_var=no"
4951 LIBS="$ac_save_LIBS"
4954 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4955 echo "$ac_t""yes" 1>&6
4957 cat >> confdefs.h <<\EOF
4958 #define HAVE_DLOPEN 1
4962 echo "$ac_t""no" 1>&6
4966 # Some library-finding code we stole from Tcl.
4967 #--------------------------------------------------------------------
4968 # Check for the existence of the -lsocket and -lnsl libraries.
4969 # The order here is important, so that they end up in the right
4970 # order in the command line generated by make. Here are some
4971 # special considerations:
4972 # 1. Use "connect" and "accept" to check for -lsocket, and
4973 # "gethostbyname" to check for -lnsl.
4974 # 2. Use each function name only once: can't redo a check because
4975 # autoconf caches the results of the last check and won't redo it.
4976 # 3. Use -lnsl and -lsocket only if they supply procedures that
4977 # aren't already present in the normal libraries. This is because
4978 # IRIX 5.2 has libraries, but they aren't needed and they're
4979 # bogus: they goof up name resolution if used.
4980 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
4981 # To get around this problem, check for both libraries together
4982 # if -lsocket doesn't work by itself.
4983 #--------------------------------------------------------------------
4985 echo $ac_n "checking for socket libraries""... $ac_c" 1>&6
4986 echo "configure:4987: checking for socket libraries" >&5
4987 if eval "test \"`echo '$''{'gcj_cv_lib_sockets'+set}'`\" = set"; then
4988 echo $ac_n "(cached) $ac_c" 1>&6
4992 unset ac_cv_func_connect
4993 echo $ac_n "checking for connect""... $ac_c" 1>&6
4994 echo "configure:4995: checking for connect" >&5
4995 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
4996 echo $ac_n "(cached) $ac_c" 1>&6
4998 cat > conftest.$ac_ext <<EOF
4999 #line 5000 "configure"
5000 #include "confdefs.h"
5001 /* System header to define __stub macros and hopefully few prototypes,
5002 which can conflict with char connect(); below. */
5004 /* Override any gcc2 internal prototype to avoid an error. */
5005 /* We use char because int might match the return type of a gcc2
5006 builtin and then its argument prototype would still apply. */
5011 /* The GNU C library defines this for functions which it implements
5012 to always fail with ENOSYS. Some functions are actually named
5013 something starting with __ and the normal name is an alias. */
5014 #if defined (__stub_connect) || defined (__stub___connect)
5022 if { (eval echo configure:5023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5024 eval "ac_cv_func_connect=yes"
5026 echo "configure: failed program was:" >&5
5027 cat conftest.$ac_ext >&5
5029 eval "ac_cv_func_connect=no"
5034 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
5035 echo "$ac_t""yes" 1>&6
5038 echo "$ac_t""no" 1>&6
5042 if test "$gcj_checkSocket" = 1; then
5043 unset ac_cv_func_connect
5044 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
5045 echo "configure:5046: checking for main in -lsocket" >&5
5046 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
5047 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5048 echo $ac_n "(cached) $ac_c" 1>&6
5050 ac_save_LIBS="$LIBS"
5051 LIBS="-lsocket $LIBS"
5052 cat > conftest.$ac_ext <<EOF
5053 #line 5054 "configure"
5054 #include "confdefs.h"
5060 if { (eval echo configure:5061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5062 eval "ac_cv_lib_$ac_lib_var=yes"
5064 echo "configure: failed program was:" >&5
5065 cat conftest.$ac_ext >&5
5067 eval "ac_cv_lib_$ac_lib_var=no"
5070 LIBS="$ac_save_LIBS"
5073 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5074 echo "$ac_t""yes" 1>&6
5075 gcj_cv_lib_sockets="-lsocket"
5077 echo "$ac_t""no" 1>&6
5082 if test "$gcj_checkBoth" = 1; then
5084 LIBS="$LIBS -lsocket -lnsl"
5085 unset ac_cv_func_accept
5086 echo $ac_n "checking for accept""... $ac_c" 1>&6
5087 echo "configure:5088: checking for accept" >&5
5088 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
5089 echo $ac_n "(cached) $ac_c" 1>&6
5091 cat > conftest.$ac_ext <<EOF
5092 #line 5093 "configure"
5093 #include "confdefs.h"
5094 /* System header to define __stub macros and hopefully few prototypes,
5095 which can conflict with char accept(); below. */
5097 /* Override any gcc2 internal prototype to avoid an error. */
5098 /* We use char because int might match the return type of a gcc2
5099 builtin and then its argument prototype would still apply. */
5104 /* The GNU C library defines this for functions which it implements
5105 to always fail with ENOSYS. Some functions are actually named
5106 something starting with __ and the normal name is an alias. */
5107 #if defined (__stub_accept) || defined (__stub___accept)
5115 if { (eval echo configure:5116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5117 eval "ac_cv_func_accept=yes"
5119 echo "configure: failed program was:" >&5
5120 cat conftest.$ac_ext >&5
5122 eval "ac_cv_func_accept=no"
5127 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
5128 echo "$ac_t""yes" 1>&6
5130 gcj_cv_lib_sockets="-lsocket -lnsl"
5132 echo "$ac_t""no" 1>&6
5135 unset ac_cv_func_accept
5138 unset ac_cv_func_gethostbyname
5140 LIBS="$LIBS $gcj_cv_lib_sockets"
5141 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5142 echo "configure:5143: checking for gethostbyname" >&5
5143 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
5144 echo $ac_n "(cached) $ac_c" 1>&6
5146 cat > conftest.$ac_ext <<EOF
5147 #line 5148 "configure"
5148 #include "confdefs.h"
5149 /* System header to define __stub macros and hopefully few prototypes,
5150 which can conflict with char gethostbyname(); below. */
5152 /* Override any gcc2 internal prototype to avoid an error. */
5153 /* We use char because int might match the return type of a gcc2
5154 builtin and then its argument prototype would still apply. */
5155 char gethostbyname();
5159 /* The GNU C library defines this for functions which it implements
5160 to always fail with ENOSYS. Some functions are actually named
5161 something starting with __ and the normal name is an alias. */
5162 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5170 if { (eval echo configure:5171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5172 eval "ac_cv_func_gethostbyname=yes"
5174 echo "configure: failed program was:" >&5
5175 cat conftest.$ac_ext >&5
5177 eval "ac_cv_func_gethostbyname=no"
5182 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
5183 echo "$ac_t""yes" 1>&6
5186 echo "$ac_t""no" 1>&6
5187 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
5188 echo "configure:5189: checking for main in -lnsl" >&5
5189 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
5190 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5191 echo $ac_n "(cached) $ac_c" 1>&6
5193 ac_save_LIBS="$LIBS"
5195 cat > conftest.$ac_ext <<EOF
5196 #line 5197 "configure"
5197 #include "confdefs.h"
5203 if { (eval echo configure:5204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5205 eval "ac_cv_lib_$ac_lib_var=yes"
5207 echo "configure: failed program was:" >&5
5208 cat conftest.$ac_ext >&5
5210 eval "ac_cv_lib_$ac_lib_var=no"
5213 LIBS="$ac_save_LIBS"
5216 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5217 echo "$ac_t""yes" 1>&6
5218 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
5220 echo "$ac_t""no" 1>&6
5225 unset ac_cv_func_gethostbyname
5230 echo "$ac_t""$gcj_cv_lib_sockets" 1>&6
5231 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
5233 if test "$with_system_zlib" = yes; then
5234 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
5235 echo "configure:5236: checking for deflate in -lz" >&5
5236 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
5237 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5238 echo $ac_n "(cached) $ac_c" 1>&6
5240 ac_save_LIBS="$LIBS"
5242 cat > conftest.$ac_ext <<EOF
5243 #line 5244 "configure"
5244 #include "confdefs.h"
5245 /* Override any gcc2 internal prototype to avoid an error. */
5246 /* We use char because int might match the return type of a gcc2
5247 builtin and then its argument prototype would still apply. */
5254 if { (eval echo configure:5255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5256 eval "ac_cv_lib_$ac_lib_var=yes"
5258 echo "configure: failed program was:" >&5
5259 cat conftest.$ac_ext >&5
5261 eval "ac_cv_lib_$ac_lib_var=no"
5264 LIBS="$ac_save_LIBS"
5267 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5268 echo "$ac_t""yes" 1>&6
5271 echo "$ac_t""no" 1>&6
5277 ZLIBTESTSPEC="-L`pwd`/../zlib/.libs -rpath `pwd`/../zlib/.libs"
5280 # On Solaris, and maybe other architectures, the Boehm collector
5282 if test "$GC" = boehm; then
5283 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
5284 echo "configure:5285: checking for main in -ldl" >&5
5285 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
5286 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5287 echo $ac_n "(cached) $ac_c" 1>&6
5289 ac_save_LIBS="$LIBS"
5291 cat > conftest.$ac_ext <<EOF
5292 #line 5293 "configure"
5293 #include "confdefs.h"
5299 if { (eval echo configure:5300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5301 eval "ac_cv_lib_$ac_lib_var=yes"
5303 echo "configure: failed program was:" >&5
5304 cat conftest.$ac_ext >&5
5306 eval "ac_cv_lib_$ac_lib_var=no"
5309 LIBS="$ac_save_LIBS"
5312 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5313 echo "$ac_t""yes" 1>&6
5314 SYSTEMSPEC="$SYSTEMSPEC -ldl"
5316 echo "$ac_t""no" 1>&6
5321 if test -z "${with_multisubdir}"; then
5325 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
5328 if test -x "${builddotdot}/../../gcc/gcj"; then
5329 dir="`cd ${builddotdot}/../../gcc && pwd`"
5330 GCJ="$dir/gcj -B`pwd`/ -B$dir/"
5338 # Create it, so that compile/link tests don't fail
5339 test -f libgcj.spec || touch libgcj.spec
5341 # We must search the source tree for java.lang, since we still don't
5342 # have libgcj.jar nor java/lang/*.class
5343 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
5344 CPPFLAGS="$CPPFLAGS -I`pwd` -I`cd $srcdir && pwd`"
5346 # Since some classes depend on this one, we need its source available
5347 # before we can do any GCJ compilation test :-(
5348 if test ! -f gnu/classpath/Configuration.java; then
5349 test -d gnu || mkdir gnu
5350 test -d gnu/classpath || mkdir gnu/classpath
5351 sed 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
5352 < $srcdir/gnu/classpath/Configuration.java.in \
5353 > gnu/classpath/Configuration.java
5354 # We do not want to redirect the output of the grep below to /dev/null,
5355 # but we add /dev/null to the input list so that grep will print the
5356 # filename of Configuration.java in case it finds any matches.
5357 if grep @ gnu/classpath/Configuration.java /dev/null; then
5358 { echo "configure: error: configure.in is missing the substitutions above" 1>&2; exit 1; }
5362 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
5363 set dummy ${ac_tool_prefix}gcj; ac_word=$2
5364 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5365 echo "configure:5366: checking for $ac_word" >&5
5366 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
5367 echo $ac_n "(cached) $ac_c" 1>&6
5369 if test -n "$GCJ"; then
5370 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5372 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5374 for ac_dir in $ac_dummy; do
5375 test -z "$ac_dir" && ac_dir=.
5376 if test -f $ac_dir/$ac_word; then
5377 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
5384 GCJ="$ac_cv_prog_GCJ"
5385 if test -n "$GCJ"; then
5386 echo "$ac_t""$GCJ" 1>&6
5388 echo "$ac_t""no" 1>&6
5392 if test -z "$ac_cv_prog_GCJ"; then
5393 if test -n "$ac_tool_prefix"; then
5394 # Extract the first word of "gcj", so it can be a program name with args.
5395 set dummy gcj; ac_word=$2
5396 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5397 echo "configure:5398: checking for $ac_word" >&5
5398 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
5399 echo $ac_n "(cached) $ac_c" 1>&6
5401 if test -n "$GCJ"; then
5402 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5404 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5406 for ac_dir in $ac_dummy; do
5407 test -z "$ac_dir" && ac_dir=.
5408 if test -f $ac_dir/$ac_word; then
5409 ac_cv_prog_GCJ="gcj"
5414 test -z "$ac_cv_prog_GCJ" && ac_cv_prog_GCJ="no"
5417 GCJ="$ac_cv_prog_GCJ"
5418 if test -n "$GCJ"; then
5419 echo "$ac_t""$GCJ" 1>&6
5421 echo "$ac_t""no" 1>&6
5429 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
5433 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
5435 lt_save_CFLAGS="$CFLAGS"
5436 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
5437 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5438 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5439 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5440 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5441 deplibs_check_method="$deplibs_check_method" \
5442 file_magic_cmd="$file_magic_cmd" \
5443 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5444 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
5445 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
5447 CFLAGS="$lt_save_CFLAGS"
5449 # Redirect the config.log output again, so that the ltconfig log is not
5450 # clobbered by the next message.
5451 exec 5>>./config.log
5456 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
5458 echo $ac_n "checking size of void *""... $ac_c" 1>&6
5459 echo "configure:5460: checking size of void *" >&5
5460 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
5461 echo $ac_n "(cached) $ac_c" 1>&6
5463 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
5464 cat > conftest.$ac_ext <<EOF
5465 #line 5466 "configure"
5466 #include "confdefs.h"
5467 #include "confdefs.h"
5468 #include <sys/types.h>
5472 switch (0) case 0: case (sizeof (void *) == $ac_size):;
5475 if { (eval echo configure:5476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5477 ac_cv_sizeof_void_p=$ac_size
5479 echo "configure: failed program was:" >&5
5480 cat conftest.$ac_ext >&5
5483 if test x$ac_cv_sizeof_void_p != x ; then break; fi
5488 if test x$ac_cv_sizeof_void_p = x ; then
5489 { echo "configure: error: cannot determine a size for void *" 1>&2; exit 1; }
5491 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
5492 cat >> confdefs.h <<EOF
5493 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5501 if test "x$ZLIBSPEC" = "x-lzgcj"; then
5502 # We include the path to the zlib build directory.
5503 # See Makefile.am to understand why.
5504 ZDEPS='$(top_builddir)/../zlib/libzgcj.la'
5505 ZLIBS="$ZDEPS -L\$(here)/../zlib/$libsubdir"
5506 ZINCS='-I$(top_srcdir)/../zlib'
5518 if test "$CANADIAN" = yes; then
5527 if test "$NULL_TARGET" = yes; then
5529 NULL_TARGET_FALSE='#'
5531 NULL_TARGET_TRUE='#'
5536 if test "$NATIVE" = yes || test "$NULL_TARGET" = yes; then
5545 if test -z "$with_cross_host"; then
5547 USE_LIBDIR_FALSE='#'
5554 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
5555 NEEDS_DATA_START_TRUE=
5556 NEEDS_DATA_START_FALSE='#'
5558 NEEDS_DATA_START_TRUE='#'
5559 NEEDS_DATA_START_FALSE=
5565 echo $ac_n "checking for g++ -ffloat-store bug""... $ac_c" 1>&6
5566 echo "configure:5567: checking for g++ -ffloat-store bug" >&5
5567 save_CFLAGS="$CFLAGS"
5568 CFLAGS="-x c++ -O2 -ffloat-store"
5569 cat > conftest.$ac_ext <<EOF
5570 #line 5571 "configure"
5571 #include "confdefs.h"
5577 if { (eval echo configure:5578: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5579 echo "$ac_t""no" 1>&6
5581 echo "configure: failed program was:" >&5
5582 cat conftest.$ac_ext >&5
5584 cat >> confdefs.h <<\EOF
5585 #define __NO_MATH_INLINES 1
5588 echo "$ac_t""yes" 1>&6
5591 CFLAGS="$save_CFLAGS"
5593 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 stdint.h langinfo.h locale.h
5595 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5596 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5597 echo "configure:5598: checking for $ac_hdr" >&5
5598 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5599 echo $ac_n "(cached) $ac_c" 1>&6
5601 cat > conftest.$ac_ext <<EOF
5602 #line 5603 "configure"
5603 #include "confdefs.h"
5606 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5607 { (eval echo configure:5608: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5608 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5609 if test -z "$ac_err"; then
5611 eval "ac_cv_header_$ac_safe=yes"
5614 echo "configure: failed program was:" >&5
5615 cat conftest.$ac_ext >&5
5617 eval "ac_cv_header_$ac_safe=no"
5621 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5622 echo "$ac_t""yes" 1>&6
5623 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5624 cat >> confdefs.h <<EOF
5625 #define $ac_tr_hdr 1
5629 echo "$ac_t""no" 1>&6
5633 for ac_hdr in dirent.h
5635 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5636 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5637 echo "configure:5638: checking for $ac_hdr" >&5
5638 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5639 echo $ac_n "(cached) $ac_c" 1>&6
5641 cat > conftest.$ac_ext <<EOF
5642 #line 5643 "configure"
5643 #include "confdefs.h"
5646 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5647 { (eval echo configure:5648: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5648 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5649 if test -z "$ac_err"; then
5651 eval "ac_cv_header_$ac_safe=yes"
5654 echo "configure: failed program was:" >&5
5655 cat conftest.$ac_ext >&5
5657 eval "ac_cv_header_$ac_safe=no"
5661 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5662 echo "$ac_t""yes" 1>&6
5663 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5664 cat >> confdefs.h <<EOF
5665 #define $ac_tr_hdr 1
5669 echo "$ac_t""no" 1>&6
5673 for ac_hdr in inttypes.h
5675 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5676 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5677 echo "configure:5678: checking for $ac_hdr" >&5
5678 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5679 echo $ac_n "(cached) $ac_c" 1>&6
5681 cat > conftest.$ac_ext <<EOF
5682 #line 5683 "configure"
5683 #include "confdefs.h"
5686 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5687 { (eval echo configure:5688: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5688 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5689 if test -z "$ac_err"; then
5691 eval "ac_cv_header_$ac_safe=yes"
5694 echo "configure: failed program was:" >&5
5695 cat conftest.$ac_ext >&5
5697 eval "ac_cv_header_$ac_safe=no"
5701 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5702 echo "$ac_t""yes" 1>&6
5703 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5704 cat >> confdefs.h <<EOF
5705 #define $ac_tr_hdr 1
5708 cat >> confdefs.h <<\EOF
5709 #define HAVE_INTTYPES_H 1
5712 cat >> confdefs.h <<\EOF
5713 #define JV_HAVE_INTTYPES_H 1
5718 echo "$ac_t""no" 1>&6
5722 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
5723 echo "configure:5724: checking for sys/wait.h that is POSIX.1 compatible" >&5
5724 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
5725 echo $ac_n "(cached) $ac_c" 1>&6
5727 cat > conftest.$ac_ext <<EOF
5728 #line 5729 "configure"
5729 #include "confdefs.h"
5730 #include <sys/types.h>
5731 #include <sys/wait.h>
5733 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5736 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5741 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5744 if { (eval echo configure:5745: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5746 ac_cv_header_sys_wait_h=yes
5748 echo "configure: failed program was:" >&5
5749 cat conftest.$ac_ext >&5
5751 ac_cv_header_sys_wait_h=no
5756 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
5757 if test $ac_cv_header_sys_wait_h = yes; then
5758 cat >> confdefs.h <<\EOF
5759 #define HAVE_SYS_WAIT_H 1
5765 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5766 echo "configure:5767: checking for ANSI C header files" >&5
5767 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5768 echo $ac_n "(cached) $ac_c" 1>&6
5770 cat > conftest.$ac_ext <<EOF
5771 #line 5772 "configure"
5772 #include "confdefs.h"
5778 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5779 { (eval echo configure:5780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5780 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5781 if test -z "$ac_err"; then
5783 ac_cv_header_stdc=yes
5786 echo "configure: failed program was:" >&5
5787 cat conftest.$ac_ext >&5
5789 ac_cv_header_stdc=no
5793 if test $ac_cv_header_stdc = yes; then
5794 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5795 cat > conftest.$ac_ext <<EOF
5796 #line 5797 "configure"
5797 #include "confdefs.h"
5800 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5801 egrep "memchr" >/dev/null 2>&1; then
5805 ac_cv_header_stdc=no
5811 if test $ac_cv_header_stdc = yes; then
5812 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5813 cat > conftest.$ac_ext <<EOF
5814 #line 5815 "configure"
5815 #include "confdefs.h"
5818 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5819 egrep "free" >/dev/null 2>&1; then
5823 ac_cv_header_stdc=no
5829 if test $ac_cv_header_stdc = yes; then
5830 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5831 if test "$cross_compiling" = yes; then
5834 cat > conftest.$ac_ext <<EOF
5835 #line 5836 "configure"
5836 #include "confdefs.h"
5838 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5839 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5840 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5841 int main () { int i; for (i = 0; i < 256; i++)
5842 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5846 if { (eval echo configure:5847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5850 echo "configure: failed program was:" >&5
5851 cat conftest.$ac_ext >&5
5853 ac_cv_header_stdc=no
5861 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5862 if test $ac_cv_header_stdc = yes; then
5863 cat >> confdefs.h <<\EOF
5864 #define STDC_HEADERS 1
5869 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
5870 echo "configure:5871: checking for ssize_t" >&5
5871 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
5872 echo $ac_n "(cached) $ac_c" 1>&6
5874 cat > conftest.$ac_ext <<EOF
5875 #line 5876 "configure"
5876 #include "confdefs.h"
5877 #include <sys/types.h>
5883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5884 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5886 ac_cv_type_ssize_t=yes
5889 ac_cv_type_ssize_t=no
5894 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
5895 if test $ac_cv_type_ssize_t = no; then
5896 cat >> confdefs.h <<\EOF
5903 echo $ac_n "checking for in_addr_t""... $ac_c" 1>&6
5904 echo "configure:5905: checking for in_addr_t" >&5
5905 cat > conftest.$ac_ext <<EOF
5906 #line 5907 "configure"
5907 #include "confdefs.h"
5908 #include <sys/types.h>
5913 #if HAVE_NETINET_IN_H
5914 #include <netinet/in.h>
5920 if { (eval echo configure:5921: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5922 cat >> confdefs.h <<\EOF
5923 #define HAVE_IN_ADDR_T 1
5926 echo "$ac_t""yes" 1>&6
5928 echo "configure: failed program was:" >&5
5929 cat conftest.$ac_ext >&5
5931 echo "$ac_t""no" 1>&6
5935 echo $ac_n "checking whether struct ip_mreq is in netinet/in.h""... $ac_c" 1>&6
5936 echo "configure:5937: checking whether struct ip_mreq is in netinet/in.h" >&5
5937 cat > conftest.$ac_ext <<EOF
5938 #line 5939 "configure"
5939 #include "confdefs.h"
5940 #include <netinet/in.h>
5942 struct ip_mreq mreq;
5945 if { (eval echo configure:5946: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5947 cat >> confdefs.h <<\EOF
5948 #define HAVE_STRUCT_IP_MREQ 1
5951 echo "$ac_t""yes" 1>&6
5953 echo "configure: failed program was:" >&5
5954 cat conftest.$ac_ext >&5
5956 echo "$ac_t""no" 1>&6
5960 echo $ac_n "checking whether struct ipv6_mreq is in netinet/in.h""... $ac_c" 1>&6
5961 echo "configure:5962: checking whether struct ipv6_mreq is in netinet/in.h" >&5
5962 cat > conftest.$ac_ext <<EOF
5963 #line 5964 "configure"
5964 #include "confdefs.h"
5965 #include <netinet/in.h>
5967 struct ipv6_mreq mreq6;
5970 if { (eval echo configure:5971: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5972 cat >> confdefs.h <<\EOF
5973 #define HAVE_STRUCT_IPV6_MREQ 1
5976 echo "$ac_t""yes" 1>&6
5978 echo "configure: failed program was:" >&5
5979 cat conftest.$ac_ext >&5
5981 echo "$ac_t""no" 1>&6
5985 echo $ac_n "checking whether struct sockaddr_in6 is in netinet/in.h""... $ac_c" 1>&6
5986 echo "configure:5987: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
5987 cat > conftest.$ac_ext <<EOF
5988 #line 5989 "configure"
5989 #include "confdefs.h"
5990 #include <netinet/in.h>
5992 struct sockaddr_in6 addr6;
5995 if { (eval echo configure:5996: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5997 cat >> confdefs.h <<\EOF
5998 #define HAVE_INET6 1
6001 echo "$ac_t""yes" 1>&6
6003 echo "configure: failed program was:" >&5
6004 cat conftest.$ac_ext >&5
6006 echo "$ac_t""no" 1>&6
6010 echo $ac_n "checking for socklen_t in sys/socket.h""... $ac_c" 1>&6
6011 echo "configure:6012: checking for socklen_t in sys/socket.h" >&5
6012 cat > conftest.$ac_ext <<EOF
6013 #line 6014 "configure"
6014 #include "confdefs.h"
6015 #define _POSIX_PII_SOCKET
6016 #include <sys/types.h>
6017 #include <sys/socket.h>
6022 if { (eval echo configure:6023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6024 cat >> confdefs.h <<\EOF
6025 #define HAVE_SOCKLEN_T 1
6028 echo "$ac_t""yes" 1>&6
6030 echo "configure: failed program was:" >&5
6031 cat conftest.$ac_ext >&5
6033 echo "$ac_t""no" 1>&6
6037 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
6038 echo "configure:6039: checking for tm_gmtoff in struct tm" >&5
6039 cat > conftest.$ac_ext <<EOF
6040 #line 6041 "configure"
6041 #include "confdefs.h"
6044 struct tm tim; tim.tm_gmtoff = 0;
6047 if { (eval echo configure:6048: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6049 cat >> confdefs.h <<\EOF
6050 #define STRUCT_TM_HAS_GMTOFF 1
6053 echo "$ac_t""yes" 1>&6
6055 echo "configure: failed program was:" >&5
6056 cat conftest.$ac_ext >&5
6058 echo "$ac_t""no" 1>&6
6059 echo $ac_n "checking for global timezone variable""... $ac_c" 1>&6
6060 echo "configure:6061: checking for global timezone variable" >&5
6061 cat > conftest.$ac_ext <<EOF
6062 #line 6063 "configure"
6063 #include "confdefs.h"
6069 if { (eval echo configure:6070: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6071 cat >> confdefs.h <<\EOF
6072 #define HAVE_TIMEZONE 1
6075 echo "$ac_t""yes" 1>&6
6077 echo "configure: failed program was:" >&5
6078 cat conftest.$ac_ext >&5
6080 echo "$ac_t""no" 1>&6
6086 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6087 # for constant arguments. Useless!
6088 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
6089 echo "configure:6090: checking for working alloca.h" >&5
6090 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
6091 echo $ac_n "(cached) $ac_c" 1>&6
6093 cat > conftest.$ac_ext <<EOF
6094 #line 6095 "configure"
6095 #include "confdefs.h"
6098 char *p = alloca(2 * sizeof(int));
6101 if { (eval echo configure:6102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6103 ac_cv_header_alloca_h=yes
6105 echo "configure: failed program was:" >&5
6106 cat conftest.$ac_ext >&5
6108 ac_cv_header_alloca_h=no
6113 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
6114 if test $ac_cv_header_alloca_h = yes; then
6115 cat >> confdefs.h <<\EOF
6116 #define HAVE_ALLOCA_H 1
6121 echo $ac_n "checking for alloca""... $ac_c" 1>&6
6122 echo "configure:6123: checking for alloca" >&5
6123 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
6124 echo $ac_n "(cached) $ac_c" 1>&6
6126 cat > conftest.$ac_ext <<EOF
6127 #line 6128 "configure"
6128 #include "confdefs.h"
6131 # define alloca __builtin_alloca
6134 # include <malloc.h>
6135 # define alloca _alloca
6138 # include <alloca.h>
6143 # ifndef alloca /* predefined by HP cc +Olibcalls */
6152 char *p = (char *) alloca(1);
6155 if { (eval echo configure:6156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6157 ac_cv_func_alloca_works=yes
6159 echo "configure: failed program was:" >&5
6160 cat conftest.$ac_ext >&5
6162 ac_cv_func_alloca_works=no
6167 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
6168 if test $ac_cv_func_alloca_works = yes; then
6169 cat >> confdefs.h <<\EOF
6170 #define HAVE_ALLOCA 1
6175 if test $ac_cv_func_alloca_works = no; then
6176 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6177 # that cause trouble. Some versions do not even contain alloca or
6178 # contain a buggy version. If you still want to use their alloca,
6179 # use ar to extract alloca.o from them instead of compiling alloca.c.
6180 ALLOCA=alloca.${ac_objext}
6181 cat >> confdefs.h <<\EOF
6186 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
6187 echo "configure:6188: checking whether alloca needs Cray hooks" >&5
6188 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
6189 echo $ac_n "(cached) $ac_c" 1>&6
6191 cat > conftest.$ac_ext <<EOF
6192 #line 6193 "configure"
6193 #include "confdefs.h"
6194 #if defined(CRAY) && ! defined(CRAY2)
6201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6202 egrep "webecray" >/dev/null 2>&1; then
6213 echo "$ac_t""$ac_cv_os_cray" 1>&6
6214 if test $ac_cv_os_cray = yes; then
6215 for ac_func in _getb67 GETB67 getb67; do
6216 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6217 echo "configure:6218: checking for $ac_func" >&5
6218 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6219 echo $ac_n "(cached) $ac_c" 1>&6
6221 cat > conftest.$ac_ext <<EOF
6222 #line 6223 "configure"
6223 #include "confdefs.h"
6224 /* System header to define __stub macros and hopefully few prototypes,
6225 which can conflict with char $ac_func(); below. */
6227 /* Override any gcc2 internal prototype to avoid an error. */
6228 /* We use char because int might match the return type of a gcc2
6229 builtin and then its argument prototype would still apply. */
6234 /* The GNU C library defines this for functions which it implements
6235 to always fail with ENOSYS. Some functions are actually named
6236 something starting with __ and the normal name is an alias. */
6237 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6245 if { (eval echo configure:6246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6247 eval "ac_cv_func_$ac_func=yes"
6249 echo "configure: failed program was:" >&5
6250 cat conftest.$ac_ext >&5
6252 eval "ac_cv_func_$ac_func=no"
6257 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6258 echo "$ac_t""yes" 1>&6
6259 cat >> confdefs.h <<EOF
6260 #define CRAY_STACKSEG_END $ac_func
6265 echo "$ac_t""no" 1>&6
6271 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
6272 echo "configure:6273: checking stack direction for C alloca" >&5
6273 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
6274 echo $ac_n "(cached) $ac_c" 1>&6
6276 if test "$cross_compiling" = yes; then
6277 ac_cv_c_stack_direction=0
6279 cat > conftest.$ac_ext <<EOF
6280 #line 6281 "configure"
6281 #include "confdefs.h"
6282 find_stack_direction ()
6284 static char *addr = 0;
6289 return find_stack_direction ();
6292 return (&dummy > addr) ? 1 : -1;
6296 exit (find_stack_direction() < 0);
6299 if { (eval echo configure:6300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6301 ac_cv_c_stack_direction=1
6303 echo "configure: failed program was:" >&5
6304 cat conftest.$ac_ext >&5
6306 ac_cv_c_stack_direction=-1
6313 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
6314 cat >> confdefs.h <<EOF
6315 #define STACK_DIRECTION $ac_cv_c_stack_direction
6323 # Extract the first word of "$ac_prog", so it can be a program name with args.
6324 set dummy $ac_prog; ac_word=$2
6325 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6326 echo "configure:6327: checking for $ac_word" >&5
6327 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
6328 echo $ac_n "(cached) $ac_c" 1>&6
6330 if test -n "$PERL"; then
6331 ac_cv_prog_PERL="$PERL" # Let the user override the test.
6333 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6335 for ac_dir in $ac_dummy; do
6336 test -z "$ac_dir" && ac_dir=.
6337 if test -f $ac_dir/$ac_word; then
6338 ac_cv_prog_PERL="$ac_prog"
6345 PERL="$ac_cv_prog_PERL"
6346 if test -n "$PERL"; then
6347 echo "$ac_t""$PERL" 1>&6
6349 echo "$ac_t""no" 1>&6
6352 test -n "$PERL" && break
6354 test -n "$PERL" || PERL="false"
6361 SIGNAL_HANDLER=include/i386-signal.h
6364 SIGNAL_HANDLER=include/sparc-signal.h
6367 # SYSDEP_SOURCES=sysdep/ia64.c
6368 # test -d sysdep || mkdir sysdep
6371 SIGNAL_HANDLER=include/dwarf2-signal.h
6374 SIGNAL_HANDLER=include/dwarf2-signal.h
6377 SIGNAL_HANDLER=include/win32-signal.h
6380 SIGNAL_HANDLER=include/default-signal.h
6384 # If we're using sjlj exceptions, forget what we just learned.
6385 if test "$enable_sjlj_exceptions" = yes; then
6386 SIGNAL_HANDLER=include/default-signal.h
6393 if test "${multilib}" = "yes"; then
6394 multilib_arg="--enable-multilib"
6399 # If we find X, set shell vars x_includes and x_libraries to the
6400 # paths, otherwise set no_x=yes.
6401 # Uses ac_ vars as temps to allow command line to override cache and checks.
6402 # --without-x overrides everything else, but does not touch the cache.
6403 echo $ac_n "checking for X""... $ac_c" 1>&6
6404 echo "configure:6405: checking for X" >&5
6406 # Check whether --with-x or --without-x was given.
6407 if test "${with_x+set}" = set; then
6412 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6413 if test "x$with_x" = xno; then
6414 # The user explicitly disabled X.
6417 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6418 # Both variables are already set.
6421 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
6422 echo $ac_n "(cached) $ac_c" 1>&6
6424 # One or both of the vars are not set, and there is no cached value.
6425 ac_x_includes=NO ac_x_libraries=NO
6427 if mkdir conftestdir; then
6429 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6430 cat > Imakefile <<'EOF'
6432 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6434 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6435 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6436 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6437 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6438 for ac_extension in a so sl; do
6439 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6440 test -f $ac_im_libdir/libX11.$ac_extension; then
6441 ac_im_usrlibdir=$ac_im_libdir; break
6444 # Screen out bogus values from the imake configuration. They are
6445 # bogus both because they are the default anyway, and because
6446 # using them would break gcc on systems where it needs fixed includes.
6447 case "$ac_im_incroot" in
6449 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
6451 case "$ac_im_usrlibdir" in
6453 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
6460 if test "$ac_x_includes" = NO; then
6461 # Guess where to find include files, by looking for this one X11 .h file.
6462 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
6464 # First, try using that file with no special directory specified.
6465 cat > conftest.$ac_ext <<EOF
6466 #line 6467 "configure"
6467 #include "confdefs.h"
6468 #include <$x_direct_test_include>
6470 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6471 { (eval echo configure:6472: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6472 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6473 if test -z "$ac_err"; then
6475 # We can compile using X headers with no special include directory.
6479 echo "configure: failed program was:" >&5
6480 cat conftest.$ac_ext >&5
6482 # Look for the header file in a standard set of common directories.
6483 # Check X11 before X11Rn because it is often a symlink to the current release.
6486 /usr/X11R6/include \
6487 /usr/X11R5/include \
6488 /usr/X11R4/include \
6491 /usr/include/X11R6 \
6492 /usr/include/X11R5 \
6493 /usr/include/X11R4 \
6495 /usr/local/X11/include \
6496 /usr/local/X11R6/include \
6497 /usr/local/X11R5/include \
6498 /usr/local/X11R4/include \
6500 /usr/local/include/X11 \
6501 /usr/local/include/X11R6 \
6502 /usr/local/include/X11R5 \
6503 /usr/local/include/X11R4 \
6507 /usr/XFree86/include/X11 \
6510 /usr/local/include \
6511 /usr/unsupported/include \
6512 /usr/athena/include \
6513 /usr/local/x11r5/include \
6514 /usr/lpp/Xamples/include \
6516 /usr/openwin/include \
6517 /usr/openwin/share/include \
6520 if test -r "$ac_dir/$x_direct_test_include"; then
6521 ac_x_includes=$ac_dir
6527 fi # $ac_x_includes = NO
6529 if test "$ac_x_libraries" = NO; then
6530 # Check for the libraries.
6532 test -z "$x_direct_test_library" && x_direct_test_library=Xt
6533 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
6535 # See if we find them without any special options.
6536 # Don't add to $LIBS permanently.
6537 ac_save_LIBS="$LIBS"
6538 LIBS="-l$x_direct_test_library $LIBS"
6539 cat > conftest.$ac_ext <<EOF
6540 #line 6541 "configure"
6541 #include "confdefs.h"
6544 ${x_direct_test_function}()
6547 if { (eval echo configure:6548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6549 LIBS="$ac_save_LIBS"
6550 # We can link X programs with no special library path.
6553 echo "configure: failed program was:" >&5
6554 cat conftest.$ac_ext >&5
6556 LIBS="$ac_save_LIBS"
6557 # First see if replacing the include by lib works.
6558 # Check X11 before X11Rn because it is often a symlink to the current release.
6559 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
6570 /usr/local/X11/lib \
6571 /usr/local/X11R6/lib \
6572 /usr/local/X11R5/lib \
6573 /usr/local/X11R4/lib \
6575 /usr/local/lib/X11 \
6576 /usr/local/lib/X11R6 \
6577 /usr/local/lib/X11R5 \
6578 /usr/local/lib/X11R4 \
6582 /usr/XFree86/lib/X11 \
6586 /usr/unsupported/lib \
6588 /usr/local/x11r5/lib \
6589 /usr/lpp/Xamples/lib \
6593 /usr/openwin/share/lib \
6596 for ac_extension in a so sl; do
6597 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
6598 ac_x_libraries=$ac_dir
6605 fi # $ac_x_libraries = NO
6607 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
6608 # Didn't find X anywhere. Cache the known absence of X.
6609 ac_cv_have_x="have_x=no"
6611 # Record where we found X for the cache.
6612 ac_cv_have_x="have_x=yes \
6613 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6617 eval "$ac_cv_have_x"
6620 if test "$have_x" != yes; then
6621 echo "$ac_t""$have_x" 1>&6
6624 # If each of the values was on the command line, it overrides each guess.
6625 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6626 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6627 # Update the cache value to reflect the command line values.
6628 ac_cv_have_x="have_x=yes \
6629 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6630 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
6633 if test "$no_x" = yes; then
6634 # Not all programs may use this symbol, but it does not hurt to define it.
6635 cat >> confdefs.h <<\EOF
6636 #define X_DISPLAY_MISSING 1
6639 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6641 if test -n "$x_includes"; then
6642 X_CFLAGS="$X_CFLAGS -I$x_includes"
6645 # It would also be nice to do this for all -L options, not just this one.
6646 if test -n "$x_libraries"; then
6647 X_LIBS="$X_LIBS -L$x_libraries"
6648 # For Solaris; some versions of Sun CC require a space after -R and
6649 # others require no space. Words are not sufficient . . . .
6650 case "`(uname -sr) 2>/dev/null`" in
6652 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
6653 echo "configure:6654: checking whether -R must be followed by a space" >&5
6654 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
6655 cat > conftest.$ac_ext <<EOF
6656 #line 6657 "configure"
6657 #include "confdefs.h"
6663 if { (eval echo configure:6664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6667 echo "configure: failed program was:" >&5
6668 cat conftest.$ac_ext >&5
6673 if test $ac_R_nospace = yes; then
6674 echo "$ac_t""no" 1>&6
6675 X_LIBS="$X_LIBS -R$x_libraries"
6677 LIBS="$ac_xsave_LIBS -R $x_libraries"
6678 cat > conftest.$ac_ext <<EOF
6679 #line 6680 "configure"
6680 #include "confdefs.h"
6686 if { (eval echo configure:6687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6690 echo "configure: failed program was:" >&5
6691 cat conftest.$ac_ext >&5
6696 if test $ac_R_space = yes; then
6697 echo "$ac_t""yes" 1>&6
6698 X_LIBS="$X_LIBS -R $x_libraries"
6700 echo "$ac_t""neither works" 1>&6
6703 LIBS="$ac_xsave_LIBS"
6707 # Check for system-dependent libraries X programs must link with.
6708 # Do this before checking for the system-independent R6 libraries
6709 # (-lICE), since we may need -lsocket or whatever for X linking.
6711 if test "$ISC" = yes; then
6712 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6714 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
6715 # libraries were built with DECnet support. And karl@cs.umb.edu says
6716 # the Alpha needs dnet_stub (dnet does not exist).
6717 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
6718 echo "configure:6719: checking for dnet_ntoa in -ldnet" >&5
6719 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6720 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6721 echo $ac_n "(cached) $ac_c" 1>&6
6723 ac_save_LIBS="$LIBS"
6725 cat > conftest.$ac_ext <<EOF
6726 #line 6727 "configure"
6727 #include "confdefs.h"
6728 /* Override any gcc2 internal prototype to avoid an error. */
6729 /* We use char because int might match the return type of a gcc2
6730 builtin and then its argument prototype would still apply. */
6737 if { (eval echo configure:6738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6739 eval "ac_cv_lib_$ac_lib_var=yes"
6741 echo "configure: failed program was:" >&5
6742 cat conftest.$ac_ext >&5
6744 eval "ac_cv_lib_$ac_lib_var=no"
6747 LIBS="$ac_save_LIBS"
6750 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6751 echo "$ac_t""yes" 1>&6
6752 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6754 echo "$ac_t""no" 1>&6
6757 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6758 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
6759 echo "configure:6760: checking for dnet_ntoa in -ldnet_stub" >&5
6760 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6761 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6762 echo $ac_n "(cached) $ac_c" 1>&6
6764 ac_save_LIBS="$LIBS"
6765 LIBS="-ldnet_stub $LIBS"
6766 cat > conftest.$ac_ext <<EOF
6767 #line 6768 "configure"
6768 #include "confdefs.h"
6769 /* Override any gcc2 internal prototype to avoid an error. */
6770 /* We use char because int might match the return type of a gcc2
6771 builtin and then its argument prototype would still apply. */
6778 if { (eval echo configure:6779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6780 eval "ac_cv_lib_$ac_lib_var=yes"
6782 echo "configure: failed program was:" >&5
6783 cat conftest.$ac_ext >&5
6785 eval "ac_cv_lib_$ac_lib_var=no"
6788 LIBS="$ac_save_LIBS"
6791 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6792 echo "$ac_t""yes" 1>&6
6793 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6795 echo "$ac_t""no" 1>&6
6800 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6801 # to get the SysV transport functions.
6802 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
6804 # The nsl library prevents programs from opening the X display
6805 # on Irix 5.2, according to dickey@clark.net.
6806 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
6807 echo "configure:6808: checking for gethostbyname" >&5
6808 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
6809 echo $ac_n "(cached) $ac_c" 1>&6
6811 cat > conftest.$ac_ext <<EOF
6812 #line 6813 "configure"
6813 #include "confdefs.h"
6814 /* System header to define __stub macros and hopefully few prototypes,
6815 which can conflict with char gethostbyname(); below. */
6817 /* Override any gcc2 internal prototype to avoid an error. */
6818 /* We use char because int might match the return type of a gcc2
6819 builtin and then its argument prototype would still apply. */
6820 char gethostbyname();
6824 /* The GNU C library defines this for functions which it implements
6825 to always fail with ENOSYS. Some functions are actually named
6826 something starting with __ and the normal name is an alias. */
6827 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6835 if { (eval echo configure:6836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6837 eval "ac_cv_func_gethostbyname=yes"
6839 echo "configure: failed program was:" >&5
6840 cat conftest.$ac_ext >&5
6842 eval "ac_cv_func_gethostbyname=no"
6847 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
6848 echo "$ac_t""yes" 1>&6
6851 echo "$ac_t""no" 1>&6
6854 if test $ac_cv_func_gethostbyname = no; then
6855 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
6856 echo "configure:6857: checking for gethostbyname in -lnsl" >&5
6857 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
6858 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6859 echo $ac_n "(cached) $ac_c" 1>&6
6861 ac_save_LIBS="$LIBS"
6863 cat > conftest.$ac_ext <<EOF
6864 #line 6865 "configure"
6865 #include "confdefs.h"
6866 /* Override any gcc2 internal prototype to avoid an error. */
6867 /* We use char because int might match the return type of a gcc2
6868 builtin and then its argument prototype would still apply. */
6869 char gethostbyname();
6875 if { (eval echo configure:6876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6877 eval "ac_cv_lib_$ac_lib_var=yes"
6879 echo "configure: failed program was:" >&5
6880 cat conftest.$ac_ext >&5
6882 eval "ac_cv_lib_$ac_lib_var=no"
6885 LIBS="$ac_save_LIBS"
6888 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6889 echo "$ac_t""yes" 1>&6
6890 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6892 echo "$ac_t""no" 1>&6
6897 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6898 # socket/setsockopt and other routines are undefined under SCO ODT
6899 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6900 # on later versions), says simon@lia.di.epfl.ch: it contains
6901 # gethostby* variants that don't use the nameserver (or something).
6902 # -lsocket must be given before -lnsl if both are needed.
6903 # We assume that if connect needs -lnsl, so does gethostbyname.
6904 echo $ac_n "checking for connect""... $ac_c" 1>&6
6905 echo "configure:6906: checking for connect" >&5
6906 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
6907 echo $ac_n "(cached) $ac_c" 1>&6
6909 cat > conftest.$ac_ext <<EOF
6910 #line 6911 "configure"
6911 #include "confdefs.h"
6912 /* System header to define __stub macros and hopefully few prototypes,
6913 which can conflict with char connect(); below. */
6915 /* Override any gcc2 internal prototype to avoid an error. */
6916 /* We use char because int might match the return type of a gcc2
6917 builtin and then its argument prototype would still apply. */
6922 /* The GNU C library defines this for functions which it implements
6923 to always fail with ENOSYS. Some functions are actually named
6924 something starting with __ and the normal name is an alias. */
6925 #if defined (__stub_connect) || defined (__stub___connect)
6933 if { (eval echo configure:6934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6935 eval "ac_cv_func_connect=yes"
6937 echo "configure: failed program was:" >&5
6938 cat conftest.$ac_ext >&5
6940 eval "ac_cv_func_connect=no"
6945 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
6946 echo "$ac_t""yes" 1>&6
6949 echo "$ac_t""no" 1>&6
6952 if test $ac_cv_func_connect = no; then
6953 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
6954 echo "configure:6955: checking for connect in -lsocket" >&5
6955 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
6956 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6957 echo $ac_n "(cached) $ac_c" 1>&6
6959 ac_save_LIBS="$LIBS"
6960 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6961 cat > conftest.$ac_ext <<EOF
6962 #line 6963 "configure"
6963 #include "confdefs.h"
6964 /* Override any gcc2 internal prototype to avoid an error. */
6965 /* We use char because int might match the return type of a gcc2
6966 builtin and then its argument prototype would still apply. */
6973 if { (eval echo configure:6974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6975 eval "ac_cv_lib_$ac_lib_var=yes"
6977 echo "configure: failed program was:" >&5
6978 cat conftest.$ac_ext >&5
6980 eval "ac_cv_lib_$ac_lib_var=no"
6983 LIBS="$ac_save_LIBS"
6986 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6987 echo "$ac_t""yes" 1>&6
6988 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6990 echo "$ac_t""no" 1>&6
6995 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
6996 echo $ac_n "checking for remove""... $ac_c" 1>&6
6997 echo "configure:6998: checking for remove" >&5
6998 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
6999 echo $ac_n "(cached) $ac_c" 1>&6
7001 cat > conftest.$ac_ext <<EOF
7002 #line 7003 "configure"
7003 #include "confdefs.h"
7004 /* System header to define __stub macros and hopefully few prototypes,
7005 which can conflict with char remove(); below. */
7007 /* Override any gcc2 internal prototype to avoid an error. */
7008 /* We use char because int might match the return type of a gcc2
7009 builtin and then its argument prototype would still apply. */
7014 /* The GNU C library defines this for functions which it implements
7015 to always fail with ENOSYS. Some functions are actually named
7016 something starting with __ and the normal name is an alias. */
7017 #if defined (__stub_remove) || defined (__stub___remove)
7025 if { (eval echo configure:7026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7027 eval "ac_cv_func_remove=yes"
7029 echo "configure: failed program was:" >&5
7030 cat conftest.$ac_ext >&5
7032 eval "ac_cv_func_remove=no"
7037 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
7038 echo "$ac_t""yes" 1>&6
7041 echo "$ac_t""no" 1>&6
7044 if test $ac_cv_func_remove = no; then
7045 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
7046 echo "configure:7047: checking for remove in -lposix" >&5
7047 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
7048 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7049 echo $ac_n "(cached) $ac_c" 1>&6
7051 ac_save_LIBS="$LIBS"
7052 LIBS="-lposix $LIBS"
7053 cat > conftest.$ac_ext <<EOF
7054 #line 7055 "configure"
7055 #include "confdefs.h"
7056 /* Override any gcc2 internal prototype to avoid an error. */
7057 /* We use char because int might match the return type of a gcc2
7058 builtin and then its argument prototype would still apply. */
7065 if { (eval echo configure:7066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7067 eval "ac_cv_lib_$ac_lib_var=yes"
7069 echo "configure: failed program was:" >&5
7070 cat conftest.$ac_ext >&5
7072 eval "ac_cv_lib_$ac_lib_var=no"
7075 LIBS="$ac_save_LIBS"
7078 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7079 echo "$ac_t""yes" 1>&6
7080 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7082 echo "$ac_t""no" 1>&6
7087 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7088 echo $ac_n "checking for shmat""... $ac_c" 1>&6
7089 echo "configure:7090: checking for shmat" >&5
7090 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
7091 echo $ac_n "(cached) $ac_c" 1>&6
7093 cat > conftest.$ac_ext <<EOF
7094 #line 7095 "configure"
7095 #include "confdefs.h"
7096 /* System header to define __stub macros and hopefully few prototypes,
7097 which can conflict with char shmat(); below. */
7099 /* Override any gcc2 internal prototype to avoid an error. */
7100 /* We use char because int might match the return type of a gcc2
7101 builtin and then its argument prototype would still apply. */
7106 /* The GNU C library defines this for functions which it implements
7107 to always fail with ENOSYS. Some functions are actually named
7108 something starting with __ and the normal name is an alias. */
7109 #if defined (__stub_shmat) || defined (__stub___shmat)
7117 if { (eval echo configure:7118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7119 eval "ac_cv_func_shmat=yes"
7121 echo "configure: failed program was:" >&5
7122 cat conftest.$ac_ext >&5
7124 eval "ac_cv_func_shmat=no"
7129 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
7130 echo "$ac_t""yes" 1>&6
7133 echo "$ac_t""no" 1>&6
7136 if test $ac_cv_func_shmat = no; then
7137 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
7138 echo "configure:7139: checking for shmat in -lipc" >&5
7139 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
7140 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7141 echo $ac_n "(cached) $ac_c" 1>&6
7143 ac_save_LIBS="$LIBS"
7145 cat > conftest.$ac_ext <<EOF
7146 #line 7147 "configure"
7147 #include "confdefs.h"
7148 /* Override any gcc2 internal prototype to avoid an error. */
7149 /* We use char because int might match the return type of a gcc2
7150 builtin and then its argument prototype would still apply. */
7157 if { (eval echo configure:7158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7159 eval "ac_cv_lib_$ac_lib_var=yes"
7161 echo "configure: failed program was:" >&5
7162 cat conftest.$ac_ext >&5
7164 eval "ac_cv_lib_$ac_lib_var=no"
7167 LIBS="$ac_save_LIBS"
7170 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7171 echo "$ac_t""yes" 1>&6
7172 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7174 echo "$ac_t""no" 1>&6
7180 # Check for libraries that X11R6 Xt/Xaw programs need.
7181 ac_save_LDFLAGS="$LDFLAGS"
7182 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7183 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7184 # check for ICE first), but we must link in the order -lSM -lICE or
7185 # we get undefined symbols. So assume we have SM if we have ICE.
7186 # These have to be linked with before -lX11, unlike the other
7187 # libraries we check for below, so use a different variable.
7188 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
7189 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
7190 echo "configure:7191: checking for IceConnectionNumber in -lICE" >&5
7191 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
7192 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7193 echo $ac_n "(cached) $ac_c" 1>&6
7195 ac_save_LIBS="$LIBS"
7196 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7197 cat > conftest.$ac_ext <<EOF
7198 #line 7199 "configure"
7199 #include "confdefs.h"
7200 /* Override any gcc2 internal prototype to avoid an error. */
7201 /* We use char because int might match the return type of a gcc2
7202 builtin and then its argument prototype would still apply. */
7203 char IceConnectionNumber();
7206 IceConnectionNumber()
7209 if { (eval echo configure:7210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7211 eval "ac_cv_lib_$ac_lib_var=yes"
7213 echo "configure: failed program was:" >&5
7214 cat conftest.$ac_ext >&5
7216 eval "ac_cv_lib_$ac_lib_var=no"
7219 LIBS="$ac_save_LIBS"
7222 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7223 echo "$ac_t""yes" 1>&6
7224 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7226 echo "$ac_t""no" 1>&6
7229 LDFLAGS="$ac_save_LDFLAGS"
7234 # Check whether --enable-java-awt or --disable-java-awt was given.
7235 if test "${enable_java_awt+set}" = set; then
7236 enableval="$enable_java_awt"
7241 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
7245 for peer in $peerlibs ; do
7248 if test "$no_x" = yes; then
7249 echo "*** xlib peers requested but no X library available" 1>&2
7264 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
7271 if test "$use_xlib_awt" = yes; then
7280 if test "$use_gtk_awt" = yes; then
7292 # We get this from the environment.
7296 cat > confcache <<\EOF
7297 # This file is a shell script that caches the results of configure
7298 # tests run on this system so they can be shared between configure
7299 # scripts and configure runs. It is not useful on other systems.
7300 # If it contains results you don't want to keep, you may remove or edit it.
7302 # By default, configure uses ./config.cache as the cache file,
7303 # creating it if it does not exist already. You can give configure
7304 # the --cache-file=FILE option to use a different cache file; that is
7305 # what configure does when it calls configure scripts in
7306 # subdirectories, so they share the cache.
7307 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7308 # config.status only pays attention to the cache file if you give it the
7309 # --recheck option to rerun configure.
7312 # The following way of writing the cache mishandles newlines in values,
7313 # but we know of no workaround that is simple, portable, and efficient.
7314 # So, don't put newlines in cache variables' values.
7315 # Ultrix sh set writes to stderr and can't be redirected directly,
7316 # and sets the high bit in the cache file unless we assign to the vars.
7318 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7320 # `set' does not quote correctly, so add quotes (double-quote substitution
7321 # turns \\\\ into \\, and sed turns \\ into \).
7323 -e "s/'/'\\\\''/g" \
7324 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7327 # `set' quotes correctly as required by POSIX, so do not add quotes.
7328 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7331 if cmp -s $cache_file confcache; then
7334 if test -w $cache_file; then
7335 echo "updating cache $cache_file"
7336 cat confcache > $cache_file
7338 echo "not updating unwritable cache $cache_file"
7343 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7345 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7346 # Let make expand exec_prefix.
7347 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7349 # Any assignment to VPATH causes Sun make to only execute
7350 # the first set of double-colon rules, so remove it if not needed.
7351 # If there is a colon in the path, we need to keep it.
7352 if test "x$srcdir" = x.; then
7353 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7356 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7358 DEFS=-DHAVE_CONFIG_H
7360 # Without the "./", some shells look in PATH for config.status.
7361 : ${CONFIG_STATUS=./config.status}
7363 echo creating $CONFIG_STATUS
7364 rm -f $CONFIG_STATUS
7365 cat > $CONFIG_STATUS <<EOF
7367 # Generated automatically by configure.
7368 # Run this file to recreate the current configuration.
7369 # This directory was configured as follows,
7370 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7372 # $0 $ac_configure_args
7374 # Compiler output produced by configure, useful for debugging
7375 # configure, is in ./config.log if it exists.
7377 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7380 case "\$ac_option" in
7381 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7382 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7383 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7384 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7385 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7387 -help | --help | --hel | --he | --h)
7388 echo "\$ac_cs_usage"; exit 0 ;;
7389 *) echo "\$ac_cs_usage"; exit 1 ;;
7393 ac_given_srcdir=$srcdir
7394 ac_given_INSTALL="$INSTALL"
7396 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
7398 cat >> $CONFIG_STATUS <<EOF
7400 # Protect against being on the right side of a sed subst in config.status.
7401 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7402 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7406 s%@CFLAGS@%$CFLAGS%g
7407 s%@CPPFLAGS@%$CPPFLAGS%g
7408 s%@CXXFLAGS@%$CXXFLAGS%g
7409 s%@FFLAGS@%$FFLAGS%g
7411 s%@LDFLAGS@%$LDFLAGS%g
7413 s%@exec_prefix@%$exec_prefix%g
7414 s%@prefix@%$prefix%g
7415 s%@program_transform_name@%$program_transform_name%g
7416 s%@bindir@%$bindir%g
7417 s%@sbindir@%$sbindir%g
7418 s%@libexecdir@%$libexecdir%g
7419 s%@datadir@%$datadir%g
7420 s%@sysconfdir@%$sysconfdir%g
7421 s%@sharedstatedir@%$sharedstatedir%g
7422 s%@localstatedir@%$localstatedir%g
7423 s%@libdir@%$libdir%g
7424 s%@includedir@%$includedir%g
7425 s%@oldincludedir@%$oldincludedir%g
7426 s%@infodir@%$infodir%g
7427 s%@mandir@%$mandir%g
7429 s%@libgcj_basedir@%$libgcj_basedir%g
7430 s%@mkinstalldirs@%$mkinstalldirs%g
7432 s%@host_alias@%$host_alias%g
7433 s%@host_cpu@%$host_cpu%g
7434 s%@host_vendor@%$host_vendor%g
7435 s%@host_os@%$host_os%g
7436 s%@target@%$target%g
7437 s%@target_alias@%$target_alias%g
7438 s%@target_cpu@%$target_cpu%g
7439 s%@target_vendor@%$target_vendor%g
7440 s%@target_os@%$target_os%g
7442 s%@build_alias@%$build_alias%g
7443 s%@build_cpu@%$build_cpu%g
7444 s%@build_vendor@%$build_vendor%g
7445 s%@build_os@%$build_os%g
7448 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7449 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7450 s%@INSTALL_DATA@%$INSTALL_DATA%g
7451 s%@PACKAGE@%$PACKAGE%g
7452 s%@VERSION@%$VERSION%g
7453 s%@ACLOCAL@%$ACLOCAL%g
7454 s%@AUTOCONF@%$AUTOCONF%g
7455 s%@AUTOMAKE@%$AUTOMAKE%g
7456 s%@AUTOHEADER@%$AUTOHEADER%g
7457 s%@MAKEINFO@%$MAKEINFO%g
7458 s%@SET_MAKE@%$SET_MAKE%g
7461 s%@RANLIB@%$RANLIB%g
7462 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
7463 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
7465 s%@EXEEXT@%$EXEEXT%g
7466 s%@LIBGCJ_CFLAGS@%$LIBGCJ_CFLAGS%g
7467 s%@LIBGCJ_CXXFLAGS@%$LIBGCJ_CXXFLAGS%g
7468 s%@LIBGCJ_JAVAFLAGS@%$LIBGCJ_JAVAFLAGS%g
7469 s%@INCLTDL@%$INCLTDL%g
7470 s%@LIBLTDL@%$LIBLTDL%g
7471 s%@DIRLTDL@%$DIRLTDL%g
7472 s%@OBJEXT@%$OBJEXT%g
7474 s%@LIBTOOL@%$LIBTOOL%g
7475 s%@CXXCPP@%$CXXCPP%g
7476 s%@subdirs@%$subdirs%g
7477 s%@COMPPATH@%$COMPPATH%g
7478 s%@TESTSUBDIR_TRUE@%$TESTSUBDIR_TRUE%g
7479 s%@TESTSUBDIR_FALSE@%$TESTSUBDIR_FALSE%g
7480 s%@LIBGCJDEBUG@%$LIBGCJDEBUG%g
7481 s%@LIBFFI@%$LIBFFI%g
7482 s%@LIBFFIINCS@%$LIBFFIINCS%g
7483 s%@PLATFORMOBJS@%$PLATFORMOBJS%g
7485 s%@SYSTEMSPEC@%$SYSTEMSPEC%g
7486 s%@LIBGCJTESTSPEC@%$LIBGCJTESTSPEC%g
7487 s%@ZLIBSPEC@%$ZLIBSPEC%g
7488 s%@ZLIBTESTSPEC@%$ZLIBTESTSPEC%g
7489 s%@GCLIBS@%$GCLIBS%g
7490 s%@GCINCS@%$GCINCS%g
7491 s%@GCDEPS@%$GCDEPS%g
7492 s%@GCOBJS@%$GCOBJS%g
7493 s%@GCSPEC@%$GCSPEC%g
7494 s%@JC1GCSPEC@%$JC1GCSPEC%g
7495 s%@GCTESTSPEC@%$GCTESTSPEC%g
7496 s%@THREADLIBS@%$THREADLIBS%g
7497 s%@THREADINCS@%$THREADINCS%g
7498 s%@THREADDEPS@%$THREADDEPS%g
7499 s%@THREADOBJS@%$THREADOBJS%g
7500 s%@THREADSPEC@%$THREADSPEC%g
7501 s%@HASH_SYNC_SPEC@%$HASH_SYNC_SPEC%g
7502 s%@USING_GCC_TRUE@%$USING_GCC_TRUE%g
7503 s%@USING_GCC_FALSE@%$USING_GCC_FALSE%g
7504 s%@LIBICONV@%$LIBICONV%g
7506 s%@GCJFLAGS@%$GCJFLAGS%g
7510 s%@DIVIDESPEC@%$DIVIDESPEC%g
7511 s%@EXCEPTIONSPEC@%$EXCEPTIONSPEC%g
7512 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
7513 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
7514 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
7515 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
7516 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
7517 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
7518 s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
7519 s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
7520 s%@NEEDS_DATA_START_TRUE@%$NEEDS_DATA_START_TRUE%g
7521 s%@NEEDS_DATA_START_FALSE@%$NEEDS_DATA_START_FALSE%g
7522 s%@GCC_UNWIND_INCLUDE@%$GCC_UNWIND_INCLUDE%g
7523 s%@AM_RUNTESTFLAGS@%$AM_RUNTESTFLAGS%g
7524 s%@ALLOCA@%$ALLOCA%g
7526 s%@SYSDEP_SOURCES@%$SYSDEP_SOURCES%g
7527 s%@X_CFLAGS@%$X_CFLAGS%g
7528 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
7529 s%@X_LIBS@%$X_LIBS%g
7530 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
7531 s%@XLIB_AWT_TRUE@%$XLIB_AWT_TRUE%g
7532 s%@XLIB_AWT_FALSE@%$XLIB_AWT_FALSE%g
7533 s%@GTK_AWT_TRUE@%$GTK_AWT_TRUE%g
7534 s%@GTK_AWT_FALSE@%$GTK_AWT_FALSE%g
7540 cat >> $CONFIG_STATUS <<\EOF
7542 # Split the substitutions into bite-sized pieces for seds with
7543 # small command number limits, like on Digital OSF/1 and HP-UX.
7544 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7545 ac_file=1 # Number of current file.
7546 ac_beg=1 # First line for current file.
7547 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7550 while $ac_more_lines; do
7551 if test $ac_beg -gt 1; then
7552 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7554 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7556 if test ! -s conftest.s$ac_file; then
7558 rm -f conftest.s$ac_file
7560 if test -z "$ac_sed_cmds"; then
7561 ac_sed_cmds="sed -f conftest.s$ac_file"
7563 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7565 ac_file=`expr $ac_file + 1`
7567 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7570 if test -z "$ac_sed_cmds"; then
7575 cat >> $CONFIG_STATUS <<EOF
7577 CONFIG_FILES=\${CONFIG_FILES-"Makefile libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile"}
7579 cat >> $CONFIG_STATUS <<\EOF
7580 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7581 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7583 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7584 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7585 *) ac_file_in="${ac_file}.in" ;;
7588 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7590 # Remove last slash and all that follows it. Not all systems have dirname.
7591 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7592 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7593 # The file is in a subdirectory.
7594 test ! -d "$ac_dir" && mkdir "$ac_dir"
7595 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7596 # A "../" for each directory in $ac_dir_suffix.
7597 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7599 ac_dir_suffix= ac_dots=
7602 case "$ac_given_srcdir" in
7604 if test -z "$ac_dots"; then top_srcdir=.
7605 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7606 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7608 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7609 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7612 case "$ac_given_INSTALL" in
7613 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7614 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7617 echo creating "$ac_file"
7619 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7621 *Makefile*) ac_comsub="1i\\
7622 # $configure_input" ;;
7626 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7628 s%@configure_input@%$configure_input%g
7629 s%@srcdir@%$srcdir%g
7630 s%@top_srcdir@%$top_srcdir%g
7631 s%@INSTALL@%$INSTALL%g
7632 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7636 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7637 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7639 # ac_d sets the value in "#define NAME VALUE" lines.
7640 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7641 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7644 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7645 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7646 ac_uB='\([ ]\)%\1#\2define\3'
7649 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7650 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7651 ac_eB='$%\1#\2define\3'
7655 if test "${CONFIG_HEADERS+set}" != set; then
7657 cat >> $CONFIG_STATUS <<EOF
7658 CONFIG_HEADERS="include/config.h gcj/libgcj-config.h"
7660 cat >> $CONFIG_STATUS <<\EOF
7662 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7663 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7665 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7666 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7667 *) ac_file_in="${ac_file}.in" ;;
7670 echo creating $ac_file
7672 rm -f conftest.frag conftest.in conftest.out
7673 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7674 cat $ac_file_inputs > conftest.in
7678 # Transform confdefs.h into a sed script conftest.vals that substitutes
7679 # the proper values into config.h.in to produce config.h. And first:
7680 # Protect against being on the right side of a sed subst in config.status.
7681 # Protect against being in an unquoted here document in config.status.
7683 cat > conftest.hdr <<\EOF
7686 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7690 sed -n -f conftest.hdr confdefs.h > conftest.vals
7693 # This sed command replaces #undef with comments. This is necessary, for
7694 # example, in the case of _POSIX_SOURCE, which is predefined and required
7695 # on some systems where configure will not decide to define it.
7696 cat >> conftest.vals <<\EOF
7697 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7700 # Break up conftest.vals because some shells have a limit on
7701 # the size of here documents, and old seds have small limits too.
7706 ac_lines=`grep -c . conftest.vals`
7707 # grep -c gives empty output for an empty file on some AIX systems.
7708 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7709 # Write a limited-size here document to conftest.frag.
7710 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7711 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7713 sed -f conftest.frag conftest.in > conftest.out
7715 mv conftest.out conftest.in
7717 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7719 mv conftest.tail conftest.vals
7723 cat >> $CONFIG_STATUS <<\EOF
7724 rm -f conftest.frag conftest.h
7725 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7726 cat conftest.in >> conftest.h
7728 if cmp -s $ac_file conftest.h 2>/dev/null; then
7729 echo "$ac_file is unchanged"
7732 # Remove last slash and all that follows it. Not all systems have dirname.
7733 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7734 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7735 # The file is in a subdirectory.
7736 test ! -d "$ac_dir" && mkdir "$ac_dir"
7739 mv conftest.h $ac_file
7745 cat >> $CONFIG_STATUS <<EOF
7746 ac_sources="include/$PLATFORMH java/io/natFile${PLATFORM}.cc java/io/natFileDescriptor${PLATFORM}.cc java/lang/${PLATFORM}Process.java java/lang/nat${PLATFORM}Process.cc include/$GCHDR include/$THREADH sysdep/$sysdeps_dir $SIGNAL_HANDLER"
7747 ac_dests="include/platform.h java/io/natFile.cc java/io/natFileDescriptor.cc java/lang/ConcreteProcess.java java/lang/natConcreteProcess.cc include/java-gc.h include/java-threads.h sysdep include/java-signal.h"
7750 cat >> $CONFIG_STATUS <<\EOF
7751 srcdir=$ac_given_srcdir
7752 while test -n "$ac_sources"; do
7753 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
7754 set $ac_sources; ac_source=$1; shift; ac_sources=$*
7756 echo "linking $srcdir/$ac_source to $ac_dest"
7758 if test ! -r $srcdir/$ac_source; then
7759 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
7763 # Make relative symlinks.
7764 # Remove last slash and all that follows it. Not all systems have dirname.
7765 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
7766 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
7767 # The dest file is in a subdirectory.
7768 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
7769 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
7770 # A "../" for each directory in $ac_dest_dir_suffix.
7771 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
7773 ac_dest_dir_suffix= ac_dots=
7777 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
7778 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
7781 # Make a symlink if possible; otherwise try a hard link.
7782 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
7783 ln $srcdir/$ac_source $ac_dest; then :
7785 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
7789 cat >> $CONFIG_STATUS <<EOF
7794 with_multisubdir=${with_multisubdir}
7795 ac_configure_args="${multilib_arg} ${ac_configure_args}"
7796 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
7797 libgcj_basedir=${libgcj_basedir}
7802 cat >> $CONFIG_STATUS <<\EOF
7804 for am_file in include/config.h gcj/libgcj-config.h; do
7805 case " $CONFIG_HEADERS " in
7807 echo timestamp > `echo $am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
7810 am_indx=`expr "$am_indx" + 1`
7812 # Only add multilib support code if we just rebuilt top-level Makefile.
7813 case " $CONFIG_FILES " in
7815 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
7819 # Make subdirectories and `.d' files. Look in both srcdir and
7820 # builddir for the .java files.
7823 ( (cd $srcdir && find . \( -name '*.java' -o -name '*.cc' \) -print) ;
7824 find . \( -name '*.java' -o -name '*.cc' \) -print) | \
7825 fgrep -v testsuite | \
7826 sed -e 's/\.java/.d/'\;'s/\.cc/.d/' | \
7828 echo "include $f" >> deps.mk
7831 d=`echo $f | sed -e 's,/[^/]*$,,'`
7833 if test ! -d $d; then
7834 $libgcj_basedir/../mkinstalldirs $d
7842 chmod +x $CONFIG_STATUS
7843 rm -fr confdefs* $ac_clean_files
7844 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7846 if test "$no_recursion" != yes; then
7848 # Remove --cache-file and --srcdir arguments so they do not pile up.
7849 ac_sub_configure_args=
7851 for ac_arg in $ac_configure_args; do
7852 if test -n "$ac_prev"; then
7857 -cache-file | --cache-file | --cache-fil | --cache-fi \
7858 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
7859 ac_prev=cache_file ;;
7860 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
7861 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
7863 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
7865 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
7867 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
7871 for ac_config_dir in $DIRLTDL; do
7873 # Do not complain, so a configure script can configure whichever
7874 # parts of a large source tree are present.
7875 if test ! -d $srcdir/$ac_config_dir; then
7879 echo configuring in $ac_config_dir
7884 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
7886 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
7894 # A "../" for each directory in /$ac_config_dir.
7895 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
7898 .) # No --srcdir option. We are building in place.
7899 ac_sub_srcdir=$srcdir ;;
7900 /*) # Absolute path.
7901 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
7903 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
7906 # Check for guested configure; otherwise get Cygnus style configure.
7907 if test -f $ac_sub_srcdir/configure; then
7908 ac_sub_configure=$ac_sub_srcdir/configure
7909 elif test -f $ac_sub_srcdir/configure.in; then
7910 ac_sub_configure=$ac_configure
7912 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
7916 # The recursion is here.
7917 if test -n "$ac_sub_configure"; then
7919 # Make the cache file name correct relative to the subdirectory.
7920 case "$cache_file" in
7921 /*) ac_sub_cache_file=$cache_file ;;
7923 ac_sub_cache_file="$ac_dots$cache_file" ;;
7925 case "$ac_given_INSTALL" in
7926 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7927 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7930 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
7931 # The eval makes quoting arguments work.
7932 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
7935 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }