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 --with-newlib Configuring with newlib"
22 --enable-multilib build many library versions (default)"
24 --enable-maintainer-mode enable make rules and dependencies not useful
25 (and sometimes confusing) to the casual installer"
27 --enable-shared[=PKGS] build shared libraries [default=yes]"
29 --enable-static[=PKGS] build static libraries [default=yes]"
31 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
33 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
35 --disable-libtool-lock avoid locking (might break parallel builds)"
37 --with-pic try to use only PIC/non-PIC objects [default=use both]"
39 --disable-getenv-properties
40 don't set system properties from GCJ_PROPERTIES"
42 --enable-hash-synchronization
43 Use global hash table for monitor locks"
45 --enable-libgcj-debug enable runtime debugging code"
47 --enable-interpreter enable interpreter"
49 --enable-sjlj-exceptions force use of builtin_setjmp for exceptions"
51 --disable-java-net disable java.net"
53 --without-libffi don't use libffi"
55 --disable-jvmpi disable JVMPI support"
57 --with-ecos enable runtime eCos target support"
59 --with-system-zlib use installed libz"
61 --enable-java-gc=TYPE choose garbage collector [boehm]"
63 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
65 --with-x use the X Window System"
67 --enable-java-awt list of AWT peer implementations to be built"
69 # Initialize some variables set by options.
70 # The variables have the same names as the options, with
71 # dashes changed to underlines.
73 cache_file=./config.cache
82 program_transform_name=s,x,x,
90 bindir='${exec_prefix}/bin'
91 sbindir='${exec_prefix}/sbin'
92 libexecdir='${exec_prefix}/libexec'
93 datadir='${prefix}/share'
94 sysconfdir='${prefix}/etc'
95 sharedstatedir='${prefix}/com'
96 localstatedir='${prefix}/var'
97 libdir='${exec_prefix}/lib'
98 includedir='${prefix}/include'
99 oldincludedir='/usr/include'
100 infodir='${prefix}/info'
101 mandir='${prefix}/man'
103 # Initialize some other variables.
106 SHELL=${CONFIG_SHELL-/bin/sh}
107 # Maximum number of lines to put in a shell here document.
114 # If the previous option needs an argument, assign it.
115 if test -n "$ac_prev"; then
116 eval "$ac_prev=\$ac_option"
122 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
126 # Accept the important Cygnus configure options, so we can diagnose typos.
130 -bindir | --bindir | --bindi | --bind | --bin | --bi)
132 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
133 bindir="$ac_optarg" ;;
135 -build | --build | --buil | --bui | --bu)
137 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
138 build="$ac_optarg" ;;
140 -cache-file | --cache-file | --cache-fil | --cache-fi \
141 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
142 ac_prev=cache_file ;;
143 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
144 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
145 cache_file="$ac_optarg" ;;
147 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
149 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
151 datadir="$ac_optarg" ;;
153 -disable-* | --disable-*)
154 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
155 # Reject names that are not valid shell variable names.
156 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
157 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
159 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
160 eval "enable_${ac_feature}=no" ;;
162 -enable-* | --enable-*)
163 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
164 # Reject names that are not valid shell variable names.
165 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
166 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
168 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
173 eval "enable_${ac_feature}='$ac_optarg'" ;;
175 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
176 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
177 | --exec | --exe | --ex)
178 ac_prev=exec_prefix ;;
179 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
180 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
181 | --exec=* | --exe=* | --ex=*)
182 exec_prefix="$ac_optarg" ;;
184 -gas | --gas | --ga | --g)
185 # Obsolete; use --with-gas.
188 -help | --help | --hel | --he)
189 # Omit some internal or obsolete options to make the list less imposing.
190 # This message is too long to be a string in the A/UX 3.1 sh.
192 Usage: configure [options] [host]
193 Options: [defaults in brackets after descriptions]
195 --cache-file=FILE cache test results in FILE
196 --help print this message
197 --no-create do not create output files
198 --quiet, --silent do not print \`checking...' messages
199 --version print the version of autoconf that created configure
200 Directory and file names:
201 --prefix=PREFIX install architecture-independent files in PREFIX
203 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
205 --bindir=DIR user executables in DIR [EPREFIX/bin]
206 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
207 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
208 --datadir=DIR read-only architecture-independent data in DIR
210 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
211 --sharedstatedir=DIR modifiable architecture-independent data in DIR
213 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
214 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
215 --includedir=DIR C header files in DIR [PREFIX/include]
216 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
217 --infodir=DIR info documentation in DIR [PREFIX/info]
218 --mandir=DIR man documentation in DIR [PREFIX/man]
219 --srcdir=DIR find the sources in DIR [configure dir or ..]
220 --program-prefix=PREFIX prepend PREFIX to installed program names
221 --program-suffix=SUFFIX append SUFFIX to installed program names
222 --program-transform-name=PROGRAM
223 run sed PROGRAM on installed program names
227 --build=BUILD configure for building on BUILD [BUILD=HOST]
228 --host=HOST configure for HOST [guessed]
229 --target=TARGET configure for TARGET [TARGET=HOST]
230 Features and packages:
231 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
232 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
233 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
234 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
235 --x-includes=DIR X include files are in DIR
236 --x-libraries=DIR X library files are in DIR
238 if test -n "$ac_help"; then
239 echo "--enable and --with options recognized:$ac_help"
243 -host | --host | --hos | --ho)
245 -host=* | --host=* | --hos=* | --ho=*)
248 -includedir | --includedir | --includedi | --included | --include \
249 | --includ | --inclu | --incl | --inc)
250 ac_prev=includedir ;;
251 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
252 | --includ=* | --inclu=* | --incl=* | --inc=*)
253 includedir="$ac_optarg" ;;
255 -infodir | --infodir | --infodi | --infod | --info | --inf)
257 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
258 infodir="$ac_optarg" ;;
260 -libdir | --libdir | --libdi | --libd)
262 -libdir=* | --libdir=* | --libdi=* | --libd=*)
263 libdir="$ac_optarg" ;;
265 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
266 | --libexe | --libex | --libe)
267 ac_prev=libexecdir ;;
268 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
269 | --libexe=* | --libex=* | --libe=*)
270 libexecdir="$ac_optarg" ;;
272 -localstatedir | --localstatedir | --localstatedi | --localstated \
273 | --localstate | --localstat | --localsta | --localst \
274 | --locals | --local | --loca | --loc | --lo)
275 ac_prev=localstatedir ;;
276 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
277 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
278 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
279 localstatedir="$ac_optarg" ;;
281 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
283 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
284 mandir="$ac_optarg" ;;
287 # Obsolete; use --without-fp.
290 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
294 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
295 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
298 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
299 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
300 | --oldin | --oldi | --old | --ol | --o)
301 ac_prev=oldincludedir ;;
302 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
303 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
304 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
305 oldincludedir="$ac_optarg" ;;
307 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
309 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
310 prefix="$ac_optarg" ;;
312 -program-prefix | --program-prefix | --program-prefi | --program-pref \
313 | --program-pre | --program-pr | --program-p)
314 ac_prev=program_prefix ;;
315 -program-prefix=* | --program-prefix=* | --program-prefi=* \
316 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
317 program_prefix="$ac_optarg" ;;
319 -program-suffix | --program-suffix | --program-suffi | --program-suff \
320 | --program-suf | --program-su | --program-s)
321 ac_prev=program_suffix ;;
322 -program-suffix=* | --program-suffix=* | --program-suffi=* \
323 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
324 program_suffix="$ac_optarg" ;;
326 -program-transform-name | --program-transform-name \
327 | --program-transform-nam | --program-transform-na \
328 | --program-transform-n | --program-transform- \
329 | --program-transform | --program-transfor \
330 | --program-transfo | --program-transf \
331 | --program-trans | --program-tran \
332 | --progr-tra | --program-tr | --program-t)
333 ac_prev=program_transform_name ;;
334 -program-transform-name=* | --program-transform-name=* \
335 | --program-transform-nam=* | --program-transform-na=* \
336 | --program-transform-n=* | --program-transform-=* \
337 | --program-transform=* | --program-transfor=* \
338 | --program-transfo=* | --program-transf=* \
339 | --program-trans=* | --program-tran=* \
340 | --progr-tra=* | --program-tr=* | --program-t=*)
341 program_transform_name="$ac_optarg" ;;
343 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
344 | -silent | --silent | --silen | --sile | --sil)
347 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
349 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
351 sbindir="$ac_optarg" ;;
353 -sharedstatedir | --sharedstatedir | --sharedstatedi \
354 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
355 | --sharedst | --shareds | --shared | --share | --shar \
357 ac_prev=sharedstatedir ;;
358 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
359 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
360 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
362 sharedstatedir="$ac_optarg" ;;
364 -site | --site | --sit)
366 -site=* | --site=* | --sit=*)
369 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
371 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
372 srcdir="$ac_optarg" ;;
374 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
375 | --syscon | --sysco | --sysc | --sys | --sy)
376 ac_prev=sysconfdir ;;
377 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
378 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
379 sysconfdir="$ac_optarg" ;;
381 -target | --target | --targe | --targ | --tar | --ta | --t)
383 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
384 target="$ac_optarg" ;;
386 -v | -verbose | --verbose | --verbos | --verbo | --verb)
389 -version | --version | --versio | --versi | --vers)
390 echo "configure generated by autoconf version 2.13"
394 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
395 # Reject names that are not valid shell variable names.
396 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
397 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
399 ac_package=`echo $ac_package| sed 's/-/_/g'`
404 eval "with_${ac_package}='$ac_optarg'" ;;
406 -without-* | --without-*)
407 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
408 # Reject names that are not valid shell variable names.
409 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
410 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
412 ac_package=`echo $ac_package| sed 's/-/_/g'`
413 eval "with_${ac_package}=no" ;;
416 # Obsolete; use --with-x.
419 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
420 | --x-incl | --x-inc | --x-in | --x-i)
421 ac_prev=x_includes ;;
422 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
423 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
424 x_includes="$ac_optarg" ;;
426 -x-libraries | --x-libraries | --x-librarie | --x-librari \
427 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
428 ac_prev=x_libraries ;;
429 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
430 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
431 x_libraries="$ac_optarg" ;;
433 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
437 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
438 echo "configure: warning: $ac_option: invalid host type" 1>&2
440 if test "x$nonopt" != xNONE; then
441 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
449 if test -n "$ac_prev"; then
450 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
453 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
455 # File descriptor usage:
458 # 2 errors and warnings
459 # 3 some systems may open it to /dev/tty
460 # 4 used on the Kubota Titan
461 # 6 checking for... messages and results
462 # 5 compiler messages saved in config.log
463 if test "$silent" = yes; then
471 This file contains any messages produced by compilers while
472 running configure, to aid debugging if configure makes a mistake.
475 # Strip out --no-create and --no-recursion so they do not pile up.
476 # Also quote any args containing shell metacharacters.
481 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
482 | --no-cr | --no-c) ;;
483 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
484 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
485 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
486 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
487 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
492 # Only set these to C if already set. These must not be set unconditionally
493 # because not all systems understand e.g. LANG=C (notably SCO).
494 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
495 # Non-C LC_CTYPE values break the ctype check.
496 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
497 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
498 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
499 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
501 # confdefs.h avoids OS command line length limits that DEFS can exceed.
502 rm -rf conftest* confdefs.h
503 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
506 # A filename unique to this package, relative to the directory that
507 # configure is in, which we can look for to find out if srcdir is correct.
508 ac_unique_file=java/lang/System.java
510 # Find the source files, if location was not specified.
511 if test -z "$srcdir"; then
512 ac_srcdir_defaulted=yes
513 # Try the directory containing this script, then its parent.
515 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
516 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
518 if test ! -r $srcdir/$ac_unique_file; then
522 ac_srcdir_defaulted=no
524 if test ! -r $srcdir/$ac_unique_file; then
525 if test "$ac_srcdir_defaulted" = yes; then
526 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
528 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
531 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
533 # Prefer explicitly selected file to automatically selected ones.
534 if test -z "$CONFIG_SITE"; then
535 if test "x$prefix" != xNONE; then
536 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
538 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
541 for ac_site_file in $CONFIG_SITE; do
542 if test -r "$ac_site_file"; then
543 echo "loading site script $ac_site_file"
548 if test -r "$cache_file"; then
549 echo "loading cache $cache_file"
552 echo "creating cache $cache_file"
557 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
558 ac_cpp='$CPP $CPPFLAGS'
559 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
560 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
561 cross_compiling=$ac_cv_prog_cc_cross
565 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
566 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
567 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
574 ac_n= ac_c='\c' ac_t=
579 # This works around the fact that libtool configuration may change LD
580 # for this particular configuration, but some shells, instead of
581 # keeping the changes in LD private, export them just because LD is
583 ORIGINAL_LD_FOR_MULTILIBS=$LD
585 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
586 echo "configure:587: checking whether ln -s works" >&5
587 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
588 echo $ac_n "(cached) $ac_c" 1>&6
591 if ln -s X conftestdata 2>/dev/null
594 ac_cv_prog_LN_S="ln -s"
599 LN_S="$ac_cv_prog_LN_S"
600 if test "$ac_cv_prog_LN_S" = "ln -s"; then
601 echo "$ac_t""yes" 1>&6
603 echo "$ac_t""no" 1>&6
607 # Check whether --with-target-subdir or --without-target-subdir was given.
608 if test "${with_target_subdir+set}" = set; then
609 withval="$with_target_subdir"
613 # Check whether --with-cross-host or --without-cross-host was given.
614 if test "${with_cross_host+set}" = set; then
615 withval="$with_cross_host"
620 # Check whether --with-newlib or --without-newlib was given.
621 if test "${with_newlib+set}" = set; then
622 withval="$with_newlib"
627 # Find a good install program. We prefer a C program (faster),
628 # so one script is as good as another. But avoid the broken or
629 # incompatible versions:
630 # SysV /etc/install, /usr/sbin/install
631 # SunOS /usr/etc/install
634 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
635 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
636 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
637 # ./install, which can be erroneously created by make from ./install.sh.
638 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
639 echo "configure:640: checking for a BSD compatible install" >&5
640 if test -z "$INSTALL"; then
641 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
642 echo $ac_n "(cached) $ac_c" 1>&6
644 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
645 for ac_dir in $PATH; do
646 # Account for people who put trailing slashes in PATH elements.
648 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
650 # OSF1 and SCO ODT 3.0 have their own names for install.
651 # Don't use installbsd from OSF since it installs stuff as root
653 for ac_prog in ginstall scoinst install; do
654 if test -f $ac_dir/$ac_prog; then
655 if test $ac_prog = install &&
656 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
657 # AIX install. It has an incompatible calling convention.
660 ac_cv_path_install="$ac_dir/$ac_prog -c"
671 if test "${ac_cv_path_install+set}" = set; then
672 INSTALL="$ac_cv_path_install"
674 # As a last resort, use the slow shell script. We don't cache a
675 # path for INSTALL within a source directory, because that will
676 # break other packages using the cache if that directory is
677 # removed, or if the path is relative.
678 INSTALL="$ac_install_sh"
681 echo "$ac_t""$INSTALL" 1>&6
683 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
684 # It thinks the first close brace ends the variable substitution.
685 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
687 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
689 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
691 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
692 echo "configure:693: checking whether build environment is sane" >&5
695 echo timestamp > conftestfile
696 # Do `set' in a subshell so we don't clobber the current shell's
697 # arguments. Must try -L first in case configure is actually a
698 # symlink; some systems play weird games with the mod time of symlinks
699 # (eg FreeBSD returns the mod time of the symlink's containing
702 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
703 if test "$*" = "X"; then
705 set X `ls -t $srcdir/configure conftestfile`
707 if test "$*" != "X $srcdir/configure conftestfile" \
708 && test "$*" != "X conftestfile $srcdir/configure"; then
710 # If neither matched, then we have a broken ls. This can happen
711 # if, for instance, CONFIG_SHELL is bash and it inherits a
712 # broken ls alias from the environment. This has actually
713 # happened. Such a system could not be considered "sane".
714 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
715 alias in your environment" 1>&2; exit 1; }
718 test "$2" = conftestfile
724 { echo "configure: error: newly created file is older than distributed files!
725 Check your system clock" 1>&2; exit 1; }
728 echo "$ac_t""yes" 1>&6
729 if test "$program_transform_name" = s,x,x,; then
730 program_transform_name=
732 # Double any \ or $. echo might interpret backslashes.
733 cat <<\EOF_SED > conftestsed
734 s,\\,\\\\,g; s,\$,$$,g
736 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
739 test "$program_prefix" != NONE &&
740 program_transform_name="s,^,${program_prefix},; $program_transform_name"
741 # Use a double $ so make ignores it.
742 test "$program_suffix" != NONE &&
743 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
745 # sed with no file args requires a program.
746 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
748 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
749 echo "configure:750: checking whether ${MAKE-make} sets \${MAKE}" >&5
750 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
751 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
752 echo $ac_n "(cached) $ac_c" 1>&6
754 cat > conftestmake <<\EOF
756 @echo 'ac_maketemp="${MAKE}"'
758 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
759 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
760 if test -n "$ac_maketemp"; then
761 eval ac_cv_prog_make_${ac_make}_set=yes
763 eval ac_cv_prog_make_${ac_make}_set=no
767 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
768 echo "$ac_t""yes" 1>&6
771 echo "$ac_t""no" 1>&6
772 SET_MAKE="MAKE=${MAKE-make}"
775 if test $host != $build; then
776 ac_tool_prefix=${host_alias}-
781 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
782 echo "configure:783: checking for Cygwin environment" >&5
783 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
784 echo $ac_n "(cached) $ac_c" 1>&6
786 cat > conftest.$ac_ext <<EOF
787 #line 788 "configure"
788 #include "confdefs.h"
793 #define __CYGWIN__ __CYGWIN32__
798 if { (eval echo configure:799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
802 echo "configure: failed program was:" >&5
803 cat conftest.$ac_ext >&5
811 echo "$ac_t""$ac_cv_cygwin" 1>&6
813 test "$ac_cv_cygwin" = yes && CYGWIN=yes
814 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
815 echo "configure:816: checking for mingw32 environment" >&5
816 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
817 echo $ac_n "(cached) $ac_c" 1>&6
819 cat > conftest.$ac_ext <<EOF
820 #line 821 "configure"
821 #include "confdefs.h"
827 if { (eval echo configure:828: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
831 echo "configure: failed program was:" >&5
832 cat conftest.$ac_ext >&5
840 echo "$ac_t""$ac_cv_mingw32" 1>&6
842 test "$ac_cv_mingw32" = yes && MINGW32=yes
844 # Check whether --enable-multilib or --disable-multilib was given.
845 if test "${enable_multilib+set}" = set; then
846 enableval="$enable_multilib"
847 case "${enableval}" in
850 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
857 # When building with srcdir == objdir, links to the source files will
858 # be created in directories within the target_subdir. We have to
859 # adjust toplevel_srcdir accordingly, so that configure finds
860 # install-sh and other auxiliary files that live in the top-level
862 if test "${srcdir}" = "."; then
863 if test -z "${with_target_subdir}"; then
866 if test "${with_target_subdir}" != "."; then
867 toprel="${with_multisrctop}../.."
869 toprel="${with_multisrctop}.."
876 libgcj_basedir=$srcdir/$toprel/./libjava
880 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
881 if test -f $ac_dir/install-sh; then
883 ac_install_sh="$ac_aux_dir/install-sh -c"
885 elif test -f $ac_dir/install.sh; then
887 ac_install_sh="$ac_aux_dir/install.sh -c"
891 if test -z "$ac_aux_dir"; then
892 { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
894 ac_config_guess=$ac_aux_dir/config.guess
895 ac_config_sub=$ac_aux_dir/config.sub
896 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
899 # This overrides the previous occurrence for automake, but not for
900 # autoconf, which is exactly what we want.
902 for ac_dir in .. $srcdir/..; do
903 if test -f $ac_dir/install-sh; then
905 ac_install_sh="$ac_aux_dir/install-sh -c"
907 elif test -f $ac_dir/install.sh; then
909 ac_install_sh="$ac_aux_dir/install.sh -c"
913 if test -z "$ac_aux_dir"; then
914 { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
916 ac_config_guess=$ac_aux_dir/config.guess
917 ac_config_sub=$ac_aux_dir/config.sub
918 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
922 # This works around an automake problem.
923 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
927 # Do some error checking and defaulting for the host and target type.
929 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
932 # 1. You are not allowed to specify --host, --target, and nonopt at the
934 # 2. Host defaults to nonopt.
935 # 3. If nonopt is not specified, then host defaults to the current host,
936 # as determined by config.guess.
937 # 4. Target and build default to nonopt.
938 # 5. If nonopt is not specified, then target and build default to host.
940 # The aliases save the names the user supplied, while $host etc.
941 # will get canonicalized.
942 case $host---$target---$nonopt in
943 NONE---*---* | *---NONE---* | *---*---NONE) ;;
944 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
948 # Make sure we can run config.sub.
949 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
950 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
953 echo $ac_n "checking host system type""... $ac_c" 1>&6
954 echo "configure:955: checking host system type" >&5
957 case "$host_alias" in
961 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
962 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
964 *) host_alias=$nonopt ;;
968 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
969 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
970 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
971 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
972 echo "$ac_t""$host" 1>&6
974 echo $ac_n "checking target system type""... $ac_c" 1>&6
975 echo "configure:976: checking target system type" >&5
978 case "$target_alias" in
981 NONE) target_alias=$host_alias ;;
982 *) target_alias=$nonopt ;;
986 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
987 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
988 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
989 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
990 echo "$ac_t""$target" 1>&6
992 echo $ac_n "checking build system type""... $ac_c" 1>&6
993 echo "configure:994: checking build system type" >&5
996 case "$build_alias" in
999 NONE) build_alias=$host_alias ;;
1000 *) build_alias=$nonopt ;;
1004 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1005 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1006 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1007 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1008 echo "$ac_t""$build" 1>&6
1010 test "$host_alias" != "$target_alias" &&
1011 test "$program_prefix$program_suffix$program_transform_name" = \
1013 program_prefix=${target_alias}-
1019 # Extract the first word of "gcc", so it can be a program name with args.
1020 set dummy gcc; ac_word=$2
1021 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1022 echo "configure:1023: checking for $ac_word" >&5
1023 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1024 echo $ac_n "(cached) $ac_c" 1>&6
1026 if test -n "$CC"; then
1027 ac_cv_prog_CC="$CC" # Let the user override the test.
1029 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1031 for ac_dir in $ac_dummy; do
1032 test -z "$ac_dir" && ac_dir=.
1033 if test -f $ac_dir/$ac_word; then
1042 if test -n "$CC"; then
1043 echo "$ac_t""$CC" 1>&6
1045 echo "$ac_t""no" 1>&6
1048 if test -z "$CC"; then
1049 # Extract the first word of "cc", so it can be a program name with args.
1050 set dummy cc; ac_word=$2
1051 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1052 echo "configure:1053: checking for $ac_word" >&5
1053 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1054 echo $ac_n "(cached) $ac_c" 1>&6
1056 if test -n "$CC"; then
1057 ac_cv_prog_CC="$CC" # Let the user override the test.
1059 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1062 for ac_dir in $ac_dummy; do
1063 test -z "$ac_dir" && ac_dir=.
1064 if test -f $ac_dir/$ac_word; then
1065 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1066 ac_prog_rejected=yes
1074 if test $ac_prog_rejected = yes; then
1075 # We found a bogon in the path, so make sure we never use it.
1076 set dummy $ac_cv_prog_CC
1078 if test $# -gt 0; then
1079 # We chose a different compiler from the bogus one.
1080 # However, it has the same basename, so the bogon will be chosen
1081 # first if we set CC to just the basename; use the full file name.
1083 set dummy "$ac_dir/$ac_word" "$@"
1091 if test -n "$CC"; then
1092 echo "$ac_t""$CC" 1>&6
1094 echo "$ac_t""no" 1>&6
1097 if test -z "$CC"; then
1098 case "`uname -s`" in
1100 # Extract the first word of "cl", so it can be a program name with args.
1101 set dummy cl; ac_word=$2
1102 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1103 echo "configure:1104: checking for $ac_word" >&5
1104 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1105 echo $ac_n "(cached) $ac_c" 1>&6
1107 if test -n "$CC"; then
1108 ac_cv_prog_CC="$CC" # Let the user override the test.
1110 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1112 for ac_dir in $ac_dummy; do
1113 test -z "$ac_dir" && ac_dir=.
1114 if test -f $ac_dir/$ac_word; then
1123 if test -n "$CC"; then
1124 echo "$ac_t""$CC" 1>&6
1126 echo "$ac_t""no" 1>&6
1131 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1135 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1136 echo "configure:1137: checking whether we are using GNU C" >&5
1137 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1138 echo $ac_n "(cached) $ac_c" 1>&6
1140 cat > conftest.c <<EOF
1145 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1146: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1152 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1154 if test $ac_cv_prog_gcc = yes; then
1160 ac_test_CFLAGS="${CFLAGS+set}"
1161 ac_save_CFLAGS="$CFLAGS"
1163 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1164 echo "configure:1165: checking whether ${CC-cc} accepts -g" >&5
1165 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1166 echo $ac_n "(cached) $ac_c" 1>&6
1168 echo 'void f(){}' > conftest.c
1169 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1178 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1179 if test "$ac_test_CFLAGS" = set; then
1180 CFLAGS="$ac_save_CFLAGS"
1181 elif test $ac_cv_prog_cc_g = yes; then
1182 if test "$GCC" = yes; then
1188 if test "$GCC" = yes; then
1196 # We use the libstdc++-v3 version of LIB_AC_PROG_CXX, but use
1197 # glibjava_CXX instead of glibcpp_CXX. That's because we're passed a
1198 # different definition of CXX than other directories, since we don't
1199 # depend on libstdc++-v3 having already been built.
1203 # Use glibjava_CXX so that we do not cause CXX to be cached with the
1204 # flags that come in CXX while configuring libjava. They're different
1205 # from those used for all other target libraries. If CXX is set in
1206 # the environment, respect that here.
1208 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1210 # Extract the first word of "$ac_prog", so it can be a program name with args.
1211 set dummy $ac_prog; ac_word=$2
1212 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1213 echo "configure:1214: checking for $ac_word" >&5
1214 if eval "test \"`echo '$''{'ac_cv_prog_glibjava_CXX'+set}'`\" = set"; then
1215 echo $ac_n "(cached) $ac_c" 1>&6
1217 if test -n "$glibjava_CXX"; then
1218 ac_cv_prog_glibjava_CXX="$glibjava_CXX" # Let the user override the test.
1220 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1222 for ac_dir in $ac_dummy; do
1223 test -z "$ac_dir" && ac_dir=.
1224 if test -f $ac_dir/$ac_word; then
1225 ac_cv_prog_glibjava_CXX="$ac_prog"
1232 glibjava_CXX="$ac_cv_prog_glibjava_CXX"
1233 if test -n "$glibjava_CXX"; then
1234 echo "$ac_t""$glibjava_CXX" 1>&6
1236 echo "$ac_t""no" 1>&6
1239 test -n "$glibjava_CXX" && break
1241 test -n "$glibjava_CXX" || glibjava_CXX="gcc"
1245 test -z "$glibjava_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1247 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1248 echo "configure:1249: checking whether we are using GNU C++" >&5
1249 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1250 echo $ac_n "(cached) $ac_c" 1>&6
1252 cat > conftest.C <<EOF
1257 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1258: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1264 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1266 if test $ac_cv_prog_gxx = yes; then
1268 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1269 ac_save_CXXFLAGS="$CXXFLAGS"
1271 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1272 echo "configure:1273: checking whether ${CXX-g++} accepts -g" >&5
1273 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1274 echo $ac_n "(cached) $ac_c" 1>&6
1276 echo 'void f(){}' > conftest.cc
1277 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1278 ac_cv_prog_cxx_g=yes
1286 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1287 if test "$ac_test_CXXFLAGS" = set; then
1288 CXXFLAGS="$ac_save_CXXFLAGS"
1289 elif test $ac_cv_prog_cxx_g = yes; then
1296 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1306 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1307 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1309 cat >> confdefs.h <<EOF
1310 #define PACKAGE "$PACKAGE"
1313 cat >> confdefs.h <<EOF
1314 #define VERSION "$VERSION"
1319 missing_dir=`cd $ac_aux_dir && pwd`
1320 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1321 echo "configure:1322: checking for working aclocal" >&5
1322 # Run test in a subshell; some versions of sh will print an error if
1323 # an executable is not found, even if stderr is redirected.
1324 # Redirect stdin to placate older versions of autoconf. Sigh.
1325 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1327 echo "$ac_t""found" 1>&6
1329 ACLOCAL="$missing_dir/missing aclocal"
1330 echo "$ac_t""missing" 1>&6
1333 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1334 echo "configure:1335: checking for working autoconf" >&5
1335 # Run test in a subshell; some versions of sh will print an error if
1336 # an executable is not found, even if stderr is redirected.
1337 # Redirect stdin to placate older versions of autoconf. Sigh.
1338 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1340 echo "$ac_t""found" 1>&6
1342 AUTOCONF="$missing_dir/missing autoconf"
1343 echo "$ac_t""missing" 1>&6
1346 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1347 echo "configure:1348: checking for working automake" >&5
1348 # Run test in a subshell; some versions of sh will print an error if
1349 # an executable is not found, even if stderr is redirected.
1350 # Redirect stdin to placate older versions of autoconf. Sigh.
1351 if (automake --version) < /dev/null > /dev/null 2>&1; then
1353 echo "$ac_t""found" 1>&6
1355 AUTOMAKE="$missing_dir/missing automake"
1356 echo "$ac_t""missing" 1>&6
1359 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1360 echo "configure:1361: checking for working autoheader" >&5
1361 # Run test in a subshell; some versions of sh will print an error if
1362 # an executable is not found, even if stderr is redirected.
1363 # Redirect stdin to placate older versions of autoconf. Sigh.
1364 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1365 AUTOHEADER=autoheader
1366 echo "$ac_t""found" 1>&6
1368 AUTOHEADER="$missing_dir/missing autoheader"
1369 echo "$ac_t""missing" 1>&6
1372 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1373 echo "configure:1374: checking for working makeinfo" >&5
1374 # Run test in a subshell; some versions of sh will print an error if
1375 # an executable is not found, even if stderr is redirected.
1376 # Redirect stdin to placate older versions of autoconf. Sigh.
1377 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1379 echo "$ac_t""found" 1>&6
1381 MAKEINFO="$missing_dir/missing makeinfo"
1382 echo "$ac_t""missing" 1>&6
1387 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we don't
1388 # run it explicitly here, it will be run implicitly before
1389 # LIBGCJ_CONFIGURE, which doesn't work because that means that it will
1390 # be run before AC_CANONICAL_HOST.
1391 echo $ac_n "checking build system type""... $ac_c" 1>&6
1392 echo "configure:1393: checking build system type" >&5
1395 case "$build_alias" in
1398 NONE) build_alias=$host_alias ;;
1399 *) build_alias=$nonopt ;;
1403 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1404 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1405 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1406 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1407 echo "$ac_t""$build" 1>&6
1410 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1411 set dummy ${ac_tool_prefix}as; ac_word=$2
1412 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1413 echo "configure:1414: checking for $ac_word" >&5
1414 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1415 echo $ac_n "(cached) $ac_c" 1>&6
1417 if test -n "$AS"; then
1418 ac_cv_prog_AS="$AS" # Let the user override the test.
1420 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1422 for ac_dir in $ac_dummy; do
1423 test -z "$ac_dir" && ac_dir=.
1424 if test -f $ac_dir/$ac_word; then
1425 ac_cv_prog_AS="${ac_tool_prefix}as"
1430 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1434 if test -n "$AS"; then
1435 echo "$ac_t""$AS" 1>&6
1437 echo "$ac_t""no" 1>&6
1442 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1443 set dummy ${ac_tool_prefix}ar; ac_word=$2
1444 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1445 echo "configure:1446: checking for $ac_word" >&5
1446 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1447 echo $ac_n "(cached) $ac_c" 1>&6
1449 if test -n "$AR"; then
1450 ac_cv_prog_AR="$AR" # Let the user override the test.
1452 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1454 for ac_dir in $ac_dummy; do
1455 test -z "$ac_dir" && ac_dir=.
1456 if test -f $ac_dir/$ac_word; then
1457 ac_cv_prog_AR="${ac_tool_prefix}ar"
1462 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1466 if test -n "$AR"; then
1467 echo "$ac_t""$AR" 1>&6
1469 echo "$ac_t""no" 1>&6
1474 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1475 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1476 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1477 echo "configure:1478: checking for $ac_word" >&5
1478 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1479 echo $ac_n "(cached) $ac_c" 1>&6
1481 if test -n "$RANLIB"; then
1482 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1484 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1486 for ac_dir in $ac_dummy; do
1487 test -z "$ac_dir" && ac_dir=.
1488 if test -f $ac_dir/$ac_word; then
1489 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1496 RANLIB="$ac_cv_prog_RANLIB"
1497 if test -n "$RANLIB"; then
1498 echo "$ac_t""$RANLIB" 1>&6
1500 echo "$ac_t""no" 1>&6
1504 if test -z "$ac_cv_prog_RANLIB"; then
1505 if test -n "$ac_tool_prefix"; then
1506 # Extract the first word of "ranlib", so it can be a program name with args.
1507 set dummy ranlib; ac_word=$2
1508 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1509 echo "configure:1510: checking for $ac_word" >&5
1510 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1511 echo $ac_n "(cached) $ac_c" 1>&6
1513 if test -n "$RANLIB"; then
1514 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1516 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1518 for ac_dir in $ac_dummy; do
1519 test -z "$ac_dir" && ac_dir=.
1520 if test -f $ac_dir/$ac_word; then
1521 ac_cv_prog_RANLIB="ranlib"
1526 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1529 RANLIB="$ac_cv_prog_RANLIB"
1530 if test -n "$RANLIB"; then
1531 echo "$ac_t""$RANLIB" 1>&6
1533 echo "$ac_t""no" 1>&6
1542 # Find a good install program. We prefer a C program (faster),
1543 # so one script is as good as another. But avoid the broken or
1544 # incompatible versions:
1545 # SysV /etc/install, /usr/sbin/install
1546 # SunOS /usr/etc/install
1547 # IRIX /sbin/install
1549 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1550 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1551 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1552 # ./install, which can be erroneously created by make from ./install.sh.
1553 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1554 echo "configure:1555: checking for a BSD compatible install" >&5
1555 if test -z "$INSTALL"; then
1556 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1557 echo $ac_n "(cached) $ac_c" 1>&6
1559 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1560 for ac_dir in $PATH; do
1561 # Account for people who put trailing slashes in PATH elements.
1563 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1565 # OSF1 and SCO ODT 3.0 have their own names for install.
1566 # Don't use installbsd from OSF since it installs stuff as root
1568 for ac_prog in ginstall scoinst install; do
1569 if test -f $ac_dir/$ac_prog; then
1570 if test $ac_prog = install &&
1571 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1572 # AIX install. It has an incompatible calling convention.
1575 ac_cv_path_install="$ac_dir/$ac_prog -c"
1586 if test "${ac_cv_path_install+set}" = set; then
1587 INSTALL="$ac_cv_path_install"
1589 # As a last resort, use the slow shell script. We don't cache a
1590 # path for INSTALL within a source directory, because that will
1591 # break other packages using the cache if that directory is
1592 # removed, or if the path is relative.
1593 INSTALL="$ac_install_sh"
1596 echo "$ac_t""$INSTALL" 1>&6
1598 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1599 # It thinks the first close brace ends the variable substitution.
1600 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1602 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1604 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1607 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1608 echo "configure:1609: checking whether to enable maintainer-specific portions of Makefiles" >&5
1609 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1610 if test "${enable_maintainer_mode+set}" = set; then
1611 enableval="$enable_maintainer_mode"
1612 USE_MAINTAINER_MODE=$enableval
1614 USE_MAINTAINER_MODE=no
1617 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1620 if test $USE_MAINTAINER_MODE = yes; then
1621 MAINTAINER_MODE_TRUE=
1622 MAINTAINER_MODE_FALSE='#'
1624 MAINTAINER_MODE_TRUE='#'
1625 MAINTAINER_MODE_FALSE=
1627 MAINT=$MAINTAINER_MODE_TRUE
1633 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1634 echo "configure:1635: checking for executable suffix" >&5
1635 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1636 echo $ac_n "(cached) $ac_c" 1>&6
1638 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1642 echo 'int main () { return 0; }' > conftest.$ac_ext
1644 if { (eval echo configure:1645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1645 for file in conftest.*; do
1647 *.c | *.o | *.obj) ;;
1648 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1652 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1655 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1660 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1661 echo "$ac_t""${ac_cv_exeext}" 1>&6
1665 # configure.host sets the following important variables
1666 # libgcj_cflags - host specific C compiler flags
1667 # libgcj_cxxflags - host specific C++ compiler flags
1668 # libgcj_javaflags - host specific Java compiler flags
1674 . ${srcdir}/configure.host
1676 LIBGCJ_CFLAGS="${libgcj_cflags}"
1677 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
1678 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
1688 # Only use libltdl for native builds.
1689 if test -z "${with_cross_host}"; then
1690 case $enable_ltdl_convenience in
1691 no) { echo "configure: error: this package needs a convenience libltdl" 1>&2; exit 1; } ;;
1692 "") enable_ltdl_convenience=yes
1693 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
1695 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
1696 INCLTDL='-I${top_srcdir}/''libltdl'
1700 cat >> confdefs.h <<\EOF
1704 # Sigh. Libtool's macro doesn't do the right thing.
1705 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
1706 # FIXME: this is a hack.
1707 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
1708 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
1713 # Check whether --enable-shared or --disable-shared was given.
1714 if test "${enable_shared+set}" = set; then
1715 enableval="$enable_shared"
1716 p=${PACKAGE-default}
1718 yes) enable_shared=yes ;;
1719 no) enable_shared=no ;;
1722 # Look at the argument we got. We use all the common list separators.
1723 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1724 for pkg in $enableval; do
1725 if test "X$pkg" = "X$p"; then
1736 # Check whether --enable-static or --disable-static was given.
1737 if test "${enable_static+set}" = set; then
1738 enableval="$enable_static"
1739 p=${PACKAGE-default}
1741 yes) enable_static=yes ;;
1742 no) enable_static=no ;;
1745 # Look at the argument we got. We use all the common list separators.
1746 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1747 for pkg in $enableval; do
1748 if test "X$pkg" = "X$p"; then
1759 # Check whether --enable-fast-install or --disable-fast-install was given.
1760 if test "${enable_fast_install+set}" = set; then
1761 enableval="$enable_fast_install"
1762 p=${PACKAGE-default}
1764 yes) enable_fast_install=yes ;;
1765 no) enable_fast_install=no ;;
1767 enable_fast_install=no
1768 # Look at the argument we got. We use all the common list separators.
1769 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1770 for pkg in $enableval; do
1771 if test "X$pkg" = "X$p"; then
1772 enable_fast_install=yes
1779 enable_fast_install=yes
1782 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1783 if test "${with_gnu_ld+set}" = set; then
1784 withval="$with_gnu_ld"
1785 test "$withval" = no || with_gnu_ld=yes
1791 if test "$GCC" = yes; then
1792 # Check if gcc -print-prog-name=ld gives a path.
1793 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1794 echo "configure:1795: checking for ld used by GCC" >&5
1797 # gcc leaves a trailing carriage return which upsets mingw
1798 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1800 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1803 # Accept absolute paths.
1804 [\\/]* | [A-Za-z]:[\\/]*)
1805 re_direlt='/[^/][^/]*/\.\./'
1806 # Canonicalize the path of ld
1807 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1808 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1809 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1811 test -z "$LD" && LD="$ac_prog"
1814 # If it fails, then pretend we aren't using GCC.
1818 # If it is relative, then search for the first ld in PATH.
1822 elif test "$with_gnu_ld" = yes; then
1823 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1824 echo "configure:1825: checking for GNU ld" >&5
1826 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1827 echo "configure:1828: checking for non-GNU ld" >&5
1829 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1830 echo $ac_n "(cached) $ac_c" 1>&6
1832 if test -z "$LD"; then
1833 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1834 for ac_dir in $PATH; do
1835 test -z "$ac_dir" && ac_dir=.
1836 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1837 lt_cv_path_LD="$ac_dir/$ac_prog"
1838 # Check to see if the program is GNU ld. I'd rather use --version,
1839 # but apparently some GNU ld's only accept -v.
1840 # Break only if it was the GNU/non-GNU ld that we prefer.
1841 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1842 test "$with_gnu_ld" != no && break
1844 test "$with_gnu_ld" != yes && break
1850 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1855 if test -n "$LD"; then
1856 echo "$ac_t""$LD" 1>&6
1858 echo "$ac_t""no" 1>&6
1860 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1861 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1862 echo "configure:1863: checking if the linker ($LD) is GNU ld" >&5
1863 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1864 echo $ac_n "(cached) $ac_c" 1>&6
1866 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1867 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1868 lt_cv_prog_gnu_ld=yes
1870 lt_cv_prog_gnu_ld=no
1874 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1875 with_gnu_ld=$lt_cv_prog_gnu_ld
1878 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1879 echo "configure:1880: checking for $LD option to reload object files" >&5
1880 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1881 echo $ac_n "(cached) $ac_c" 1>&6
1883 lt_cv_ld_reload_flag='-r'
1886 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1887 reload_flag=$lt_cv_ld_reload_flag
1888 test -n "$reload_flag" && reload_flag=" $reload_flag"
1890 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1891 echo "configure:1892: checking for BSD-compatible nm" >&5
1892 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1893 echo $ac_n "(cached) $ac_c" 1>&6
1895 if test -n "$NM"; then
1896 # Let the user override the test.
1899 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1900 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1901 test -z "$ac_dir" && ac_dir=.
1902 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1903 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1904 # Check to see if the nm accepts a BSD-compat flag.
1905 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1906 # nm: unknown option "B" ignored
1907 # Tru64's nm complains that /dev/null is an invalid object file
1908 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1909 lt_cv_path_NM="$tmp_nm -B"
1911 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1912 lt_cv_path_NM="$tmp_nm -p"
1915 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1916 continue # so that we can try to find one that supports BSD flags
1921 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1926 echo "$ac_t""$NM" 1>&6
1928 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1929 echo "configure:1930: checking how to recognise dependant libraries" >&5
1930 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1931 echo $ac_n "(cached) $ac_c" 1>&6
1933 lt_cv_file_magic_cmd='$MAGIC_CMD'
1934 lt_cv_file_magic_test_file=
1935 lt_cv_deplibs_check_method='unknown'
1936 # Need to set the preceding variable on all platforms that support
1937 # interlibrary dependencies.
1938 # 'none' -- dependencies not supported.
1939 # `unknown' -- same as none, but documents that we really don't know.
1940 # 'pass_all' -- all dependencies passed with no checks.
1941 # 'test_compile' -- check by making test program.
1942 # 'file_magic [regex]' -- check by looking for files in library path
1943 # which responds to the $file_magic_cmd with a given egrep regex.
1944 # If you have `file' or equivalent on your system and you're not sure
1945 # whether `pass_all' will *always* work, you probably want this one.
1949 lt_cv_deplibs_check_method=pass_all
1953 lt_cv_deplibs_check_method=pass_all
1957 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1958 lt_cv_file_magic_cmd='/usr/bin/file -L'
1959 lt_cv_file_magic_test_file=/shlib/libc.so
1962 cygwin* | mingw* |pw32*)
1963 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1964 lt_cv_file_magic_cmd='$OBJDUMP -f'
1967 darwin* | rhapsody*)
1968 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1969 lt_cv_file_magic_cmd='/usr/bin/file -L'
1971 rhapsody* | darwin1.012)
1972 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1975 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1981 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1984 # Not sure whether the presence of OpenBSD here was a mistake.
1985 # Let's accept both of them until this is cleared up.
1986 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1987 lt_cv_file_magic_cmd=/usr/bin/file
1988 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1992 lt_cv_deplibs_check_method=pass_all
1997 lt_cv_deplibs_check_method=pass_all
2003 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2004 lt_cv_file_magic_cmd=/usr/bin/file
2005 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2008 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
2009 lt_cv_file_magic_cmd=/usr/bin/file
2010 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2018 # this will be overridden with pass_all, but let us keep it just in case
2019 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2023 *-32|*"-32 ") libmagic=32-bit;;
2024 *-n32|*"-n32 ") libmagic=N32;;
2025 *-64|*"-64 ") libmagic=64-bit;;
2026 *) libmagic=never-match;;
2028 # this will be overridden with pass_all, but let us keep it just in case
2029 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2032 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2033 lt_cv_deplibs_check_method=pass_all
2036 # This must be Linux ELF.
2039 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2040 lt_cv_deplibs_check_method=pass_all ;;
2042 # glibc up to 2.1.1 does not perform some relocations on ARM
2043 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2045 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2049 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2050 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2052 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2057 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2058 lt_cv_file_magic_cmd=/usr/bin/file
2059 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2062 osf3* | osf4* | osf5*)
2063 # this will be overridden with pass_all, but let us keep it just in case
2064 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2065 lt_cv_file_magic_test_file=/shlib/libc.so
2066 lt_cv_deplibs_check_method=pass_all
2070 lt_cv_deplibs_check_method=pass_all
2074 lt_cv_deplibs_check_method=pass_all
2075 lt_cv_file_magic_test_file=/lib/libc.so
2078 sysv5uw[78]* | sysv4*uw2*)
2079 lt_cv_deplibs_check_method=pass_all
2082 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2083 case $host_vendor in
2085 lt_cv_deplibs_check_method=pass_all
2088 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]'
2089 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2097 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2098 file_magic_cmd=$lt_cv_file_magic_cmd
2099 deplibs_check_method=$lt_cv_deplibs_check_method
2101 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2102 echo "configure:2103: checking for object suffix" >&5
2103 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2104 echo $ac_n "(cached) $ac_c" 1>&6
2107 echo 'int i = 1;' > conftest.$ac_ext
2108 if { (eval echo configure:2109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2109 for ac_file in conftest.*; do
2112 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2116 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2121 echo "$ac_t""$ac_cv_objext" 1>&6
2122 OBJEXT=$ac_cv_objext
2123 ac_objext=$ac_cv_objext
2125 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2127 # Only perform the check for file, if the check method requires it
2128 case $deplibs_check_method in
2130 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2131 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2132 echo "configure:2133: checking for ${ac_tool_prefix}file" >&5
2133 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2134 echo $ac_n "(cached) $ac_c" 1>&6
2138 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2141 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2144 ac_save_MAGIC_CMD="$MAGIC_CMD"
2145 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2146 ac_dummy="/usr/bin:$PATH"
2147 for ac_dir in $ac_dummy; do
2148 test -z "$ac_dir" && ac_dir=.
2149 if test -f $ac_dir/${ac_tool_prefix}file; then
2150 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2151 if test -n "$file_magic_test_file"; then
2152 case $deplibs_check_method in
2154 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2155 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2156 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2157 egrep "$file_magic_regex" > /dev/null; then
2162 *** Warning: the command libtool uses to detect shared libraries,
2163 *** $file_magic_cmd, produces output that libtool cannot recognize.
2164 *** The result is that libtool may fail to recognize shared libraries
2165 *** as such. This will affect the creation of libtool libraries that
2166 *** depend on shared libraries, but programs linked with such libtool
2167 *** libraries will work regardless of this problem. Nevertheless, you
2168 *** may want to report the problem to your system manager and/or to
2169 *** bug-libtool@gnu.org
2179 MAGIC_CMD="$ac_save_MAGIC_CMD"
2184 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2185 if test -n "$MAGIC_CMD"; then
2186 echo "$ac_t""$MAGIC_CMD" 1>&6
2188 echo "$ac_t""no" 1>&6
2191 if test -z "$lt_cv_path_MAGIC_CMD"; then
2192 if test -n "$ac_tool_prefix"; then
2193 echo $ac_n "checking for file""... $ac_c" 1>&6
2194 echo "configure:2195: checking for file" >&5
2195 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2196 echo $ac_n "(cached) $ac_c" 1>&6
2200 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2203 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2206 ac_save_MAGIC_CMD="$MAGIC_CMD"
2207 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2208 ac_dummy="/usr/bin:$PATH"
2209 for ac_dir in $ac_dummy; do
2210 test -z "$ac_dir" && ac_dir=.
2211 if test -f $ac_dir/file; then
2212 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2213 if test -n "$file_magic_test_file"; then
2214 case $deplibs_check_method in
2216 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2217 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2218 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2219 egrep "$file_magic_regex" > /dev/null; then
2224 *** Warning: the command libtool uses to detect shared libraries,
2225 *** $file_magic_cmd, produces output that libtool cannot recognize.
2226 *** The result is that libtool may fail to recognize shared libraries
2227 *** as such. This will affect the creation of libtool libraries that
2228 *** depend on shared libraries, but programs linked with such libtool
2229 *** libraries will work regardless of this problem. Nevertheless, you
2230 *** may want to report the problem to your system manager and/or to
2231 *** bug-libtool@gnu.org
2241 MAGIC_CMD="$ac_save_MAGIC_CMD"
2246 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2247 if test -n "$MAGIC_CMD"; then
2248 echo "$ac_t""$MAGIC_CMD" 1>&6
2250 echo "$ac_t""no" 1>&6
2262 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2263 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2264 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2265 echo "configure:2266: checking for $ac_word" >&5
2266 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2267 echo $ac_n "(cached) $ac_c" 1>&6
2269 if test -n "$RANLIB"; then
2270 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2272 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2274 for ac_dir in $ac_dummy; do
2275 test -z "$ac_dir" && ac_dir=.
2276 if test -f $ac_dir/$ac_word; then
2277 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2284 RANLIB="$ac_cv_prog_RANLIB"
2285 if test -n "$RANLIB"; then
2286 echo "$ac_t""$RANLIB" 1>&6
2288 echo "$ac_t""no" 1>&6
2292 if test -z "$ac_cv_prog_RANLIB"; then
2293 if test -n "$ac_tool_prefix"; then
2294 # Extract the first word of "ranlib", so it can be a program name with args.
2295 set dummy ranlib; ac_word=$2
2296 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2297 echo "configure:2298: checking for $ac_word" >&5
2298 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2299 echo $ac_n "(cached) $ac_c" 1>&6
2301 if test -n "$RANLIB"; then
2302 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2304 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2306 for ac_dir in $ac_dummy; do
2307 test -z "$ac_dir" && ac_dir=.
2308 if test -f $ac_dir/$ac_word; then
2309 ac_cv_prog_RANLIB="ranlib"
2314 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2317 RANLIB="$ac_cv_prog_RANLIB"
2318 if test -n "$RANLIB"; then
2319 echo "$ac_t""$RANLIB" 1>&6
2321 echo "$ac_t""no" 1>&6
2329 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2330 set dummy ${ac_tool_prefix}strip; ac_word=$2
2331 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2332 echo "configure:2333: checking for $ac_word" >&5
2333 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2334 echo $ac_n "(cached) $ac_c" 1>&6
2336 if test -n "$STRIP"; then
2337 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2339 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2341 for ac_dir in $ac_dummy; do
2342 test -z "$ac_dir" && ac_dir=.
2343 if test -f $ac_dir/$ac_word; then
2344 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2351 STRIP="$ac_cv_prog_STRIP"
2352 if test -n "$STRIP"; then
2353 echo "$ac_t""$STRIP" 1>&6
2355 echo "$ac_t""no" 1>&6
2359 if test -z "$ac_cv_prog_STRIP"; then
2360 if test -n "$ac_tool_prefix"; then
2361 # Extract the first word of "strip", so it can be a program name with args.
2362 set dummy strip; ac_word=$2
2363 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2364 echo "configure:2365: checking for $ac_word" >&5
2365 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2366 echo $ac_n "(cached) $ac_c" 1>&6
2368 if test -n "$STRIP"; then
2369 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2371 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2373 for ac_dir in $ac_dummy; do
2374 test -z "$ac_dir" && ac_dir=.
2375 if test -f $ac_dir/$ac_word; then
2376 ac_cv_prog_STRIP="strip"
2381 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2384 STRIP="$ac_cv_prog_STRIP"
2385 if test -n "$STRIP"; then
2386 echo "$ac_t""$STRIP" 1>&6
2388 echo "$ac_t""no" 1>&6
2397 # Check for any special flags to pass to ltconfig.
2398 libtool_flags="--cache-file=$cache_file"
2399 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2400 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2401 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2402 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2403 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2404 libtool_flags="$libtool_flags --enable-dlopen"
2406 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2407 if test "${enable_libtool_lock+set}" = set; then
2408 enableval="$enable_libtool_lock"
2412 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2413 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2415 # Check whether --with-pic or --without-pic was given.
2416 if test "${with_pic+set}" = set; then
2423 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2424 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2426 # Some flags need to be propagated to the compiler or linker for good
2430 # Find out which ABI we are using.
2431 echo '#line 2432 "configure"' > conftest.$ac_ext
2432 if { (eval echo configure:2433: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2433 case `/usr/bin/file conftest.$ac_objext` in
2449 # Find out which ABI we are using.
2450 echo 'int i;' > conftest.$ac_ext
2451 if { (eval echo configure:2452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2452 case "`/usr/bin/file conftest.o`" in
2465 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2466 SAVE_CFLAGS="$CFLAGS"
2467 CFLAGS="$CFLAGS -belf"
2468 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2469 echo "configure:2470: checking whether the C compiler needs -belf" >&5
2470 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2471 echo $ac_n "(cached) $ac_c" 1>&6
2475 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2476 ac_cpp='$CPP $CPPFLAGS'
2477 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2478 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2479 cross_compiling=$ac_cv_prog_cc_cross
2481 cat > conftest.$ac_ext <<EOF
2482 #line 2483 "configure"
2483 #include "confdefs.h"
2489 if { (eval echo configure:2490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2491 lt_cv_cc_needs_belf=yes
2493 echo "configure: failed program was:" >&5
2494 cat conftest.$ac_ext >&5
2496 lt_cv_cc_needs_belf=no
2500 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2501 ac_cpp='$CPP $CPPFLAGS'
2502 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2503 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2504 cross_compiling=$ac_cv_prog_cc_cross
2508 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2509 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2510 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2511 CFLAGS="$SAVE_CFLAGS"
2518 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2519 echo "configure:2520: checking how to run the C++ preprocessor" >&5
2520 if test -z "$CXXCPP"; then
2521 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2522 echo $ac_n "(cached) $ac_c" 1>&6
2525 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2526 ac_cpp='$CXXCPP $CPPFLAGS'
2527 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2528 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2529 cross_compiling=$ac_cv_prog_cxx_cross
2530 CXXCPP="${CXX-g++} -E"
2531 cat > conftest.$ac_ext <<EOF
2532 #line 2533 "configure"
2533 #include "confdefs.h"
2536 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2537 { (eval echo configure:2538: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2538 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2539 if test -z "$ac_err"; then
2543 echo "configure: failed program was:" >&5
2544 cat conftest.$ac_ext >&5
2549 ac_cv_prog_CXXCPP="$CXXCPP"
2551 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2552 ac_cpp='$CPP $CPPFLAGS'
2553 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2554 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2555 cross_compiling=$ac_cv_prog_cc_cross
2558 CXXCPP="$ac_cv_prog_CXXCPP"
2559 echo "$ac_t""$CXXCPP" 1>&6
2562 # Save cache, so that ltconfig can load it
2563 cat > confcache <<\EOF
2564 # This file is a shell script that caches the results of configure
2565 # tests run on this system so they can be shared between configure
2566 # scripts and configure runs. It is not useful on other systems.
2567 # If it contains results you don't want to keep, you may remove or edit it.
2569 # By default, configure uses ./config.cache as the cache file,
2570 # creating it if it does not exist already. You can give configure
2571 # the --cache-file=FILE option to use a different cache file; that is
2572 # what configure does when it calls configure scripts in
2573 # subdirectories, so they share the cache.
2574 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2575 # config.status only pays attention to the cache file if you give it the
2576 # --recheck option to rerun configure.
2579 # The following way of writing the cache mishandles newlines in values,
2580 # but we know of no workaround that is simple, portable, and efficient.
2581 # So, don't put newlines in cache variables' values.
2582 # Ultrix sh set writes to stderr and can't be redirected directly,
2583 # and sets the high bit in the cache file unless we assign to the vars.
2585 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2587 # `set' does not quote correctly, so add quotes (double-quote substitution
2588 # turns \\\\ into \\, and sed turns \\ into \).
2590 -e "s/'/'\\\\''/g" \
2591 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2594 # `set' quotes correctly as required by POSIX, so do not add quotes.
2595 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2598 if cmp -s $cache_file confcache; then
2601 if test -w $cache_file; then
2602 echo "updating cache $cache_file"
2603 cat confcache > $cache_file
2605 echo "not updating unwritable cache $cache_file"
2611 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2612 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2613 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2614 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2615 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2616 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2617 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2618 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2619 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2620 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2622 # Reload cache, that may have been modified by ltconfig
2623 if test -r "$cache_file"; then
2624 echo "loading cache $cache_file"
2627 echo "creating cache $cache_file"
2632 # This can be used to rebuild libtool when needed
2633 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2635 # Always use our own libtool.
2636 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2638 # Redirect the config.log output again, so that the ltconfig log is not
2639 # clobbered by the next message.
2640 exec 5>>./config.log
2644 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2646 lt_save_CFLAGS="$CFLAGS"
2647 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2648 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2649 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2650 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2651 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2652 deplibs_check_method="$deplibs_check_method" \
2653 file_magic_cmd="$file_magic_cmd" \
2654 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2655 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2656 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2658 CFLAGS="$lt_save_CFLAGS"
2660 # Redirect the config.log output again, so that the ltconfig log is not
2661 # clobbered by the next message.
2662 exec 5>>./config.log
2672 if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
2681 if test -d $srcdir/testsuite; then
2683 TESTSUBDIR_FALSE='#'
2689 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
2690 if test "${enable_getenv_properties+set}" = set; then
2691 enableval="$enable_getenv_properties"
2696 if test -z "$enable_getenv_properties"; then
2697 enable_getenv_properties=${enable_getenv_properties_default-yes}
2699 if test "$enable_getenv_properties" = no; then
2700 cat >> confdefs.h <<\EOF
2701 #define DISABLE_GETENV_PROPERTIES 1
2706 if test -z "$enable_main_args"; then
2707 enable_main_args=${enable_main_args_default-yes}
2709 if test "$enable_main_args" = no; then
2710 cat >> confdefs.h <<\EOF
2711 #define DISABLE_MAIN_ARGS 1
2717 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
2718 if test "${enable_hash_synchronization+set}" = set; then
2719 enableval="$enable_hash_synchronization"
2724 if test -z "$enable_hash_synchronization"; then
2725 enable_hash_synchronization=$enable_hash_synchronization_default
2728 if test "${slow_pthread_self}" = "yes"; then
2729 cat >> confdefs.h <<\EOF
2730 #define SLOW_PTHREAD_SELF 1
2738 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
2739 if test "${enable_libgcj_debug+set}" = set; then
2740 enableval="$enable_libgcj_debug"
2741 if test "$enable_libgcj_debug" = yes; then
2742 cat >> confdefs.h <<\EOF
2751 # Check whether --enable-interpreter or --disable-interpreter was given.
2752 if test "${enable_interpreter+set}" = set; then
2753 enableval="$enable_interpreter"
2754 if test "$enable_interpreter" = yes; then
2755 # This can also be set in configure.host.
2756 libgcj_interpreter=yes
2757 elif test "$enable_interpreter" = no; then
2758 libgcj_interpreter=no
2763 if test "$libgcj_interpreter" = yes; then
2764 cat >> confdefs.h <<\EOF
2765 #define INTERPRETER 1
2769 INTERPRETER="$libgcj_interpreter"
2772 echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
2773 echo "configure:2774: checking for exception model to use" >&5
2776 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2777 ac_cpp='$CXXCPP $CPPFLAGS'
2778 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2779 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2780 cross_compiling=$ac_cv_prog_cxx_cross
2782 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
2783 if test "${enable_sjlj_exceptions+set}" = set; then
2784 enableval="$enable_sjlj_exceptions"
2787 cat > conftest.$ac_ext << EOF
2788 #line 2789 "configure"
2797 old_CXXFLAGS="$CXXFLAGS"
2799 if { (eval echo configure:2800: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2800 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
2801 enable_sjlj_exceptions=yes
2802 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
2803 enable_sjlj_exceptions=no
2806 CXXFLAGS="$old_CXXFLAGS"
2810 if test x$enable_sjlj_exceptions = xyes; then
2811 cat >> confdefs.h <<\EOF
2812 #define SJLJ_EXCEPTIONS 1
2815 ac_exception_model_name=sjlj
2816 elif test x$enable_sjlj_exceptions = xno; then
2817 ac_exception_model_name="call frame"
2819 { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
2822 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2823 ac_cpp='$CPP $CPPFLAGS'
2824 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2825 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2826 cross_compiling=$ac_cv_prog_cc_cross
2828 echo "$ac_t""$ac_exception_model_name" 1>&6
2830 # If we are non using SJLJ exceptions, and this host does not have support
2831 # for unwinding from a signal handler, enable checked dereferences and divides.
2832 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
2833 CHECKREFSPEC=-fcheck-references
2834 DIVIDESPEC=-fuse-divide-subroutine
2838 # Check whether --enable-java-net or --disable-java-net was given.
2839 if test "${enable_java_net+set}" = set; then
2840 enableval="$enable_java_net"
2845 if test -z "$enable_java_net"; then
2846 enable_java_net=${enable_java_net_default-yes}
2848 if test "$enable_java_net" = no; then
2849 cat >> confdefs.h <<\EOF
2850 #define DISABLE_JAVA_NET 1
2855 # Check whether --with-libffi or --without-libffi was given.
2856 if test "${with_libffi+set}" = set; then
2857 withval="$with_libffi"
2860 with_libffi=${with_libffi_default-yes}
2866 if test "$with_libffi" != no; then
2867 cat >> confdefs.h <<\EOF
2868 #define USE_LIBFFI 1
2871 LIBFFI=../libffi/libffi_convenience.la
2872 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
2877 # Check whether --enable-jvmpi or --disable-jvmpi was given.
2878 if test "${enable_jvmpi+set}" = set; then
2879 enableval="$enable_jvmpi"
2884 if test "$enable_jvmpi" != no; then
2885 cat >> confdefs.h <<\EOF
2886 #define ENABLE_JVMPI 1
2891 TARGET_ECOS=${PROCESS-"no"}
2892 # Check whether --with-ecos or --without-ecos was given.
2893 if test "${with_ecos+set}" = set; then
2894 withval="$with_ecos"
2895 TARGET_ECOS="$with_ecos"
2901 case "$TARGET_ECOS" in
2905 PLATFORMOBJS=win32.lo
2908 echo $ac_n "checking whether 'ld' is at least 2.13""... $ac_c" 1>&6
2909 echo "configure:2910: checking whether 'ld' is at least 2.13" >&5
2910 LD_PROG=`$CC --print-prog-name=ld`
2911 LD_VERSION=`$LD_PROG --version`
2912 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
2913 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
2914 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
2917 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
2921 if test "x$LD_OK" != x; then
2922 echo "$ac_t""yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" 1>&6
2924 echo "$ac_t""no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" 1>&6
2925 echo "configure: warning: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." 1>&2
2926 cat >> confdefs.h <<\EOF
2927 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
2934 PLATFORMOBJS=posix.lo
2941 cat >> confdefs.h <<\EOF
2945 PLATFORMOBJS=posix.lo
2952 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2953 echo "configure:2954: checking how to run the C preprocessor" >&5
2954 # On Suns, sometimes $CPP names a directory.
2955 if test -n "$CPP" && test -d "$CPP"; then
2958 if test -z "$CPP"; then
2959 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2960 echo $ac_n "(cached) $ac_c" 1>&6
2962 # This must be in double quotes, not single quotes, because CPP may get
2963 # substituted into the Makefile and "${CC-cc}" will confuse make.
2965 # On the NeXT, cc -E runs the code through the compiler's parser,
2966 # not just through cpp.
2967 cat > conftest.$ac_ext <<EOF
2968 #line 2969 "configure"
2969 #include "confdefs.h"
2973 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2974 { (eval echo configure:2975: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2975 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2976 if test -z "$ac_err"; then
2980 echo "configure: failed program was:" >&5
2981 cat conftest.$ac_ext >&5
2983 CPP="${CC-cc} -E -traditional-cpp"
2984 cat > conftest.$ac_ext <<EOF
2985 #line 2986 "configure"
2986 #include "confdefs.h"
2990 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2991 { (eval echo configure:2992: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2992 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2993 if test -z "$ac_err"; then
2997 echo "configure: failed program was:" >&5
2998 cat conftest.$ac_ext >&5
3000 CPP="${CC-cc} -nologo -E"
3001 cat > conftest.$ac_ext <<EOF
3002 #line 3003 "configure"
3003 #include "confdefs.h"
3007 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3008 { (eval echo configure:3009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3009 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3010 if test -z "$ac_err"; then
3014 echo "configure: failed program was:" >&5
3015 cat conftest.$ac_ext >&5
3024 ac_cv_prog_CPP="$CPP"
3026 CPP="$ac_cv_prog_CPP"
3028 ac_cv_prog_CPP="$CPP"
3030 echo "$ac_t""$CPP" 1>&6
3032 cat > conftest.$ac_ext <<EOF
3033 #line 3034 "configure"
3034 #include "confdefs.h"
3037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3038 egrep "uint32_t" >/dev/null 2>&1; then
3040 cat >> confdefs.h <<\EOF
3041 #define HAVE_INT32_DEFINED 1
3047 cat > conftest.$ac_ext <<EOF
3048 #line 3049 "configure"
3049 #include "confdefs.h"
3050 #include <inttypes.h>
3052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3053 egrep "uint32_t" >/dev/null 2>&1; then
3055 cat >> confdefs.h <<\EOF
3056 #define HAVE_INT32_DEFINED 1
3062 cat > conftest.$ac_ext <<EOF
3063 #line 3064 "configure"
3064 #include "confdefs.h"
3065 #include <sys/types.h>
3067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3068 egrep "u_int32_t" >/dev/null 2>&1; then
3070 cat >> confdefs.h <<\EOF
3071 #define HAVE_BSD_INT32_DEFINED 1
3077 cat > conftest.$ac_ext <<EOF
3078 #line 3079 "configure"
3079 #include "confdefs.h"
3080 #include <sys/config.h>
3082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3083 egrep "u_int32_t" >/dev/null 2>&1; then
3085 cat >> confdefs.h <<\EOF
3086 #define HAVE_BSD_INT32_DEFINED 1
3094 cat > conftest.$ac_ext <<EOF
3095 #line 3096 "configure"
3096 #include "confdefs.h"
3099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3100 egrep "mktime" >/dev/null 2>&1; then
3102 cat >> confdefs.h <<\EOF
3103 #define HAVE_MKTIME 1
3109 cat > conftest.$ac_ext <<EOF
3110 #line 3111 "configure"
3111 #include "confdefs.h"
3114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3115 egrep "localtime" >/dev/null 2>&1; then
3117 cat >> confdefs.h <<\EOF
3118 #define HAVE_LOCALTIME 1
3125 test -d java || mkdir java
3126 test -d java/io || mkdir java/io
3127 test -d gnu || mkdir gnu
3131 test -d java/lang || mkdir java/lang
3137 SYSTEMSPEC="-lgdi32 -lwsock32 -lws2_32"
3145 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
3148 # Check whether --with-system-zlib or --without-system-zlib was given.
3149 if test "${with_system_zlib+set}" = set; then
3150 withval="$with_system_zlib"
3161 echo $ac_n "checking for garbage collector to use""... $ac_c" 1>&6
3162 echo "configure:3163: checking for garbage collector to use" >&5
3163 # Check whether --enable-java-gc or --disable-java-gc was given.
3164 if test "${enable_java_gc+set}" = set; then
3165 enableval="$enable_java_gc"
3181 echo "$ac_t""boehm" 1>&6
3182 GCLIBS=../boehm-gc/libgcjgc_convenience.la
3183 GCINCS='-I$(top_srcdir)/../boehm-gc/include'
3184 JC1GCSPEC='-fuse-boehm-gc'
3185 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
3187 GCINCS="$GCINCS `cat ../boehm-gc/boehm-cflags`"
3190 cat >> confdefs.h <<\EOF
3191 #define HAVE_BOEHM_GC 1
3196 echo "$ac_t""none" 1>&6
3201 { echo "configure: error: unrecognized collector \"$GC\"" 1>&2; exit 1; }
3214 echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3215 echo "configure:3216: checking for thread model used by GCC" >&5
3216 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3217 echo "$ac_t""$THREADS" 1>&6
3227 cat >> confdefs.h <<\EOF
3228 #define LINUX_THREADS 1
3236 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
3237 { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
3240 { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
3255 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
3260 # Before FreeBSD 5, it didn't have -lpthread (or any library which
3261 # merely adds pthread_* functions) but it does have a -pthread switch
3262 # which is required at link-time to select -lc_r *instead* of -lc.
3263 THREADLDFLAGS=-pthread
3264 # Don't set THREADSPEC here as might be expected since -pthread is
3265 # not processed when found within a spec file, it must come from
3266 # the command line. For now, the user must provide the -pthread
3267 # switch to link code compiled with gcj. In future, consider adding
3268 # support for weak references to pthread_* functions ala gthr.h API.
3269 THREADSPEC='%{!pthread: %eUnder this configuration, the user must provide -pthread when linking.}'
3272 # FreeBSD 5 implements a model much closer to other modern UNIX
3273 # which support threads. However, it still does not support
3275 THREADLDFLAGS=-pthread
3279 THREADLIBS=-lpthread
3280 THREADSPEC=-lpthread
3283 THREADOBJS=posix-threads.lo
3284 THREADH=posix-threads.h
3285 # MIT pthreads doesn't seem to have the mutexattr functions.
3286 # But for now we don't check for it. We just assume you aren't
3287 # using MIT pthreads.
3288 cat >> confdefs.h <<\EOF
3289 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
3293 # If we're using the Boehm GC, then we happen to know that it
3294 # defines _REENTRANT, so we don't bother. Eww.
3295 if test "$GC" != boehm; then
3296 cat >> confdefs.h <<\EOF
3297 #define _REENTRANT 1
3301 cat >> confdefs.h <<\EOF
3302 #define _POSIX_PTHREAD_SEMANTICS 1
3308 THREADOBJS=win32-threads.lo
3309 THREADH=win32-threads.h
3313 THREADOBJS=no-threads.lo
3314 THREADH=no-threads.h
3325 if test -d sysdep; then true; else mkdir sysdep; fi
3329 # Hash synchronization is only useful with posix threads right now.
3330 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
3331 HASH_SYNC_SPEC=-fhash-synchronization
3332 cat >> confdefs.h <<\EOF
3333 #define JV_HASH_SYNCHRONIZATION 1
3342 if test "$GCC" = yes; then
3354 # We're in the tree with gcc, and need to include some of its headers.
3355 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
3357 # Figure out where generated headers like libgcj-config.h get installed.
3358 gcc_version_trigger=${libgcj_basedir}/../gcc/version.c
3359 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
3360 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
3361 tool_include_dir='$(libdir)/gcc-lib/$(target_alias)/'${gcc_version}/include
3365 if test "x${with_newlib}" = "xyes"; then
3366 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
3367 # may not work correctly, because the compiler may not be able to
3370 # We assume newlib. This lets us hard-code the functions we know
3372 cat >> confdefs.h <<\EOF
3373 #define HAVE_MEMMOVE 1
3376 cat >> confdefs.h <<\EOF
3377 #define HAVE_MEMCPY 1
3380 cat >> confdefs.h <<\EOF
3381 #define HAVE_STRERROR 1
3384 cat >> confdefs.h <<\EOF
3388 cat >> confdefs.h <<\EOF
3389 #define HAVE_GMTIME_R 1
3392 cat >> confdefs.h <<\EOF
3393 #define HAVE_LOCALTIME_R 1
3396 cat >> confdefs.h <<\EOF
3397 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
3400 cat >> confdefs.h <<\EOF
3401 #define HAVE_ALLOCA 1
3405 cat >> confdefs.h <<\EOF
3410 # If Canadian cross, then don't pick up tools from the build
3412 if test x"$build" != x"$with_cross_host" \
3413 && test x"$build" != x"$target"; then
3416 GCJ="${target_alias}-gcj"
3420 for ac_func in strerror ioctl select fstat open fsync sleep opendir
3422 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3423 echo "configure:3424: checking for $ac_func" >&5
3424 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3425 echo $ac_n "(cached) $ac_c" 1>&6
3427 cat > conftest.$ac_ext <<EOF
3428 #line 3429 "configure"
3429 #include "confdefs.h"
3430 /* System header to define __stub macros and hopefully few prototypes,
3431 which can conflict with char $ac_func(); below. */
3433 /* Override any gcc2 internal prototype to avoid an error. */
3434 /* We use char because int might match the return type of a gcc2
3435 builtin and then its argument prototype would still apply. */
3440 /* The GNU C library defines this for functions which it implements
3441 to always fail with ENOSYS. Some functions are actually named
3442 something starting with __ and the normal name is an alias. */
3443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3451 if { (eval echo configure:3452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3453 eval "ac_cv_func_$ac_func=yes"
3455 echo "configure: failed program was:" >&5
3456 cat conftest.$ac_ext >&5
3458 eval "ac_cv_func_$ac_func=no"
3463 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3464 echo "$ac_t""yes" 1>&6
3465 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3466 cat >> confdefs.h <<EOF
3467 #define $ac_tr_func 1
3471 echo "$ac_t""no" 1>&6
3475 for ac_func in gmtime_r localtime_r readdir_r getpwuid_r getcwd
3477 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3478 echo "configure:3479: checking for $ac_func" >&5
3479 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3480 echo $ac_n "(cached) $ac_c" 1>&6
3482 cat > conftest.$ac_ext <<EOF
3483 #line 3484 "configure"
3484 #include "confdefs.h"
3485 /* System header to define __stub macros and hopefully few prototypes,
3486 which can conflict with char $ac_func(); below. */
3488 /* Override any gcc2 internal prototype to avoid an error. */
3489 /* We use char because int might match the return type of a gcc2
3490 builtin and then its argument prototype would still apply. */
3495 /* The GNU C library defines this for functions which it implements
3496 to always fail with ENOSYS. Some functions are actually named
3497 something starting with __ and the normal name is an alias. */
3498 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3506 if { (eval echo configure:3507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3508 eval "ac_cv_func_$ac_func=yes"
3510 echo "configure: failed program was:" >&5
3511 cat conftest.$ac_ext >&5
3513 eval "ac_cv_func_$ac_func=no"
3518 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3519 echo "$ac_t""yes" 1>&6
3520 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3521 cat >> confdefs.h <<EOF
3522 #define $ac_tr_func 1
3526 echo "$ac_t""no" 1>&6
3530 for ac_func in access stat mkdir rename rmdir unlink realpath utime chmod
3532 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3533 echo "configure:3534: checking for $ac_func" >&5
3534 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3535 echo $ac_n "(cached) $ac_c" 1>&6
3537 cat > conftest.$ac_ext <<EOF
3538 #line 3539 "configure"
3539 #include "confdefs.h"
3540 /* System header to define __stub macros and hopefully few prototypes,
3541 which can conflict with char $ac_func(); below. */
3543 /* Override any gcc2 internal prototype to avoid an error. */
3544 /* We use char because int might match the return type of a gcc2
3545 builtin and then its argument prototype would still apply. */
3550 /* The GNU C library defines this for functions which it implements
3551 to always fail with ENOSYS. Some functions are actually named
3552 something starting with __ and the normal name is an alias. */
3553 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3561 if { (eval echo configure:3562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3563 eval "ac_cv_func_$ac_func=yes"
3565 echo "configure: failed program was:" >&5
3566 cat conftest.$ac_ext >&5
3568 eval "ac_cv_func_$ac_func=no"
3573 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3574 echo "$ac_t""yes" 1>&6
3575 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3576 cat >> confdefs.h <<EOF
3577 #define $ac_tr_func 1
3581 echo "$ac_t""no" 1>&6
3585 for ac_func in nl_langinfo setlocale
3587 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3588 echo "configure:3589: checking for $ac_func" >&5
3589 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3590 echo $ac_n "(cached) $ac_c" 1>&6
3592 cat > conftest.$ac_ext <<EOF
3593 #line 3594 "configure"
3594 #include "confdefs.h"
3595 /* System header to define __stub macros and hopefully few prototypes,
3596 which can conflict with char $ac_func(); below. */
3598 /* Override any gcc2 internal prototype to avoid an error. */
3599 /* We use char because int might match the return type of a gcc2
3600 builtin and then its argument prototype would still apply. */
3605 /* The GNU C library defines this for functions which it implements
3606 to always fail with ENOSYS. Some functions are actually named
3607 something starting with __ and the normal name is an alias. */
3608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3616 if { (eval echo configure:3617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3618 eval "ac_cv_func_$ac_func=yes"
3620 echo "configure: failed program was:" >&5
3621 cat conftest.$ac_ext >&5
3623 eval "ac_cv_func_$ac_func=no"
3628 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3629 echo "$ac_t""yes" 1>&6
3630 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3631 cat >> confdefs.h <<EOF
3632 #define $ac_tr_func 1
3636 echo "$ac_t""no" 1>&6
3640 for ac_func in inet_aton inet_addr
3642 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3643 echo "configure:3644: checking for $ac_func" >&5
3644 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3645 echo $ac_n "(cached) $ac_c" 1>&6
3647 cat > conftest.$ac_ext <<EOF
3648 #line 3649 "configure"
3649 #include "confdefs.h"
3650 /* System header to define __stub macros and hopefully few prototypes,
3651 which can conflict with char $ac_func(); below. */
3653 /* Override any gcc2 internal prototype to avoid an error. */
3654 /* We use char because int might match the return type of a gcc2
3655 builtin and then its argument prototype would still apply. */
3660 /* The GNU C library defines this for functions which it implements
3661 to always fail with ENOSYS. Some functions are actually named
3662 something starting with __ and the normal name is an alias. */
3663 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3671 if { (eval echo configure:3672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3673 eval "ac_cv_func_$ac_func=yes"
3675 echo "configure: failed program was:" >&5
3676 cat conftest.$ac_ext >&5
3678 eval "ac_cv_func_$ac_func=no"
3683 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3684 echo "$ac_t""yes" 1>&6
3685 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3686 cat >> confdefs.h <<EOF
3687 #define $ac_tr_func 1
3691 echo "$ac_t""no" 1>&6
3695 for ac_func in inet_pton uname inet_ntoa
3697 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3698 echo "configure:3699: checking for $ac_func" >&5
3699 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3700 echo $ac_n "(cached) $ac_c" 1>&6
3702 cat > conftest.$ac_ext <<EOF
3703 #line 3704 "configure"
3704 #include "confdefs.h"
3705 /* System header to define __stub macros and hopefully few prototypes,
3706 which can conflict with char $ac_func(); below. */
3708 /* Override any gcc2 internal prototype to avoid an error. */
3709 /* We use char because int might match the return type of a gcc2
3710 builtin and then its argument prototype would still apply. */
3715 /* The GNU C library defines this for functions which it implements
3716 to always fail with ENOSYS. Some functions are actually named
3717 something starting with __ and the normal name is an alias. */
3718 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3726 if { (eval echo configure:3727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3728 eval "ac_cv_func_$ac_func=yes"
3730 echo "configure: failed program was:" >&5
3731 cat conftest.$ac_ext >&5
3733 eval "ac_cv_func_$ac_func=no"
3738 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3739 echo "$ac_t""yes" 1>&6
3740 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3741 cat >> confdefs.h <<EOF
3742 #define $ac_tr_func 1
3746 echo "$ac_t""no" 1>&6
3750 for ac_func in fork execvp pipe sigaction ftruncate
3752 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3753 echo "configure:3754: checking for $ac_func" >&5
3754 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3755 echo $ac_n "(cached) $ac_c" 1>&6
3757 cat > conftest.$ac_ext <<EOF
3758 #line 3759 "configure"
3759 #include "confdefs.h"
3760 /* System header to define __stub macros and hopefully few prototypes,
3761 which can conflict with char $ac_func(); below. */
3763 /* Override any gcc2 internal prototype to avoid an error. */
3764 /* We use char because int might match the return type of a gcc2
3765 builtin and then its argument prototype would still apply. */
3770 /* The GNU C library defines this for functions which it implements
3771 to always fail with ENOSYS. Some functions are actually named
3772 something starting with __ and the normal name is an alias. */
3773 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3781 if { (eval echo configure:3782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3783 eval "ac_cv_func_$ac_func=yes"
3785 echo "configure: failed program was:" >&5
3786 cat conftest.$ac_ext >&5
3788 eval "ac_cv_func_$ac_func=no"
3793 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3794 echo "$ac_t""yes" 1>&6
3795 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3796 cat >> confdefs.h <<EOF
3797 #define $ac_tr_func 1
3801 echo "$ac_t""no" 1>&6
3805 for ac_hdr in execinfo.h unistd.h dlfcn.h
3807 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3808 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3809 echo "configure:3810: checking for $ac_hdr" >&5
3810 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3811 echo $ac_n "(cached) $ac_c" 1>&6
3813 cat > conftest.$ac_ext <<EOF
3814 #line 3815 "configure"
3815 #include "confdefs.h"
3818 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3819 { (eval echo configure:3820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3820 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3821 if test -z "$ac_err"; then
3823 eval "ac_cv_header_$ac_safe=yes"
3826 echo "configure: failed program was:" >&5
3827 cat conftest.$ac_ext >&5
3829 eval "ac_cv_header_$ac_safe=no"
3833 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3834 echo "$ac_t""yes" 1>&6
3835 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3836 cat >> confdefs.h <<EOF
3837 #define $ac_tr_hdr 1
3841 echo "$ac_t""no" 1>&6
3845 echo $ac_n "checking for backtrace""... $ac_c" 1>&6
3846 echo "configure:3847: checking for backtrace" >&5
3847 if eval "test \"`echo '$''{'ac_cv_func_backtrace'+set}'`\" = set"; then
3848 echo $ac_n "(cached) $ac_c" 1>&6
3850 cat > conftest.$ac_ext <<EOF
3851 #line 3852 "configure"
3852 #include "confdefs.h"
3853 /* System header to define __stub macros and hopefully few prototypes,
3854 which can conflict with char backtrace(); below. */
3856 /* Override any gcc2 internal prototype to avoid an error. */
3857 /* We use char because int might match the return type of a gcc2
3858 builtin and then its argument prototype would still apply. */
3863 /* The GNU C library defines this for functions which it implements
3864 to always fail with ENOSYS. Some functions are actually named
3865 something starting with __ and the normal name is an alias. */
3866 #if defined (__stub_backtrace) || defined (__stub___backtrace)
3874 if { (eval echo configure:3875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3876 eval "ac_cv_func_backtrace=yes"
3878 echo "configure: failed program was:" >&5
3879 cat conftest.$ac_ext >&5
3881 eval "ac_cv_func_backtrace=no"
3886 if eval "test \"`echo '$ac_cv_func_'backtrace`\" = yes"; then
3887 echo "$ac_t""yes" 1>&6
3891 # Has broken backtrace()
3894 # Has broken backtrace()
3897 cat >> confdefs.h <<\EOF
3898 #define HAVE_BACKTRACE 1
3905 echo "$ac_t""no" 1>&6
3909 echo $ac_n "checking for dladdr in -ldl""... $ac_c" 1>&6
3910 echo "configure:3911: checking for dladdr in -ldl" >&5
3911 ac_lib_var=`echo dl'_'dladdr | sed 'y%./+-%__p_%'`
3912 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3913 echo $ac_n "(cached) $ac_c" 1>&6
3915 ac_save_LIBS="$LIBS"
3917 cat > conftest.$ac_ext <<EOF
3918 #line 3919 "configure"
3919 #include "confdefs.h"
3920 /* Override any gcc2 internal prototype to avoid an error. */
3921 /* We use char because int might match the return type of a gcc2
3922 builtin and then its argument prototype would still apply. */
3929 if { (eval echo configure:3930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3931 eval "ac_cv_lib_$ac_lib_var=yes"
3933 echo "configure: failed program was:" >&5
3934 cat conftest.$ac_ext >&5
3936 eval "ac_cv_lib_$ac_lib_var=no"
3939 LIBS="$ac_save_LIBS"
3942 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3943 echo "$ac_t""yes" 1>&6
3945 cat >> confdefs.h <<\EOF
3946 #define HAVE_DLADDR 1
3950 echo "$ac_t""no" 1>&6
3953 if test x"$build" = x"$host"; then
3954 for ac_file in /proc/self/exe
3957 ac_safe=`echo "$ac_file" | sed 'y%./+-%__p_%'`
3958 echo $ac_n "checking for $ac_file""... $ac_c" 1>&6
3959 echo "configure:3960: checking for $ac_file" >&5
3960 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
3961 echo $ac_n "(cached) $ac_c" 1>&6
3963 if test "$cross_compiling" = yes; then
3964 { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
3966 if test -r $ac_file; then
3967 eval "ac_cv_file_$ac_safe=yes"
3969 eval "ac_cv_file_$ac_safe=no"
3973 if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
3974 echo "$ac_t""yes" 1>&6
3975 ac_tr_file=HAVE_`echo $ac_file | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3976 cat >> confdefs.h <<EOF
3977 #define $ac_tr_file 1
3980 cat >> confdefs.h <<\EOF
3981 #define HAVE_PROC_SELF_EXE 1
3985 echo "$ac_t""no" 1>&6
3993 cat >> confdefs.h <<\EOF
3994 #define HAVE_PROC_SELF_EXE 1
4003 am_cv_lib_iconv_ldpath=
4004 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
4005 if test "${with_libiconv_prefix+set}" = set; then
4006 withval="$with_libiconv_prefix"
4008 for dir in `echo "$withval" | tr : ' '`; do
4009 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
4010 if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
4016 echo $ac_n "checking for iconv""... $ac_c" 1>&6
4017 echo "configure:4018: checking for iconv" >&5
4018 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
4019 echo $ac_n "(cached) $ac_c" 1>&6
4022 am_cv_func_iconv="no, consider installing GNU libiconv"
4024 cat > conftest.$ac_ext <<EOF
4025 #line 4026 "configure"
4026 #include "confdefs.h"
4030 iconv_t cd = iconv_open("","");
4031 iconv(cd,NULL,NULL,NULL,NULL);
4035 if { (eval echo configure:4036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4037 am_cv_func_iconv=yes
4039 echo "configure: failed program was:" >&5
4040 cat conftest.$ac_ext >&5
4043 if test "$am_cv_func_iconv" != yes; then
4044 am_save_LIBS="$LIBS"
4045 LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
4046 cat > conftest.$ac_ext <<EOF
4047 #line 4048 "configure"
4048 #include "confdefs.h"
4052 iconv_t cd = iconv_open("","");
4053 iconv(cd,NULL,NULL,NULL,NULL);
4057 if { (eval echo configure:4058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4060 am_cv_func_iconv=yes
4062 echo "configure: failed program was:" >&5
4063 cat conftest.$ac_ext >&5
4066 LIBS="$am_save_LIBS"
4071 echo "$ac_t""$am_cv_func_iconv" 1>&6
4072 if test "$am_cv_func_iconv" = yes; then
4073 cat >> confdefs.h <<\EOF
4074 #define HAVE_ICONV 1
4077 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
4078 echo "configure:4079: checking for iconv declaration" >&5
4079 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
4080 echo $ac_n "(cached) $ac_c" 1>&6
4083 cat > conftest.$ac_ext <<EOF
4084 #line 4085 "configure"
4085 #include "confdefs.h"
4093 #if defined(__STDC__) || defined(__cplusplus)
4094 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
4103 if { (eval echo configure:4104: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4105 am_cv_proto_iconv_arg1=""
4107 echo "configure: failed program was:" >&5
4108 cat conftest.$ac_ext >&5
4110 am_cv_proto_iconv_arg1="const"
4113 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);"
4116 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
4117 echo "$ac_t""${ac_t:-
4118 }$am_cv_proto_iconv" 1>&6
4119 cat >> confdefs.h <<EOF
4120 #define ICONV_CONST $am_cv_proto_iconv_arg1
4125 if test "$am_cv_lib_iconv" = yes; then
4126 LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
4130 if test $ac_cv_header_locale_h = yes; then
4131 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
4132 echo "configure:4133: checking for LC_MESSAGES" >&5
4133 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
4134 echo $ac_n "(cached) $ac_c" 1>&6
4136 cat > conftest.$ac_ext <<EOF
4137 #line 4138 "configure"
4138 #include "confdefs.h"
4144 if { (eval echo configure:4145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4146 am_cv_val_LC_MESSAGES=yes
4148 echo "configure: failed program was:" >&5
4149 cat conftest.$ac_ext >&5
4151 am_cv_val_LC_MESSAGES=no
4156 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
4157 if test $am_cv_val_LC_MESSAGES = yes; then
4158 cat >> confdefs.h <<\EOF
4159 #define HAVE_LC_MESSAGES 1
4164 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4165 echo "configure:4166: checking whether struct tm is in sys/time.h or time.h" >&5
4166 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
4167 echo $ac_n "(cached) $ac_c" 1>&6
4169 cat > conftest.$ac_ext <<EOF
4170 #line 4171 "configure"
4171 #include "confdefs.h"
4172 #include <sys/types.h>
4175 struct tm *tp; tp->tm_sec;
4178 if { (eval echo configure:4179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4180 ac_cv_struct_tm=time.h
4182 echo "configure: failed program was:" >&5
4183 cat conftest.$ac_ext >&5
4185 ac_cv_struct_tm=sys/time.h
4190 echo "$ac_t""$ac_cv_struct_tm" 1>&6
4191 if test $ac_cv_struct_tm = sys/time.h; then
4192 cat >> confdefs.h <<\EOF
4193 #define TM_IN_SYS_TIME 1
4198 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
4199 echo "configure:4200: checking for tm_zone in struct tm" >&5
4200 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
4201 echo $ac_n "(cached) $ac_c" 1>&6
4203 cat > conftest.$ac_ext <<EOF
4204 #line 4205 "configure"
4205 #include "confdefs.h"
4206 #include <sys/types.h>
4207 #include <$ac_cv_struct_tm>
4209 struct tm tm; tm.tm_zone;
4212 if { (eval echo configure:4213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4214 ac_cv_struct_tm_zone=yes
4216 echo "configure: failed program was:" >&5
4217 cat conftest.$ac_ext >&5
4219 ac_cv_struct_tm_zone=no
4224 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
4225 if test "$ac_cv_struct_tm_zone" = yes; then
4226 cat >> confdefs.h <<\EOF
4227 #define HAVE_TM_ZONE 1
4231 echo $ac_n "checking for tzname""... $ac_c" 1>&6
4232 echo "configure:4233: checking for tzname" >&5
4233 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
4234 echo $ac_n "(cached) $ac_c" 1>&6
4236 cat > conftest.$ac_ext <<EOF
4237 #line 4238 "configure"
4238 #include "confdefs.h"
4240 #ifndef tzname /* For SGI. */
4241 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4247 if { (eval echo configure:4248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4249 ac_cv_var_tzname=yes
4251 echo "configure: failed program was:" >&5
4252 cat conftest.$ac_ext >&5
4259 echo "$ac_t""$ac_cv_var_tzname" 1>&6
4260 if test $ac_cv_var_tzname = yes; then
4261 cat >> confdefs.h <<\EOF
4262 #define HAVE_TZNAME 1
4269 for ac_func in gethostbyname_r
4271 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4272 echo "configure:4273: checking for $ac_func" >&5
4273 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4274 echo $ac_n "(cached) $ac_c" 1>&6
4276 cat > conftest.$ac_ext <<EOF
4277 #line 4278 "configure"
4278 #include "confdefs.h"
4279 /* System header to define __stub macros and hopefully few prototypes,
4280 which can conflict with char $ac_func(); below. */
4282 /* Override any gcc2 internal prototype to avoid an error. */
4283 /* We use char because int might match the return type of a gcc2
4284 builtin and then its argument prototype would still apply. */
4289 /* The GNU C library defines this for functions which it implements
4290 to always fail with ENOSYS. Some functions are actually named
4291 something starting with __ and the normal name is an alias. */
4292 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4300 if { (eval echo configure:4301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4302 eval "ac_cv_func_$ac_func=yes"
4304 echo "configure: failed program was:" >&5
4305 cat conftest.$ac_ext >&5
4307 eval "ac_cv_func_$ac_func=no"
4312 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4313 echo "$ac_t""yes" 1>&6
4314 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4315 cat >> confdefs.h <<EOF
4316 #define $ac_tr_func 1
4319 cat >> confdefs.h <<\EOF
4320 #define HAVE_GETHOSTBYNAME_R 1
4323 # There are two different kinds of gethostbyname_r.
4324 # We look for the one that returns `int'.
4325 # Hopefully this check is robust enough.
4326 cat > conftest.$ac_ext <<EOF
4327 #line 4328 "configure"
4328 #include "confdefs.h"
4331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4332 egrep "int.*gethostbyname_r" >/dev/null 2>&1; then
4335 cat >> confdefs.h <<\EOF
4336 #define GETHOSTBYNAME_R_RETURNS_INT 1
4344 *" -D_REENTRANT "*) ;;
4346 echo $ac_n "checking whether gethostbyname_r declaration requires -D_REENTRANT""... $ac_c" 1>&6
4347 echo "configure:4348: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
4348 if eval "test \"`echo '$''{'libjava_cv_gethostbyname_r_needs_reentrant'+set}'`\" = set"; then
4349 echo $ac_n "(cached) $ac_c" 1>&6
4353 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4354 ac_cpp='$CXXCPP $CPPFLAGS'
4355 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4356 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4357 cross_compiling=$ac_cv_prog_cxx_cross
4359 cat > conftest.$ac_ext <<EOF
4360 #line 4361 "configure"
4361 #include "confdefs.h"
4364 gethostbyname_r("", 0, 0);
4367 if { (eval echo configure:4368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4369 libjava_cv_gethostbyname_r_needs_reentrant=no
4371 echo "configure: failed program was:" >&5
4372 cat conftest.$ac_ext >&5
4374 CPPFLAGS_SAVE="$CPPFLAGS"
4375 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
4376 cat > conftest.$ac_ext <<EOF
4377 #line 4378 "configure"
4378 #include "confdefs.h"
4381 gethostbyname_r("", 0, 0);
4384 if { (eval echo configure:4385: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4386 libjava_cv_gethostbyname_r_needs_reentrant=yes
4388 echo "configure: failed program was:" >&5
4389 cat conftest.$ac_ext >&5
4391 libjava_cv_gethostbyname_r_needs_reentrant=fail
4394 CPPFLAGS="$CPPFLAGS_SAVE"
4399 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4400 ac_cpp='$CPP $CPPFLAGS'
4401 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4402 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4403 cross_compiling=$ac_cv_prog_cc_cross
4408 echo "$ac_t""$libjava_cv_gethostbyname_r_needs_reentrant" 1>&6
4409 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
4410 cat >> confdefs.h <<\EOF
4411 #define _REENTRANT 1
4418 echo $ac_n "checking for struct hostent_data""... $ac_c" 1>&6
4419 echo "configure:4420: checking for struct hostent_data" >&5
4420 if eval "test \"`echo '$''{'libjava_cv_struct_hostent_data'+set}'`\" = set"; then
4421 echo $ac_n "(cached) $ac_c" 1>&6
4423 cat > conftest.$ac_ext <<EOF
4424 #line 4425 "configure"
4425 #include "confdefs.h"
4427 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
4428 # define _REENTRANT 1
4432 struct hostent_data data;
4435 if { (eval echo configure:4436: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4437 libjava_cv_struct_hostent_data=yes
4439 echo "configure: failed program was:" >&5
4440 cat conftest.$ac_ext >&5
4442 libjava_cv_struct_hostent_data=no
4447 echo "$ac_t""$libjava_cv_struct_hostent_data" 1>&6
4448 if test "x$libjava_cv_struct_hostent_data" = xyes; then
4449 cat >> confdefs.h <<\EOF
4450 #define HAVE_STRUCT_HOSTENT_DATA 1
4456 echo "$ac_t""no" 1>&6
4461 # FIXME: libjava source code expects to find a prototype for
4462 # gethostbyaddr_r in netdb.h. The outer check ensures that
4463 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
4464 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
4465 # linkage check is enough, yet C++ code requires proper prototypes.)
4466 cat > conftest.$ac_ext <<EOF
4467 #line 4468 "configure"
4468 #include "confdefs.h"
4471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4472 egrep "gethostbyaddr_r" >/dev/null 2>&1; then
4475 for ac_func in gethostbyaddr_r
4477 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4478 echo "configure:4479: checking for $ac_func" >&5
4479 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4480 echo $ac_n "(cached) $ac_c" 1>&6
4482 cat > conftest.$ac_ext <<EOF
4483 #line 4484 "configure"
4484 #include "confdefs.h"
4485 /* System header to define __stub macros and hopefully few prototypes,
4486 which can conflict with char $ac_func(); below. */
4488 /* Override any gcc2 internal prototype to avoid an error. */
4489 /* We use char because int might match the return type of a gcc2
4490 builtin and then its argument prototype would still apply. */
4495 /* The GNU C library defines this for functions which it implements
4496 to always fail with ENOSYS. Some functions are actually named
4497 something starting with __ and the normal name is an alias. */
4498 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4506 if { (eval echo configure:4507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4508 eval "ac_cv_func_$ac_func=yes"
4510 echo "configure: failed program was:" >&5
4511 cat conftest.$ac_ext >&5
4513 eval "ac_cv_func_$ac_func=no"
4518 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4519 echo "$ac_t""yes" 1>&6
4520 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4521 cat >> confdefs.h <<EOF
4522 #define $ac_tr_func 1
4525 cat >> confdefs.h <<\EOF
4526 #define HAVE_GETHOSTBYADDR_R 1
4529 # There are two different kinds of gethostbyaddr_r.
4530 # We look for the one that returns `int'.
4531 # Hopefully this check is robust enough.
4532 cat > conftest.$ac_ext <<EOF
4533 #line 4534 "configure"
4534 #include "confdefs.h"
4537 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4538 egrep "int.*gethostbyaddr_r" >/dev/null 2>&1; then
4541 cat >> confdefs.h <<\EOF
4542 #define GETHOSTBYADDR_R_RETURNS_INT 1
4549 echo "$ac_t""no" 1>&6
4557 for ac_func in gethostname
4559 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4560 echo "configure:4561: checking for $ac_func" >&5
4561 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4562 echo $ac_n "(cached) $ac_c" 1>&6
4564 cat > conftest.$ac_ext <<EOF
4565 #line 4566 "configure"
4566 #include "confdefs.h"
4567 /* System header to define __stub macros and hopefully few prototypes,
4568 which can conflict with char $ac_func(); below. */
4570 /* Override any gcc2 internal prototype to avoid an error. */
4571 /* We use char because int might match the return type of a gcc2
4572 builtin and then its argument prototype would still apply. */
4577 /* The GNU C library defines this for functions which it implements
4578 to always fail with ENOSYS. Some functions are actually named
4579 something starting with __ and the normal name is an alias. */
4580 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4588 if { (eval echo configure:4589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4590 eval "ac_cv_func_$ac_func=yes"
4592 echo "configure: failed program was:" >&5
4593 cat conftest.$ac_ext >&5
4595 eval "ac_cv_func_$ac_func=no"
4600 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4601 echo "$ac_t""yes" 1>&6
4602 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4603 cat >> confdefs.h <<EOF
4604 #define $ac_tr_func 1
4607 cat >> confdefs.h <<\EOF
4608 #define HAVE_GETHOSTNAME 1
4611 cat > conftest.$ac_ext <<EOF
4612 #line 4613 "configure"
4613 #include "confdefs.h"
4616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4617 egrep "gethostname" >/dev/null 2>&1; then
4620 cat >> confdefs.h <<\EOF
4621 #define HAVE_GETHOSTNAME_DECL 1
4628 echo "$ac_t""no" 1>&6
4633 # Look for these functions in the thread library, but only bother
4634 # if using POSIX threads.
4635 if test "$THREADS" = posix; then
4637 LIBS="$LIBS $THREADLIBS"
4638 # Some POSIX thread systems don't have pthread_mutexattr_settype.
4640 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
4642 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4643 echo "configure:4644: checking for $ac_func" >&5
4644 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4645 echo $ac_n "(cached) $ac_c" 1>&6
4647 cat > conftest.$ac_ext <<EOF
4648 #line 4649 "configure"
4649 #include "confdefs.h"
4650 /* System header to define __stub macros and hopefully few prototypes,
4651 which can conflict with char $ac_func(); below. */
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. */
4660 /* The GNU C library defines this for functions which it implements
4661 to always fail with ENOSYS. Some functions are actually named
4662 something starting with __ and the normal name is an alias. */
4663 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4671 if { (eval echo configure:4672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4673 eval "ac_cv_func_$ac_func=yes"
4675 echo "configure: failed program was:" >&5
4676 cat conftest.$ac_ext >&5
4678 eval "ac_cv_func_$ac_func=no"
4683 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4684 echo "$ac_t""yes" 1>&6
4685 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4686 cat >> confdefs.h <<EOF
4687 #define $ac_tr_func 1
4691 echo "$ac_t""no" 1>&6
4696 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
4697 # Solaris 7 the name librt is preferred.
4698 for ac_func in sched_yield
4700 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4701 echo "configure:4702: checking for $ac_func" >&5
4702 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4703 echo $ac_n "(cached) $ac_c" 1>&6
4705 cat > conftest.$ac_ext <<EOF
4706 #line 4707 "configure"
4707 #include "confdefs.h"
4708 /* System header to define __stub macros and hopefully few prototypes,
4709 which can conflict with char $ac_func(); below. */
4711 /* Override any gcc2 internal prototype to avoid an error. */
4712 /* We use char because int might match the return type of a gcc2
4713 builtin and then its argument prototype would still apply. */
4718 /* The GNU C library defines this for functions which it implements
4719 to always fail with ENOSYS. Some functions are actually named
4720 something starting with __ and the normal name is an alias. */
4721 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4729 if { (eval echo configure:4730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4731 eval "ac_cv_func_$ac_func=yes"
4733 echo "configure: failed program was:" >&5
4734 cat conftest.$ac_ext >&5
4736 eval "ac_cv_func_$ac_func=no"
4741 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4742 echo "$ac_t""yes" 1>&6
4743 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4744 cat >> confdefs.h <<EOF
4745 #define $ac_tr_func 1
4749 echo "$ac_t""no" 1>&6
4750 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
4751 echo "configure:4752: checking for sched_yield in -lrt" >&5
4752 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
4753 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4754 echo $ac_n "(cached) $ac_c" 1>&6
4756 ac_save_LIBS="$LIBS"
4758 cat > conftest.$ac_ext <<EOF
4759 #line 4760 "configure"
4760 #include "confdefs.h"
4761 /* Override any gcc2 internal prototype to avoid an error. */
4762 /* We use char because int might match the return type of a gcc2
4763 builtin and then its argument prototype would still apply. */
4770 if { (eval echo configure:4771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4772 eval "ac_cv_lib_$ac_lib_var=yes"
4774 echo "configure: failed program was:" >&5
4775 cat conftest.$ac_ext >&5
4777 eval "ac_cv_lib_$ac_lib_var=no"
4780 LIBS="$ac_save_LIBS"
4783 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4784 echo "$ac_t""yes" 1>&6
4786 cat >> confdefs.h <<\EOF
4787 #define HAVE_SCHED_YIELD 1
4790 THREADLIBS="$THREADLIBS -lrt"
4791 THREADSPEC="$THREADSPEC -lrt"
4793 echo "$ac_t""no" 1>&6
4795 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
4796 echo "configure:4797: checking for sched_yield in -lposix4" >&5
4797 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
4798 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4799 echo $ac_n "(cached) $ac_c" 1>&6
4801 ac_save_LIBS="$LIBS"
4802 LIBS="-lposix4 $LIBS"
4803 cat > conftest.$ac_ext <<EOF
4804 #line 4805 "configure"
4805 #include "confdefs.h"
4806 /* Override any gcc2 internal prototype to avoid an error. */
4807 /* We use char because int might match the return type of a gcc2
4808 builtin and then its argument prototype would still apply. */
4815 if { (eval echo configure:4816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4817 eval "ac_cv_lib_$ac_lib_var=yes"
4819 echo "configure: failed program was:" >&5
4820 cat conftest.$ac_ext >&5
4822 eval "ac_cv_lib_$ac_lib_var=no"
4825 LIBS="$ac_save_LIBS"
4828 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4829 echo "$ac_t""yes" 1>&6
4831 cat >> confdefs.h <<\EOF
4832 #define HAVE_SCHED_YIELD 1
4835 THREADLIBS="$THREADLIBS -lposix4"
4836 THREADSPEC="$THREADSPEC -lposix4"
4838 echo "$ac_t""no" 1>&6
4848 # We can save a little space at runtime if the mutex has m_count
4849 # or __m_count. This is a nice hack for Linux.
4850 cat > conftest.$ac_ext <<EOF
4851 #line 4852 "configure"
4852 #include "confdefs.h"
4853 #include <pthread.h>
4856 extern pthread_mutex_t *mutex; int q = mutex->m_count;
4860 if { (eval echo configure:4861: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4862 cat >> confdefs.h <<\EOF
4863 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
4867 echo "configure: failed program was:" >&5
4868 cat conftest.$ac_ext >&5
4871 cat > conftest.$ac_ext <<EOF
4872 #line 4873 "configure"
4873 #include "confdefs.h"
4874 #include <pthread.h>
4877 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
4881 if { (eval echo configure:4882: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4883 cat >> confdefs.h <<\EOF
4884 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
4888 echo "configure: failed program was:" >&5
4889 cat conftest.$ac_ext >&5
4896 # We require a way to get the time.
4898 for ac_func in gettimeofday time ftime
4900 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4901 echo "configure:4902: checking for $ac_func" >&5
4902 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4903 echo $ac_n "(cached) $ac_c" 1>&6
4905 cat > conftest.$ac_ext <<EOF
4906 #line 4907 "configure"
4907 #include "confdefs.h"
4908 /* System header to define __stub macros and hopefully few prototypes,
4909 which can conflict with char $ac_func(); below. */
4911 /* Override any gcc2 internal prototype to avoid an error. */
4912 /* We use char because int might match the return type of a gcc2
4913 builtin and then its argument prototype would still apply. */
4918 /* The GNU C library defines this for functions which it implements
4919 to always fail with ENOSYS. Some functions are actually named
4920 something starting with __ and the normal name is an alias. */
4921 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4929 if { (eval echo configure:4930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4931 eval "ac_cv_func_$ac_func=yes"
4933 echo "configure: failed program was:" >&5
4934 cat conftest.$ac_ext >&5
4936 eval "ac_cv_func_$ac_func=no"
4941 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4942 echo "$ac_t""yes" 1>&6
4943 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4944 cat >> confdefs.h <<EOF
4945 #define $ac_tr_func 1
4949 echo "$ac_t""no" 1>&6
4953 if test "$time_found" = no; then
4954 { echo "configure: error: no function found to get the time" 1>&2; exit 1; }
4957 for ac_func in memmove
4959 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4960 echo "configure:4961: checking for $ac_func" >&5
4961 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4962 echo $ac_n "(cached) $ac_c" 1>&6
4964 cat > conftest.$ac_ext <<EOF
4965 #line 4966 "configure"
4966 #include "confdefs.h"
4967 /* System header to define __stub macros and hopefully few prototypes,
4968 which can conflict with char $ac_func(); below. */
4970 /* Override any gcc2 internal prototype to avoid an error. */
4971 /* We use char because int might match the return type of a gcc2
4972 builtin and then its argument prototype would still apply. */
4977 /* The GNU C library defines this for functions which it implements
4978 to always fail with ENOSYS. Some functions are actually named
4979 something starting with __ and the normal name is an alias. */
4980 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4988 if { (eval echo configure:4989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4990 eval "ac_cv_func_$ac_func=yes"
4992 echo "configure: failed program was:" >&5
4993 cat conftest.$ac_ext >&5
4995 eval "ac_cv_func_$ac_func=no"
5000 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5001 echo "$ac_t""yes" 1>&6
5002 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5003 cat >> confdefs.h <<EOF
5004 #define $ac_tr_func 1
5008 echo "$ac_t""no" 1>&6
5013 # We require memcpy.
5015 for ac_func in memcpy
5017 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5018 echo "configure:5019: checking for $ac_func" >&5
5019 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5020 echo $ac_n "(cached) $ac_c" 1>&6
5022 cat > conftest.$ac_ext <<EOF
5023 #line 5024 "configure"
5024 #include "confdefs.h"
5025 /* System header to define __stub macros and hopefully few prototypes,
5026 which can conflict with char $ac_func(); below. */
5028 /* Override any gcc2 internal prototype to avoid an error. */
5029 /* We use char because int might match the return type of a gcc2
5030 builtin and then its argument prototype would still apply. */
5035 /* The GNU C library defines this for functions which it implements
5036 to always fail with ENOSYS. Some functions are actually named
5037 something starting with __ and the normal name is an alias. */
5038 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5046 if { (eval echo configure:5047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5048 eval "ac_cv_func_$ac_func=yes"
5050 echo "configure: failed program was:" >&5
5051 cat conftest.$ac_ext >&5
5053 eval "ac_cv_func_$ac_func=no"
5058 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5059 echo "$ac_t""yes" 1>&6
5060 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5061 cat >> confdefs.h <<EOF
5062 #define $ac_tr_func 1
5066 echo "$ac_t""no" 1>&6
5070 if test "$memcpy_found" = no; then
5071 { echo "configure: error: memcpy is required" 1>&2; exit 1; }
5074 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
5075 echo "configure:5076: checking for dlopen in -ldl" >&5
5076 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
5077 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5078 echo $ac_n "(cached) $ac_c" 1>&6
5080 ac_save_LIBS="$LIBS"
5082 cat > conftest.$ac_ext <<EOF
5083 #line 5084 "configure"
5084 #include "confdefs.h"
5085 /* Override any gcc2 internal prototype to avoid an error. */
5086 /* We use char because int might match the return type of a gcc2
5087 builtin and then its argument prototype would still apply. */
5094 if { (eval echo configure:5095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5096 eval "ac_cv_lib_$ac_lib_var=yes"
5098 echo "configure: failed program was:" >&5
5099 cat conftest.$ac_ext >&5
5101 eval "ac_cv_lib_$ac_lib_var=no"
5104 LIBS="$ac_save_LIBS"
5107 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5108 echo "$ac_t""yes" 1>&6
5110 cat >> confdefs.h <<\EOF
5111 #define HAVE_DLOPEN 1
5115 echo "$ac_t""no" 1>&6
5119 # Some library-finding code we stole from Tcl.
5120 #--------------------------------------------------------------------
5121 # Check for the existence of the -lsocket and -lnsl libraries.
5122 # The order here is important, so that they end up in the right
5123 # order in the command line generated by make. Here are some
5124 # special considerations:
5125 # 1. Use "connect" and "accept" to check for -lsocket, and
5126 # "gethostbyname" to check for -lnsl.
5127 # 2. Use each function name only once: can't redo a check because
5128 # autoconf caches the results of the last check and won't redo it.
5129 # 3. Use -lnsl and -lsocket only if they supply procedures that
5130 # aren't already present in the normal libraries. This is because
5131 # IRIX 5.2 has libraries, but they aren't needed and they're
5132 # bogus: they goof up name resolution if used.
5133 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
5134 # To get around this problem, check for both libraries together
5135 # if -lsocket doesn't work by itself.
5136 #--------------------------------------------------------------------
5138 echo $ac_n "checking for socket libraries""... $ac_c" 1>&6
5139 echo "configure:5140: checking for socket libraries" >&5
5140 if eval "test \"`echo '$''{'gcj_cv_lib_sockets'+set}'`\" = set"; then
5141 echo $ac_n "(cached) $ac_c" 1>&6
5145 unset ac_cv_func_connect
5146 echo $ac_n "checking for connect""... $ac_c" 1>&6
5147 echo "configure:5148: checking for connect" >&5
5148 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
5149 echo $ac_n "(cached) $ac_c" 1>&6
5151 cat > conftest.$ac_ext <<EOF
5152 #line 5153 "configure"
5153 #include "confdefs.h"
5154 /* System header to define __stub macros and hopefully few prototypes,
5155 which can conflict with char connect(); below. */
5157 /* Override any gcc2 internal prototype to avoid an error. */
5158 /* We use char because int might match the return type of a gcc2
5159 builtin and then its argument prototype would still apply. */
5164 /* The GNU C library defines this for functions which it implements
5165 to always fail with ENOSYS. Some functions are actually named
5166 something starting with __ and the normal name is an alias. */
5167 #if defined (__stub_connect) || defined (__stub___connect)
5175 if { (eval echo configure:5176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5177 eval "ac_cv_func_connect=yes"
5179 echo "configure: failed program was:" >&5
5180 cat conftest.$ac_ext >&5
5182 eval "ac_cv_func_connect=no"
5187 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
5188 echo "$ac_t""yes" 1>&6
5191 echo "$ac_t""no" 1>&6
5195 if test "$gcj_checkSocket" = 1; then
5196 unset ac_cv_func_connect
5197 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
5198 echo "configure:5199: checking for main in -lsocket" >&5
5199 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
5200 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5201 echo $ac_n "(cached) $ac_c" 1>&6
5203 ac_save_LIBS="$LIBS"
5204 LIBS="-lsocket $LIBS"
5205 cat > conftest.$ac_ext <<EOF
5206 #line 5207 "configure"
5207 #include "confdefs.h"
5213 if { (eval echo configure:5214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5215 eval "ac_cv_lib_$ac_lib_var=yes"
5217 echo "configure: failed program was:" >&5
5218 cat conftest.$ac_ext >&5
5220 eval "ac_cv_lib_$ac_lib_var=no"
5223 LIBS="$ac_save_LIBS"
5226 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5227 echo "$ac_t""yes" 1>&6
5228 gcj_cv_lib_sockets="-lsocket"
5230 echo "$ac_t""no" 1>&6
5235 if test "$gcj_checkBoth" = 1; then
5237 LIBS="$LIBS -lsocket -lnsl"
5238 unset ac_cv_func_accept
5239 echo $ac_n "checking for accept""... $ac_c" 1>&6
5240 echo "configure:5241: checking for accept" >&5
5241 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
5242 echo $ac_n "(cached) $ac_c" 1>&6
5244 cat > conftest.$ac_ext <<EOF
5245 #line 5246 "configure"
5246 #include "confdefs.h"
5247 /* System header to define __stub macros and hopefully few prototypes,
5248 which can conflict with char accept(); below. */
5250 /* Override any gcc2 internal prototype to avoid an error. */
5251 /* We use char because int might match the return type of a gcc2
5252 builtin and then its argument prototype would still apply. */
5257 /* The GNU C library defines this for functions which it implements
5258 to always fail with ENOSYS. Some functions are actually named
5259 something starting with __ and the normal name is an alias. */
5260 #if defined (__stub_accept) || defined (__stub___accept)
5268 if { (eval echo configure:5269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5270 eval "ac_cv_func_accept=yes"
5272 echo "configure: failed program was:" >&5
5273 cat conftest.$ac_ext >&5
5275 eval "ac_cv_func_accept=no"
5280 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
5281 echo "$ac_t""yes" 1>&6
5283 gcj_cv_lib_sockets="-lsocket -lnsl"
5285 echo "$ac_t""no" 1>&6
5288 unset ac_cv_func_accept
5291 unset ac_cv_func_gethostbyname
5293 LIBS="$LIBS $gcj_cv_lib_sockets"
5294 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5295 echo "configure:5296: checking for gethostbyname" >&5
5296 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
5297 echo $ac_n "(cached) $ac_c" 1>&6
5299 cat > conftest.$ac_ext <<EOF
5300 #line 5301 "configure"
5301 #include "confdefs.h"
5302 /* System header to define __stub macros and hopefully few prototypes,
5303 which can conflict with char gethostbyname(); below. */
5305 /* Override any gcc2 internal prototype to avoid an error. */
5306 /* We use char because int might match the return type of a gcc2
5307 builtin and then its argument prototype would still apply. */
5308 char gethostbyname();
5312 /* The GNU C library defines this for functions which it implements
5313 to always fail with ENOSYS. Some functions are actually named
5314 something starting with __ and the normal name is an alias. */
5315 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5323 if { (eval echo configure:5324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5325 eval "ac_cv_func_gethostbyname=yes"
5327 echo "configure: failed program was:" >&5
5328 cat conftest.$ac_ext >&5
5330 eval "ac_cv_func_gethostbyname=no"
5335 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
5336 echo "$ac_t""yes" 1>&6
5339 echo "$ac_t""no" 1>&6
5340 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
5341 echo "configure:5342: checking for main in -lnsl" >&5
5342 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
5343 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5344 echo $ac_n "(cached) $ac_c" 1>&6
5346 ac_save_LIBS="$LIBS"
5348 cat > conftest.$ac_ext <<EOF
5349 #line 5350 "configure"
5350 #include "confdefs.h"
5356 if { (eval echo configure:5357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5358 eval "ac_cv_lib_$ac_lib_var=yes"
5360 echo "configure: failed program was:" >&5
5361 cat conftest.$ac_ext >&5
5363 eval "ac_cv_lib_$ac_lib_var=no"
5366 LIBS="$ac_save_LIBS"
5369 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5370 echo "$ac_t""yes" 1>&6
5371 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
5373 echo "$ac_t""no" 1>&6
5378 unset ac_cv_func_gethostbyname
5383 echo "$ac_t""$gcj_cv_lib_sockets" 1>&6
5384 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
5386 if test "$with_system_zlib" = yes; then
5387 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
5388 echo "configure:5389: checking for deflate in -lz" >&5
5389 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
5390 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5391 echo $ac_n "(cached) $ac_c" 1>&6
5393 ac_save_LIBS="$LIBS"
5395 cat > conftest.$ac_ext <<EOF
5396 #line 5397 "configure"
5397 #include "confdefs.h"
5398 /* Override any gcc2 internal prototype to avoid an error. */
5399 /* We use char because int might match the return type of a gcc2
5400 builtin and then its argument prototype would still apply. */
5407 if { (eval echo configure:5408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5409 eval "ac_cv_lib_$ac_lib_var=yes"
5411 echo "configure: failed program was:" >&5
5412 cat conftest.$ac_ext >&5
5414 eval "ac_cv_lib_$ac_lib_var=no"
5417 LIBS="$ac_save_LIBS"
5420 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5421 echo "$ac_t""yes" 1>&6
5424 echo "$ac_t""no" 1>&6
5430 # On Solaris, and maybe other architectures, the Boehm collector
5432 if test "$GC" = boehm; then
5433 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
5434 echo "configure:5435: checking for main in -ldl" >&5
5435 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
5436 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5437 echo $ac_n "(cached) $ac_c" 1>&6
5439 ac_save_LIBS="$LIBS"
5441 cat > conftest.$ac_ext <<EOF
5442 #line 5443 "configure"
5443 #include "confdefs.h"
5449 if { (eval echo configure:5450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5451 eval "ac_cv_lib_$ac_lib_var=yes"
5453 echo "configure: failed program was:" >&5
5454 cat conftest.$ac_ext >&5
5456 eval "ac_cv_lib_$ac_lib_var=no"
5459 LIBS="$ac_save_LIBS"
5462 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5463 echo "$ac_t""yes" 1>&6
5464 SYSTEMSPEC="$SYSTEMSPEC -ldl"
5466 echo "$ac_t""no" 1>&6
5471 if test -z "${with_multisubdir}"; then
5475 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
5478 if test -x "${builddotdot}/../../gcc/gcj"; then
5479 dir="`cd ${builddotdot}/../../gcc && ${PWDCMD-pwd}`"
5480 GCJ="$dir/gcj -B`${PWDCMD-pwd}`/ -B$dir/"
5484 GCJ="gcj -B`${PWDCMD-pwd}`/"
5488 # Create it, so that compile/link tests don't fail
5489 test -f libgcj.spec || touch libgcj.spec
5491 # We must search the source tree for java.lang, since we still don't
5492 # have libgcj.jar nor java/lang/*.class
5493 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
5494 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
5496 # Since some classes depend on this one, we need its source available
5497 # before we can do any GCJ compilation test :-(
5498 if test ! -f gnu/classpath/Configuration.java; then
5499 test -d gnu || mkdir gnu
5500 test -d gnu/classpath || mkdir gnu/classpath
5501 sed 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
5502 < $srcdir/gnu/classpath/Configuration.java.in \
5503 > gnu/classpath/Configuration.java
5504 # We do not want to redirect the output of the grep below to /dev/null,
5505 # but we add /dev/null to the input list so that grep will print the
5506 # filename of Configuration.java in case it finds any matches.
5507 if grep @ gnu/classpath/Configuration.java /dev/null; then
5508 { echo "configure: error: configure.in is missing the substitutions above" 1>&2; exit 1; }
5512 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
5513 set dummy ${ac_tool_prefix}gcj; ac_word=$2
5514 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5515 echo "configure:5516: checking for $ac_word" >&5
5516 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
5517 echo $ac_n "(cached) $ac_c" 1>&6
5519 if test -n "$GCJ"; then
5520 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5522 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5524 for ac_dir in $ac_dummy; do
5525 test -z "$ac_dir" && ac_dir=.
5526 if test -f $ac_dir/$ac_word; then
5527 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
5534 GCJ="$ac_cv_prog_GCJ"
5535 if test -n "$GCJ"; then
5536 echo "$ac_t""$GCJ" 1>&6
5538 echo "$ac_t""no" 1>&6
5542 if test -z "$ac_cv_prog_GCJ"; then
5543 if test -n "$ac_tool_prefix"; then
5544 # Extract the first word of "gcj", so it can be a program name with args.
5545 set dummy gcj; ac_word=$2
5546 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5547 echo "configure:5548: checking for $ac_word" >&5
5548 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
5549 echo $ac_n "(cached) $ac_c" 1>&6
5551 if test -n "$GCJ"; then
5552 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5554 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5556 for ac_dir in $ac_dummy; do
5557 test -z "$ac_dir" && ac_dir=.
5558 if test -f $ac_dir/$ac_word; then
5559 ac_cv_prog_GCJ="gcj"
5564 test -z "$ac_cv_prog_GCJ" && ac_cv_prog_GCJ="no"
5567 GCJ="$ac_cv_prog_GCJ"
5568 if test -n "$GCJ"; then
5569 echo "$ac_t""$GCJ" 1>&6
5571 echo "$ac_t""no" 1>&6
5579 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
5583 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
5585 lt_save_CFLAGS="$CFLAGS"
5586 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
5587 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5588 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5589 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5590 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5591 deplibs_check_method="$deplibs_check_method" \
5592 file_magic_cmd="$file_magic_cmd" \
5593 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5594 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
5595 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
5597 CFLAGS="$lt_save_CFLAGS"
5599 # Redirect the config.log output again, so that the ltconfig log is not
5600 # clobbered by the next message.
5601 exec 5>>./config.log
5606 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
5608 echo $ac_n "checking size of void *""... $ac_c" 1>&6
5609 echo "configure:5610: checking size of void *" >&5
5610 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
5611 echo $ac_n "(cached) $ac_c" 1>&6
5613 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
5614 cat > conftest.$ac_ext <<EOF
5615 #line 5616 "configure"
5616 #include "confdefs.h"
5617 #include "confdefs.h"
5618 #include <sys/types.h>
5622 switch (0) case 0: case (sizeof (void *) == $ac_size):;
5625 if { (eval echo configure:5626: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5627 ac_cv_sizeof_void_p=$ac_size
5629 echo "configure: failed program was:" >&5
5630 cat conftest.$ac_ext >&5
5633 if test x$ac_cv_sizeof_void_p != x ; then break; fi
5638 if test x$ac_cv_sizeof_void_p = x ; then
5639 { echo "configure: error: cannot determine a size for void *" 1>&2; exit 1; }
5641 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
5642 cat >> confdefs.h <<EOF
5643 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5652 if test -z "$ZLIBSPEC"; then
5653 # Use zlib from the GCC tree.
5654 ZINCS='-I$(top_srcdir)/../zlib'
5655 ZLIBS=../zlib/libzgcj_convenience.la
5658 SYS_ZLIBS="$ZLIBSPEC"
5669 if test "$CANADIAN" = yes; then
5678 if test "$NULL_TARGET" = yes; then
5680 NULL_TARGET_FALSE='#'
5682 NULL_TARGET_TRUE='#'
5687 if test "$NATIVE" = yes || test "$NULL_TARGET" = yes; then
5696 if test -z "$with_cross_host"; then
5698 USE_LIBDIR_FALSE='#'
5705 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
5706 NEEDS_DATA_START_TRUE=
5707 NEEDS_DATA_START_FALSE='#'
5709 NEEDS_DATA_START_TRUE='#'
5710 NEEDS_DATA_START_FALSE=
5714 # Determine gcj version number.
5716 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
5718 GCJVERSION=$gcjversion
5720 cat >> confdefs.h <<EOF
5721 #define GCJVERSION "$GCJVERSION"
5725 echo $ac_n "checking for g++ -ffloat-store bug""... $ac_c" 1>&6
5726 echo "configure:5727: checking for g++ -ffloat-store bug" >&5
5727 save_CFLAGS="$CFLAGS"
5728 CFLAGS="-x c++ -O2 -ffloat-store"
5729 cat > conftest.$ac_ext <<EOF
5730 #line 5731 "configure"
5731 #include "confdefs.h"
5737 if { (eval echo configure:5738: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5739 echo "$ac_t""no" 1>&6
5741 echo "configure: failed program was:" >&5
5742 cat conftest.$ac_ext >&5
5744 cat >> confdefs.h <<\EOF
5745 #define __NO_MATH_INLINES 1
5748 echo "$ac_t""yes" 1>&6
5751 CFLAGS="$save_CFLAGS"
5753 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 net/if.h pwd.h sys/config.h stdint.h langinfo.h locale.h
5755 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5756 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5757 echo "configure:5758: checking for $ac_hdr" >&5
5758 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5759 echo $ac_n "(cached) $ac_c" 1>&6
5761 cat > conftest.$ac_ext <<EOF
5762 #line 5763 "configure"
5763 #include "confdefs.h"
5766 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5767 { (eval echo configure:5768: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5768 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5769 if test -z "$ac_err"; then
5771 eval "ac_cv_header_$ac_safe=yes"
5774 echo "configure: failed program was:" >&5
5775 cat conftest.$ac_ext >&5
5777 eval "ac_cv_header_$ac_safe=no"
5781 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5782 echo "$ac_t""yes" 1>&6
5783 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5784 cat >> confdefs.h <<EOF
5785 #define $ac_tr_hdr 1
5789 echo "$ac_t""no" 1>&6
5793 for ac_hdr in dirent.h
5795 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5796 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5797 echo "configure:5798: checking for $ac_hdr" >&5
5798 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5799 echo $ac_n "(cached) $ac_c" 1>&6
5801 cat > conftest.$ac_ext <<EOF
5802 #line 5803 "configure"
5803 #include "confdefs.h"
5806 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5807 { (eval echo configure:5808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5808 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5809 if test -z "$ac_err"; then
5811 eval "ac_cv_header_$ac_safe=yes"
5814 echo "configure: failed program was:" >&5
5815 cat conftest.$ac_ext >&5
5817 eval "ac_cv_header_$ac_safe=no"
5821 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5822 echo "$ac_t""yes" 1>&6
5823 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5824 cat >> confdefs.h <<EOF
5825 #define $ac_tr_hdr 1
5829 echo "$ac_t""no" 1>&6
5833 for ac_hdr in inttypes.h
5835 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5836 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5837 echo "configure:5838: checking for $ac_hdr" >&5
5838 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5839 echo $ac_n "(cached) $ac_c" 1>&6
5841 cat > conftest.$ac_ext <<EOF
5842 #line 5843 "configure"
5843 #include "confdefs.h"
5846 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5847 { (eval echo configure:5848: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5848 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5849 if test -z "$ac_err"; then
5851 eval "ac_cv_header_$ac_safe=yes"
5854 echo "configure: failed program was:" >&5
5855 cat conftest.$ac_ext >&5
5857 eval "ac_cv_header_$ac_safe=no"
5861 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5862 echo "$ac_t""yes" 1>&6
5863 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5864 cat >> confdefs.h <<EOF
5865 #define $ac_tr_hdr 1
5868 cat >> confdefs.h <<\EOF
5869 #define HAVE_INTTYPES_H 1
5872 cat >> confdefs.h <<\EOF
5873 #define JV_HAVE_INTTYPES_H 1
5878 echo "$ac_t""no" 1>&6
5882 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
5883 echo "configure:5884: checking for sys/wait.h that is POSIX.1 compatible" >&5
5884 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
5885 echo $ac_n "(cached) $ac_c" 1>&6
5887 cat > conftest.$ac_ext <<EOF
5888 #line 5889 "configure"
5889 #include "confdefs.h"
5890 #include <sys/types.h>
5891 #include <sys/wait.h>
5893 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5896 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5901 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5904 if { (eval echo configure:5905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5906 ac_cv_header_sys_wait_h=yes
5908 echo "configure: failed program was:" >&5
5909 cat conftest.$ac_ext >&5
5911 ac_cv_header_sys_wait_h=no
5916 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
5917 if test $ac_cv_header_sys_wait_h = yes; then
5918 cat >> confdefs.h <<\EOF
5919 #define HAVE_SYS_WAIT_H 1
5925 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5926 echo "configure:5927: checking for ANSI C header files" >&5
5927 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5928 echo $ac_n "(cached) $ac_c" 1>&6
5930 cat > conftest.$ac_ext <<EOF
5931 #line 5932 "configure"
5932 #include "confdefs.h"
5938 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5939 { (eval echo configure:5940: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5940 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5941 if test -z "$ac_err"; then
5943 ac_cv_header_stdc=yes
5946 echo "configure: failed program was:" >&5
5947 cat conftest.$ac_ext >&5
5949 ac_cv_header_stdc=no
5953 if test $ac_cv_header_stdc = yes; then
5954 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5955 cat > conftest.$ac_ext <<EOF
5956 #line 5957 "configure"
5957 #include "confdefs.h"
5960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5961 egrep "memchr" >/dev/null 2>&1; then
5965 ac_cv_header_stdc=no
5971 if test $ac_cv_header_stdc = yes; then
5972 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5973 cat > conftest.$ac_ext <<EOF
5974 #line 5975 "configure"
5975 #include "confdefs.h"
5978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5979 egrep "free" >/dev/null 2>&1; then
5983 ac_cv_header_stdc=no
5989 if test $ac_cv_header_stdc = yes; then
5990 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5991 if test "$cross_compiling" = yes; then
5994 cat > conftest.$ac_ext <<EOF
5995 #line 5996 "configure"
5996 #include "confdefs.h"
5998 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5999 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6000 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6001 int main () { int i; for (i = 0; i < 256; i++)
6002 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
6006 if { (eval echo configure:6007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6010 echo "configure: failed program was:" >&5
6011 cat conftest.$ac_ext >&5
6013 ac_cv_header_stdc=no
6021 echo "$ac_t""$ac_cv_header_stdc" 1>&6
6022 if test $ac_cv_header_stdc = yes; then
6023 cat >> confdefs.h <<\EOF
6024 #define STDC_HEADERS 1
6029 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
6030 echo "configure:6031: checking for ssize_t" >&5
6031 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
6032 echo $ac_n "(cached) $ac_c" 1>&6
6034 cat > conftest.$ac_ext <<EOF
6035 #line 6036 "configure"
6036 #include "confdefs.h"
6037 #include <sys/types.h>
6043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6044 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6046 ac_cv_type_ssize_t=yes
6049 ac_cv_type_ssize_t=no
6054 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
6055 if test $ac_cv_type_ssize_t = no; then
6056 cat >> confdefs.h <<\EOF
6063 echo $ac_n "checking for in_addr_t""... $ac_c" 1>&6
6064 echo "configure:6065: checking for in_addr_t" >&5
6065 cat > conftest.$ac_ext <<EOF
6066 #line 6067 "configure"
6067 #include "confdefs.h"
6068 #include <sys/types.h>
6073 #if HAVE_NETINET_IN_H
6074 #include <netinet/in.h>
6080 if { (eval echo configure:6081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6082 cat >> confdefs.h <<\EOF
6083 #define HAVE_IN_ADDR_T 1
6086 echo "$ac_t""yes" 1>&6
6088 echo "configure: failed program was:" >&5
6089 cat conftest.$ac_ext >&5
6091 echo "$ac_t""no" 1>&6
6095 echo $ac_n "checking whether struct ip_mreq is in netinet/in.h""... $ac_c" 1>&6
6096 echo "configure:6097: checking whether struct ip_mreq is in netinet/in.h" >&5
6097 cat > conftest.$ac_ext <<EOF
6098 #line 6099 "configure"
6099 #include "confdefs.h"
6100 #include <netinet/in.h>
6102 struct ip_mreq mreq;
6105 if { (eval echo configure:6106: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6107 cat >> confdefs.h <<\EOF
6108 #define HAVE_STRUCT_IP_MREQ 1
6111 echo "$ac_t""yes" 1>&6
6113 echo "configure: failed program was:" >&5
6114 cat conftest.$ac_ext >&5
6116 echo "$ac_t""no" 1>&6
6120 echo $ac_n "checking whether struct ipv6_mreq is in netinet/in.h""... $ac_c" 1>&6
6121 echo "configure:6122: checking whether struct ipv6_mreq is in netinet/in.h" >&5
6122 cat > conftest.$ac_ext <<EOF
6123 #line 6124 "configure"
6124 #include "confdefs.h"
6125 #include <netinet/in.h>
6127 struct ipv6_mreq mreq6;
6130 if { (eval echo configure:6131: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6132 cat >> confdefs.h <<\EOF
6133 #define HAVE_STRUCT_IPV6_MREQ 1
6136 echo "$ac_t""yes" 1>&6
6138 echo "configure: failed program was:" >&5
6139 cat conftest.$ac_ext >&5
6141 echo "$ac_t""no" 1>&6
6145 echo $ac_n "checking whether struct sockaddr_in6 is in netinet/in.h""... $ac_c" 1>&6
6146 echo "configure:6147: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
6147 cat > conftest.$ac_ext <<EOF
6148 #line 6149 "configure"
6149 #include "confdefs.h"
6150 #include <netinet/in.h>
6152 struct sockaddr_in6 addr6;
6155 if { (eval echo configure:6156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6157 cat >> confdefs.h <<\EOF
6158 #define HAVE_INET6 1
6161 echo "$ac_t""yes" 1>&6
6163 echo "configure: failed program was:" >&5
6164 cat conftest.$ac_ext >&5
6166 echo "$ac_t""no" 1>&6
6170 echo $ac_n "checking for socklen_t in sys/socket.h""... $ac_c" 1>&6
6171 echo "configure:6172: checking for socklen_t in sys/socket.h" >&5
6172 cat > conftest.$ac_ext <<EOF
6173 #line 6174 "configure"
6174 #include "confdefs.h"
6175 #define _POSIX_PII_SOCKET
6176 #include <sys/types.h>
6177 #include <sys/socket.h>
6182 if { (eval echo configure:6183: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6184 cat >> confdefs.h <<\EOF
6185 #define HAVE_SOCKLEN_T 1
6188 echo "$ac_t""yes" 1>&6
6190 echo "configure: failed program was:" >&5
6191 cat conftest.$ac_ext >&5
6193 echo "$ac_t""no" 1>&6
6197 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
6198 echo "configure:6199: checking for tm_gmtoff in struct tm" >&5
6199 cat > conftest.$ac_ext <<EOF
6200 #line 6201 "configure"
6201 #include "confdefs.h"
6204 struct tm tim; tim.tm_gmtoff = 0;
6207 if { (eval echo configure:6208: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6209 cat >> confdefs.h <<\EOF
6210 #define STRUCT_TM_HAS_GMTOFF 1
6213 echo "$ac_t""yes" 1>&6
6215 echo "configure: failed program was:" >&5
6216 cat conftest.$ac_ext >&5
6218 echo "$ac_t""no" 1>&6
6219 echo $ac_n "checking for global timezone variable""... $ac_c" 1>&6
6220 echo "configure:6221: checking for global timezone variable" >&5
6221 cat > conftest.$ac_ext <<EOF
6222 #line 6223 "configure"
6223 #include "confdefs.h"
6226 void i(){long z2 = 2*timezone;}
6229 if { (eval echo configure:6230: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6231 cat >> confdefs.h <<\EOF
6232 #define HAVE_TIMEZONE 1
6235 echo "$ac_t""yes" 1>&6
6237 echo "configure: failed program was:" >&5
6238 cat conftest.$ac_ext >&5
6240 echo "$ac_t""no" 1>&6
6241 echo $ac_n "checking for global _timezone variable""... $ac_c" 1>&6
6242 echo "configure:6243: checking for global _timezone variable" >&5
6243 cat > conftest.$ac_ext <<EOF
6244 #line 6245 "configure"
6245 #include "confdefs.h"
6248 long z2 = _timezone;
6251 if { (eval echo configure:6252: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6253 cat >> confdefs.h <<\EOF
6254 #define HAVE_UNDERSCORE_TIMEZONE 1
6257 echo "$ac_t""yes" 1>&6
6259 echo "configure: failed program was:" >&5
6260 cat conftest.$ac_ext >&5
6262 echo "$ac_t""no" 1>&6
6270 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6271 # for constant arguments. Useless!
6272 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
6273 echo "configure:6274: checking for working alloca.h" >&5
6274 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
6275 echo $ac_n "(cached) $ac_c" 1>&6
6277 cat > conftest.$ac_ext <<EOF
6278 #line 6279 "configure"
6279 #include "confdefs.h"
6282 char *p = alloca(2 * sizeof(int));
6285 if { (eval echo configure:6286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6287 ac_cv_header_alloca_h=yes
6289 echo "configure: failed program was:" >&5
6290 cat conftest.$ac_ext >&5
6292 ac_cv_header_alloca_h=no
6297 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
6298 if test $ac_cv_header_alloca_h = yes; then
6299 cat >> confdefs.h <<\EOF
6300 #define HAVE_ALLOCA_H 1
6305 echo $ac_n "checking for alloca""... $ac_c" 1>&6
6306 echo "configure:6307: checking for alloca" >&5
6307 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
6308 echo $ac_n "(cached) $ac_c" 1>&6
6310 cat > conftest.$ac_ext <<EOF
6311 #line 6312 "configure"
6312 #include "confdefs.h"
6315 # define alloca __builtin_alloca
6318 # include <malloc.h>
6319 # define alloca _alloca
6322 # include <alloca.h>
6327 # ifndef alloca /* predefined by HP cc +Olibcalls */
6336 char *p = (char *) alloca(1);
6339 if { (eval echo configure:6340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6341 ac_cv_func_alloca_works=yes
6343 echo "configure: failed program was:" >&5
6344 cat conftest.$ac_ext >&5
6346 ac_cv_func_alloca_works=no
6351 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
6352 if test $ac_cv_func_alloca_works = yes; then
6353 cat >> confdefs.h <<\EOF
6354 #define HAVE_ALLOCA 1
6359 if test $ac_cv_func_alloca_works = no; then
6360 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6361 # that cause trouble. Some versions do not even contain alloca or
6362 # contain a buggy version. If you still want to use their alloca,
6363 # use ar to extract alloca.o from them instead of compiling alloca.c.
6364 ALLOCA=alloca.${ac_objext}
6365 cat >> confdefs.h <<\EOF
6370 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
6371 echo "configure:6372: checking whether alloca needs Cray hooks" >&5
6372 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
6373 echo $ac_n "(cached) $ac_c" 1>&6
6375 cat > conftest.$ac_ext <<EOF
6376 #line 6377 "configure"
6377 #include "confdefs.h"
6378 #if defined(CRAY) && ! defined(CRAY2)
6385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6386 egrep "webecray" >/dev/null 2>&1; then
6397 echo "$ac_t""$ac_cv_os_cray" 1>&6
6398 if test $ac_cv_os_cray = yes; then
6399 for ac_func in _getb67 GETB67 getb67; do
6400 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6401 echo "configure:6402: checking for $ac_func" >&5
6402 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6403 echo $ac_n "(cached) $ac_c" 1>&6
6405 cat > conftest.$ac_ext <<EOF
6406 #line 6407 "configure"
6407 #include "confdefs.h"
6408 /* System header to define __stub macros and hopefully few prototypes,
6409 which can conflict with char $ac_func(); below. */
6411 /* Override any gcc2 internal prototype to avoid an error. */
6412 /* We use char because int might match the return type of a gcc2
6413 builtin and then its argument prototype would still apply. */
6418 /* The GNU C library defines this for functions which it implements
6419 to always fail with ENOSYS. Some functions are actually named
6420 something starting with __ and the normal name is an alias. */
6421 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6429 if { (eval echo configure:6430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6431 eval "ac_cv_func_$ac_func=yes"
6433 echo "configure: failed program was:" >&5
6434 cat conftest.$ac_ext >&5
6436 eval "ac_cv_func_$ac_func=no"
6441 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6442 echo "$ac_t""yes" 1>&6
6443 cat >> confdefs.h <<EOF
6444 #define CRAY_STACKSEG_END $ac_func
6449 echo "$ac_t""no" 1>&6
6455 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
6456 echo "configure:6457: checking stack direction for C alloca" >&5
6457 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
6458 echo $ac_n "(cached) $ac_c" 1>&6
6460 if test "$cross_compiling" = yes; then
6461 ac_cv_c_stack_direction=0
6463 cat > conftest.$ac_ext <<EOF
6464 #line 6465 "configure"
6465 #include "confdefs.h"
6466 find_stack_direction ()
6468 static char *addr = 0;
6473 return find_stack_direction ();
6476 return (&dummy > addr) ? 1 : -1;
6480 exit (find_stack_direction() < 0);
6483 if { (eval echo configure:6484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6485 ac_cv_c_stack_direction=1
6487 echo "configure: failed program was:" >&5
6488 cat conftest.$ac_ext >&5
6490 ac_cv_c_stack_direction=-1
6497 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
6498 cat >> confdefs.h <<EOF
6499 #define STACK_DIRECTION $ac_cv_c_stack_direction
6507 # Extract the first word of "$ac_prog", so it can be a program name with args.
6508 set dummy $ac_prog; ac_word=$2
6509 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6510 echo "configure:6511: checking for $ac_word" >&5
6511 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
6512 echo $ac_n "(cached) $ac_c" 1>&6
6514 if test -n "$PERL"; then
6515 ac_cv_prog_PERL="$PERL" # Let the user override the test.
6517 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6519 for ac_dir in $ac_dummy; do
6520 test -z "$ac_dir" && ac_dir=.
6521 if test -f $ac_dir/$ac_word; then
6522 ac_cv_prog_PERL="$ac_prog"
6529 PERL="$ac_cv_prog_PERL"
6530 if test -n "$PERL"; then
6531 echo "$ac_t""$PERL" 1>&6
6533 echo "$ac_t""no" 1>&6
6536 test -n "$PERL" && break
6538 test -n "$PERL" || PERL="false"
6545 SIGNAL_HANDLER=include/i386-signal.h
6547 sparc*-sun-solaris*)
6548 SIGNAL_HANDLER=include/sparc-signal.h
6551 # SYSDEP_SOURCES=sysdep/ia64.c
6552 # test -d sysdep || mkdir sysdep
6555 SIGNAL_HANDLER=include/dwarf2-signal.h
6558 SIGNAL_HANDLER=include/dwarf2-signal.h
6561 SIGNAL_HANDLER=include/dwarf2-signal.h
6564 SIGNAL_HANDLER=include/s390-signal.h
6567 SIGNAL_HANDLER=include/dwarf2-signal.h
6570 SIGNAL_HANDLER=include/dwarf2-signal.h
6573 SIGNAL_HANDLER=include/win32-signal.h
6576 SIGNAL_HANDLER=include/default-signal.h
6580 # If we're using sjlj exceptions, forget what we just learned.
6581 if test "$enable_sjlj_exceptions" = yes; then
6582 SIGNAL_HANDLER=include/default-signal.h
6589 if test "${multilib}" = "yes"; then
6590 multilib_arg="--enable-multilib"
6595 # If we find X, set shell vars x_includes and x_libraries to the
6596 # paths, otherwise set no_x=yes.
6597 # Uses ac_ vars as temps to allow command line to override cache and checks.
6598 # --without-x overrides everything else, but does not touch the cache.
6599 echo $ac_n "checking for X""... $ac_c" 1>&6
6600 echo "configure:6601: checking for X" >&5
6602 # Check whether --with-x or --without-x was given.
6603 if test "${with_x+set}" = set; then
6608 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6609 if test "x$with_x" = xno; then
6610 # The user explicitly disabled X.
6613 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6614 # Both variables are already set.
6617 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
6618 echo $ac_n "(cached) $ac_c" 1>&6
6620 # One or both of the vars are not set, and there is no cached value.
6621 ac_x_includes=NO ac_x_libraries=NO
6623 if mkdir conftestdir; then
6625 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6626 cat > Imakefile <<'EOF'
6628 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6630 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6631 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6632 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6633 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6634 for ac_extension in a so sl; do
6635 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6636 test -f $ac_im_libdir/libX11.$ac_extension; then
6637 ac_im_usrlibdir=$ac_im_libdir; break
6640 # Screen out bogus values from the imake configuration. They are
6641 # bogus both because they are the default anyway, and because
6642 # using them would break gcc on systems where it needs fixed includes.
6643 case "$ac_im_incroot" in
6645 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
6647 case "$ac_im_usrlibdir" in
6649 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
6656 if test "$ac_x_includes" = NO; then
6657 # Guess where to find include files, by looking for this one X11 .h file.
6658 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
6660 # First, try using that file with no special directory specified.
6661 cat > conftest.$ac_ext <<EOF
6662 #line 6663 "configure"
6663 #include "confdefs.h"
6664 #include <$x_direct_test_include>
6666 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6667 { (eval echo configure:6668: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6668 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6669 if test -z "$ac_err"; then
6671 # We can compile using X headers with no special include directory.
6675 echo "configure: failed program was:" >&5
6676 cat conftest.$ac_ext >&5
6678 # Look for the header file in a standard set of common directories.
6679 # Check X11 before X11Rn because it is often a symlink to the current release.
6682 /usr/X11R6/include \
6683 /usr/X11R5/include \
6684 /usr/X11R4/include \
6687 /usr/include/X11R6 \
6688 /usr/include/X11R5 \
6689 /usr/include/X11R4 \
6691 /usr/local/X11/include \
6692 /usr/local/X11R6/include \
6693 /usr/local/X11R5/include \
6694 /usr/local/X11R4/include \
6696 /usr/local/include/X11 \
6697 /usr/local/include/X11R6 \
6698 /usr/local/include/X11R5 \
6699 /usr/local/include/X11R4 \
6703 /usr/XFree86/include/X11 \
6706 /usr/local/include \
6707 /usr/unsupported/include \
6708 /usr/athena/include \
6709 /usr/local/x11r5/include \
6710 /usr/lpp/Xamples/include \
6712 /usr/openwin/include \
6713 /usr/openwin/share/include \
6716 if test -r "$ac_dir/$x_direct_test_include"; then
6717 ac_x_includes=$ac_dir
6723 fi # $ac_x_includes = NO
6725 if test "$ac_x_libraries" = NO; then
6726 # Check for the libraries.
6728 test -z "$x_direct_test_library" && x_direct_test_library=Xt
6729 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
6731 # See if we find them without any special options.
6732 # Don't add to $LIBS permanently.
6733 ac_save_LIBS="$LIBS"
6734 LIBS="-l$x_direct_test_library $LIBS"
6735 cat > conftest.$ac_ext <<EOF
6736 #line 6737 "configure"
6737 #include "confdefs.h"
6740 ${x_direct_test_function}()
6743 if { (eval echo configure:6744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6745 LIBS="$ac_save_LIBS"
6746 # We can link X programs with no special library path.
6749 echo "configure: failed program was:" >&5
6750 cat conftest.$ac_ext >&5
6752 LIBS="$ac_save_LIBS"
6753 # First see if replacing the include by lib works.
6754 # Check X11 before X11Rn because it is often a symlink to the current release.
6755 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
6766 /usr/local/X11/lib \
6767 /usr/local/X11R6/lib \
6768 /usr/local/X11R5/lib \
6769 /usr/local/X11R4/lib \
6771 /usr/local/lib/X11 \
6772 /usr/local/lib/X11R6 \
6773 /usr/local/lib/X11R5 \
6774 /usr/local/lib/X11R4 \
6778 /usr/XFree86/lib/X11 \
6782 /usr/unsupported/lib \
6784 /usr/local/x11r5/lib \
6785 /usr/lpp/Xamples/lib \
6789 /usr/openwin/share/lib \
6792 for ac_extension in a so sl; do
6793 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
6794 ac_x_libraries=$ac_dir
6801 fi # $ac_x_libraries = NO
6803 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
6804 # Didn't find X anywhere. Cache the known absence of X.
6805 ac_cv_have_x="have_x=no"
6807 # Record where we found X for the cache.
6808 ac_cv_have_x="have_x=yes \
6809 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6813 eval "$ac_cv_have_x"
6816 if test "$have_x" != yes; then
6817 echo "$ac_t""$have_x" 1>&6
6820 # If each of the values was on the command line, it overrides each guess.
6821 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6822 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6823 # Update the cache value to reflect the command line values.
6824 ac_cv_have_x="have_x=yes \
6825 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6826 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
6829 if test "$no_x" = yes; then
6830 # Not all programs may use this symbol, but it does not hurt to define it.
6831 cat >> confdefs.h <<\EOF
6832 #define X_DISPLAY_MISSING 1
6835 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6837 if test -n "$x_includes"; then
6838 X_CFLAGS="$X_CFLAGS -I$x_includes"
6841 # It would also be nice to do this for all -L options, not just this one.
6842 if test -n "$x_libraries"; then
6843 X_LIBS="$X_LIBS -L$x_libraries"
6844 # For Solaris; some versions of Sun CC require a space after -R and
6845 # others require no space. Words are not sufficient . . . .
6846 case "`(uname -sr) 2>/dev/null`" in
6848 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
6849 echo "configure:6850: checking whether -R must be followed by a space" >&5
6850 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
6851 cat > conftest.$ac_ext <<EOF
6852 #line 6853 "configure"
6853 #include "confdefs.h"
6859 if { (eval echo configure:6860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6863 echo "configure: failed program was:" >&5
6864 cat conftest.$ac_ext >&5
6869 if test $ac_R_nospace = yes; then
6870 echo "$ac_t""no" 1>&6
6871 X_LIBS="$X_LIBS -R$x_libraries"
6873 LIBS="$ac_xsave_LIBS -R $x_libraries"
6874 cat > conftest.$ac_ext <<EOF
6875 #line 6876 "configure"
6876 #include "confdefs.h"
6882 if { (eval echo configure:6883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6886 echo "configure: failed program was:" >&5
6887 cat conftest.$ac_ext >&5
6892 if test $ac_R_space = yes; then
6893 echo "$ac_t""yes" 1>&6
6894 X_LIBS="$X_LIBS -R $x_libraries"
6896 echo "$ac_t""neither works" 1>&6
6899 LIBS="$ac_xsave_LIBS"
6903 # Check for system-dependent libraries X programs must link with.
6904 # Do this before checking for the system-independent R6 libraries
6905 # (-lICE), since we may need -lsocket or whatever for X linking.
6907 if test "$ISC" = yes; then
6908 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6910 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
6911 # libraries were built with DECnet support. And karl@cs.umb.edu says
6912 # the Alpha needs dnet_stub (dnet does not exist).
6913 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
6914 echo "configure:6915: checking for dnet_ntoa in -ldnet" >&5
6915 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6916 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6917 echo $ac_n "(cached) $ac_c" 1>&6
6919 ac_save_LIBS="$LIBS"
6921 cat > conftest.$ac_ext <<EOF
6922 #line 6923 "configure"
6923 #include "confdefs.h"
6924 /* Override any gcc2 internal prototype to avoid an error. */
6925 /* We use char because int might match the return type of a gcc2
6926 builtin and then its argument prototype would still apply. */
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_lib_$ac_lib_var=yes"
6937 echo "configure: failed program was:" >&5
6938 cat conftest.$ac_ext >&5
6940 eval "ac_cv_lib_$ac_lib_var=no"
6943 LIBS="$ac_save_LIBS"
6946 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6947 echo "$ac_t""yes" 1>&6
6948 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6950 echo "$ac_t""no" 1>&6
6953 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6954 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
6955 echo "configure:6956: checking for dnet_ntoa in -ldnet_stub" >&5
6956 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6957 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6958 echo $ac_n "(cached) $ac_c" 1>&6
6960 ac_save_LIBS="$LIBS"
6961 LIBS="-ldnet_stub $LIBS"
6962 cat > conftest.$ac_ext <<EOF
6963 #line 6964 "configure"
6964 #include "confdefs.h"
6965 /* Override any gcc2 internal prototype to avoid an error. */
6966 /* We use char because int might match the return type of a gcc2
6967 builtin and then its argument prototype would still apply. */
6974 if { (eval echo configure:6975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6976 eval "ac_cv_lib_$ac_lib_var=yes"
6978 echo "configure: failed program was:" >&5
6979 cat conftest.$ac_ext >&5
6981 eval "ac_cv_lib_$ac_lib_var=no"
6984 LIBS="$ac_save_LIBS"
6987 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6988 echo "$ac_t""yes" 1>&6
6989 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6991 echo "$ac_t""no" 1>&6
6996 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6997 # to get the SysV transport functions.
6998 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
7000 # The nsl library prevents programs from opening the X display
7001 # on Irix 5.2, according to dickey@clark.net.
7002 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
7003 echo "configure:7004: checking for gethostbyname" >&5
7004 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
7005 echo $ac_n "(cached) $ac_c" 1>&6
7007 cat > conftest.$ac_ext <<EOF
7008 #line 7009 "configure"
7009 #include "confdefs.h"
7010 /* System header to define __stub macros and hopefully few prototypes,
7011 which can conflict with char gethostbyname(); below. */
7013 /* Override any gcc2 internal prototype to avoid an error. */
7014 /* We use char because int might match the return type of a gcc2
7015 builtin and then its argument prototype would still apply. */
7016 char gethostbyname();
7020 /* The GNU C library defines this for functions which it implements
7021 to always fail with ENOSYS. Some functions are actually named
7022 something starting with __ and the normal name is an alias. */
7023 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7031 if { (eval echo configure:7032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7033 eval "ac_cv_func_gethostbyname=yes"
7035 echo "configure: failed program was:" >&5
7036 cat conftest.$ac_ext >&5
7038 eval "ac_cv_func_gethostbyname=no"
7043 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
7044 echo "$ac_t""yes" 1>&6
7047 echo "$ac_t""no" 1>&6
7050 if test $ac_cv_func_gethostbyname = no; then
7051 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
7052 echo "configure:7053: checking for gethostbyname in -lnsl" >&5
7053 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
7054 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7055 echo $ac_n "(cached) $ac_c" 1>&6
7057 ac_save_LIBS="$LIBS"
7059 cat > conftest.$ac_ext <<EOF
7060 #line 7061 "configure"
7061 #include "confdefs.h"
7062 /* Override any gcc2 internal prototype to avoid an error. */
7063 /* We use char because int might match the return type of a gcc2
7064 builtin and then its argument prototype would still apply. */
7065 char gethostbyname();
7071 if { (eval echo configure:7072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7073 eval "ac_cv_lib_$ac_lib_var=yes"
7075 echo "configure: failed program was:" >&5
7076 cat conftest.$ac_ext >&5
7078 eval "ac_cv_lib_$ac_lib_var=no"
7081 LIBS="$ac_save_LIBS"
7084 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7085 echo "$ac_t""yes" 1>&6
7086 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7088 echo "$ac_t""no" 1>&6
7093 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7094 # socket/setsockopt and other routines are undefined under SCO ODT
7095 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7096 # on later versions), says simon@lia.di.epfl.ch: it contains
7097 # gethostby* variants that don't use the nameserver (or something).
7098 # -lsocket must be given before -lnsl if both are needed.
7099 # We assume that if connect needs -lnsl, so does gethostbyname.
7100 echo $ac_n "checking for connect""... $ac_c" 1>&6
7101 echo "configure:7102: checking for connect" >&5
7102 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
7103 echo $ac_n "(cached) $ac_c" 1>&6
7105 cat > conftest.$ac_ext <<EOF
7106 #line 7107 "configure"
7107 #include "confdefs.h"
7108 /* System header to define __stub macros and hopefully few prototypes,
7109 which can conflict with char connect(); below. */
7111 /* Override any gcc2 internal prototype to avoid an error. */
7112 /* We use char because int might match the return type of a gcc2
7113 builtin and then its argument prototype would still apply. */
7118 /* The GNU C library defines this for functions which it implements
7119 to always fail with ENOSYS. Some functions are actually named
7120 something starting with __ and the normal name is an alias. */
7121 #if defined (__stub_connect) || defined (__stub___connect)
7129 if { (eval echo configure:7130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7131 eval "ac_cv_func_connect=yes"
7133 echo "configure: failed program was:" >&5
7134 cat conftest.$ac_ext >&5
7136 eval "ac_cv_func_connect=no"
7141 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
7142 echo "$ac_t""yes" 1>&6
7145 echo "$ac_t""no" 1>&6
7148 if test $ac_cv_func_connect = no; then
7149 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
7150 echo "configure:7151: checking for connect in -lsocket" >&5
7151 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
7152 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7153 echo $ac_n "(cached) $ac_c" 1>&6
7155 ac_save_LIBS="$LIBS"
7156 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7157 cat > conftest.$ac_ext <<EOF
7158 #line 7159 "configure"
7159 #include "confdefs.h"
7160 /* Override any gcc2 internal prototype to avoid an error. */
7161 /* We use char because int might match the return type of a gcc2
7162 builtin and then its argument prototype would still apply. */
7169 if { (eval echo configure:7170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7171 eval "ac_cv_lib_$ac_lib_var=yes"
7173 echo "configure: failed program was:" >&5
7174 cat conftest.$ac_ext >&5
7176 eval "ac_cv_lib_$ac_lib_var=no"
7179 LIBS="$ac_save_LIBS"
7182 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7183 echo "$ac_t""yes" 1>&6
7184 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7186 echo "$ac_t""no" 1>&6
7191 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
7192 echo $ac_n "checking for remove""... $ac_c" 1>&6
7193 echo "configure:7194: checking for remove" >&5
7194 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
7195 echo $ac_n "(cached) $ac_c" 1>&6
7197 cat > conftest.$ac_ext <<EOF
7198 #line 7199 "configure"
7199 #include "confdefs.h"
7200 /* System header to define __stub macros and hopefully few prototypes,
7201 which can conflict with char remove(); below. */
7203 /* Override any gcc2 internal prototype to avoid an error. */
7204 /* We use char because int might match the return type of a gcc2
7205 builtin and then its argument prototype would still apply. */
7210 /* The GNU C library defines this for functions which it implements
7211 to always fail with ENOSYS. Some functions are actually named
7212 something starting with __ and the normal name is an alias. */
7213 #if defined (__stub_remove) || defined (__stub___remove)
7221 if { (eval echo configure:7222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7223 eval "ac_cv_func_remove=yes"
7225 echo "configure: failed program was:" >&5
7226 cat conftest.$ac_ext >&5
7228 eval "ac_cv_func_remove=no"
7233 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
7234 echo "$ac_t""yes" 1>&6
7237 echo "$ac_t""no" 1>&6
7240 if test $ac_cv_func_remove = no; then
7241 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
7242 echo "configure:7243: checking for remove in -lposix" >&5
7243 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
7244 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7245 echo $ac_n "(cached) $ac_c" 1>&6
7247 ac_save_LIBS="$LIBS"
7248 LIBS="-lposix $LIBS"
7249 cat > conftest.$ac_ext <<EOF
7250 #line 7251 "configure"
7251 #include "confdefs.h"
7252 /* Override any gcc2 internal prototype to avoid an error. */
7253 /* We use char because int might match the return type of a gcc2
7254 builtin and then its argument prototype would still apply. */
7261 if { (eval echo configure:7262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7263 eval "ac_cv_lib_$ac_lib_var=yes"
7265 echo "configure: failed program was:" >&5
7266 cat conftest.$ac_ext >&5
7268 eval "ac_cv_lib_$ac_lib_var=no"
7271 LIBS="$ac_save_LIBS"
7274 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7275 echo "$ac_t""yes" 1>&6
7276 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7278 echo "$ac_t""no" 1>&6
7283 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7284 echo $ac_n "checking for shmat""... $ac_c" 1>&6
7285 echo "configure:7286: checking for shmat" >&5
7286 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
7287 echo $ac_n "(cached) $ac_c" 1>&6
7289 cat > conftest.$ac_ext <<EOF
7290 #line 7291 "configure"
7291 #include "confdefs.h"
7292 /* System header to define __stub macros and hopefully few prototypes,
7293 which can conflict with char shmat(); below. */
7295 /* Override any gcc2 internal prototype to avoid an error. */
7296 /* We use char because int might match the return type of a gcc2
7297 builtin and then its argument prototype would still apply. */
7302 /* The GNU C library defines this for functions which it implements
7303 to always fail with ENOSYS. Some functions are actually named
7304 something starting with __ and the normal name is an alias. */
7305 #if defined (__stub_shmat) || defined (__stub___shmat)
7313 if { (eval echo configure:7314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7315 eval "ac_cv_func_shmat=yes"
7317 echo "configure: failed program was:" >&5
7318 cat conftest.$ac_ext >&5
7320 eval "ac_cv_func_shmat=no"
7325 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
7326 echo "$ac_t""yes" 1>&6
7329 echo "$ac_t""no" 1>&6
7332 if test $ac_cv_func_shmat = no; then
7333 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
7334 echo "configure:7335: checking for shmat in -lipc" >&5
7335 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
7336 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7337 echo $ac_n "(cached) $ac_c" 1>&6
7339 ac_save_LIBS="$LIBS"
7341 cat > conftest.$ac_ext <<EOF
7342 #line 7343 "configure"
7343 #include "confdefs.h"
7344 /* Override any gcc2 internal prototype to avoid an error. */
7345 /* We use char because int might match the return type of a gcc2
7346 builtin and then its argument prototype would still apply. */
7353 if { (eval echo configure:7354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7355 eval "ac_cv_lib_$ac_lib_var=yes"
7357 echo "configure: failed program was:" >&5
7358 cat conftest.$ac_ext >&5
7360 eval "ac_cv_lib_$ac_lib_var=no"
7363 LIBS="$ac_save_LIBS"
7366 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7367 echo "$ac_t""yes" 1>&6
7368 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7370 echo "$ac_t""no" 1>&6
7376 # Check for libraries that X11R6 Xt/Xaw programs need.
7377 ac_save_LDFLAGS="$LDFLAGS"
7378 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7379 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7380 # check for ICE first), but we must link in the order -lSM -lICE or
7381 # we get undefined symbols. So assume we have SM if we have ICE.
7382 # These have to be linked with before -lX11, unlike the other
7383 # libraries we check for below, so use a different variable.
7384 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
7385 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
7386 echo "configure:7387: checking for IceConnectionNumber in -lICE" >&5
7387 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
7388 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7389 echo $ac_n "(cached) $ac_c" 1>&6
7391 ac_save_LIBS="$LIBS"
7392 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7393 cat > conftest.$ac_ext <<EOF
7394 #line 7395 "configure"
7395 #include "confdefs.h"
7396 /* Override any gcc2 internal prototype to avoid an error. */
7397 /* We use char because int might match the return type of a gcc2
7398 builtin and then its argument prototype would still apply. */
7399 char IceConnectionNumber();
7402 IceConnectionNumber()
7405 if { (eval echo configure:7406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7407 eval "ac_cv_lib_$ac_lib_var=yes"
7409 echo "configure: failed program was:" >&5
7410 cat conftest.$ac_ext >&5
7412 eval "ac_cv_lib_$ac_lib_var=no"
7415 LIBS="$ac_save_LIBS"
7418 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7419 echo "$ac_t""yes" 1>&6
7420 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7422 echo "$ac_t""no" 1>&6
7425 LDFLAGS="$ac_save_LDFLAGS"
7430 # Check whether --enable-java-awt or --disable-java-awt was given.
7431 if test "${enable_java_awt+set}" = set; then
7432 enableval="$enable_java_awt"
7437 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
7441 for peer in $peerlibs ; do
7444 if test "$no_x" = yes; then
7445 echo "*** xlib peers requested but no X library available" 1>&2
7460 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
7467 if test "$use_xlib_awt" = yes; then
7476 if test "$use_gtk_awt" = yes; then
7485 here=`${PWDCMD-pwd}`
7488 # We get this from the environment.
7492 cat > confcache <<\EOF
7493 # This file is a shell script that caches the results of configure
7494 # tests run on this system so they can be shared between configure
7495 # scripts and configure runs. It is not useful on other systems.
7496 # If it contains results you don't want to keep, you may remove or edit it.
7498 # By default, configure uses ./config.cache as the cache file,
7499 # creating it if it does not exist already. You can give configure
7500 # the --cache-file=FILE option to use a different cache file; that is
7501 # what configure does when it calls configure scripts in
7502 # subdirectories, so they share the cache.
7503 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7504 # config.status only pays attention to the cache file if you give it the
7505 # --recheck option to rerun configure.
7508 # The following way of writing the cache mishandles newlines in values,
7509 # but we know of no workaround that is simple, portable, and efficient.
7510 # So, don't put newlines in cache variables' values.
7511 # Ultrix sh set writes to stderr and can't be redirected directly,
7512 # and sets the high bit in the cache file unless we assign to the vars.
7514 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7516 # `set' does not quote correctly, so add quotes (double-quote substitution
7517 # turns \\\\ into \\, and sed turns \\ into \).
7519 -e "s/'/'\\\\''/g" \
7520 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7523 # `set' quotes correctly as required by POSIX, so do not add quotes.
7524 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7527 if cmp -s $cache_file confcache; then
7530 if test -w $cache_file; then
7531 echo "updating cache $cache_file"
7532 cat confcache > $cache_file
7534 echo "not updating unwritable cache $cache_file"
7539 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7541 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7542 # Let make expand exec_prefix.
7543 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7545 # Any assignment to VPATH causes Sun make to only execute
7546 # the first set of double-colon rules, so remove it if not needed.
7547 # If there is a colon in the path, we need to keep it.
7548 if test "x$srcdir" = x.; then
7549 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7552 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7554 DEFS=-DHAVE_CONFIG_H
7556 # Without the "./", some shells look in PATH for config.status.
7557 : ${CONFIG_STATUS=./config.status}
7559 echo creating $CONFIG_STATUS
7560 rm -f $CONFIG_STATUS
7561 cat > $CONFIG_STATUS <<EOF
7563 # Generated automatically by configure.
7564 # Run this file to recreate the current configuration.
7565 # This directory was configured as follows,
7566 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7568 # $0 $ac_configure_args
7570 # Compiler output produced by configure, useful for debugging
7571 # configure, is in ./config.log if it exists.
7573 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7576 case "\$ac_option" in
7577 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7578 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7579 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7580 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7581 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7583 -help | --help | --hel | --he | --h)
7584 echo "\$ac_cs_usage"; exit 0 ;;
7585 *) echo "\$ac_cs_usage"; exit 1 ;;
7589 ac_given_srcdir=$srcdir
7590 ac_given_INSTALL="$INSTALL"
7592 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
7594 cat >> $CONFIG_STATUS <<EOF
7596 # Protect against being on the right side of a sed subst in config.status.
7597 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7598 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7602 s%@CFLAGS@%$CFLAGS%g
7603 s%@CPPFLAGS@%$CPPFLAGS%g
7604 s%@CXXFLAGS@%$CXXFLAGS%g
7605 s%@FFLAGS@%$FFLAGS%g
7607 s%@LDFLAGS@%$LDFLAGS%g
7609 s%@exec_prefix@%$exec_prefix%g
7610 s%@prefix@%$prefix%g
7611 s%@program_transform_name@%$program_transform_name%g
7612 s%@bindir@%$bindir%g
7613 s%@sbindir@%$sbindir%g
7614 s%@libexecdir@%$libexecdir%g
7615 s%@datadir@%$datadir%g
7616 s%@sysconfdir@%$sysconfdir%g
7617 s%@sharedstatedir@%$sharedstatedir%g
7618 s%@localstatedir@%$localstatedir%g
7619 s%@libdir@%$libdir%g
7620 s%@includedir@%$includedir%g
7621 s%@oldincludedir@%$oldincludedir%g
7622 s%@infodir@%$infodir%g
7623 s%@mandir@%$mandir%g
7625 s%@libgcj_basedir@%$libgcj_basedir%g
7626 s%@mkinstalldirs@%$mkinstalldirs%g
7628 s%@host_alias@%$host_alias%g
7629 s%@host_cpu@%$host_cpu%g
7630 s%@host_vendor@%$host_vendor%g
7631 s%@host_os@%$host_os%g
7632 s%@target@%$target%g
7633 s%@target_alias@%$target_alias%g
7634 s%@target_cpu@%$target_cpu%g
7635 s%@target_vendor@%$target_vendor%g
7636 s%@target_os@%$target_os%g
7638 s%@build_alias@%$build_alias%g
7639 s%@build_cpu@%$build_cpu%g
7640 s%@build_vendor@%$build_vendor%g
7641 s%@build_os@%$build_os%g
7643 s%@glibjava_CXX@%$glibjava_CXX%g
7645 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7646 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7647 s%@INSTALL_DATA@%$INSTALL_DATA%g
7648 s%@PACKAGE@%$PACKAGE%g
7649 s%@VERSION@%$VERSION%g
7650 s%@ACLOCAL@%$ACLOCAL%g
7651 s%@AUTOCONF@%$AUTOCONF%g
7652 s%@AUTOMAKE@%$AUTOMAKE%g
7653 s%@AUTOHEADER@%$AUTOHEADER%g
7654 s%@MAKEINFO@%$MAKEINFO%g
7655 s%@SET_MAKE@%$SET_MAKE%g
7658 s%@RANLIB@%$RANLIB%g
7659 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
7660 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
7662 s%@EXEEXT@%$EXEEXT%g
7663 s%@LIBGCJ_CFLAGS@%$LIBGCJ_CFLAGS%g
7664 s%@LIBGCJ_CXXFLAGS@%$LIBGCJ_CXXFLAGS%g
7665 s%@LIBGCJ_JAVAFLAGS@%$LIBGCJ_JAVAFLAGS%g
7666 s%@INCLTDL@%$INCLTDL%g
7667 s%@LIBLTDL@%$LIBLTDL%g
7668 s%@DIRLTDL@%$DIRLTDL%g
7669 s%@OBJEXT@%$OBJEXT%g
7671 s%@LIBTOOL@%$LIBTOOL%g
7672 s%@CXXCPP@%$CXXCPP%g
7673 s%@subdirs@%$subdirs%g
7674 s%@COMPPATH@%$COMPPATH%g
7675 s%@TESTSUBDIR_TRUE@%$TESTSUBDIR_TRUE%g
7676 s%@TESTSUBDIR_FALSE@%$TESTSUBDIR_FALSE%g
7677 s%@LIBGCJDEBUG@%$LIBGCJDEBUG%g
7678 s%@INTERPRETER@%$INTERPRETER%g
7679 s%@LIBFFI@%$LIBFFI%g
7680 s%@LIBFFIINCS@%$LIBFFIINCS%g
7681 s%@PLATFORMOBJS@%$PLATFORMOBJS%g
7683 s%@SYSTEMSPEC@%$SYSTEMSPEC%g
7684 s%@LIBGCJTESTSPEC@%$LIBGCJTESTSPEC%g
7685 s%@ZLIBSPEC@%$ZLIBSPEC%g
7686 s%@ZLIBTESTSPEC@%$ZLIBTESTSPEC%g
7687 s%@GCLIBS@%$GCLIBS%g
7688 s%@GCINCS@%$GCINCS%g
7689 s%@GCDEPS@%$GCDEPS%g
7690 s%@GCOBJS@%$GCOBJS%g
7691 s%@GCSPEC@%$GCSPEC%g
7692 s%@JC1GCSPEC@%$JC1GCSPEC%g
7693 s%@GCTESTSPEC@%$GCTESTSPEC%g
7694 s%@THREADLIBS@%$THREADLIBS%g
7695 s%@THREADINCS@%$THREADINCS%g
7696 s%@THREADDEPS@%$THREADDEPS%g
7697 s%@THREADOBJS@%$THREADOBJS%g
7698 s%@THREADSPEC@%$THREADSPEC%g
7699 s%@THREADLDFLAGS@%$THREADLDFLAGS%g
7700 s%@HASH_SYNC_SPEC@%$HASH_SYNC_SPEC%g
7701 s%@USING_GCC_TRUE@%$USING_GCC_TRUE%g
7702 s%@USING_GCC_FALSE@%$USING_GCC_FALSE%g
7703 s%@tool_include_dir@%$tool_include_dir%g
7704 s%@gcc_version@%$gcc_version%g
7705 s%@LIBICONV@%$LIBICONV%g
7707 s%@GCJFLAGS@%$GCJFLAGS%g
7709 s%@SYS_ZLIBS@%$SYS_ZLIBS%g
7711 s%@DIVIDESPEC@%$DIVIDESPEC%g
7712 s%@CHECKREFSPEC@%$CHECKREFSPEC%g
7713 s%@EXCEPTIONSPEC@%$EXCEPTIONSPEC%g
7714 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
7715 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
7716 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
7717 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
7718 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
7719 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
7720 s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
7721 s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
7722 s%@NEEDS_DATA_START_TRUE@%$NEEDS_DATA_START_TRUE%g
7723 s%@NEEDS_DATA_START_FALSE@%$NEEDS_DATA_START_FALSE%g
7724 s%@GCC_UNWIND_INCLUDE@%$GCC_UNWIND_INCLUDE%g
7725 s%@GCJVERSION@%$GCJVERSION%g
7726 s%@ALLOCA@%$ALLOCA%g
7728 s%@SYSDEP_SOURCES@%$SYSDEP_SOURCES%g
7729 s%@X_CFLAGS@%$X_CFLAGS%g
7730 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
7731 s%@X_LIBS@%$X_LIBS%g
7732 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
7733 s%@XLIB_AWT_TRUE@%$XLIB_AWT_TRUE%g
7734 s%@XLIB_AWT_FALSE@%$XLIB_AWT_FALSE%g
7735 s%@GTK_AWT_TRUE@%$GTK_AWT_TRUE%g
7736 s%@GTK_AWT_FALSE@%$GTK_AWT_FALSE%g
7742 cat >> $CONFIG_STATUS <<\EOF
7744 # Split the substitutions into bite-sized pieces for seds with
7745 # small command number limits, like on Digital OSF/1 and HP-UX.
7746 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7747 ac_file=1 # Number of current file.
7748 ac_beg=1 # First line for current file.
7749 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7752 while $ac_more_lines; do
7753 if test $ac_beg -gt 1; then
7754 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7756 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7758 if test ! -s conftest.s$ac_file; then
7760 rm -f conftest.s$ac_file
7762 if test -z "$ac_sed_cmds"; then
7763 ac_sed_cmds="sed -f conftest.s$ac_file"
7765 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7767 ac_file=`expr $ac_file + 1`
7769 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7772 if test -z "$ac_sed_cmds"; then
7777 cat >> $CONFIG_STATUS <<EOF
7779 CONFIG_FILES=\${CONFIG_FILES-"Makefile libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile"}
7781 cat >> $CONFIG_STATUS <<\EOF
7782 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7783 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7785 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7786 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7787 *) ac_file_in="${ac_file}.in" ;;
7790 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7792 # Remove last slash and all that follows it. Not all systems have dirname.
7793 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7794 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7795 # The file is in a subdirectory.
7796 test ! -d "$ac_dir" && mkdir "$ac_dir"
7797 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7798 # A "../" for each directory in $ac_dir_suffix.
7799 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7801 ac_dir_suffix= ac_dots=
7804 case "$ac_given_srcdir" in
7806 if test -z "$ac_dots"; then top_srcdir=.
7807 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7808 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7810 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7811 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7814 case "$ac_given_INSTALL" in
7815 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7816 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7819 echo creating "$ac_file"
7821 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7823 *Makefile*) ac_comsub="1i\\
7824 # $configure_input" ;;
7828 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7830 s%@configure_input@%$configure_input%g
7831 s%@srcdir@%$srcdir%g
7832 s%@top_srcdir@%$top_srcdir%g
7833 s%@INSTALL@%$INSTALL%g
7834 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7838 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7839 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7841 # ac_d sets the value in "#define NAME VALUE" lines.
7842 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7843 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7846 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7847 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7848 ac_uB='\([ ]\)%\1#\2define\3'
7851 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7852 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7853 ac_eB='$%\1#\2define\3'
7857 if test "${CONFIG_HEADERS+set}" != set; then
7859 cat >> $CONFIG_STATUS <<EOF
7860 CONFIG_HEADERS="include/config.h gcj/libgcj-config.h"
7862 cat >> $CONFIG_STATUS <<\EOF
7864 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7865 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7867 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7868 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7869 *) ac_file_in="${ac_file}.in" ;;
7872 echo creating $ac_file
7874 rm -f conftest.frag conftest.in conftest.out
7875 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7876 cat $ac_file_inputs > conftest.in
7880 # Transform confdefs.h into a sed script conftest.vals that substitutes
7881 # the proper values into config.h.in to produce config.h. And first:
7882 # Protect against being on the right side of a sed subst in config.status.
7883 # Protect against being in an unquoted here document in config.status.
7885 cat > conftest.hdr <<\EOF
7888 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7892 sed -n -f conftest.hdr confdefs.h > conftest.vals
7895 # This sed command replaces #undef with comments. This is necessary, for
7896 # example, in the case of _POSIX_SOURCE, which is predefined and required
7897 # on some systems where configure will not decide to define it.
7898 cat >> conftest.vals <<\EOF
7899 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7902 # Break up conftest.vals because some shells have a limit on
7903 # the size of here documents, and old seds have small limits too.
7908 ac_lines=`grep -c . conftest.vals`
7909 # grep -c gives empty output for an empty file on some AIX systems.
7910 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7911 # Write a limited-size here document to conftest.frag.
7912 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7913 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7915 sed -f conftest.frag conftest.in > conftest.out
7917 mv conftest.out conftest.in
7919 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7921 mv conftest.tail conftest.vals
7925 cat >> $CONFIG_STATUS <<\EOF
7926 rm -f conftest.frag conftest.h
7927 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7928 cat conftest.in >> conftest.h
7930 if cmp -s $ac_file conftest.h 2>/dev/null; then
7931 echo "$ac_file is unchanged"
7934 # Remove last slash and all that follows it. Not all systems have dirname.
7935 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7936 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7937 # The file is in a subdirectory.
7938 test ! -d "$ac_dir" && mkdir "$ac_dir"
7941 mv conftest.h $ac_file
7947 cat >> $CONFIG_STATUS <<EOF
7948 ac_sources="include/$PLATFORMH java/io/natFile${FILE-${PLATFORM}}.cc java/io/natFileDescriptor${FILE-${PLATFORM}}.cc java/lang/${PLATFORM}Process.java java/lang/nat${PLATFORM}Process.cc include/$GCHDR include/$THREADH sysdep/$sysdeps_dir/locks.h $SIGNAL_HANDLER"
7949 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/locks.h include/java-signal.h"
7952 cat >> $CONFIG_STATUS <<\EOF
7953 srcdir=$ac_given_srcdir
7954 while test -n "$ac_sources"; do
7955 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
7956 set $ac_sources; ac_source=$1; shift; ac_sources=$*
7958 echo "linking $srcdir/$ac_source to $ac_dest"
7960 if test ! -r $srcdir/$ac_source; then
7961 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
7965 # Make relative symlinks.
7966 # Remove last slash and all that follows it. Not all systems have dirname.
7967 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
7968 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
7969 # The dest file is in a subdirectory.
7970 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
7971 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
7972 # A "../" for each directory in $ac_dest_dir_suffix.
7973 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
7975 ac_dest_dir_suffix= ac_dots=
7979 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
7980 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
7983 # Make a symlink if possible; otherwise try a hard link.
7984 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
7985 ln $srcdir/$ac_source $ac_dest; then :
7987 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
7991 cat >> $CONFIG_STATUS <<EOF
7996 with_multisubdir=${with_multisubdir}
7997 ac_configure_args="${multilib_arg} ${ac_configure_args}"
7998 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
7999 libgcj_basedir=${libgcj_basedir}
8004 cat >> $CONFIG_STATUS <<\EOF
8006 for am_file in include/config.h gcj/libgcj-config.h; do
8007 case " $CONFIG_HEADERS " in
8009 echo timestamp > `echo $am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
8012 am_indx=`expr "$am_indx" + 1`
8014 # Only add multilib support code if we just rebuilt top-level Makefile.
8015 case " $CONFIG_FILES " in
8017 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
8018 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
8022 # Make subdirectories and `.d' files. Look in both srcdir and
8023 # builddir for the .java files.
8026 ( (cd $srcdir && find . \( -name '*.java' -o -name '*.cc' \) -print) ;
8027 find . \( -name '*.java' -o -name '*.cc' \) -print) | \
8028 fgrep -v testsuite | \
8029 sed -e 's/\.java/.d/'\;'s/\.cc/.d/' | \
8031 echo "include $f" >> deps.mk
8034 d=`echo $f | sed -e 's,/[^/]*$,,'`
8036 if test ! -d $d; then
8037 $libgcj_basedir/../mkinstalldirs $d
8045 chmod +x $CONFIG_STATUS
8046 rm -fr confdefs* $ac_clean_files
8047 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
8049 if test "$no_recursion" != yes; then
8051 # Remove --cache-file and --srcdir arguments so they do not pile up.
8052 ac_sub_configure_args=
8054 for ac_arg in $ac_configure_args; do
8055 if test -n "$ac_prev"; then
8060 -cache-file | --cache-file | --cache-fil | --cache-fi \
8061 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8062 ac_prev=cache_file ;;
8063 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8064 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
8066 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
8068 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
8070 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
8074 for ac_config_dir in $DIRLTDL; do
8076 # Do not complain, so a configure script can configure whichever
8077 # parts of a large source tree are present.
8078 if test ! -d $srcdir/$ac_config_dir; then
8082 echo configuring in $ac_config_dir
8087 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
8089 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
8097 # A "../" for each directory in /$ac_config_dir.
8098 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
8101 .) # No --srcdir option. We are building in place.
8102 ac_sub_srcdir=$srcdir ;;
8103 /*) # Absolute path.
8104 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
8106 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
8109 # Check for guested configure; otherwise get Cygnus style configure.
8110 if test -f $ac_sub_srcdir/configure; then
8111 ac_sub_configure=$ac_sub_srcdir/configure
8112 elif test -f $ac_sub_srcdir/configure.in; then
8113 ac_sub_configure=$ac_configure
8115 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
8119 # The recursion is here.
8120 if test -n "$ac_sub_configure"; then
8122 # Make the cache file name correct relative to the subdirectory.
8123 case "$cache_file" in
8124 /*) ac_sub_cache_file=$cache_file ;;
8126 ac_sub_cache_file="$ac_dots$cache_file" ;;
8128 case "$ac_given_INSTALL" in
8129 [/$]*) INSTALL="$ac_given_INSTALL" ;;
8130 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8133 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
8134 # The eval makes quoting arguments work.
8135 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
8138 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }