3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --with-target-subdir=SUBDIR
16 configuring in a subdirectory"
18 --with-cross-host=HOST configuring with a cross compiler"
20 --enable-multilib build many library versions (default)"
22 --enable-maintainer-mode enable make rules and dependencies not useful
23 (and sometimes confusing) to the casual installer"
25 --enable-shared[=PKGS] build shared libraries [default=yes]"
27 --enable-static[=PKGS] build static libraries [default=yes]"
29 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
31 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
33 --disable-libtool-lock avoid locking (might break parallel builds)"
35 --with-pic try to use only PIC/non-PIC objects [default=use both]"
37 --enable-fast-character prefer speed over size for Character"
39 --disable-getenv-properties
40 don't set system properties from GCJ_PROPERTIES"
42 --enable-hash-synchronization
43 Use global hash table for monitor locks"
45 --enable-libgcj-debug enable runtime debugging code"
47 --enable-interpreter enable interpreter"
49 --enable-sjlj-exceptions force use of builtin_setjmp for exceptions"
51 --disable-java-net disable java.net"
53 --disable-jvmpi disable JVMPI support"
55 --with-ecos enable runtime eCos target support"
57 --with-system-zlib use installed libz"
59 --enable-java-gc=TYPE choose garbage collector [boehm]"
61 --with-x use the X Window System"
63 --enable-java-awt list of AWT peer implementations to be built"
65 # Initialize some variables set by options.
66 # The variables have the same names as the options, with
67 # dashes changed to underlines.
69 cache_file=./config.cache
78 program_transform_name=s,x,x,
87 bindir='${exec_prefix}/bin'
88 sbindir='${exec_prefix}/sbin'
89 libexecdir='${exec_prefix}/libexec'
90 datadir='${prefix}/share'
91 sysconfdir='${prefix}/etc'
92 sharedstatedir='${prefix}/com'
93 localstatedir='${prefix}/var'
94 libdir='${exec_prefix}/lib'
95 includedir='${prefix}/include'
96 oldincludedir='/usr/include'
97 infodir='${prefix}/info'
98 mandir='${prefix}/man'
100 # Initialize some other variables.
103 SHELL=${CONFIG_SHELL-/bin/sh}
104 # Maximum number of lines to put in a shell here document.
111 # If the previous option needs an argument, assign it.
112 if test -n "$ac_prev"; then
113 eval "$ac_prev=\$ac_option"
119 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
123 # Accept the important Cygnus configure options, so we can diagnose typos.
127 -bindir | --bindir | --bindi | --bind | --bin | --bi)
129 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
130 bindir="$ac_optarg" ;;
132 -build | --build | --buil | --bui | --bu)
134 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
135 build="$ac_optarg" ;;
137 -cache-file | --cache-file | --cache-fil | --cache-fi \
138 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
139 ac_prev=cache_file ;;
140 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
141 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
142 cache_file="$ac_optarg" ;;
144 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
146 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
148 datadir="$ac_optarg" ;;
150 -disable-* | --disable-*)
151 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
152 # Reject names that are not valid shell variable names.
153 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
154 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
156 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
157 eval "enable_${ac_feature}=no" ;;
159 -enable-* | --enable-*)
160 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
161 # Reject names that are not valid shell variable names.
162 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
163 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
165 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
170 eval "enable_${ac_feature}='$ac_optarg'" ;;
172 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
173 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
174 | --exec | --exe | --ex)
175 ac_prev=exec_prefix ;;
176 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
177 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
178 | --exec=* | --exe=* | --ex=*)
179 exec_prefix="$ac_optarg" ;;
181 -gas | --gas | --ga | --g)
182 # Obsolete; use --with-gas.
185 -help | --help | --hel | --he)
186 # Omit some internal or obsolete options to make the list less imposing.
187 # This message is too long to be a string in the A/UX 3.1 sh.
189 Usage: configure [options] [host]
190 Options: [defaults in brackets after descriptions]
192 --cache-file=FILE cache test results in FILE
193 --help print this message
194 --no-create do not create output files
195 --quiet, --silent do not print \`checking...' messages
196 --site-file=FILE use FILE as the site file
197 --version print the version of autoconf that created configure
198 Directory and file names:
199 --prefix=PREFIX install architecture-independent files in PREFIX
201 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
203 --bindir=DIR user executables in DIR [EPREFIX/bin]
204 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
205 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
206 --datadir=DIR read-only architecture-independent data in DIR
208 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
209 --sharedstatedir=DIR modifiable architecture-independent data in DIR
211 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
212 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
213 --includedir=DIR C header files in DIR [PREFIX/include]
214 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
215 --infodir=DIR info documentation in DIR [PREFIX/info]
216 --mandir=DIR man documentation in DIR [PREFIX/man]
217 --srcdir=DIR find the sources in DIR [configure dir or ..]
218 --program-prefix=PREFIX prepend PREFIX to installed program names
219 --program-suffix=SUFFIX append SUFFIX to installed program names
220 --program-transform-name=PROGRAM
221 run sed PROGRAM on installed program names
225 --build=BUILD configure for building on BUILD [BUILD=HOST]
226 --host=HOST configure for HOST [guessed]
227 --target=TARGET configure for TARGET [TARGET=HOST]
228 Features and packages:
229 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
230 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
231 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
232 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
233 --x-includes=DIR X include files are in DIR
234 --x-libraries=DIR X library files are in DIR
236 if test -n "$ac_help"; then
237 echo "--enable and --with options recognized:$ac_help"
241 -host | --host | --hos | --ho)
243 -host=* | --host=* | --hos=* | --ho=*)
246 -includedir | --includedir | --includedi | --included | --include \
247 | --includ | --inclu | --incl | --inc)
248 ac_prev=includedir ;;
249 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
250 | --includ=* | --inclu=* | --incl=* | --inc=*)
251 includedir="$ac_optarg" ;;
253 -infodir | --infodir | --infodi | --infod | --info | --inf)
255 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
256 infodir="$ac_optarg" ;;
258 -libdir | --libdir | --libdi | --libd)
260 -libdir=* | --libdir=* | --libdi=* | --libd=*)
261 libdir="$ac_optarg" ;;
263 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
264 | --libexe | --libex | --libe)
265 ac_prev=libexecdir ;;
266 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
267 | --libexe=* | --libex=* | --libe=*)
268 libexecdir="$ac_optarg" ;;
270 -localstatedir | --localstatedir | --localstatedi | --localstated \
271 | --localstate | --localstat | --localsta | --localst \
272 | --locals | --local | --loca | --loc | --lo)
273 ac_prev=localstatedir ;;
274 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
275 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
276 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
277 localstatedir="$ac_optarg" ;;
279 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
281 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
282 mandir="$ac_optarg" ;;
285 # Obsolete; use --without-fp.
288 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
292 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
293 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
296 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
297 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
298 | --oldin | --oldi | --old | --ol | --o)
299 ac_prev=oldincludedir ;;
300 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
301 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
302 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
303 oldincludedir="$ac_optarg" ;;
305 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
307 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
308 prefix="$ac_optarg" ;;
310 -program-prefix | --program-prefix | --program-prefi | --program-pref \
311 | --program-pre | --program-pr | --program-p)
312 ac_prev=program_prefix ;;
313 -program-prefix=* | --program-prefix=* | --program-prefi=* \
314 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
315 program_prefix="$ac_optarg" ;;
317 -program-suffix | --program-suffix | --program-suffi | --program-suff \
318 | --program-suf | --program-su | --program-s)
319 ac_prev=program_suffix ;;
320 -program-suffix=* | --program-suffix=* | --program-suffi=* \
321 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
322 program_suffix="$ac_optarg" ;;
324 -program-transform-name | --program-transform-name \
325 | --program-transform-nam | --program-transform-na \
326 | --program-transform-n | --program-transform- \
327 | --program-transform | --program-transfor \
328 | --program-transfo | --program-transf \
329 | --program-trans | --program-tran \
330 | --progr-tra | --program-tr | --program-t)
331 ac_prev=program_transform_name ;;
332 -program-transform-name=* | --program-transform-name=* \
333 | --program-transform-nam=* | --program-transform-na=* \
334 | --program-transform-n=* | --program-transform-=* \
335 | --program-transform=* | --program-transfor=* \
336 | --program-transfo=* | --program-transf=* \
337 | --program-trans=* | --program-tran=* \
338 | --progr-tra=* | --program-tr=* | --program-t=*)
339 program_transform_name="$ac_optarg" ;;
341 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
342 | -silent | --silent | --silen | --sile | --sil)
345 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
347 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
349 sbindir="$ac_optarg" ;;
351 -sharedstatedir | --sharedstatedir | --sharedstatedi \
352 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
353 | --sharedst | --shareds | --shared | --share | --shar \
355 ac_prev=sharedstatedir ;;
356 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
357 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
358 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
360 sharedstatedir="$ac_optarg" ;;
362 -site | --site | --sit)
364 -site=* | --site=* | --sit=*)
367 -site-file | --site-file | --site-fil | --site-fi | --site-f)
369 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
370 sitefile="$ac_optarg" ;;
372 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
374 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
375 srcdir="$ac_optarg" ;;
377 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
378 | --syscon | --sysco | --sysc | --sys | --sy)
379 ac_prev=sysconfdir ;;
380 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
381 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
382 sysconfdir="$ac_optarg" ;;
384 -target | --target | --targe | --targ | --tar | --ta | --t)
386 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
387 target="$ac_optarg" ;;
389 -v | -verbose | --verbose | --verbos | --verbo | --verb)
392 -version | --version | --versio | --versi | --vers)
393 echo "configure generated by autoconf version 2.13"
397 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
398 # Reject names that are not valid shell variable names.
399 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
400 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
402 ac_package=`echo $ac_package| sed 's/-/_/g'`
407 eval "with_${ac_package}='$ac_optarg'" ;;
409 -without-* | --without-*)
410 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
411 # Reject names that are not valid shell variable names.
412 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
413 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
415 ac_package=`echo $ac_package| sed 's/-/_/g'`
416 eval "with_${ac_package}=no" ;;
419 # Obsolete; use --with-x.
422 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
423 | --x-incl | --x-inc | --x-in | --x-i)
424 ac_prev=x_includes ;;
425 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
426 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
427 x_includes="$ac_optarg" ;;
429 -x-libraries | --x-libraries | --x-librarie | --x-librari \
430 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
431 ac_prev=x_libraries ;;
432 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
433 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
434 x_libraries="$ac_optarg" ;;
436 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
440 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
441 echo "configure: warning: $ac_option: invalid host type" 1>&2
443 if test "x$nonopt" != xNONE; then
444 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
452 if test -n "$ac_prev"; then
453 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
456 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
458 # File descriptor usage:
461 # 2 errors and warnings
462 # 3 some systems may open it to /dev/tty
463 # 4 used on the Kubota Titan
464 # 6 checking for... messages and results
465 # 5 compiler messages saved in config.log
466 if test "$silent" = yes; then
474 This file contains any messages produced by compilers while
475 running configure, to aid debugging if configure makes a mistake.
478 # Strip out --no-create and --no-recursion so they do not pile up.
479 # Also quote any args containing shell metacharacters.
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c) ;;
486 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
487 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
488 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
489 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
490 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
495 # Only set these to C if already set. These must not be set unconditionally
496 # because not all systems understand e.g. LANG=C (notably SCO).
497 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
498 # Non-C LC_CTYPE values break the ctype check.
499 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
500 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
501 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
502 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
504 # confdefs.h avoids OS command line length limits that DEFS can exceed.
505 rm -rf conftest* confdefs.h
506 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
509 # A filename unique to this package, relative to the directory that
510 # configure is in, which we can look for to find out if srcdir is correct.
511 ac_unique_file=java/lang/System.java
513 # Find the source files, if location was not specified.
514 if test -z "$srcdir"; then
515 ac_srcdir_defaulted=yes
516 # Try the directory containing this script, then its parent.
518 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
519 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
521 if test ! -r $srcdir/$ac_unique_file; then
525 ac_srcdir_defaulted=no
527 if test ! -r $srcdir/$ac_unique_file; then
528 if test "$ac_srcdir_defaulted" = yes; then
529 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
531 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
534 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
536 # Prefer explicitly selected file to automatically selected ones.
537 if test -z "$sitefile"; then
538 if test -z "$CONFIG_SITE"; then
539 if test "x$prefix" != xNONE; then
540 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
542 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
546 CONFIG_SITE="$sitefile"
548 for ac_site_file in $CONFIG_SITE; do
549 if test -r "$ac_site_file"; then
550 echo "loading site script $ac_site_file"
555 if test -r "$cache_file"; then
556 echo "loading cache $cache_file"
559 echo "creating cache $cache_file"
564 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
565 ac_cpp='$CPP $CPPFLAGS'
566 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
567 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
568 cross_compiling=$ac_cv_prog_cc_cross
572 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
573 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
574 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
581 ac_n= ac_c='\c' ac_t=
587 for ac_dir in .. $srcdir/..; do
588 if test -f $ac_dir/install-sh; then
590 ac_install_sh="$ac_aux_dir/install-sh -c"
592 elif test -f $ac_dir/install.sh; then
594 ac_install_sh="$ac_aux_dir/install.sh -c"
598 if test -z "$ac_aux_dir"; then
599 { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
601 ac_config_guess=$ac_aux_dir/config.guess
602 ac_config_sub=$ac_aux_dir/config.sub
603 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
607 # Do some error checking and defaulting for the host and target type.
609 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
612 # 1. You are not allowed to specify --host, --target, and nonopt at the
614 # 2. Host defaults to nonopt.
615 # 3. If nonopt is not specified, then host defaults to the current host,
616 # as determined by config.guess.
617 # 4. Target and build default to nonopt.
618 # 5. If nonopt is not specified, then target and build default to host.
620 # The aliases save the names the user supplied, while $host etc.
621 # will get canonicalized.
622 case $host---$target---$nonopt in
623 NONE---*---* | *---NONE---* | *---*---NONE) ;;
624 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
628 # Make sure we can run config.sub.
629 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
630 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
633 echo $ac_n "checking host system type""... $ac_c" 1>&6
634 echo "configure:635: checking host system type" >&5
637 case "$host_alias" in
641 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
642 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
644 *) host_alias=$nonopt ;;
648 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
649 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
650 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
651 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
652 echo "$ac_t""$host" 1>&6
654 echo $ac_n "checking target system type""... $ac_c" 1>&6
655 echo "configure:656: checking target system type" >&5
658 case "$target_alias" in
661 NONE) target_alias=$host_alias ;;
662 *) target_alias=$nonopt ;;
666 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
667 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
668 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
669 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
670 echo "$ac_t""$target" 1>&6
672 echo $ac_n "checking build system type""... $ac_c" 1>&6
673 echo "configure:674: checking build system type" >&5
676 case "$build_alias" in
679 NONE) build_alias=$host_alias ;;
680 *) build_alias=$nonopt ;;
684 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
685 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
686 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
687 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
688 echo "$ac_t""$build" 1>&6
690 test "$host_alias" != "$target_alias" &&
691 test "$program_prefix$program_suffix$program_transform_name" = \
693 program_prefix=${target_alias}-
695 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
696 echo "configure:697: checking whether ln -s works" >&5
697 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
698 echo $ac_n "(cached) $ac_c" 1>&6
701 if ln -s X conftestdata 2>/dev/null
704 ac_cv_prog_LN_S="ln -s"
709 LN_S="$ac_cv_prog_LN_S"
710 if test "$ac_cv_prog_LN_S" = "ln -s"; then
711 echo "$ac_t""yes" 1>&6
713 echo "$ac_t""no" 1>&6
717 # Check whether --with-target-subdir or --without-target-subdir was given.
718 if test "${with_target_subdir+set}" = set; then
719 withval="$with_target_subdir"
723 # Check whether --with-cross-host or --without-cross-host was given.
724 if test "${with_cross_host+set}" = set; then
725 withval="$with_cross_host"
730 # Find a good install program. We prefer a C program (faster),
731 # so one script is as good as another. But avoid the broken or
732 # incompatible versions:
733 # SysV /etc/install, /usr/sbin/install
734 # SunOS /usr/etc/install
737 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
738 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
739 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
740 # ./install, which can be erroneously created by make from ./install.sh.
741 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
742 echo "configure:743: checking for a BSD compatible install" >&5
743 if test -z "$INSTALL"; then
744 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
745 echo $ac_n "(cached) $ac_c" 1>&6
747 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
748 for ac_dir in $PATH; do
749 # Account for people who put trailing slashes in PATH elements.
751 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
753 # OSF1 and SCO ODT 3.0 have their own names for install.
754 # Don't use installbsd from OSF since it installs stuff as root
756 for ac_prog in ginstall scoinst install; do
757 if test -f $ac_dir/$ac_prog; then
758 if test $ac_prog = install &&
759 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
760 # AIX install. It has an incompatible calling convention.
763 ac_cv_path_install="$ac_dir/$ac_prog -c"
774 if test "${ac_cv_path_install+set}" = set; then
775 INSTALL="$ac_cv_path_install"
777 # As a last resort, use the slow shell script. We don't cache a
778 # path for INSTALL within a source directory, because that will
779 # break other packages using the cache if that directory is
780 # removed, or if the path is relative.
781 INSTALL="$ac_install_sh"
784 echo "$ac_t""$INSTALL" 1>&6
786 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
787 # It thinks the first close brace ends the variable substitution.
788 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
790 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
792 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
794 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
795 echo "configure:796: checking whether build environment is sane" >&5
798 echo timestamp > conftestfile
799 # Do `set' in a subshell so we don't clobber the current shell's
800 # arguments. Must try -L first in case configure is actually a
801 # symlink; some systems play weird games with the mod time of symlinks
802 # (eg FreeBSD returns the mod time of the symlink's containing
805 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
806 if test "$*" = "X"; then
808 set X `ls -t $srcdir/configure conftestfile`
810 if test "$*" != "X $srcdir/configure conftestfile" \
811 && test "$*" != "X conftestfile $srcdir/configure"; then
813 # If neither matched, then we have a broken ls. This can happen
814 # if, for instance, CONFIG_SHELL is bash and it inherits a
815 # broken ls alias from the environment. This has actually
816 # happened. Such a system could not be considered "sane".
817 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
818 alias in your environment" 1>&2; exit 1; }
821 test "$2" = conftestfile
827 { echo "configure: error: newly created file is older than distributed files!
828 Check your system clock" 1>&2; exit 1; }
831 echo "$ac_t""yes" 1>&6
832 if test "$program_transform_name" = s,x,x,; then
833 program_transform_name=
835 # Double any \ or $. echo might interpret backslashes.
836 cat <<\EOF_SED > conftestsed
837 s,\\,\\\\,g; s,\$,$$,g
839 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
842 test "$program_prefix" != NONE &&
843 program_transform_name="s,^,${program_prefix},; $program_transform_name"
844 # Use a double $ so make ignores it.
845 test "$program_suffix" != NONE &&
846 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
848 # sed with no file args requires a program.
849 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
851 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
852 echo "configure:853: checking whether ${MAKE-make} sets \${MAKE}" >&5
853 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
854 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
855 echo $ac_n "(cached) $ac_c" 1>&6
857 cat > conftestmake <<\EOF
859 @echo 'ac_maketemp="${MAKE}"'
861 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
862 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
863 if test -n "$ac_maketemp"; then
864 eval ac_cv_prog_make_${ac_make}_set=yes
866 eval ac_cv_prog_make_${ac_make}_set=no
870 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
871 echo "$ac_t""yes" 1>&6
874 echo "$ac_t""no" 1>&6
875 SET_MAKE="MAKE=${MAKE-make}"
878 if test $host != $build; then
879 ac_tool_prefix=${host_alias}-
884 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
885 echo "configure:886: checking for Cygwin environment" >&5
886 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
887 echo $ac_n "(cached) $ac_c" 1>&6
889 cat > conftest.$ac_ext <<EOF
890 #line 891 "configure"
891 #include "confdefs.h"
896 #define __CYGWIN__ __CYGWIN32__
901 if { (eval echo configure:902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
905 echo "configure: failed program was:" >&5
906 cat conftest.$ac_ext >&5
914 echo "$ac_t""$ac_cv_cygwin" 1>&6
916 test "$ac_cv_cygwin" = yes && CYGWIN=yes
917 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
918 echo "configure:919: checking for mingw32 environment" >&5
919 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
920 echo $ac_n "(cached) $ac_c" 1>&6
922 cat > conftest.$ac_ext <<EOF
923 #line 924 "configure"
924 #include "confdefs.h"
930 if { (eval echo configure:931: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
934 echo "configure: failed program was:" >&5
935 cat conftest.$ac_ext >&5
943 echo "$ac_t""$ac_cv_mingw32" 1>&6
945 test "$ac_cv_mingw32" = yes && MINGW32=yes
947 # Check whether --enable-multilib or --disable-multilib was given.
948 if test "${enable_multilib+set}" = set; then
949 enableval="$enable_multilib"
950 case "${enableval}" in
953 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
960 if test "${srcdir}" = "."; then
961 if test "${with_target_subdir}" != "."; then
962 libgcj_basedir="${srcdir}/${with_multisrctop}../."
964 libgcj_basedir="${srcdir}/${with_multisrctop}."
967 libgcj_basedir="${srcdir}/."
972 # Make sure we can run config.sub.
973 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
974 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
977 echo $ac_n "checking host system type""... $ac_c" 1>&6
978 echo "configure:979: checking host system type" >&5
981 case "$host_alias" in
985 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
986 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
988 *) host_alias=$nonopt ;;
992 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
993 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
994 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
995 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
996 echo "$ac_t""$host" 1>&6
1002 # Extract the first word of "gcc", so it can be a program name with args.
1003 set dummy gcc; ac_word=$2
1004 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1005 echo "configure:1006: checking for $ac_word" >&5
1006 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1007 echo $ac_n "(cached) $ac_c" 1>&6
1009 if test -n "$CC"; then
1010 ac_cv_prog_CC="$CC" # Let the user override the test.
1012 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1014 for ac_dir in $ac_dummy; do
1015 test -z "$ac_dir" && ac_dir=.
1016 if test -f $ac_dir/$ac_word; then
1025 if test -n "$CC"; then
1026 echo "$ac_t""$CC" 1>&6
1028 echo "$ac_t""no" 1>&6
1031 if test -z "$CC"; then
1032 # Extract the first word of "cc", so it can be a program name with args.
1033 set dummy cc; ac_word=$2
1034 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1035 echo "configure:1036: checking for $ac_word" >&5
1036 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1037 echo $ac_n "(cached) $ac_c" 1>&6
1039 if test -n "$CC"; then
1040 ac_cv_prog_CC="$CC" # Let the user override the test.
1042 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1045 for ac_dir in $ac_dummy; do
1046 test -z "$ac_dir" && ac_dir=.
1047 if test -f $ac_dir/$ac_word; then
1048 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1049 ac_prog_rejected=yes
1057 if test $ac_prog_rejected = yes; then
1058 # We found a bogon in the path, so make sure we never use it.
1059 set dummy $ac_cv_prog_CC
1061 if test $# -gt 0; then
1062 # We chose a different compiler from the bogus one.
1063 # However, it has the same basename, so the bogon will be chosen
1064 # first if we set CC to just the basename; use the full file name.
1066 set dummy "$ac_dir/$ac_word" "$@"
1074 if test -n "$CC"; then
1075 echo "$ac_t""$CC" 1>&6
1077 echo "$ac_t""no" 1>&6
1080 if test -z "$CC"; then
1081 case "`uname -s`" in
1083 # Extract the first word of "cl", so it can be a program name with args.
1084 set dummy cl; ac_word=$2
1085 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1086 echo "configure:1087: checking for $ac_word" >&5
1087 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1088 echo $ac_n "(cached) $ac_c" 1>&6
1090 if test -n "$CC"; then
1091 ac_cv_prog_CC="$CC" # Let the user override the test.
1093 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1095 for ac_dir in $ac_dummy; do
1096 test -z "$ac_dir" && ac_dir=.
1097 if test -f $ac_dir/$ac_word; then
1106 if test -n "$CC"; then
1107 echo "$ac_t""$CC" 1>&6
1109 echo "$ac_t""no" 1>&6
1114 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1118 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1119 echo "configure:1120: checking whether we are using GNU C" >&5
1120 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1121 echo $ac_n "(cached) $ac_c" 1>&6
1123 cat > conftest.c <<EOF
1128 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1129: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1135 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1137 if test $ac_cv_prog_gcc = yes; then
1143 ac_test_CFLAGS="${CFLAGS+set}"
1144 ac_save_CFLAGS="$CFLAGS"
1146 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1147 echo "configure:1148: checking whether ${CC-cc} accepts -g" >&5
1148 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1149 echo $ac_n "(cached) $ac_c" 1>&6
1151 echo 'void f(){}' > conftest.c
1152 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1161 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1162 if test "$ac_test_CFLAGS" = set; then
1163 CFLAGS="$ac_save_CFLAGS"
1164 elif test $ac_cv_prog_cc_g = yes; then
1165 if test "$GCC" = yes; then
1171 if test "$GCC" = yes; then
1178 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1180 # Extract the first word of "$ac_prog", so it can be a program name with args.
1181 set dummy $ac_prog; ac_word=$2
1182 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1183 echo "configure:1184: checking for $ac_word" >&5
1184 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1185 echo $ac_n "(cached) $ac_c" 1>&6
1187 if test -n "$CXX"; then
1188 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1190 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1192 for ac_dir in $ac_dummy; do
1193 test -z "$ac_dir" && ac_dir=.
1194 if test -f $ac_dir/$ac_word; then
1195 ac_cv_prog_CXX="$ac_prog"
1202 CXX="$ac_cv_prog_CXX"
1203 if test -n "$CXX"; then
1204 echo "$ac_t""$CXX" 1>&6
1206 echo "$ac_t""no" 1>&6
1209 test -n "$CXX" && break
1211 test -n "$CXX" || CXX="gcc"
1215 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1216 echo "configure:1217: checking whether we are using GNU C++" >&5
1217 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1218 echo $ac_n "(cached) $ac_c" 1>&6
1220 cat > conftest.C <<EOF
1225 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1226: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1232 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1234 if test $ac_cv_prog_gxx = yes; then
1240 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1241 ac_save_CXXFLAGS="$CXXFLAGS"
1243 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1244 echo "configure:1245: checking whether ${CXX-g++} accepts -g" >&5
1245 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1246 echo $ac_n "(cached) $ac_c" 1>&6
1248 echo 'void f(){}' > conftest.cc
1249 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1250 ac_cv_prog_cxx_g=yes
1258 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1259 if test "$ac_test_CXXFLAGS" = set; then
1260 CXXFLAGS="$ac_save_CXXFLAGS"
1261 elif test $ac_cv_prog_cxx_g = yes; then
1262 if test "$GXX" = yes; then
1268 if test "$GXX" = yes; then
1282 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1283 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1285 cat >> confdefs.h <<EOF
1286 #define PACKAGE "$PACKAGE"
1289 cat >> confdefs.h <<EOF
1290 #define VERSION "$VERSION"
1295 missing_dir=`cd $ac_aux_dir && pwd`
1296 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1297 echo "configure:1298: checking for working aclocal" >&5
1298 # Run test in a subshell; some versions of sh will print an error if
1299 # an executable is not found, even if stderr is redirected.
1300 # Redirect stdin to placate older versions of autoconf. Sigh.
1301 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1303 echo "$ac_t""found" 1>&6
1305 ACLOCAL="$missing_dir/missing aclocal"
1306 echo "$ac_t""missing" 1>&6
1309 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1310 echo "configure:1311: checking for working autoconf" >&5
1311 # Run test in a subshell; some versions of sh will print an error if
1312 # an executable is not found, even if stderr is redirected.
1313 # Redirect stdin to placate older versions of autoconf. Sigh.
1314 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1316 echo "$ac_t""found" 1>&6
1318 AUTOCONF="$missing_dir/missing autoconf"
1319 echo "$ac_t""missing" 1>&6
1322 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1323 echo "configure:1324: checking for working automake" >&5
1324 # Run test in a subshell; some versions of sh will print an error if
1325 # an executable is not found, even if stderr is redirected.
1326 # Redirect stdin to placate older versions of autoconf. Sigh.
1327 if (automake --version) < /dev/null > /dev/null 2>&1; then
1329 echo "$ac_t""found" 1>&6
1331 AUTOMAKE="$missing_dir/missing automake"
1332 echo "$ac_t""missing" 1>&6
1335 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1336 echo "configure:1337: checking for working autoheader" >&5
1337 # Run test in a subshell; some versions of sh will print an error if
1338 # an executable is not found, even if stderr is redirected.
1339 # Redirect stdin to placate older versions of autoconf. Sigh.
1340 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1341 AUTOHEADER=autoheader
1342 echo "$ac_t""found" 1>&6
1344 AUTOHEADER="$missing_dir/missing autoheader"
1345 echo "$ac_t""missing" 1>&6
1348 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1349 echo "configure:1350: checking for working makeinfo" >&5
1350 # Run test in a subshell; some versions of sh will print an error if
1351 # an executable is not found, even if stderr is redirected.
1352 # Redirect stdin to placate older versions of autoconf. Sigh.
1353 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1355 echo "$ac_t""found" 1>&6
1357 MAKEINFO="$missing_dir/missing makeinfo"
1358 echo "$ac_t""missing" 1>&6
1363 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we dont
1364 # run it explicitly here, it will be run implicitly before
1365 # LIBGCJ_CONFIGURE, which doesn't work because that means that it will
1366 # be run before AC_CANONICAL_HOST.
1367 echo $ac_n "checking build system type""... $ac_c" 1>&6
1368 echo "configure:1369: checking build system type" >&5
1371 case "$build_alias" in
1374 NONE) build_alias=$host_alias ;;
1375 *) build_alias=$nonopt ;;
1379 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1380 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1381 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1382 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1383 echo "$ac_t""$build" 1>&6
1386 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1387 set dummy ${ac_tool_prefix}as; ac_word=$2
1388 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1389 echo "configure:1390: checking for $ac_word" >&5
1390 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1391 echo $ac_n "(cached) $ac_c" 1>&6
1393 if test -n "$AS"; then
1394 ac_cv_prog_AS="$AS" # Let the user override the test.
1396 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1398 for ac_dir in $ac_dummy; do
1399 test -z "$ac_dir" && ac_dir=.
1400 if test -f $ac_dir/$ac_word; then
1401 ac_cv_prog_AS="${ac_tool_prefix}as"
1406 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1410 if test -n "$AS"; then
1411 echo "$ac_t""$AS" 1>&6
1413 echo "$ac_t""no" 1>&6
1418 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1419 set dummy ${ac_tool_prefix}ar; ac_word=$2
1420 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1421 echo "configure:1422: checking for $ac_word" >&5
1422 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1423 echo $ac_n "(cached) $ac_c" 1>&6
1425 if test -n "$AR"; then
1426 ac_cv_prog_AR="$AR" # Let the user override the test.
1428 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1430 for ac_dir in $ac_dummy; do
1431 test -z "$ac_dir" && ac_dir=.
1432 if test -f $ac_dir/$ac_word; then
1433 ac_cv_prog_AR="${ac_tool_prefix}ar"
1438 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1442 if test -n "$AR"; then
1443 echo "$ac_t""$AR" 1>&6
1445 echo "$ac_t""no" 1>&6
1450 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1451 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1452 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1453 echo "configure:1454: checking for $ac_word" >&5
1454 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1455 echo $ac_n "(cached) $ac_c" 1>&6
1457 if test -n "$RANLIB"; then
1458 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1460 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1462 for ac_dir in $ac_dummy; do
1463 test -z "$ac_dir" && ac_dir=.
1464 if test -f $ac_dir/$ac_word; then
1465 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1472 RANLIB="$ac_cv_prog_RANLIB"
1473 if test -n "$RANLIB"; then
1474 echo "$ac_t""$RANLIB" 1>&6
1476 echo "$ac_t""no" 1>&6
1480 if test -z "$ac_cv_prog_RANLIB"; then
1481 if test -n "$ac_tool_prefix"; then
1482 # Extract the first word of "ranlib", so it can be a program name with args.
1483 set dummy ranlib; ac_word=$2
1484 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1485 echo "configure:1486: checking for $ac_word" >&5
1486 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1487 echo $ac_n "(cached) $ac_c" 1>&6
1489 if test -n "$RANLIB"; then
1490 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1492 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1494 for ac_dir in $ac_dummy; do
1495 test -z "$ac_dir" && ac_dir=.
1496 if test -f $ac_dir/$ac_word; then
1497 ac_cv_prog_RANLIB="ranlib"
1502 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1505 RANLIB="$ac_cv_prog_RANLIB"
1506 if test -n "$RANLIB"; then
1507 echo "$ac_t""$RANLIB" 1>&6
1509 echo "$ac_t""no" 1>&6
1518 # Find a good install program. We prefer a C program (faster),
1519 # so one script is as good as another. But avoid the broken or
1520 # incompatible versions:
1521 # SysV /etc/install, /usr/sbin/install
1522 # SunOS /usr/etc/install
1523 # IRIX /sbin/install
1525 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1526 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1527 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1528 # ./install, which can be erroneously created by make from ./install.sh.
1529 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1530 echo "configure:1531: checking for a BSD compatible install" >&5
1531 if test -z "$INSTALL"; then
1532 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1533 echo $ac_n "(cached) $ac_c" 1>&6
1535 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1536 for ac_dir in $PATH; do
1537 # Account for people who put trailing slashes in PATH elements.
1539 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1541 # OSF1 and SCO ODT 3.0 have their own names for install.
1542 # Don't use installbsd from OSF since it installs stuff as root
1544 for ac_prog in ginstall scoinst install; do
1545 if test -f $ac_dir/$ac_prog; then
1546 if test $ac_prog = install &&
1547 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1548 # AIX install. It has an incompatible calling convention.
1551 ac_cv_path_install="$ac_dir/$ac_prog -c"
1562 if test "${ac_cv_path_install+set}" = set; then
1563 INSTALL="$ac_cv_path_install"
1565 # As a last resort, use the slow shell script. We don't cache a
1566 # path for INSTALL within a source directory, because that will
1567 # break other packages using the cache if that directory is
1568 # removed, or if the path is relative.
1569 INSTALL="$ac_install_sh"
1572 echo "$ac_t""$INSTALL" 1>&6
1574 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1575 # It thinks the first close brace ends the variable substitution.
1576 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1578 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1580 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1583 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1584 echo "configure:1585: checking whether to enable maintainer-specific portions of Makefiles" >&5
1585 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1586 if test "${enable_maintainer_mode+set}" = set; then
1587 enableval="$enable_maintainer_mode"
1588 USE_MAINTAINER_MODE=$enableval
1590 USE_MAINTAINER_MODE=no
1593 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1596 if test $USE_MAINTAINER_MODE = yes; then
1597 MAINTAINER_MODE_TRUE=
1598 MAINTAINER_MODE_FALSE='#'
1600 MAINTAINER_MODE_TRUE='#'
1601 MAINTAINER_MODE_FALSE=
1603 MAINT=$MAINTAINER_MODE_TRUE
1607 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1608 # at least currently, we never actually build a program, so we never
1609 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1610 # fails, because we are probably configuring with a cross compiler
1611 # which cant create executables. So we include AC_EXEEXT to keep
1612 # automake happy, but we dont execute it, since we dont care about
1617 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1618 echo "configure:1619: checking for executable suffix" >&5
1619 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1620 echo $ac_n "(cached) $ac_c" 1>&6
1622 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1626 echo 'int main () { return 0; }' > conftest.$ac_ext
1628 if { (eval echo configure:1629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1629 for file in conftest.*; do
1631 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1632 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1636 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1639 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1644 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1645 echo "$ac_t""${ac_cv_exeext}" 1>&6
1650 # configure.host sets the following important variables
1651 # libgcj_cflags - host specific C compiler flags
1652 # libgcj_cxxflags - host specific C++ compiler flags
1653 # libgcj_javaflags - host specific Java compiler flags
1659 . ${libgcj_basedir}/configure.host
1661 case ${libgcj_basedir} in
1662 /* | A-Za-z:/\\*) libgcj_flagbasedir=${libgcj_basedir} ;;
1663 *) libgcj_flagbasedir='$(top_builddir)/'${libgcj_basedir} ;;
1666 LIBGCJ_CFLAGS="${libgcj_cflags}"
1667 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
1668 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
1678 # Only use libltdl for native builds.
1679 if test -z "${with_cross_host}"; then
1680 case $enable_ltdl_convenience in
1681 no) { echo "configure: error: this package needs a convenience libltdl" 1>&2; exit 1; } ;;
1682 "") enable_ltdl_convenience=yes
1683 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
1685 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
1686 INCLTDL='-I${top_srcdir}/''libltdl'
1690 cat >> confdefs.h <<\EOF
1694 # Sigh. Libtool's macro doesn't do the right thing.
1695 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
1700 # Check whether --enable-shared or --disable-shared was given.
1701 if test "${enable_shared+set}" = set; then
1702 enableval="$enable_shared"
1703 p=${PACKAGE-default}
1705 yes) enable_shared=yes ;;
1706 no) enable_shared=no ;;
1709 # Look at the argument we got. We use all the common list separators.
1710 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1711 for pkg in $enableval; do
1712 if test "X$pkg" = "X$p"; then
1723 # Check whether --enable-static or --disable-static was given.
1724 if test "${enable_static+set}" = set; then
1725 enableval="$enable_static"
1726 p=${PACKAGE-default}
1728 yes) enable_static=yes ;;
1729 no) enable_static=no ;;
1732 # Look at the argument we got. We use all the common list separators.
1733 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1734 for pkg in $enableval; do
1735 if test "X$pkg" = "X$p"; then
1746 # Check whether --enable-fast-install or --disable-fast-install was given.
1747 if test "${enable_fast_install+set}" = set; then
1748 enableval="$enable_fast_install"
1749 p=${PACKAGE-default}
1751 yes) enable_fast_install=yes ;;
1752 no) enable_fast_install=no ;;
1754 enable_fast_install=no
1755 # Look at the argument we got. We use all the common list separators.
1756 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1757 for pkg in $enableval; do
1758 if test "X$pkg" = "X$p"; then
1759 enable_fast_install=yes
1766 enable_fast_install=yes
1769 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1770 if test "${with_gnu_ld+set}" = set; then
1771 withval="$with_gnu_ld"
1772 test "$withval" = no || with_gnu_ld=yes
1778 if test "$GCC" = yes; then
1779 # Check if gcc -print-prog-name=ld gives a path.
1780 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1781 echo "configure:1782: checking for ld used by GCC" >&5
1784 # gcc leaves a trailing carriage return which upsets mingw
1785 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1787 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1790 # Accept absolute paths.
1791 [\\/]* | [A-Za-z]:[\\/]*)
1792 re_direlt='/[^/][^/]*/\.\./'
1793 # Canonicalize the path of ld
1794 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1795 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1796 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1798 test -z "$LD" && LD="$ac_prog"
1801 # If it fails, then pretend we aren't using GCC.
1805 # If it is relative, then search for the first ld in PATH.
1809 elif test "$with_gnu_ld" = yes; then
1810 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1811 echo "configure:1812: checking for GNU ld" >&5
1813 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1814 echo "configure:1815: checking for non-GNU ld" >&5
1816 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1817 echo $ac_n "(cached) $ac_c" 1>&6
1819 if test -z "$LD"; then
1820 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1821 for ac_dir in $PATH; do
1822 test -z "$ac_dir" && ac_dir=.
1823 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1824 lt_cv_path_LD="$ac_dir/$ac_prog"
1825 # Check to see if the program is GNU ld. I'd rather use --version,
1826 # but apparently some GNU ld's only accept -v.
1827 # Break only if it was the GNU/non-GNU ld that we prefer.
1828 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1829 test "$with_gnu_ld" != no && break
1831 test "$with_gnu_ld" != yes && break
1837 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1842 if test -n "$LD"; then
1843 echo "$ac_t""$LD" 1>&6
1845 echo "$ac_t""no" 1>&6
1847 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1848 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1849 echo "configure:1850: checking if the linker ($LD) is GNU ld" >&5
1850 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1851 echo $ac_n "(cached) $ac_c" 1>&6
1853 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1854 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1855 lt_cv_prog_gnu_ld=yes
1857 lt_cv_prog_gnu_ld=no
1861 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1862 with_gnu_ld=$lt_cv_prog_gnu_ld
1865 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1866 echo "configure:1867: checking for $LD option to reload object files" >&5
1867 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1868 echo $ac_n "(cached) $ac_c" 1>&6
1870 lt_cv_ld_reload_flag='-r'
1873 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1874 reload_flag=$lt_cv_ld_reload_flag
1875 test -n "$reload_flag" && reload_flag=" $reload_flag"
1877 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1878 echo "configure:1879: checking for BSD-compatible nm" >&5
1879 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1880 echo $ac_n "(cached) $ac_c" 1>&6
1882 if test -n "$NM"; then
1883 # Let the user override the test.
1886 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1887 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1888 test -z "$ac_dir" && ac_dir=.
1889 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1890 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1891 # Check to see if the nm accepts a BSD-compat flag.
1892 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1893 # nm: unknown option "B" ignored
1894 # Tru64's nm complains that /dev/null is an invalid object file
1895 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1896 lt_cv_path_NM="$tmp_nm -B"
1898 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1899 lt_cv_path_NM="$tmp_nm -p"
1902 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1903 continue # so that we can try to find one that supports BSD flags
1908 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1913 echo "$ac_t""$NM" 1>&6
1915 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1916 echo "configure:1917: checking how to recognise dependant libraries" >&5
1917 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1918 echo $ac_n "(cached) $ac_c" 1>&6
1920 lt_cv_file_magic_cmd='$MAGIC_CMD'
1921 lt_cv_file_magic_test_file=
1922 lt_cv_deplibs_check_method='unknown'
1923 # Need to set the preceding variable on all platforms that support
1924 # interlibrary dependencies.
1925 # 'none' -- dependencies not supported.
1926 # `unknown' -- same as none, but documents that we really don't know.
1927 # 'pass_all' -- all dependencies passed with no checks.
1928 # 'test_compile' -- check by making test program.
1929 # 'file_magic [regex]' -- check by looking for files in library path
1930 # which responds to the $file_magic_cmd with a given egrep regex.
1931 # If you have `file' or equivalent on your system and you're not sure
1932 # whether `pass_all' will *always* work, you probably want this one.
1936 lt_cv_deplibs_check_method=pass_all
1940 lt_cv_deplibs_check_method=pass_all
1944 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1945 lt_cv_file_magic_cmd='/usr/bin/file -L'
1946 lt_cv_file_magic_test_file=/shlib/libc.so
1949 cygwin* | mingw* |pw32*)
1950 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1951 lt_cv_file_magic_cmd='$OBJDUMP -f'
1954 darwin* | rhapsody*)
1955 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1956 lt_cv_file_magic_cmd='/usr/bin/file -L'
1958 rhapsody* | darwin1.012)
1959 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1962 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1968 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1971 # Not sure whether the presence of OpenBSD here was a mistake.
1972 # Let's accept both of them until this is cleared up.
1973 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1974 lt_cv_file_magic_cmd=/usr/bin/file
1975 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1979 lt_cv_deplibs_check_method=pass_all
1984 lt_cv_deplibs_check_method=pass_all
1988 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1989 lt_cv_file_magic_cmd=/usr/bin/file
1990 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1996 # this will be overridden with pass_all, but let us keep it just in case
1997 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2001 *-32|*"-32 ") libmagic=32-bit;;
2002 *-n32|*"-n32 ") libmagic=N32;;
2003 *-64|*"-64 ") libmagic=64-bit;;
2004 *) libmagic=never-match;;
2006 # this will be overridden with pass_all, but let us keep it just in case
2007 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2010 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2011 lt_cv_deplibs_check_method=pass_all
2014 # This must be Linux ELF.
2017 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2018 lt_cv_deplibs_check_method=pass_all ;;
2020 # glibc up to 2.1.1 does not perform some relocations on ARM
2021 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2023 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2027 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2028 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2030 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2035 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2036 lt_cv_file_magic_cmd=/usr/bin/file
2037 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2040 osf3* | osf4* | osf5*)
2041 # this will be overridden with pass_all, but let us keep it just in case
2042 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2043 lt_cv_file_magic_test_file=/shlib/libc.so
2044 lt_cv_deplibs_check_method=pass_all
2048 lt_cv_deplibs_check_method=pass_all
2052 lt_cv_deplibs_check_method=pass_all
2053 lt_cv_file_magic_test_file=/lib/libc.so
2056 sysv5uw[78]* | sysv4*uw2*)
2057 lt_cv_deplibs_check_method=pass_all
2060 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2061 case $host_vendor in
2063 lt_cv_deplibs_check_method=pass_all
2066 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]'
2067 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2075 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2076 file_magic_cmd=$lt_cv_file_magic_cmd
2077 deplibs_check_method=$lt_cv_deplibs_check_method
2079 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2080 echo "configure:2081: checking for object suffix" >&5
2081 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2082 echo $ac_n "(cached) $ac_c" 1>&6
2085 echo 'int i = 1;' > conftest.$ac_ext
2086 if { (eval echo configure:2087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2087 for ac_file in conftest.*; do
2090 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2094 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2099 echo "$ac_t""$ac_cv_objext" 1>&6
2100 OBJEXT=$ac_cv_objext
2101 ac_objext=$ac_cv_objext
2103 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2105 # Only perform the check for file, if the check method requires it
2106 case $deplibs_check_method in
2108 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2109 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2110 echo "configure:2111: checking for ${ac_tool_prefix}file" >&5
2111 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2112 echo $ac_n "(cached) $ac_c" 1>&6
2116 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2119 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2122 ac_save_MAGIC_CMD="$MAGIC_CMD"
2123 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2124 ac_dummy="/usr/bin:$PATH"
2125 for ac_dir in $ac_dummy; do
2126 test -z "$ac_dir" && ac_dir=.
2127 if test -f $ac_dir/${ac_tool_prefix}file; then
2128 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2129 if test -n "$file_magic_test_file"; then
2130 case $deplibs_check_method in
2132 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2133 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2134 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2135 egrep "$file_magic_regex" > /dev/null; then
2140 *** Warning: the command libtool uses to detect shared libraries,
2141 *** $file_magic_cmd, produces output that libtool cannot recognize.
2142 *** The result is that libtool may fail to recognize shared libraries
2143 *** as such. This will affect the creation of libtool libraries that
2144 *** depend on shared libraries, but programs linked with such libtool
2145 *** libraries will work regardless of this problem. Nevertheless, you
2146 *** may want to report the problem to your system manager and/or to
2147 *** bug-libtool@gnu.org
2157 MAGIC_CMD="$ac_save_MAGIC_CMD"
2162 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2163 if test -n "$MAGIC_CMD"; then
2164 echo "$ac_t""$MAGIC_CMD" 1>&6
2166 echo "$ac_t""no" 1>&6
2169 if test -z "$lt_cv_path_MAGIC_CMD"; then
2170 if test -n "$ac_tool_prefix"; then
2171 echo $ac_n "checking for file""... $ac_c" 1>&6
2172 echo "configure:2173: checking for file" >&5
2173 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2174 echo $ac_n "(cached) $ac_c" 1>&6
2178 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2181 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2184 ac_save_MAGIC_CMD="$MAGIC_CMD"
2185 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2186 ac_dummy="/usr/bin:$PATH"
2187 for ac_dir in $ac_dummy; do
2188 test -z "$ac_dir" && ac_dir=.
2189 if test -f $ac_dir/file; then
2190 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2191 if test -n "$file_magic_test_file"; then
2192 case $deplibs_check_method in
2194 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2195 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2196 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2197 egrep "$file_magic_regex" > /dev/null; then
2202 *** Warning: the command libtool uses to detect shared libraries,
2203 *** $file_magic_cmd, produces output that libtool cannot recognize.
2204 *** The result is that libtool may fail to recognize shared libraries
2205 *** as such. This will affect the creation of libtool libraries that
2206 *** depend on shared libraries, but programs linked with such libtool
2207 *** libraries will work regardless of this problem. Nevertheless, you
2208 *** may want to report the problem to your system manager and/or to
2209 *** bug-libtool@gnu.org
2219 MAGIC_CMD="$ac_save_MAGIC_CMD"
2224 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2225 if test -n "$MAGIC_CMD"; then
2226 echo "$ac_t""$MAGIC_CMD" 1>&6
2228 echo "$ac_t""no" 1>&6
2240 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2241 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2242 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2243 echo "configure:2244: checking for $ac_word" >&5
2244 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2245 echo $ac_n "(cached) $ac_c" 1>&6
2247 if test -n "$RANLIB"; then
2248 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2250 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2252 for ac_dir in $ac_dummy; do
2253 test -z "$ac_dir" && ac_dir=.
2254 if test -f $ac_dir/$ac_word; then
2255 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2262 RANLIB="$ac_cv_prog_RANLIB"
2263 if test -n "$RANLIB"; then
2264 echo "$ac_t""$RANLIB" 1>&6
2266 echo "$ac_t""no" 1>&6
2270 if test -z "$ac_cv_prog_RANLIB"; then
2271 if test -n "$ac_tool_prefix"; then
2272 # Extract the first word of "ranlib", so it can be a program name with args.
2273 set dummy ranlib; ac_word=$2
2274 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2275 echo "configure:2276: checking for $ac_word" >&5
2276 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2277 echo $ac_n "(cached) $ac_c" 1>&6
2279 if test -n "$RANLIB"; then
2280 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2282 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2284 for ac_dir in $ac_dummy; do
2285 test -z "$ac_dir" && ac_dir=.
2286 if test -f $ac_dir/$ac_word; then
2287 ac_cv_prog_RANLIB="ranlib"
2292 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2295 RANLIB="$ac_cv_prog_RANLIB"
2296 if test -n "$RANLIB"; then
2297 echo "$ac_t""$RANLIB" 1>&6
2299 echo "$ac_t""no" 1>&6
2307 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2308 set dummy ${ac_tool_prefix}strip; ac_word=$2
2309 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2310 echo "configure:2311: checking for $ac_word" >&5
2311 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2312 echo $ac_n "(cached) $ac_c" 1>&6
2314 if test -n "$STRIP"; then
2315 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2317 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2319 for ac_dir in $ac_dummy; do
2320 test -z "$ac_dir" && ac_dir=.
2321 if test -f $ac_dir/$ac_word; then
2322 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2329 STRIP="$ac_cv_prog_STRIP"
2330 if test -n "$STRIP"; then
2331 echo "$ac_t""$STRIP" 1>&6
2333 echo "$ac_t""no" 1>&6
2337 if test -z "$ac_cv_prog_STRIP"; then
2338 if test -n "$ac_tool_prefix"; then
2339 # Extract the first word of "strip", so it can be a program name with args.
2340 set dummy strip; ac_word=$2
2341 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2342 echo "configure:2343: checking for $ac_word" >&5
2343 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2344 echo $ac_n "(cached) $ac_c" 1>&6
2346 if test -n "$STRIP"; then
2347 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2349 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2351 for ac_dir in $ac_dummy; do
2352 test -z "$ac_dir" && ac_dir=.
2353 if test -f $ac_dir/$ac_word; then
2354 ac_cv_prog_STRIP="strip"
2359 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2362 STRIP="$ac_cv_prog_STRIP"
2363 if test -n "$STRIP"; then
2364 echo "$ac_t""$STRIP" 1>&6
2366 echo "$ac_t""no" 1>&6
2375 # Check for any special flags to pass to ltconfig.
2376 libtool_flags="--cache-file=$cache_file"
2377 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2378 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2379 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2380 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2381 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2382 libtool_flags="$libtool_flags --enable-dlopen"
2384 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2385 if test "${enable_libtool_lock+set}" = set; then
2386 enableval="$enable_libtool_lock"
2390 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2391 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2393 # Check whether --with-pic or --without-pic was given.
2394 if test "${with_pic+set}" = set; then
2401 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2402 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2404 # Some flags need to be propagated to the compiler or linker for good
2408 # Find out which ABI we are using.
2409 echo '#line 2410 "configure"' > conftest.$ac_ext
2410 if { (eval echo configure:2411: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2411 case `/usr/bin/file conftest.$ac_objext` in
2427 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2428 SAVE_CFLAGS="$CFLAGS"
2429 CFLAGS="$CFLAGS -belf"
2430 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2431 echo "configure:2432: checking whether the C compiler needs -belf" >&5
2432 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2433 echo $ac_n "(cached) $ac_c" 1>&6
2437 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2438 ac_cpp='$CPP $CPPFLAGS'
2439 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2440 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2441 cross_compiling=$ac_cv_prog_cc_cross
2443 cat > conftest.$ac_ext <<EOF
2444 #line 2445 "configure"
2445 #include "confdefs.h"
2451 if { (eval echo configure:2452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2453 lt_cv_cc_needs_belf=yes
2455 echo "configure: failed program was:" >&5
2456 cat conftest.$ac_ext >&5
2458 lt_cv_cc_needs_belf=no
2462 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2463 ac_cpp='$CPP $CPPFLAGS'
2464 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2465 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2466 cross_compiling=$ac_cv_prog_cc_cross
2470 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2471 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2472 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2473 CFLAGS="$SAVE_CFLAGS"
2480 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2481 echo "configure:2482: checking how to run the C++ preprocessor" >&5
2482 if test -z "$CXXCPP"; then
2483 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2484 echo $ac_n "(cached) $ac_c" 1>&6
2487 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2488 ac_cpp='$CXXCPP $CPPFLAGS'
2489 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2490 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2491 cross_compiling=$ac_cv_prog_cxx_cross
2492 CXXCPP="${CXX-g++} -E"
2493 cat > conftest.$ac_ext <<EOF
2494 #line 2495 "configure"
2495 #include "confdefs.h"
2498 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2499 { (eval echo configure:2500: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2500 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2501 if test -z "$ac_err"; then
2505 echo "configure: failed program was:" >&5
2506 cat conftest.$ac_ext >&5
2511 ac_cv_prog_CXXCPP="$CXXCPP"
2513 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2514 ac_cpp='$CPP $CPPFLAGS'
2515 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2516 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2517 cross_compiling=$ac_cv_prog_cc_cross
2520 CXXCPP="$ac_cv_prog_CXXCPP"
2521 echo "$ac_t""$CXXCPP" 1>&6
2524 # Save cache, so that ltconfig can load it
2525 cat > confcache <<\EOF
2526 # This file is a shell script that caches the results of configure
2527 # tests run on this system so they can be shared between configure
2528 # scripts and configure runs. It is not useful on other systems.
2529 # If it contains results you don't want to keep, you may remove or edit it.
2531 # By default, configure uses ./config.cache as the cache file,
2532 # creating it if it does not exist already. You can give configure
2533 # the --cache-file=FILE option to use a different cache file; that is
2534 # what configure does when it calls configure scripts in
2535 # subdirectories, so they share the cache.
2536 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2537 # config.status only pays attention to the cache file if you give it the
2538 # --recheck option to rerun configure.
2541 # The following way of writing the cache mishandles newlines in values,
2542 # but we know of no workaround that is simple, portable, and efficient.
2543 # So, don't put newlines in cache variables' values.
2544 # Ultrix sh set writes to stderr and can't be redirected directly,
2545 # and sets the high bit in the cache file unless we assign to the vars.
2547 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2549 # `set' does not quote correctly, so add quotes (double-quote substitution
2550 # turns \\\\ into \\, and sed turns \\ into \).
2552 -e "s/'/'\\\\''/g" \
2553 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2556 # `set' quotes correctly as required by POSIX, so do not add quotes.
2557 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2560 if cmp -s $cache_file confcache; then
2563 if test -w $cache_file; then
2564 echo "updating cache $cache_file"
2565 cat confcache > $cache_file
2567 echo "not updating unwritable cache $cache_file"
2573 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2574 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2575 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2576 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2577 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2578 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2579 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2580 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2581 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2582 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2584 # Reload cache, that may have been modified by ltconfig
2585 if test -r "$cache_file"; then
2586 echo "loading cache $cache_file"
2589 echo "creating cache $cache_file"
2594 # This can be used to rebuild libtool when needed
2595 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2597 # Always use our own libtool.
2598 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2600 # Redirect the config.log output again, so that the ltconfig log is not
2601 # clobbered by the next message.
2602 exec 5>>./config.log
2606 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2608 lt_save_CFLAGS="$CFLAGS"
2609 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2610 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2611 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2612 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2613 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2614 deplibs_check_method="$deplibs_check_method" \
2615 file_magic_cmd="$file_magic_cmd" \
2616 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2617 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2618 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2620 CFLAGS="$lt_save_CFLAGS"
2622 # Redirect the config.log output again, so that the ltconfig log is not
2623 # clobbered by the next message.
2624 exec 5>>./config.log
2634 if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
2643 if test -d $srcdir/testsuite; then
2645 TESTSUBDIR_FALSE='#'
2651 # Check whether --enable-fast-character or --disable-fast-character was given.
2652 if test "${enable_fast_character+set}" = set; then
2653 enableval="$enable_fast_character"
2657 cat >> confdefs.h <<\EOF
2658 #define COMPACT_CHARACTER 1
2664 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
2665 if test "${enable_getenv_properties+set}" = set; then
2666 enableval="$enable_getenv_properties"
2671 if test -z "$enable_getenv_properties"; then
2672 enable_getenv_properties=${enable_getenv_properties_default-yes}
2674 if test "$enable_getenv_properties" = no; then
2675 cat >> confdefs.h <<\EOF
2676 #define DISABLE_GETENV_PROPERTIES 1
2682 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
2683 if test "${enable_hash_synchronization+set}" = set; then
2684 enableval="$enable_hash_synchronization"
2689 if test -z "$enable_hash_synchronization"; then
2690 enable_hash_synchronization=$enable_hash_synchronization_default
2696 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
2697 if test "${enable_libgcj_debug+set}" = set; then
2698 enableval="$enable_libgcj_debug"
2699 if test "$enable_libgcj_debug" = yes; then
2700 cat >> confdefs.h <<\EOF
2709 # Check whether --enable-interpreter or --disable-interpreter was given.
2710 if test "${enable_interpreter+set}" = set; then
2711 enableval="$enable_interpreter"
2712 if test "$enable_interpreter" = yes; then
2713 # This can also be set in configure.host.
2714 libgcj_interpreter=yes
2715 elif test "$enable_interpreter" = no; then
2716 libgcj_interpreter=no
2721 if test "$libgcj_interpreter" = yes; then
2722 cat >> confdefs.h <<\EOF
2723 #define INTERPRETER 1
2728 echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
2729 echo "configure:2730: checking for exception model to use" >&5
2732 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2733 ac_cpp='$CXXCPP $CPPFLAGS'
2734 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2735 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2736 cross_compiling=$ac_cv_prog_cxx_cross
2738 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
2739 if test "${enable_sjlj_exceptions+set}" = set; then
2740 enableval="$enable_sjlj_exceptions"
2743 cat > conftest.$ac_ext << EOF
2744 #line 2745 "configure"
2753 old_CXXFLAGS="$CXXFLAGS"
2755 if { (eval echo configure:2756: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2756 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
2757 enable_sjlj_exceptions=yes
2758 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
2759 enable_sjlj_exceptions=no
2762 CXXFLAGS="$old_CXXFLAGS"
2766 if test x$enable_sjlj_exceptions = xyes; then
2767 cat >> confdefs.h <<\EOF
2768 #define SJLJ_EXCEPTIONS 1
2771 ac_exception_model_name=sjlj
2772 elif test x$enable_sjlj_exceptions = xno; then
2773 ac_exception_model_name="call frame"
2775 { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
2778 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2779 ac_cpp='$CPP $CPPFLAGS'
2780 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2781 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2782 cross_compiling=$ac_cv_prog_cc_cross
2784 echo "$ac_t""$ac_exception_model_name" 1>&6
2786 echo $ac_n "checking for data_start""... $ac_c" 1>&6
2787 echo "configure:2788: checking for data_start" >&5
2790 cat > conftest.$ac_ext <<EOF
2791 #line 2792 "configure"
2792 #include "confdefs.h"
2793 extern int data_start;
2795 return ((int) &data_start);
2798 if { (eval echo configure:2799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2800 echo "$ac_t""found it" 1>&6
2802 echo "configure: failed program was:" >&5
2803 cat conftest.$ac_ext >&5
2805 LIBDATASTARTSPEC="-u data_start libgcjdata.a%s"
2806 NEEDS_DATA_START=yes
2807 echo "$ac_t""missing" 1>&6
2812 # Check whether --enable-java-net or --disable-java-net was given.
2813 if test "${enable_java_net+set}" = set; then
2814 enableval="$enable_java_net"
2819 if test -z "$enable_java_net"; then
2820 enable_java_net=${enable_java_net_default-yes}
2822 if test "$enable_java_net" = no; then
2823 cat >> confdefs.h <<\EOF
2824 #define DISABLE_JAVA_NET 1
2829 # Check whether --enable-jvmpi or --disable-jvmpi was given.
2830 if test "${enable_jvmpi+set}" = set; then
2831 enableval="$enable_jvmpi"
2836 if test "$enable_jvmpi" != no; then
2837 cat >> confdefs.h <<\EOF
2838 #define ENABLE_JVMPI 1
2844 # Check whether --with-ecos or --without-ecos was given.
2845 if test "${with_ecos+set}" = set; then
2846 withval="$with_ecos"
2847 TARGET_ECOS="$with_ecos"
2852 case "$TARGET_ECOS" in
2854 FILE_DESCRIPTOR=natFileDescriptorPosix.cc
2855 PROCESS=${PROCESS-Posix}
2858 FILE_DESCRIPTOR=natFileDescriptorEcos.cc
2860 cat >> confdefs.h <<\EOF
2867 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2868 echo "configure:2869: checking how to run the C preprocessor" >&5
2869 # On Suns, sometimes $CPP names a directory.
2870 if test -n "$CPP" && test -d "$CPP"; then
2873 if test -z "$CPP"; then
2874 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2875 echo $ac_n "(cached) $ac_c" 1>&6
2877 # This must be in double quotes, not single quotes, because CPP may get
2878 # substituted into the Makefile and "${CC-cc}" will confuse make.
2880 # On the NeXT, cc -E runs the code through the compiler's parser,
2881 # not just through cpp.
2882 cat > conftest.$ac_ext <<EOF
2883 #line 2884 "configure"
2884 #include "confdefs.h"
2888 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2889 { (eval echo configure:2890: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2890 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2891 if test -z "$ac_err"; then
2895 echo "configure: failed program was:" >&5
2896 cat conftest.$ac_ext >&5
2898 CPP="${CC-cc} -E -traditional-cpp"
2899 cat > conftest.$ac_ext <<EOF
2900 #line 2901 "configure"
2901 #include "confdefs.h"
2905 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2906 { (eval echo configure:2907: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2907 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2908 if test -z "$ac_err"; then
2912 echo "configure: failed program was:" >&5
2913 cat conftest.$ac_ext >&5
2915 CPP="${CC-cc} -nologo -E"
2916 cat > conftest.$ac_ext <<EOF
2917 #line 2918 "configure"
2918 #include "confdefs.h"
2922 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2923 { (eval echo configure:2924: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2924 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2925 if test -z "$ac_err"; then
2929 echo "configure: failed program was:" >&5
2930 cat conftest.$ac_ext >&5
2939 ac_cv_prog_CPP="$CPP"
2941 CPP="$ac_cv_prog_CPP"
2943 ac_cv_prog_CPP="$CPP"
2945 echo "$ac_t""$CPP" 1>&6
2947 cat > conftest.$ac_ext <<EOF
2948 #line 2949 "configure"
2949 #include "confdefs.h"
2952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2953 egrep "uint32_t" >/dev/null 2>&1; then
2955 cat >> confdefs.h <<\EOF
2956 #define HAVE_INT32_DEFINED 1
2962 cat > conftest.$ac_ext <<EOF
2963 #line 2964 "configure"
2964 #include "confdefs.h"
2965 #include <inttypes.h>
2967 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2968 egrep "uint32_t" >/dev/null 2>&1; then
2970 cat >> confdefs.h <<\EOF
2971 #define HAVE_INT32_DEFINED 1
2977 cat > conftest.$ac_ext <<EOF
2978 #line 2979 "configure"
2979 #include "confdefs.h"
2980 #include <sys/types.h>
2982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2983 egrep "u_int32_t" >/dev/null 2>&1; then
2985 cat >> confdefs.h <<\EOF
2986 #define HAVE_BSD_INT32_DEFINED 1
2992 cat > conftest.$ac_ext <<EOF
2993 #line 2994 "configure"
2994 #include "confdefs.h"
2995 #include <sys/config.h>
2997 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2998 egrep "u_int32_t" >/dev/null 2>&1; then
3000 cat >> confdefs.h <<\EOF
3001 #define HAVE_BSD_INT32_DEFINED 1
3009 cat > conftest.$ac_ext <<EOF
3010 #line 3011 "configure"
3011 #include "confdefs.h"
3014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3015 egrep "mktime" >/dev/null 2>&1; then
3017 cat >> confdefs.h <<\EOF
3018 #define HAVE_MKTIME 1
3024 cat > conftest.$ac_ext <<EOF
3025 #line 3026 "configure"
3026 #include "confdefs.h"
3029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3030 egrep "localtime" >/dev/null 2>&1; then
3032 cat >> confdefs.h <<\EOF
3033 #define HAVE_LOCALTIME 1
3040 test -d java || mkdir java
3041 test -d java/io || mkdir java/io
3042 test -d gnu || mkdir gnu
3045 test -d java/lang || mkdir java/lang
3052 LIBGCJTESTSPEC="-L`pwd`/.libs -rpath `pwd`/.libs"
3055 # Check whether --with-system-zlib or --without-system-zlib was given.
3056 if test "${with_system_zlib+set}" = set; then
3057 withval="$with_system_zlib"
3068 echo $ac_n "checking for garbage collector to use""... $ac_c" 1>&6
3069 echo "configure:3070: checking for garbage collector to use" >&5
3070 # Check whether --enable-java-gc or --disable-java-gc was given.
3071 if test "${enable_java_gc+set}" = set; then
3072 enableval="$enable_java_gc"
3088 echo "$ac_t""boehm" 1>&6
3089 GCDEPS='$(top_builddir)/../boehm-gc/libgcjgc.la'
3090 # We include the path to the boehm-gc build directory.
3091 # See Makefile.am to understand why.
3092 GCLIBS="$GCDEPS -L\$(here)/../boehm-gc/$libsubdir"
3093 GCINCS='-I$(top_srcdir)/../boehm-gc/include'
3095 JC1GCSPEC='-fuse-boehm-gc'
3096 GCTESTSPEC="-L`pwd`/../boehm-gc/.libs -rpath `pwd`/../boehm-gc/.libs"
3097 GCINCS="$GCINCS `cat ../boehm-gc/boehm-cflags`"
3100 cat >> confdefs.h <<\EOF
3101 #define HAVE_BOEHM_GC 1
3106 echo "$ac_t""none" 1>&6
3111 { echo "configure: error: unrecognized collector \"$GC\"" 1>&2; exit 1; }
3124 echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3125 echo "configure:3126: checking for thread model used by GCC" >&5
3126 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3127 echo "$ac_t""$THREADS" 1>&6
3137 cat >> confdefs.h <<\EOF
3138 #define LINUX_THREADS 1
3144 decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks)
3145 { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
3148 { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
3160 THREADLIBS=-lpthread
3161 THREADSPEC=-lpthread
3162 THREADOBJS=posix-threads.lo
3163 THREADH=posix-threads.h
3164 # MIT pthreads doesn't seem to have the mutexattr functions.
3165 # But for now we don't check for it. We just assume you aren't
3166 # using MIT pthreads.
3167 cat >> confdefs.h <<\EOF
3168 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
3172 # If we're using the Boehm GC, then we happen to know that it
3173 # defines _REENTRANT, so we don't bother. Eww.
3174 if test "$GC" != boehm; then
3175 cat >> confdefs.h <<\EOF
3176 #define _REENTRANT 1
3180 cat >> confdefs.h <<\EOF
3181 #define _POSIX_PTHREAD_SEMANTICS 1
3187 THREADOBJS=no-threads.lo
3188 THREADH=no-threads.h
3199 # Hash synchronization is only useful with posix threads right now.
3200 if test "$enable_hash_synchronization" = yes && test "$THREADS" = "posix"; then
3201 HASH_SYNC_SPEC=-fhash-synchronization
3202 cat >> confdefs.h <<\EOF
3203 #define JV_HASH_SYNCHRONIZATION 1
3212 if test "$GCC" = yes; then
3224 # We're in the tree with gcc, and need to include some of its headers.
3225 GCC_UNWIND_INCLUDE='-I$(top_srcdir)/../gcc'
3227 if test -n "${with_cross_host}"; then
3228 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
3229 # may not work correctly, because the compiler may not be able to
3232 # We assume newlib. This lets us hard-code the functions we know
3234 cat >> confdefs.h <<\EOF
3235 #define HAVE_MEMMOVE 1
3238 cat >> confdefs.h <<\EOF
3239 #define HAVE_MEMCPY 1
3242 cat >> confdefs.h <<\EOF
3243 #define HAVE_STRERROR 1
3246 cat >> confdefs.h <<\EOF
3247 #define HAVE_GMTIME_R 1
3250 cat >> confdefs.h <<\EOF
3251 #define HAVE_LOCALTIME_R 1
3254 cat >> confdefs.h <<\EOF
3255 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
3258 cat >> confdefs.h <<\EOF
3259 #define HAVE_ALLOCA 1
3263 cat >> confdefs.h <<\EOF
3269 ZLIBTESTSPEC="-L`pwd`/../zlib/.libs -rpath `pwd`/../zlib/.libs"
3271 # If Canadian cross, then don't pick up tools from the build
3273 if test x"$build" != x"$with_cross_host" && x"$build" != x"$target"; then
3276 GCJ="${target_alias}-gcj"
3280 for ac_func in strerror ioctl select fstat open fsync sleep
3282 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3283 echo "configure:3284: checking for $ac_func" >&5
3284 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3285 echo $ac_n "(cached) $ac_c" 1>&6
3287 cat > conftest.$ac_ext <<EOF
3288 #line 3289 "configure"
3289 #include "confdefs.h"
3290 /* System header to define __stub macros and hopefully few prototypes,
3291 which can conflict with char $ac_func(); below. */
3293 /* Override any gcc2 internal prototype to avoid an error. */
3294 /* We use char because int might match the return type of a gcc2
3295 builtin and then its argument prototype would still apply. */
3300 /* The GNU C library defines this for functions which it implements
3301 to always fail with ENOSYS. Some functions are actually named
3302 something starting with __ and the normal name is an alias. */
3303 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3311 if { (eval echo configure:3312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3313 eval "ac_cv_func_$ac_func=yes"
3315 echo "configure: failed program was:" >&5
3316 cat conftest.$ac_ext >&5
3318 eval "ac_cv_func_$ac_func=no"
3323 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3324 echo "$ac_t""yes" 1>&6
3325 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3326 cat >> confdefs.h <<EOF
3327 #define $ac_tr_func 1
3331 echo "$ac_t""no" 1>&6
3335 for ac_func in gmtime_r localtime_r readdir_r getpwuid_r getcwd
3337 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3338 echo "configure:3339: checking for $ac_func" >&5
3339 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3340 echo $ac_n "(cached) $ac_c" 1>&6
3342 cat > conftest.$ac_ext <<EOF
3343 #line 3344 "configure"
3344 #include "confdefs.h"
3345 /* System header to define __stub macros and hopefully few prototypes,
3346 which can conflict with char $ac_func(); below. */
3348 /* Override any gcc2 internal prototype to avoid an error. */
3349 /* We use char because int might match the return type of a gcc2
3350 builtin and then its argument prototype would still apply. */
3355 /* The GNU C library defines this for functions which it implements
3356 to always fail with ENOSYS. Some functions are actually named
3357 something starting with __ and the normal name is an alias. */
3358 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3366 if { (eval echo configure:3367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3368 eval "ac_cv_func_$ac_func=yes"
3370 echo "configure: failed program was:" >&5
3371 cat conftest.$ac_ext >&5
3373 eval "ac_cv_func_$ac_func=no"
3378 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3379 echo "$ac_t""yes" 1>&6
3380 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3381 cat >> confdefs.h <<EOF
3382 #define $ac_tr_func 1
3386 echo "$ac_t""no" 1>&6
3390 for ac_func in access stat mkdir rename rmdir unlink realpath utime chmod
3392 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3393 echo "configure:3394: checking for $ac_func" >&5
3394 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3395 echo $ac_n "(cached) $ac_c" 1>&6
3397 cat > conftest.$ac_ext <<EOF
3398 #line 3399 "configure"
3399 #include "confdefs.h"
3400 /* System header to define __stub macros and hopefully few prototypes,
3401 which can conflict with char $ac_func(); below. */
3403 /* Override any gcc2 internal prototype to avoid an error. */
3404 /* We use char because int might match the return type of a gcc2
3405 builtin and then its argument prototype would still apply. */
3410 /* The GNU C library defines this for functions which it implements
3411 to always fail with ENOSYS. Some functions are actually named
3412 something starting with __ and the normal name is an alias. */
3413 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3421 if { (eval echo configure:3422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3423 eval "ac_cv_func_$ac_func=yes"
3425 echo "configure: failed program was:" >&5
3426 cat conftest.$ac_ext >&5
3428 eval "ac_cv_func_$ac_func=no"
3433 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3434 echo "$ac_t""yes" 1>&6
3435 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3436 cat >> confdefs.h <<EOF
3437 #define $ac_tr_func 1
3441 echo "$ac_t""no" 1>&6
3445 for ac_func in iconv nl_langinfo setlocale
3447 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3448 echo "configure:3449: checking for $ac_func" >&5
3449 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3450 echo $ac_n "(cached) $ac_c" 1>&6
3452 cat > conftest.$ac_ext <<EOF
3453 #line 3454 "configure"
3454 #include "confdefs.h"
3455 /* System header to define __stub macros and hopefully few prototypes,
3456 which can conflict with char $ac_func(); below. */
3458 /* Override any gcc2 internal prototype to avoid an error. */
3459 /* We use char because int might match the return type of a gcc2
3460 builtin and then its argument prototype would still apply. */
3465 /* The GNU C library defines this for functions which it implements
3466 to always fail with ENOSYS. Some functions are actually named
3467 something starting with __ and the normal name is an alias. */
3468 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3476 if { (eval echo configure:3477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3478 eval "ac_cv_func_$ac_func=yes"
3480 echo "configure: failed program was:" >&5
3481 cat conftest.$ac_ext >&5
3483 eval "ac_cv_func_$ac_func=no"
3488 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3489 echo "$ac_t""yes" 1>&6
3490 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3491 cat >> confdefs.h <<EOF
3492 #define $ac_tr_func 1
3496 echo "$ac_t""no" 1>&6
3500 for ac_func in inet_aton inet_addr
3502 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3503 echo "configure:3504: checking for $ac_func" >&5
3504 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3505 echo $ac_n "(cached) $ac_c" 1>&6
3507 cat > conftest.$ac_ext <<EOF
3508 #line 3509 "configure"
3509 #include "confdefs.h"
3510 /* System header to define __stub macros and hopefully few prototypes,
3511 which can conflict with char $ac_func(); below. */
3513 /* Override any gcc2 internal prototype to avoid an error. */
3514 /* We use char because int might match the return type of a gcc2
3515 builtin and then its argument prototype would still apply. */
3520 /* The GNU C library defines this for functions which it implements
3521 to always fail with ENOSYS. Some functions are actually named
3522 something starting with __ and the normal name is an alias. */
3523 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3531 if { (eval echo configure:3532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3533 eval "ac_cv_func_$ac_func=yes"
3535 echo "configure: failed program was:" >&5
3536 cat conftest.$ac_ext >&5
3538 eval "ac_cv_func_$ac_func=no"
3543 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3544 echo "$ac_t""yes" 1>&6
3545 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3546 cat >> confdefs.h <<EOF
3547 #define $ac_tr_func 1
3551 echo "$ac_t""no" 1>&6
3555 for ac_func in inet_pton uname inet_ntoa
3557 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3558 echo "configure:3559: checking for $ac_func" >&5
3559 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3560 echo $ac_n "(cached) $ac_c" 1>&6
3562 cat > conftest.$ac_ext <<EOF
3563 #line 3564 "configure"
3564 #include "confdefs.h"
3565 /* System header to define __stub macros and hopefully few prototypes,
3566 which can conflict with char $ac_func(); below. */
3568 /* Override any gcc2 internal prototype to avoid an error. */
3569 /* We use char because int might match the return type of a gcc2
3570 builtin and then its argument prototype would still apply. */
3575 /* The GNU C library defines this for functions which it implements
3576 to always fail with ENOSYS. Some functions are actually named
3577 something starting with __ and the normal name is an alias. */
3578 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3586 if { (eval echo configure:3587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3588 eval "ac_cv_func_$ac_func=yes"
3590 echo "configure: failed program was:" >&5
3591 cat conftest.$ac_ext >&5
3593 eval "ac_cv_func_$ac_func=no"
3598 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3599 echo "$ac_t""yes" 1>&6
3600 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3601 cat >> confdefs.h <<EOF
3602 #define $ac_tr_func 1
3606 echo "$ac_t""no" 1>&6
3610 for ac_func in backtrace fork execvp pipe
3612 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3613 echo "configure:3614: checking for $ac_func" >&5
3614 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3615 echo $ac_n "(cached) $ac_c" 1>&6
3617 cat > conftest.$ac_ext <<EOF
3618 #line 3619 "configure"
3619 #include "confdefs.h"
3620 /* System header to define __stub macros and hopefully few prototypes,
3621 which can conflict with char $ac_func(); below. */
3623 /* Override any gcc2 internal prototype to avoid an error. */
3624 /* We use char because int might match the return type of a gcc2
3625 builtin and then its argument prototype would still apply. */
3630 /* The GNU C library defines this for functions which it implements
3631 to always fail with ENOSYS. Some functions are actually named
3632 something starting with __ and the normal name is an alias. */
3633 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3641 if { (eval echo configure:3642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3643 eval "ac_cv_func_$ac_func=yes"
3645 echo "configure: failed program was:" >&5
3646 cat conftest.$ac_ext >&5
3648 eval "ac_cv_func_$ac_func=no"
3653 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3654 echo "$ac_t""yes" 1>&6
3655 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3656 cat >> confdefs.h <<EOF
3657 #define $ac_tr_func 1
3661 echo "$ac_t""no" 1>&6
3665 for ac_hdr in execinfo.h unistd.h dlfcn.h
3667 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3668 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3669 echo "configure:3670: checking for $ac_hdr" >&5
3670 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3671 echo $ac_n "(cached) $ac_c" 1>&6
3673 cat > conftest.$ac_ext <<EOF
3674 #line 3675 "configure"
3675 #include "confdefs.h"
3678 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3679 { (eval echo configure:3680: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3680 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3681 if test -z "$ac_err"; then
3683 eval "ac_cv_header_$ac_safe=yes"
3686 echo "configure: failed program was:" >&5
3687 cat conftest.$ac_ext >&5
3689 eval "ac_cv_header_$ac_safe=no"
3693 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3694 echo "$ac_t""yes" 1>&6
3695 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3696 cat >> confdefs.h <<EOF
3697 #define $ac_tr_hdr 1
3701 echo "$ac_t""no" 1>&6
3705 echo $ac_n "checking for dladdr in -ldl""... $ac_c" 1>&6
3706 echo "configure:3707: checking for dladdr in -ldl" >&5
3707 ac_lib_var=`echo dl'_'dladdr | sed 'y%./+-%__p_%'`
3708 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3709 echo $ac_n "(cached) $ac_c" 1>&6
3711 ac_save_LIBS="$LIBS"
3713 cat > conftest.$ac_ext <<EOF
3714 #line 3715 "configure"
3715 #include "confdefs.h"
3716 /* Override any gcc2 internal prototype to avoid an error. */
3717 /* We use char because int might match the return type of a gcc2
3718 builtin and then its argument prototype would still apply. */
3725 if { (eval echo configure:3726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3727 eval "ac_cv_lib_$ac_lib_var=yes"
3729 echo "configure: failed program was:" >&5
3730 cat conftest.$ac_ext >&5
3732 eval "ac_cv_lib_$ac_lib_var=no"
3735 LIBS="$ac_save_LIBS"
3738 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3739 echo "$ac_t""yes" 1>&6
3741 cat >> confdefs.h <<\EOF
3742 #define HAVE_DLADDR 1
3746 echo "$ac_t""no" 1>&6
3749 for ac_file in /proc/self/exe
3752 ac_safe=`echo "$ac_file" | sed 'y%./+-%__p_%'`
3753 echo $ac_n "checking for $ac_file""... $ac_c" 1>&6
3754 echo "configure:3755: checking for $ac_file" >&5
3755 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
3756 echo $ac_n "(cached) $ac_c" 1>&6
3758 if test "$cross_compiling" = yes; then
3759 { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
3761 if test -r $ac_file; then
3762 eval "ac_cv_file_$ac_safe=yes"
3764 eval "ac_cv_file_$ac_safe=no"
3768 if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
3769 echo "$ac_t""yes" 1>&6
3770 ac_tr_file=HAVE_`echo $ac_file | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3771 cat >> confdefs.h <<EOF
3772 #define $ac_tr_file 1
3775 cat >> confdefs.h <<\EOF
3776 #define HAVE_PROC_SELF_EXE 1
3780 echo "$ac_t""no" 1>&6
3786 for ac_func in gethostbyname_r
3788 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3789 echo "configure:3790: checking for $ac_func" >&5
3790 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3791 echo $ac_n "(cached) $ac_c" 1>&6
3793 cat > conftest.$ac_ext <<EOF
3794 #line 3795 "configure"
3795 #include "confdefs.h"
3796 /* System header to define __stub macros and hopefully few prototypes,
3797 which can conflict with char $ac_func(); below. */
3799 /* Override any gcc2 internal prototype to avoid an error. */
3800 /* We use char because int might match the return type of a gcc2
3801 builtin and then its argument prototype would still apply. */
3806 /* The GNU C library defines this for functions which it implements
3807 to always fail with ENOSYS. Some functions are actually named
3808 something starting with __ and the normal name is an alias. */
3809 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3817 if { (eval echo configure:3818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3819 eval "ac_cv_func_$ac_func=yes"
3821 echo "configure: failed program was:" >&5
3822 cat conftest.$ac_ext >&5
3824 eval "ac_cv_func_$ac_func=no"
3829 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3830 echo "$ac_t""yes" 1>&6
3831 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3832 cat >> confdefs.h <<EOF
3833 #define $ac_tr_func 1
3836 cat >> confdefs.h <<\EOF
3837 #define HAVE_GETHOSTBYNAME_R 1
3840 # There are two different kinds of gethostbyname_r.
3841 # We look for the one that returns `int'.
3842 # Hopefully this check is robust enough.
3843 cat > conftest.$ac_ext <<EOF
3844 #line 3845 "configure"
3845 #include "confdefs.h"
3848 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3849 egrep "int.*gethostbyname_r" >/dev/null 2>&1; then
3852 cat >> confdefs.h <<\EOF
3853 #define GETHOSTBYNAME_R_RETURNS_INT 1
3861 *" -D_REENTRANT "*) ;;
3863 echo $ac_n "checking whether gethostbyname_r declaration requires -D_REENTRANT""... $ac_c" 1>&6
3864 echo "configure:3865: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
3865 if eval "test \"`echo '$''{'libjava_cv_gethostbyname_r_needs_reentrant'+set}'`\" = set"; then
3866 echo $ac_n "(cached) $ac_c" 1>&6
3870 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3871 ac_cpp='$CXXCPP $CPPFLAGS'
3872 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3873 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3874 cross_compiling=$ac_cv_prog_cxx_cross
3876 cat > conftest.$ac_ext <<EOF
3877 #line 3878 "configure"
3878 #include "confdefs.h"
3881 gethostbyname_r("", 0, 0);
3884 if { (eval echo configure:3885: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3886 libjava_cv_gethostbyname_r_needs_reentrant=no
3888 echo "configure: failed program was:" >&5
3889 cat conftest.$ac_ext >&5
3891 CPPFLAGS_SAVE="$CPPFLAGS"
3892 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
3893 cat > conftest.$ac_ext <<EOF
3894 #line 3895 "configure"
3895 #include "confdefs.h"
3898 gethostbyname_r("", 0, 0);
3901 if { (eval echo configure:3902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3903 libjava_cv_gethostbyname_r_needs_reentrant=yes
3905 echo "configure: failed program was:" >&5
3906 cat conftest.$ac_ext >&5
3908 libjava_cv_gethostbyname_r_needs_reentrant=fail
3911 CPPFLAGS="$CPPFLAGS_SAVE"
3916 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3917 ac_cpp='$CPP $CPPFLAGS'
3918 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3919 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3920 cross_compiling=$ac_cv_prog_cc_cross
3925 echo "$ac_t""$libjava_cv_gethostbyname_r_needs_reentrant" 1>&6
3926 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
3927 cat >> confdefs.h <<\EOF
3928 #define _REENTRANT 1
3935 echo $ac_n "checking for struct hostent_data""... $ac_c" 1>&6
3936 echo "configure:3937: checking for struct hostent_data" >&5
3937 if eval "test \"`echo '$''{'libjava_cv_struct_hostent_data'+set}'`\" = set"; then
3938 echo $ac_n "(cached) $ac_c" 1>&6
3940 cat > conftest.$ac_ext <<EOF
3941 #line 3942 "configure"
3942 #include "confdefs.h"
3944 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
3945 # define _REENTRANT 1
3949 struct hostent_data data;
3952 if { (eval echo configure:3953: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3954 libjava_cv_struct_hostent_data=yes
3956 echo "configure: failed program was:" >&5
3957 cat conftest.$ac_ext >&5
3959 libjava_cv_struct_hostent_data=no
3964 echo "$ac_t""$libjava_cv_struct_hostent_data" 1>&6
3965 if test "x$libjava_cv_struct_hostent_data" = xyes; then
3966 cat >> confdefs.h <<\EOF
3967 #define HAVE_STRUCT_HOSTENT_DATA 1
3973 echo "$ac_t""no" 1>&6
3978 for ac_func in gethostbyaddr_r
3980 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3981 echo "configure:3982: checking for $ac_func" >&5
3982 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3983 echo $ac_n "(cached) $ac_c" 1>&6
3985 cat > conftest.$ac_ext <<EOF
3986 #line 3987 "configure"
3987 #include "confdefs.h"
3988 /* System header to define __stub macros and hopefully few prototypes,
3989 which can conflict with char $ac_func(); below. */
3991 /* Override any gcc2 internal prototype to avoid an error. */
3992 /* We use char because int might match the return type of a gcc2
3993 builtin and then its argument prototype would still apply. */
3998 /* The GNU C library defines this for functions which it implements
3999 to always fail with ENOSYS. Some functions are actually named
4000 something starting with __ and the normal name is an alias. */
4001 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4009 if { (eval echo configure:4010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4011 eval "ac_cv_func_$ac_func=yes"
4013 echo "configure: failed program was:" >&5
4014 cat conftest.$ac_ext >&5
4016 eval "ac_cv_func_$ac_func=no"
4021 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4022 echo "$ac_t""yes" 1>&6
4023 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4024 cat >> confdefs.h <<EOF
4025 #define $ac_tr_func 1
4028 cat >> confdefs.h <<\EOF
4029 #define HAVE_GETHOSTBYADDR_R 1
4032 # There are two different kinds of gethostbyaddr_r.
4033 # We look for the one that returns `int'.
4034 # Hopefully this check is robust enough.
4035 cat > conftest.$ac_ext <<EOF
4036 #line 4037 "configure"
4037 #include "confdefs.h"
4040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4041 egrep "int.*gethostbyaddr_r" >/dev/null 2>&1; then
4044 cat >> confdefs.h <<\EOF
4045 #define GETHOSTBYADDR_R_RETURNS_INT 1
4052 echo "$ac_t""no" 1>&6
4057 for ac_func in gethostname
4059 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4060 echo "configure:4061: checking for $ac_func" >&5
4061 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4062 echo $ac_n "(cached) $ac_c" 1>&6
4064 cat > conftest.$ac_ext <<EOF
4065 #line 4066 "configure"
4066 #include "confdefs.h"
4067 /* System header to define __stub macros and hopefully few prototypes,
4068 which can conflict with char $ac_func(); below. */
4070 /* Override any gcc2 internal prototype to avoid an error. */
4071 /* We use char because int might match the return type of a gcc2
4072 builtin and then its argument prototype would still apply. */
4077 /* The GNU C library defines this for functions which it implements
4078 to always fail with ENOSYS. Some functions are actually named
4079 something starting with __ and the normal name is an alias. */
4080 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4088 if { (eval echo configure:4089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4090 eval "ac_cv_func_$ac_func=yes"
4092 echo "configure: failed program was:" >&5
4093 cat conftest.$ac_ext >&5
4095 eval "ac_cv_func_$ac_func=no"
4100 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4101 echo "$ac_t""yes" 1>&6
4102 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4103 cat >> confdefs.h <<EOF
4104 #define $ac_tr_func 1
4107 cat >> confdefs.h <<\EOF
4108 #define HAVE_GETHOSTNAME 1
4111 cat > conftest.$ac_ext <<EOF
4112 #line 4113 "configure"
4113 #include "confdefs.h"
4116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4117 egrep "gethostname" >/dev/null 2>&1; then
4120 cat >> confdefs.h <<\EOF
4121 #define HAVE_GETHOSTNAME_DECL 1
4128 echo "$ac_t""no" 1>&6
4133 # Look for these functions in the thread library, but only bother
4134 # if using POSIX threads.
4135 if test "$THREADS" = posix; then
4137 LIBS="$LIBS $THREADLIBS"
4138 # Some POSIX thread systems don't have pthread_mutexattr_settype.
4140 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
4142 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4143 echo "configure:4144: checking for $ac_func" >&5
4144 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4145 echo $ac_n "(cached) $ac_c" 1>&6
4147 cat > conftest.$ac_ext <<EOF
4148 #line 4149 "configure"
4149 #include "confdefs.h"
4150 /* System header to define __stub macros and hopefully few prototypes,
4151 which can conflict with char $ac_func(); below. */
4153 /* Override any gcc2 internal prototype to avoid an error. */
4154 /* We use char because int might match the return type of a gcc2
4155 builtin and then its argument prototype would still apply. */
4160 /* The GNU C library defines this for functions which it implements
4161 to always fail with ENOSYS. Some functions are actually named
4162 something starting with __ and the normal name is an alias. */
4163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4171 if { (eval echo configure:4172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4173 eval "ac_cv_func_$ac_func=yes"
4175 echo "configure: failed program was:" >&5
4176 cat conftest.$ac_ext >&5
4178 eval "ac_cv_func_$ac_func=no"
4183 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4184 echo "$ac_t""yes" 1>&6
4185 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4186 cat >> confdefs.h <<EOF
4187 #define $ac_tr_func 1
4191 echo "$ac_t""no" 1>&6
4196 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
4197 # Solaris 7 the name librt is preferred.
4198 for ac_func in sched_yield
4200 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4201 echo "configure:4202: checking for $ac_func" >&5
4202 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4203 echo $ac_n "(cached) $ac_c" 1>&6
4205 cat > conftest.$ac_ext <<EOF
4206 #line 4207 "configure"
4207 #include "confdefs.h"
4208 /* System header to define __stub macros and hopefully few prototypes,
4209 which can conflict with char $ac_func(); below. */
4211 /* Override any gcc2 internal prototype to avoid an error. */
4212 /* We use char because int might match the return type of a gcc2
4213 builtin and then its argument prototype would still apply. */
4218 /* The GNU C library defines this for functions which it implements
4219 to always fail with ENOSYS. Some functions are actually named
4220 something starting with __ and the normal name is an alias. */
4221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4229 if { (eval echo configure:4230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4231 eval "ac_cv_func_$ac_func=yes"
4233 echo "configure: failed program was:" >&5
4234 cat conftest.$ac_ext >&5
4236 eval "ac_cv_func_$ac_func=no"
4241 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4242 echo "$ac_t""yes" 1>&6
4243 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4244 cat >> confdefs.h <<EOF
4245 #define $ac_tr_func 1
4249 echo "$ac_t""no" 1>&6
4250 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
4251 echo "configure:4252: checking for sched_yield in -lrt" >&5
4252 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
4253 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4254 echo $ac_n "(cached) $ac_c" 1>&6
4256 ac_save_LIBS="$LIBS"
4258 cat > conftest.$ac_ext <<EOF
4259 #line 4260 "configure"
4260 #include "confdefs.h"
4261 /* Override any gcc2 internal prototype to avoid an error. */
4262 /* We use char because int might match the return type of a gcc2
4263 builtin and then its argument prototype would still apply. */
4270 if { (eval echo configure:4271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4272 eval "ac_cv_lib_$ac_lib_var=yes"
4274 echo "configure: failed program was:" >&5
4275 cat conftest.$ac_ext >&5
4277 eval "ac_cv_lib_$ac_lib_var=no"
4280 LIBS="$ac_save_LIBS"
4283 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4284 echo "$ac_t""yes" 1>&6
4286 cat >> confdefs.h <<\EOF
4287 #define HAVE_SCHED_YIELD 1
4290 THREADLIBS="$THREADLIBS -lrt"
4291 THREADSPEC="$THREADSPEC -lrt"
4293 echo "$ac_t""no" 1>&6
4295 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
4296 echo "configure:4297: checking for sched_yield in -lposix4" >&5
4297 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
4298 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4299 echo $ac_n "(cached) $ac_c" 1>&6
4301 ac_save_LIBS="$LIBS"
4302 LIBS="-lposix4 $LIBS"
4303 cat > conftest.$ac_ext <<EOF
4304 #line 4305 "configure"
4305 #include "confdefs.h"
4306 /* Override any gcc2 internal prototype to avoid an error. */
4307 /* We use char because int might match the return type of a gcc2
4308 builtin and then its argument prototype would still apply. */
4315 if { (eval echo configure:4316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4317 eval "ac_cv_lib_$ac_lib_var=yes"
4319 echo "configure: failed program was:" >&5
4320 cat conftest.$ac_ext >&5
4322 eval "ac_cv_lib_$ac_lib_var=no"
4325 LIBS="$ac_save_LIBS"
4328 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4329 echo "$ac_t""yes" 1>&6
4331 cat >> confdefs.h <<\EOF
4332 #define HAVE_SCHED_YIELD 1
4335 THREADLIBS="$THREADLIBS -lposix4"
4336 THREADSPEC="$THREADSPEC -lposix4"
4338 echo "$ac_t""no" 1>&6
4348 # We can save a little space at runtime if the mutex has m_count
4349 # or __m_count. This is a nice hack for Linux.
4350 cat > conftest.$ac_ext <<EOF
4351 #line 4352 "configure"
4352 #include "confdefs.h"
4353 #include <pthread.h>
4356 extern pthread_mutex_t *mutex; int q = mutex->m_count;
4360 if { (eval echo configure:4361: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4362 cat >> confdefs.h <<\EOF
4363 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
4367 echo "configure: failed program was:" >&5
4368 cat conftest.$ac_ext >&5
4371 cat > conftest.$ac_ext <<EOF
4372 #line 4373 "configure"
4373 #include "confdefs.h"
4374 #include <pthread.h>
4377 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
4381 if { (eval echo configure:4382: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4383 cat >> confdefs.h <<\EOF
4384 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
4388 echo "configure: failed program was:" >&5
4389 cat conftest.$ac_ext >&5
4396 # We require a way to get the time.
4398 for ac_func in gettimeofday time ftime
4400 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4401 echo "configure:4402: checking for $ac_func" >&5
4402 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4403 echo $ac_n "(cached) $ac_c" 1>&6
4405 cat > conftest.$ac_ext <<EOF
4406 #line 4407 "configure"
4407 #include "confdefs.h"
4408 /* System header to define __stub macros and hopefully few prototypes,
4409 which can conflict with char $ac_func(); below. */
4411 /* Override any gcc2 internal prototype to avoid an error. */
4412 /* We use char because int might match the return type of a gcc2
4413 builtin and then its argument prototype would still apply. */
4418 /* The GNU C library defines this for functions which it implements
4419 to always fail with ENOSYS. Some functions are actually named
4420 something starting with __ and the normal name is an alias. */
4421 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4429 if { (eval echo configure:4430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4431 eval "ac_cv_func_$ac_func=yes"
4433 echo "configure: failed program was:" >&5
4434 cat conftest.$ac_ext >&5
4436 eval "ac_cv_func_$ac_func=no"
4441 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4442 echo "$ac_t""yes" 1>&6
4443 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4444 cat >> confdefs.h <<EOF
4445 #define $ac_tr_func 1
4449 echo "$ac_t""no" 1>&6
4453 if test "$time_found" = no; then
4454 { echo "configure: error: no function found to get the time" 1>&2; exit 1; }
4457 for ac_func in memmove
4459 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4460 echo "configure:4461: checking for $ac_func" >&5
4461 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4462 echo $ac_n "(cached) $ac_c" 1>&6
4464 cat > conftest.$ac_ext <<EOF
4465 #line 4466 "configure"
4466 #include "confdefs.h"
4467 /* System header to define __stub macros and hopefully few prototypes,
4468 which can conflict with char $ac_func(); below. */
4470 /* Override any gcc2 internal prototype to avoid an error. */
4471 /* We use char because int might match the return type of a gcc2
4472 builtin and then its argument prototype would still apply. */
4477 /* The GNU C library defines this for functions which it implements
4478 to always fail with ENOSYS. Some functions are actually named
4479 something starting with __ and the normal name is an alias. */
4480 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4488 if { (eval echo configure:4489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4490 eval "ac_cv_func_$ac_func=yes"
4492 echo "configure: failed program was:" >&5
4493 cat conftest.$ac_ext >&5
4495 eval "ac_cv_func_$ac_func=no"
4500 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4501 echo "$ac_t""yes" 1>&6
4502 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4503 cat >> confdefs.h <<EOF
4504 #define $ac_tr_func 1
4508 echo "$ac_t""no" 1>&6
4513 # We require memcpy.
4515 for ac_func in memcpy
4517 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4518 echo "configure:4519: checking for $ac_func" >&5
4519 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4520 echo $ac_n "(cached) $ac_c" 1>&6
4522 cat > conftest.$ac_ext <<EOF
4523 #line 4524 "configure"
4524 #include "confdefs.h"
4525 /* System header to define __stub macros and hopefully few prototypes,
4526 which can conflict with char $ac_func(); below. */
4528 /* Override any gcc2 internal prototype to avoid an error. */
4529 /* We use char because int might match the return type of a gcc2
4530 builtin and then its argument prototype would still apply. */
4535 /* The GNU C library defines this for functions which it implements
4536 to always fail with ENOSYS. Some functions are actually named
4537 something starting with __ and the normal name is an alias. */
4538 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4546 if { (eval echo configure:4547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4548 eval "ac_cv_func_$ac_func=yes"
4550 echo "configure: failed program was:" >&5
4551 cat conftest.$ac_ext >&5
4553 eval "ac_cv_func_$ac_func=no"
4558 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4559 echo "$ac_t""yes" 1>&6
4560 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4561 cat >> confdefs.h <<EOF
4562 #define $ac_tr_func 1
4566 echo "$ac_t""no" 1>&6
4570 if test "$memcpy_found" = no; then
4571 { echo "configure: error: memcpy is required" 1>&2; exit 1; }
4574 # Some library-finding code we stole from Tcl.
4575 #--------------------------------------------------------------------
4576 # Check for the existence of the -lsocket and -lnsl libraries.
4577 # The order here is important, so that they end up in the right
4578 # order in the command line generated by make. Here are some
4579 # special considerations:
4580 # 1. Use "connect" and "accept" to check for -lsocket, and
4581 # "gethostbyname" to check for -lnsl.
4582 # 2. Use each function name only once: can't redo a check because
4583 # autoconf caches the results of the last check and won't redo it.
4584 # 3. Use -lnsl and -lsocket only if they supply procedures that
4585 # aren't already present in the normal libraries. This is because
4586 # IRIX 5.2 has libraries, but they aren't needed and they're
4587 # bogus: they goof up name resolution if used.
4588 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
4589 # To get around this problem, check for both libraries together
4590 # if -lsocket doesn't work by itself.
4591 #--------------------------------------------------------------------
4593 echo $ac_n "checking for socket libraries""... $ac_c" 1>&6
4594 echo "configure:4595: checking for socket libraries" >&5
4595 if eval "test \"`echo '$''{'gcj_cv_lib_sockets'+set}'`\" = set"; then
4596 echo $ac_n "(cached) $ac_c" 1>&6
4600 unset ac_cv_func_connect
4601 echo $ac_n "checking for connect""... $ac_c" 1>&6
4602 echo "configure:4603: checking for connect" >&5
4603 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
4604 echo $ac_n "(cached) $ac_c" 1>&6
4606 cat > conftest.$ac_ext <<EOF
4607 #line 4608 "configure"
4608 #include "confdefs.h"
4609 /* System header to define __stub macros and hopefully few prototypes,
4610 which can conflict with char connect(); below. */
4612 /* Override any gcc2 internal prototype to avoid an error. */
4613 /* We use char because int might match the return type of a gcc2
4614 builtin and then its argument prototype would still apply. */
4619 /* The GNU C library defines this for functions which it implements
4620 to always fail with ENOSYS. Some functions are actually named
4621 something starting with __ and the normal name is an alias. */
4622 #if defined (__stub_connect) || defined (__stub___connect)
4630 if { (eval echo configure:4631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4632 eval "ac_cv_func_connect=yes"
4634 echo "configure: failed program was:" >&5
4635 cat conftest.$ac_ext >&5
4637 eval "ac_cv_func_connect=no"
4642 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
4643 echo "$ac_t""yes" 1>&6
4646 echo "$ac_t""no" 1>&6
4650 if test "$gcj_checkSocket" = 1; then
4651 unset ac_cv_func_connect
4652 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4653 echo "configure:4654: checking for main in -lsocket" >&5
4654 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
4655 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4656 echo $ac_n "(cached) $ac_c" 1>&6
4658 ac_save_LIBS="$LIBS"
4659 LIBS="-lsocket $LIBS"
4660 cat > conftest.$ac_ext <<EOF
4661 #line 4662 "configure"
4662 #include "confdefs.h"
4668 if { (eval echo configure:4669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4670 eval "ac_cv_lib_$ac_lib_var=yes"
4672 echo "configure: failed program was:" >&5
4673 cat conftest.$ac_ext >&5
4675 eval "ac_cv_lib_$ac_lib_var=no"
4678 LIBS="$ac_save_LIBS"
4681 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4682 echo "$ac_t""yes" 1>&6
4683 gcj_cv_lib_sockets="-lsocket"
4685 echo "$ac_t""no" 1>&6
4690 if test "$gcj_checkBoth" = 1; then
4692 LIBS="$LIBS -lsocket -lnsl"
4693 unset ac_cv_func_accept
4694 echo $ac_n "checking for accept""... $ac_c" 1>&6
4695 echo "configure:4696: checking for accept" >&5
4696 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
4697 echo $ac_n "(cached) $ac_c" 1>&6
4699 cat > conftest.$ac_ext <<EOF
4700 #line 4701 "configure"
4701 #include "confdefs.h"
4702 /* System header to define __stub macros and hopefully few prototypes,
4703 which can conflict with char accept(); below. */
4705 /* Override any gcc2 internal prototype to avoid an error. */
4706 /* We use char because int might match the return type of a gcc2
4707 builtin and then its argument prototype would still apply. */
4712 /* The GNU C library defines this for functions which it implements
4713 to always fail with ENOSYS. Some functions are actually named
4714 something starting with __ and the normal name is an alias. */
4715 #if defined (__stub_accept) || defined (__stub___accept)
4723 if { (eval echo configure:4724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4725 eval "ac_cv_func_accept=yes"
4727 echo "configure: failed program was:" >&5
4728 cat conftest.$ac_ext >&5
4730 eval "ac_cv_func_accept=no"
4735 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
4736 echo "$ac_t""yes" 1>&6
4738 gcj_cv_lib_sockets="-lsocket -lnsl"
4740 echo "$ac_t""no" 1>&6
4743 unset ac_cv_func_accept
4746 unset ac_cv_func_gethostbyname
4748 LIBS="$LIBS $gcj_cv_lib_sockets"
4749 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4750 echo "configure:4751: checking for gethostbyname" >&5
4751 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
4752 echo $ac_n "(cached) $ac_c" 1>&6
4754 cat > conftest.$ac_ext <<EOF
4755 #line 4756 "configure"
4756 #include "confdefs.h"
4757 /* System header to define __stub macros and hopefully few prototypes,
4758 which can conflict with char gethostbyname(); below. */
4760 /* Override any gcc2 internal prototype to avoid an error. */
4761 /* We use char because int might match the return type of a gcc2
4762 builtin and then its argument prototype would still apply. */
4763 char gethostbyname();
4767 /* The GNU C library defines this for functions which it implements
4768 to always fail with ENOSYS. Some functions are actually named
4769 something starting with __ and the normal name is an alias. */
4770 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4778 if { (eval echo configure:4779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4780 eval "ac_cv_func_gethostbyname=yes"
4782 echo "configure: failed program was:" >&5
4783 cat conftest.$ac_ext >&5
4785 eval "ac_cv_func_gethostbyname=no"
4790 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
4791 echo "$ac_t""yes" 1>&6
4794 echo "$ac_t""no" 1>&6
4795 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
4796 echo "configure:4797: checking for main in -lnsl" >&5
4797 ac_lib_var=`echo nsl'_'main | 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"
4803 cat > conftest.$ac_ext <<EOF
4804 #line 4805 "configure"
4805 #include "confdefs.h"
4811 if { (eval echo configure:4812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4813 eval "ac_cv_lib_$ac_lib_var=yes"
4815 echo "configure: failed program was:" >&5
4816 cat conftest.$ac_ext >&5
4818 eval "ac_cv_lib_$ac_lib_var=no"
4821 LIBS="$ac_save_LIBS"
4824 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4825 echo "$ac_t""yes" 1>&6
4826 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
4828 echo "$ac_t""no" 1>&6
4833 unset ac_cv_func_gethostbyname
4838 echo "$ac_t""$gcj_cv_lib_sockets" 1>&6
4839 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
4841 if test "$with_system_zlib" = yes; then
4842 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
4843 echo "configure:4844: checking for deflate in -lz" >&5
4844 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
4845 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4846 echo $ac_n "(cached) $ac_c" 1>&6
4848 ac_save_LIBS="$LIBS"
4850 cat > conftest.$ac_ext <<EOF
4851 #line 4852 "configure"
4852 #include "confdefs.h"
4853 /* Override any gcc2 internal prototype to avoid an error. */
4854 /* We use char because int might match the return type of a gcc2
4855 builtin and then its argument prototype would still apply. */
4862 if { (eval echo configure:4863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4864 eval "ac_cv_lib_$ac_lib_var=yes"
4866 echo "configure: failed program was:" >&5
4867 cat conftest.$ac_ext >&5
4869 eval "ac_cv_lib_$ac_lib_var=no"
4872 LIBS="$ac_save_LIBS"
4875 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4876 echo "$ac_t""yes" 1>&6
4879 echo "$ac_t""no" 1>&6
4885 ZLIBTESTSPEC="-L`pwd`/../zlib/.libs -rpath `pwd`/../zlib/.libs"
4888 # On Solaris, and maybe other architectures, the Boehm collector
4890 if test "$GC" = boehm; then
4891 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
4892 echo "configure:4893: checking for main in -ldl" >&5
4893 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
4894 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4895 echo $ac_n "(cached) $ac_c" 1>&6
4897 ac_save_LIBS="$LIBS"
4899 cat > conftest.$ac_ext <<EOF
4900 #line 4901 "configure"
4901 #include "confdefs.h"
4907 if { (eval echo configure:4908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4909 eval "ac_cv_lib_$ac_lib_var=yes"
4911 echo "configure: failed program was:" >&5
4912 cat conftest.$ac_ext >&5
4914 eval "ac_cv_lib_$ac_lib_var=no"
4917 LIBS="$ac_save_LIBS"
4920 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4921 echo "$ac_t""yes" 1>&6
4922 SYSTEMSPEC="$SYSTEMSPEC -ldl"
4924 echo "$ac_t""no" 1>&6
4929 if test -z "${with_multisubdir}"; then
4933 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
4936 if test -x "${builddotdot}/../../gcc/gcj"; then
4937 dir="`cd ${builddotdot}/../../gcc && pwd`"
4938 GCJ="$dir/gcj -B`pwd`/ -B$dir/"
4946 # Create it, so that compile/link tests don't fail
4947 test -f libgcj.spec || touch libgcj.spec
4949 # We must search the source tree for java.lang, since we still don't
4950 # have libgcj.jar nor java/lang/*.class
4951 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
4952 CPPFLAGS="$CPPFLAGS -I`pwd` -I`cd $srcdir && pwd`"
4954 # Since some classes depend on this one, we need its source available
4955 # before we can do any GCJ compilation test :-(
4956 if test ! -f gnu/classpath/Configuration.java; then
4957 test -d gnu || mkdir gnu
4958 test -d gnu/classpath || mkdir gnu/classpath
4959 sed 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
4960 < $srcdir/gnu/classpath/Configuration.java.in \
4961 > gnu/classpath/Configuration.java
4962 # We do not want to redirect the output of the grep below to /dev/null,
4963 # but we add /dev/null to the input list so that grep will print the
4964 # filename of Configuration.java in case it finds any matches.
4965 if grep @ gnu/classpath/Configuration.java /dev/null; then
4966 { echo "configure: error: configure.in is missing the substitutions above" 1>&2; exit 1; }
4970 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
4971 set dummy ${ac_tool_prefix}gcj; ac_word=$2
4972 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4973 echo "configure:4974: checking for $ac_word" >&5
4974 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
4975 echo $ac_n "(cached) $ac_c" 1>&6
4977 if test -n "$GCJ"; then
4978 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
4980 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4982 for ac_dir in $ac_dummy; do
4983 test -z "$ac_dir" && ac_dir=.
4984 if test -f $ac_dir/$ac_word; then
4985 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
4992 GCJ="$ac_cv_prog_GCJ"
4993 if test -n "$GCJ"; then
4994 echo "$ac_t""$GCJ" 1>&6
4996 echo "$ac_t""no" 1>&6
5000 if test -z "$ac_cv_prog_GCJ"; then
5001 if test -n "$ac_tool_prefix"; then
5002 # Extract the first word of "gcj", so it can be a program name with args.
5003 set dummy gcj; ac_word=$2
5004 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5005 echo "configure:5006: checking for $ac_word" >&5
5006 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
5007 echo $ac_n "(cached) $ac_c" 1>&6
5009 if test -n "$GCJ"; then
5010 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5012 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5014 for ac_dir in $ac_dummy; do
5015 test -z "$ac_dir" && ac_dir=.
5016 if test -f $ac_dir/$ac_word; then
5017 ac_cv_prog_GCJ="gcj"
5022 test -z "$ac_cv_prog_GCJ" && ac_cv_prog_GCJ="no"
5025 GCJ="$ac_cv_prog_GCJ"
5026 if test -n "$GCJ"; then
5027 echo "$ac_t""$GCJ" 1>&6
5029 echo "$ac_t""no" 1>&6
5037 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
5041 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
5043 lt_save_CFLAGS="$CFLAGS"
5044 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
5045 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5046 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5047 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5048 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5049 deplibs_check_method="$deplibs_check_method" \
5050 file_magic_cmd="$file_magic_cmd" \
5051 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5052 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
5053 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
5055 CFLAGS="$lt_save_CFLAGS"
5057 # Redirect the config.log output again, so that the ltconfig log is not
5058 # clobbered by the next message.
5059 exec 5>>./config.log
5064 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
5066 echo $ac_n "checking size of void *""... $ac_c" 1>&6
5067 echo "configure:5068: checking size of void *" >&5
5068 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
5069 echo $ac_n "(cached) $ac_c" 1>&6
5071 if test "$cross_compiling" = yes; then
5072 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5074 cat > conftest.$ac_ext <<EOF
5075 #line 5076 "configure"
5076 #include "confdefs.h"
5080 FILE *f=fopen("conftestval", "w");
5082 fprintf(f, "%d\n", sizeof(void *));
5086 if { (eval echo configure:5087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5088 ac_cv_sizeof_void_p=`cat conftestval`
5090 echo "configure: failed program was:" >&5
5091 cat conftest.$ac_ext >&5
5093 ac_cv_sizeof_void_p=0
5099 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
5100 cat >> confdefs.h <<EOF
5101 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5109 if test "x$ZLIBSPEC" = "x-lzgcj"; then
5110 # We include the path to the zlib build directory.
5111 # See Makefile.am to understand why.
5112 ZDEPS='$(top_builddir)/../zlib/libzgcj.la'
5113 ZLIBS="$ZDEPS -L\$(here)/../zlib/$libsubdir"
5114 ZINCS='-I$(top_srcdir)/../zlib'
5126 if test "$CANADIAN" = yes; then
5135 if test "$NULL_TARGET" = yes; then
5137 NULL_TARGET_FALSE='#'
5139 NULL_TARGET_TRUE='#'
5144 if test "$NATIVE" = yes || test "$NULL_TARGET" = yes; then
5153 if test -z "$with_cross_host"; then
5155 USE_LIBDIR_FALSE='#'
5162 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
5163 NEEDS_DATA_START_TRUE=
5164 NEEDS_DATA_START_FALSE='#'
5166 NEEDS_DATA_START_TRUE='#'
5167 NEEDS_DATA_START_FALSE=
5171 # Determine gcj version number.
5173 gcjvers="`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`"
5175 cat >> confdefs.h <<EOF
5176 #define GCJVERSION "$gcjvers"
5183 echo $ac_n "checking for g++ -ffloat-store bug""... $ac_c" 1>&6
5184 echo "configure:5185: checking for g++ -ffloat-store bug" >&5
5185 save_CFLAGS="$CFLAGS"
5186 CFLAGS="-x c++ -O2 -ffloat-store"
5187 cat > conftest.$ac_ext <<EOF
5188 #line 5189 "configure"
5189 #include "confdefs.h"
5195 if { (eval echo configure:5196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5197 echo "$ac_t""no" 1>&6
5199 echo "configure: failed program was:" >&5
5200 cat conftest.$ac_ext >&5
5202 cat >> confdefs.h <<\EOF
5203 #define __NO_MATH_INLINES 1
5206 echo "$ac_t""yes" 1>&6
5209 CFLAGS="$save_CFLAGS"
5211 for ac_hdr in unistd.h bstring.h sys/time.h sys/types.h fcntl.h sys/ioctl.h sys/filio.h sys/stat.h sys/select.h sys/socket.h netinet/in.h arpa/inet.h netdb.h pwd.h sys/config.h inttypes.h stdint.h langinfo.h locale.h
5213 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5214 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5215 echo "configure:5216: checking for $ac_hdr" >&5
5216 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5217 echo $ac_n "(cached) $ac_c" 1>&6
5219 cat > conftest.$ac_ext <<EOF
5220 #line 5221 "configure"
5221 #include "confdefs.h"
5224 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5225 { (eval echo configure:5226: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5226 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5227 if test -z "$ac_err"; then
5229 eval "ac_cv_header_$ac_safe=yes"
5232 echo "configure: failed program was:" >&5
5233 cat conftest.$ac_ext >&5
5235 eval "ac_cv_header_$ac_safe=no"
5239 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5240 echo "$ac_t""yes" 1>&6
5241 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5242 cat >> confdefs.h <<EOF
5243 #define $ac_tr_hdr 1
5247 echo "$ac_t""no" 1>&6
5251 for ac_hdr in dirent.h
5253 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5254 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5255 echo "configure:5256: checking for $ac_hdr" >&5
5256 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5257 echo $ac_n "(cached) $ac_c" 1>&6
5259 cat > conftest.$ac_ext <<EOF
5260 #line 5261 "configure"
5261 #include "confdefs.h"
5264 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5265 { (eval echo configure:5266: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5266 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5267 if test -z "$ac_err"; then
5269 eval "ac_cv_header_$ac_safe=yes"
5272 echo "configure: failed program was:" >&5
5273 cat conftest.$ac_ext >&5
5275 eval "ac_cv_header_$ac_safe=no"
5279 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5280 echo "$ac_t""yes" 1>&6
5281 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5282 cat >> confdefs.h <<EOF
5283 #define $ac_tr_hdr 1
5287 echo "$ac_t""no" 1>&6
5292 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5293 echo "configure:5294: checking for ANSI C header files" >&5
5294 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5295 echo $ac_n "(cached) $ac_c" 1>&6
5297 cat > conftest.$ac_ext <<EOF
5298 #line 5299 "configure"
5299 #include "confdefs.h"
5305 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5306 { (eval echo configure:5307: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5307 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5308 if test -z "$ac_err"; then
5310 ac_cv_header_stdc=yes
5313 echo "configure: failed program was:" >&5
5314 cat conftest.$ac_ext >&5
5316 ac_cv_header_stdc=no
5320 if test $ac_cv_header_stdc = yes; then
5321 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5322 cat > conftest.$ac_ext <<EOF
5323 #line 5324 "configure"
5324 #include "confdefs.h"
5327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5328 egrep "memchr" >/dev/null 2>&1; then
5332 ac_cv_header_stdc=no
5338 if test $ac_cv_header_stdc = yes; then
5339 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5340 cat > conftest.$ac_ext <<EOF
5341 #line 5342 "configure"
5342 #include "confdefs.h"
5345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5346 egrep "free" >/dev/null 2>&1; then
5350 ac_cv_header_stdc=no
5356 if test $ac_cv_header_stdc = yes; then
5357 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5358 if test "$cross_compiling" = yes; then
5361 cat > conftest.$ac_ext <<EOF
5362 #line 5363 "configure"
5363 #include "confdefs.h"
5365 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5366 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5367 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5368 int main () { int i; for (i = 0; i < 256; i++)
5369 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5373 if { (eval echo configure:5374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5377 echo "configure: failed program was:" >&5
5378 cat conftest.$ac_ext >&5
5380 ac_cv_header_stdc=no
5388 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5389 if test $ac_cv_header_stdc = yes; then
5390 cat >> confdefs.h <<\EOF
5391 #define STDC_HEADERS 1
5396 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
5397 echo "configure:5398: checking for ssize_t" >&5
5398 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
5399 echo $ac_n "(cached) $ac_c" 1>&6
5401 cat > conftest.$ac_ext <<EOF
5402 #line 5403 "configure"
5403 #include "confdefs.h"
5404 #include <sys/types.h>
5410 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5411 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5413 ac_cv_type_ssize_t=yes
5416 ac_cv_type_ssize_t=no
5421 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
5422 if test $ac_cv_type_ssize_t = no; then
5423 cat >> confdefs.h <<\EOF
5430 echo $ac_n "checking for in_addr_t""... $ac_c" 1>&6
5431 echo "configure:5432: checking for in_addr_t" >&5
5432 cat > conftest.$ac_ext <<EOF
5433 #line 5434 "configure"
5434 #include "confdefs.h"
5435 #include <sys/types.h>
5440 #if HAVE_NETINET_IN_H
5441 #include <netinet/in.h>
5447 if { (eval echo configure:5448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5449 cat >> confdefs.h <<\EOF
5450 #define HAVE_IN_ADDR_T 1
5453 echo "$ac_t""yes" 1>&6
5455 echo "configure: failed program was:" >&5
5456 cat conftest.$ac_ext >&5
5458 echo "$ac_t""no" 1>&6
5462 echo $ac_n "checking whether struct ip_mreq is in netinet/in.h""... $ac_c" 1>&6
5463 echo "configure:5464: checking whether struct ip_mreq is in netinet/in.h" >&5
5464 cat > conftest.$ac_ext <<EOF
5465 #line 5466 "configure"
5466 #include "confdefs.h"
5467 #include <netinet/in.h>
5469 struct ip_mreq mreq;
5472 if { (eval echo configure:5473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5474 cat >> confdefs.h <<\EOF
5475 #define HAVE_STRUCT_IP_MREQ 1
5478 echo "$ac_t""yes" 1>&6
5480 echo "configure: failed program was:" >&5
5481 cat conftest.$ac_ext >&5
5483 echo "$ac_t""no" 1>&6
5487 echo $ac_n "checking whether struct sockaddr_in6 is in netinet/in.h""... $ac_c" 1>&6
5488 echo "configure:5489: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
5489 cat > conftest.$ac_ext <<EOF
5490 #line 5491 "configure"
5491 #include "confdefs.h"
5492 #include <netinet/in.h>
5494 struct sockaddr_in6 addr6;
5497 if { (eval echo configure:5498: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5499 cat >> confdefs.h <<\EOF
5500 #define HAVE_INET6 1
5503 echo "$ac_t""yes" 1>&6
5505 echo "configure: failed program was:" >&5
5506 cat conftest.$ac_ext >&5
5508 echo "$ac_t""no" 1>&6
5512 echo $ac_n "checking for socklen_t in sys/socket.h""... $ac_c" 1>&6
5513 echo "configure:5514: checking for socklen_t in sys/socket.h" >&5
5514 cat > conftest.$ac_ext <<EOF
5515 #line 5516 "configure"
5516 #include "confdefs.h"
5517 #include <sys/types.h>
5518 #include <sys/socket.h>
5523 if { (eval echo configure:5524: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5525 cat >> confdefs.h <<\EOF
5526 #define HAVE_SOCKLEN_T 1
5529 echo "$ac_t""yes" 1>&6
5531 echo "configure: failed program was:" >&5
5532 cat conftest.$ac_ext >&5
5534 echo "$ac_t""no" 1>&6
5538 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
5539 echo "configure:5540: checking for tm_gmtoff in struct tm" >&5
5540 cat > conftest.$ac_ext <<EOF
5541 #line 5542 "configure"
5542 #include "confdefs.h"
5545 struct tm tim; tim.tm_gmtoff = 0;
5548 if { (eval echo configure:5549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5550 cat >> confdefs.h <<\EOF
5551 #define STRUCT_TM_HAS_GMTOFF 1
5554 echo "$ac_t""yes" 1>&6
5556 echo "configure: failed program was:" >&5
5557 cat conftest.$ac_ext >&5
5559 echo "$ac_t""no" 1>&6
5560 echo $ac_n "checking for global timezone variable""... $ac_c" 1>&6
5561 echo "configure:5562: checking for global timezone variable" >&5
5562 cat > conftest.$ac_ext <<EOF
5563 #line 5564 "configure"
5564 #include "confdefs.h"
5570 if { (eval echo configure:5571: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5572 cat >> confdefs.h <<\EOF
5573 #define HAVE_TIMEZONE 1
5576 echo "$ac_t""yes" 1>&6
5578 echo "configure: failed program was:" >&5
5579 cat conftest.$ac_ext >&5
5581 echo "$ac_t""no" 1>&6
5587 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5588 # for constant arguments. Useless!
5589 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5590 echo "configure:5591: checking for working alloca.h" >&5
5591 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5592 echo $ac_n "(cached) $ac_c" 1>&6
5594 cat > conftest.$ac_ext <<EOF
5595 #line 5596 "configure"
5596 #include "confdefs.h"
5599 char *p = alloca(2 * sizeof(int));
5602 if { (eval echo configure:5603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5604 ac_cv_header_alloca_h=yes
5606 echo "configure: failed program was:" >&5
5607 cat conftest.$ac_ext >&5
5609 ac_cv_header_alloca_h=no
5614 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5615 if test $ac_cv_header_alloca_h = yes; then
5616 cat >> confdefs.h <<\EOF
5617 #define HAVE_ALLOCA_H 1
5622 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5623 echo "configure:5624: checking for alloca" >&5
5624 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5625 echo $ac_n "(cached) $ac_c" 1>&6
5627 cat > conftest.$ac_ext <<EOF
5628 #line 5629 "configure"
5629 #include "confdefs.h"
5632 # define alloca __builtin_alloca
5635 # include <malloc.h>
5636 # define alloca _alloca
5639 # include <alloca.h>
5644 # ifndef alloca /* predefined by HP cc +Olibcalls */
5653 char *p = (char *) alloca(1);
5656 if { (eval echo configure:5657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5658 ac_cv_func_alloca_works=yes
5660 echo "configure: failed program was:" >&5
5661 cat conftest.$ac_ext >&5
5663 ac_cv_func_alloca_works=no
5668 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5669 if test $ac_cv_func_alloca_works = yes; then
5670 cat >> confdefs.h <<\EOF
5671 #define HAVE_ALLOCA 1
5676 if test $ac_cv_func_alloca_works = no; then
5677 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5678 # that cause trouble. Some versions do not even contain alloca or
5679 # contain a buggy version. If you still want to use their alloca,
5680 # use ar to extract alloca.o from them instead of compiling alloca.c.
5681 ALLOCA=alloca.${ac_objext}
5682 cat >> confdefs.h <<\EOF
5687 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5688 echo "configure:5689: checking whether alloca needs Cray hooks" >&5
5689 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5690 echo $ac_n "(cached) $ac_c" 1>&6
5692 cat > conftest.$ac_ext <<EOF
5693 #line 5694 "configure"
5694 #include "confdefs.h"
5695 #if defined(CRAY) && ! defined(CRAY2)
5702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5703 egrep "webecray" >/dev/null 2>&1; then
5714 echo "$ac_t""$ac_cv_os_cray" 1>&6
5715 if test $ac_cv_os_cray = yes; then
5716 for ac_func in _getb67 GETB67 getb67; do
5717 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5718 echo "configure:5719: checking for $ac_func" >&5
5719 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5720 echo $ac_n "(cached) $ac_c" 1>&6
5722 cat > conftest.$ac_ext <<EOF
5723 #line 5724 "configure"
5724 #include "confdefs.h"
5725 /* System header to define __stub macros and hopefully few prototypes,
5726 which can conflict with char $ac_func(); below. */
5728 /* Override any gcc2 internal prototype to avoid an error. */
5729 /* We use char because int might match the return type of a gcc2
5730 builtin and then its argument prototype would still apply. */
5735 /* The GNU C library defines this for functions which it implements
5736 to always fail with ENOSYS. Some functions are actually named
5737 something starting with __ and the normal name is an alias. */
5738 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5746 if { (eval echo configure:5747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5748 eval "ac_cv_func_$ac_func=yes"
5750 echo "configure: failed program was:" >&5
5751 cat conftest.$ac_ext >&5
5753 eval "ac_cv_func_$ac_func=no"
5758 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5759 echo "$ac_t""yes" 1>&6
5760 cat >> confdefs.h <<EOF
5761 #define CRAY_STACKSEG_END $ac_func
5766 echo "$ac_t""no" 1>&6
5772 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5773 echo "configure:5774: checking stack direction for C alloca" >&5
5774 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5775 echo $ac_n "(cached) $ac_c" 1>&6
5777 if test "$cross_compiling" = yes; then
5778 ac_cv_c_stack_direction=0
5780 cat > conftest.$ac_ext <<EOF
5781 #line 5782 "configure"
5782 #include "confdefs.h"
5783 find_stack_direction ()
5785 static char *addr = 0;
5790 return find_stack_direction ();
5793 return (&dummy > addr) ? 1 : -1;
5797 exit (find_stack_direction() < 0);
5800 if { (eval echo configure:5801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5802 ac_cv_c_stack_direction=1
5804 echo "configure: failed program was:" >&5
5805 cat conftest.$ac_ext >&5
5807 ac_cv_c_stack_direction=-1
5814 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5815 cat >> confdefs.h <<EOF
5816 #define STACK_DIRECTION $ac_cv_c_stack_direction
5824 # Extract the first word of "$ac_prog", so it can be a program name with args.
5825 set dummy $ac_prog; ac_word=$2
5826 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5827 echo "configure:5828: checking for $ac_word" >&5
5828 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
5829 echo $ac_n "(cached) $ac_c" 1>&6
5831 if test -n "$PERL"; then
5832 ac_cv_prog_PERL="$PERL" # Let the user override the test.
5834 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5836 for ac_dir in $ac_dummy; do
5837 test -z "$ac_dir" && ac_dir=.
5838 if test -f $ac_dir/$ac_word; then
5839 ac_cv_prog_PERL="$ac_prog"
5846 PERL="$ac_cv_prog_PERL"
5847 if test -n "$PERL"; then
5848 echo "$ac_t""$PERL" 1>&6
5850 echo "$ac_t""no" 1>&6
5853 test -n "$PERL" && break
5855 test -n "$PERL" || PERL="false"
5862 SIGNAL_HANDLER=include/i386-signal.h
5865 SIGNAL_HANDLER=include/sparc-signal.h
5868 # SYSDEP_SOURCES=sysdep/ia64.c
5869 # test -d sysdep || mkdir sysdep
5872 SIGNAL_HANDLER=include/dwarf2-signal.h
5875 SIGNAL_HANDLER=include/dwarf2-signal.h
5878 SIGNAL_HANDLER=include/default-signal.h
5882 # If we're using sjlj exceptions, forget what we just learned.
5883 if test "$enable_sjlj_exceptions" = yes; then
5884 SIGNAL_HANDLER=include/default-signal.h
5891 if test "${multilib}" = "yes"; then
5892 multilib_arg="--enable-multilib"
5897 # If we find X, set shell vars x_includes and x_libraries to the
5898 # paths, otherwise set no_x=yes.
5899 # Uses ac_ vars as temps to allow command line to override cache and checks.
5900 # --without-x overrides everything else, but does not touch the cache.
5901 echo $ac_n "checking for X""... $ac_c" 1>&6
5902 echo "configure:5903: checking for X" >&5
5904 # Check whether --with-x or --without-x was given.
5905 if test "${with_x+set}" = set; then
5910 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5911 if test "x$with_x" = xno; then
5912 # The user explicitly disabled X.
5915 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5916 # Both variables are already set.
5919 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
5920 echo $ac_n "(cached) $ac_c" 1>&6
5922 # One or both of the vars are not set, and there is no cached value.
5923 ac_x_includes=NO ac_x_libraries=NO
5925 if mkdir conftestdir; then
5927 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5928 cat > Imakefile <<'EOF'
5930 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5932 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5933 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5934 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5935 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5936 for ac_extension in a so sl; do
5937 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5938 test -f $ac_im_libdir/libX11.$ac_extension; then
5939 ac_im_usrlibdir=$ac_im_libdir; break
5942 # Screen out bogus values from the imake configuration. They are
5943 # bogus both because they are the default anyway, and because
5944 # using them would break gcc on systems where it needs fixed includes.
5945 case "$ac_im_incroot" in
5947 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
5949 case "$ac_im_usrlibdir" in
5951 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
5958 if test "$ac_x_includes" = NO; then
5959 # Guess where to find include files, by looking for this one X11 .h file.
5960 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
5962 # First, try using that file with no special directory specified.
5963 cat > conftest.$ac_ext <<EOF
5964 #line 5965 "configure"
5965 #include "confdefs.h"
5966 #include <$x_direct_test_include>
5968 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5969 { (eval echo configure:5970: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5970 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5971 if test -z "$ac_err"; then
5973 # We can compile using X headers with no special include directory.
5977 echo "configure: failed program was:" >&5
5978 cat conftest.$ac_ext >&5
5980 # Look for the header file in a standard set of common directories.
5981 # Check X11 before X11Rn because it is often a symlink to the current release.
5984 /usr/X11R6/include \
5985 /usr/X11R5/include \
5986 /usr/X11R4/include \
5989 /usr/include/X11R6 \
5990 /usr/include/X11R5 \
5991 /usr/include/X11R4 \
5993 /usr/local/X11/include \
5994 /usr/local/X11R6/include \
5995 /usr/local/X11R5/include \
5996 /usr/local/X11R4/include \
5998 /usr/local/include/X11 \
5999 /usr/local/include/X11R6 \
6000 /usr/local/include/X11R5 \
6001 /usr/local/include/X11R4 \
6005 /usr/XFree86/include/X11 \
6008 /usr/local/include \
6009 /usr/unsupported/include \
6010 /usr/athena/include \
6011 /usr/local/x11r5/include \
6012 /usr/lpp/Xamples/include \
6014 /usr/openwin/include \
6015 /usr/openwin/share/include \
6018 if test -r "$ac_dir/$x_direct_test_include"; then
6019 ac_x_includes=$ac_dir
6025 fi # $ac_x_includes = NO
6027 if test "$ac_x_libraries" = NO; then
6028 # Check for the libraries.
6030 test -z "$x_direct_test_library" && x_direct_test_library=Xt
6031 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
6033 # See if we find them without any special options.
6034 # Don't add to $LIBS permanently.
6035 ac_save_LIBS="$LIBS"
6036 LIBS="-l$x_direct_test_library $LIBS"
6037 cat > conftest.$ac_ext <<EOF
6038 #line 6039 "configure"
6039 #include "confdefs.h"
6042 ${x_direct_test_function}()
6045 if { (eval echo configure:6046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6047 LIBS="$ac_save_LIBS"
6048 # We can link X programs with no special library path.
6051 echo "configure: failed program was:" >&5
6052 cat conftest.$ac_ext >&5
6054 LIBS="$ac_save_LIBS"
6055 # First see if replacing the include by lib works.
6056 # Check X11 before X11Rn because it is often a symlink to the current release.
6057 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
6068 /usr/local/X11/lib \
6069 /usr/local/X11R6/lib \
6070 /usr/local/X11R5/lib \
6071 /usr/local/X11R4/lib \
6073 /usr/local/lib/X11 \
6074 /usr/local/lib/X11R6 \
6075 /usr/local/lib/X11R5 \
6076 /usr/local/lib/X11R4 \
6080 /usr/XFree86/lib/X11 \
6084 /usr/unsupported/lib \
6086 /usr/local/x11r5/lib \
6087 /usr/lpp/Xamples/lib \
6091 /usr/openwin/share/lib \
6094 for ac_extension in a so sl; do
6095 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
6096 ac_x_libraries=$ac_dir
6103 fi # $ac_x_libraries = NO
6105 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
6106 # Didn't find X anywhere. Cache the known absence of X.
6107 ac_cv_have_x="have_x=no"
6109 # Record where we found X for the cache.
6110 ac_cv_have_x="have_x=yes \
6111 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6115 eval "$ac_cv_have_x"
6118 if test "$have_x" != yes; then
6119 echo "$ac_t""$have_x" 1>&6
6122 # If each of the values was on the command line, it overrides each guess.
6123 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6124 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6125 # Update the cache value to reflect the command line values.
6126 ac_cv_have_x="have_x=yes \
6127 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6128 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
6131 if test "$no_x" = yes; then
6132 # Not all programs may use this symbol, but it does not hurt to define it.
6133 cat >> confdefs.h <<\EOF
6134 #define X_DISPLAY_MISSING 1
6137 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6139 if test -n "$x_includes"; then
6140 X_CFLAGS="$X_CFLAGS -I$x_includes"
6143 # It would also be nice to do this for all -L options, not just this one.
6144 if test -n "$x_libraries"; then
6145 X_LIBS="$X_LIBS -L$x_libraries"
6146 # For Solaris; some versions of Sun CC require a space after -R and
6147 # others require no space. Words are not sufficient . . . .
6148 case "`(uname -sr) 2>/dev/null`" in
6150 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
6151 echo "configure:6152: checking whether -R must be followed by a space" >&5
6152 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
6153 cat > conftest.$ac_ext <<EOF
6154 #line 6155 "configure"
6155 #include "confdefs.h"
6161 if { (eval echo configure:6162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6165 echo "configure: failed program was:" >&5
6166 cat conftest.$ac_ext >&5
6171 if test $ac_R_nospace = yes; then
6172 echo "$ac_t""no" 1>&6
6173 X_LIBS="$X_LIBS -R$x_libraries"
6175 LIBS="$ac_xsave_LIBS -R $x_libraries"
6176 cat > conftest.$ac_ext <<EOF
6177 #line 6178 "configure"
6178 #include "confdefs.h"
6184 if { (eval echo configure:6185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6188 echo "configure: failed program was:" >&5
6189 cat conftest.$ac_ext >&5
6194 if test $ac_R_space = yes; then
6195 echo "$ac_t""yes" 1>&6
6196 X_LIBS="$X_LIBS -R $x_libraries"
6198 echo "$ac_t""neither works" 1>&6
6201 LIBS="$ac_xsave_LIBS"
6205 # Check for system-dependent libraries X programs must link with.
6206 # Do this before checking for the system-independent R6 libraries
6207 # (-lICE), since we may need -lsocket or whatever for X linking.
6209 if test "$ISC" = yes; then
6210 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6212 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
6213 # libraries were built with DECnet support. And karl@cs.umb.edu says
6214 # the Alpha needs dnet_stub (dnet does not exist).
6215 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
6216 echo "configure:6217: checking for dnet_ntoa in -ldnet" >&5
6217 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6218 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6219 echo $ac_n "(cached) $ac_c" 1>&6
6221 ac_save_LIBS="$LIBS"
6223 cat > conftest.$ac_ext <<EOF
6224 #line 6225 "configure"
6225 #include "confdefs.h"
6226 /* Override any gcc2 internal prototype to avoid an error. */
6227 /* We use char because int might match the return type of a gcc2
6228 builtin and then its argument prototype would still apply. */
6235 if { (eval echo configure:6236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6237 eval "ac_cv_lib_$ac_lib_var=yes"
6239 echo "configure: failed program was:" >&5
6240 cat conftest.$ac_ext >&5
6242 eval "ac_cv_lib_$ac_lib_var=no"
6245 LIBS="$ac_save_LIBS"
6248 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6249 echo "$ac_t""yes" 1>&6
6250 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6252 echo "$ac_t""no" 1>&6
6255 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6256 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
6257 echo "configure:6258: checking for dnet_ntoa in -ldnet_stub" >&5
6258 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6259 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6260 echo $ac_n "(cached) $ac_c" 1>&6
6262 ac_save_LIBS="$LIBS"
6263 LIBS="-ldnet_stub $LIBS"
6264 cat > conftest.$ac_ext <<EOF
6265 #line 6266 "configure"
6266 #include "confdefs.h"
6267 /* Override any gcc2 internal prototype to avoid an error. */
6268 /* We use char because int might match the return type of a gcc2
6269 builtin and then its argument prototype would still apply. */
6276 if { (eval echo configure:6277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6278 eval "ac_cv_lib_$ac_lib_var=yes"
6280 echo "configure: failed program was:" >&5
6281 cat conftest.$ac_ext >&5
6283 eval "ac_cv_lib_$ac_lib_var=no"
6286 LIBS="$ac_save_LIBS"
6289 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6290 echo "$ac_t""yes" 1>&6
6291 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6293 echo "$ac_t""no" 1>&6
6298 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6299 # to get the SysV transport functions.
6300 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
6302 # The nsl library prevents programs from opening the X display
6303 # on Irix 5.2, according to dickey@clark.net.
6304 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
6305 echo "configure:6306: checking for gethostbyname" >&5
6306 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
6307 echo $ac_n "(cached) $ac_c" 1>&6
6309 cat > conftest.$ac_ext <<EOF
6310 #line 6311 "configure"
6311 #include "confdefs.h"
6312 /* System header to define __stub macros and hopefully few prototypes,
6313 which can conflict with char gethostbyname(); below. */
6315 /* Override any gcc2 internal prototype to avoid an error. */
6316 /* We use char because int might match the return type of a gcc2
6317 builtin and then its argument prototype would still apply. */
6318 char gethostbyname();
6322 /* The GNU C library defines this for functions which it implements
6323 to always fail with ENOSYS. Some functions are actually named
6324 something starting with __ and the normal name is an alias. */
6325 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6333 if { (eval echo configure:6334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6335 eval "ac_cv_func_gethostbyname=yes"
6337 echo "configure: failed program was:" >&5
6338 cat conftest.$ac_ext >&5
6340 eval "ac_cv_func_gethostbyname=no"
6345 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
6346 echo "$ac_t""yes" 1>&6
6349 echo "$ac_t""no" 1>&6
6352 if test $ac_cv_func_gethostbyname = no; then
6353 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
6354 echo "configure:6355: checking for gethostbyname in -lnsl" >&5
6355 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
6356 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6357 echo $ac_n "(cached) $ac_c" 1>&6
6359 ac_save_LIBS="$LIBS"
6361 cat > conftest.$ac_ext <<EOF
6362 #line 6363 "configure"
6363 #include "confdefs.h"
6364 /* Override any gcc2 internal prototype to avoid an error. */
6365 /* We use char because int might match the return type of a gcc2
6366 builtin and then its argument prototype would still apply. */
6367 char gethostbyname();
6373 if { (eval echo configure:6374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6375 eval "ac_cv_lib_$ac_lib_var=yes"
6377 echo "configure: failed program was:" >&5
6378 cat conftest.$ac_ext >&5
6380 eval "ac_cv_lib_$ac_lib_var=no"
6383 LIBS="$ac_save_LIBS"
6386 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6387 echo "$ac_t""yes" 1>&6
6388 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6390 echo "$ac_t""no" 1>&6
6395 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6396 # socket/setsockopt and other routines are undefined under SCO ODT
6397 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6398 # on later versions), says simon@lia.di.epfl.ch: it contains
6399 # gethostby* variants that don't use the nameserver (or something).
6400 # -lsocket must be given before -lnsl if both are needed.
6401 # We assume that if connect needs -lnsl, so does gethostbyname.
6402 echo $ac_n "checking for connect""... $ac_c" 1>&6
6403 echo "configure:6404: checking for connect" >&5
6404 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
6405 echo $ac_n "(cached) $ac_c" 1>&6
6407 cat > conftest.$ac_ext <<EOF
6408 #line 6409 "configure"
6409 #include "confdefs.h"
6410 /* System header to define __stub macros and hopefully few prototypes,
6411 which can conflict with char connect(); below. */
6413 /* Override any gcc2 internal prototype to avoid an error. */
6414 /* We use char because int might match the return type of a gcc2
6415 builtin and then its argument prototype would still apply. */
6420 /* The GNU C library defines this for functions which it implements
6421 to always fail with ENOSYS. Some functions are actually named
6422 something starting with __ and the normal name is an alias. */
6423 #if defined (__stub_connect) || defined (__stub___connect)
6431 if { (eval echo configure:6432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6433 eval "ac_cv_func_connect=yes"
6435 echo "configure: failed program was:" >&5
6436 cat conftest.$ac_ext >&5
6438 eval "ac_cv_func_connect=no"
6443 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
6444 echo "$ac_t""yes" 1>&6
6447 echo "$ac_t""no" 1>&6
6450 if test $ac_cv_func_connect = no; then
6451 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
6452 echo "configure:6453: checking for connect in -lsocket" >&5
6453 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
6454 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6455 echo $ac_n "(cached) $ac_c" 1>&6
6457 ac_save_LIBS="$LIBS"
6458 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6459 cat > conftest.$ac_ext <<EOF
6460 #line 6461 "configure"
6461 #include "confdefs.h"
6462 /* Override any gcc2 internal prototype to avoid an error. */
6463 /* We use char because int might match the return type of a gcc2
6464 builtin and then its argument prototype would still apply. */
6471 if { (eval echo configure:6472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6473 eval "ac_cv_lib_$ac_lib_var=yes"
6475 echo "configure: failed program was:" >&5
6476 cat conftest.$ac_ext >&5
6478 eval "ac_cv_lib_$ac_lib_var=no"
6481 LIBS="$ac_save_LIBS"
6484 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6485 echo "$ac_t""yes" 1>&6
6486 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6488 echo "$ac_t""no" 1>&6
6493 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
6494 echo $ac_n "checking for remove""... $ac_c" 1>&6
6495 echo "configure:6496: checking for remove" >&5
6496 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
6497 echo $ac_n "(cached) $ac_c" 1>&6
6499 cat > conftest.$ac_ext <<EOF
6500 #line 6501 "configure"
6501 #include "confdefs.h"
6502 /* System header to define __stub macros and hopefully few prototypes,
6503 which can conflict with char remove(); below. */
6505 /* Override any gcc2 internal prototype to avoid an error. */
6506 /* We use char because int might match the return type of a gcc2
6507 builtin and then its argument prototype would still apply. */
6512 /* The GNU C library defines this for functions which it implements
6513 to always fail with ENOSYS. Some functions are actually named
6514 something starting with __ and the normal name is an alias. */
6515 #if defined (__stub_remove) || defined (__stub___remove)
6523 if { (eval echo configure:6524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6525 eval "ac_cv_func_remove=yes"
6527 echo "configure: failed program was:" >&5
6528 cat conftest.$ac_ext >&5
6530 eval "ac_cv_func_remove=no"
6535 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
6536 echo "$ac_t""yes" 1>&6
6539 echo "$ac_t""no" 1>&6
6542 if test $ac_cv_func_remove = no; then
6543 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
6544 echo "configure:6545: checking for remove in -lposix" >&5
6545 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
6546 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6547 echo $ac_n "(cached) $ac_c" 1>&6
6549 ac_save_LIBS="$LIBS"
6550 LIBS="-lposix $LIBS"
6551 cat > conftest.$ac_ext <<EOF
6552 #line 6553 "configure"
6553 #include "confdefs.h"
6554 /* Override any gcc2 internal prototype to avoid an error. */
6555 /* We use char because int might match the return type of a gcc2
6556 builtin and then its argument prototype would still apply. */
6563 if { (eval echo configure:6564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6565 eval "ac_cv_lib_$ac_lib_var=yes"
6567 echo "configure: failed program was:" >&5
6568 cat conftest.$ac_ext >&5
6570 eval "ac_cv_lib_$ac_lib_var=no"
6573 LIBS="$ac_save_LIBS"
6576 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6577 echo "$ac_t""yes" 1>&6
6578 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6580 echo "$ac_t""no" 1>&6
6585 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6586 echo $ac_n "checking for shmat""... $ac_c" 1>&6
6587 echo "configure:6588: checking for shmat" >&5
6588 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
6589 echo $ac_n "(cached) $ac_c" 1>&6
6591 cat > conftest.$ac_ext <<EOF
6592 #line 6593 "configure"
6593 #include "confdefs.h"
6594 /* System header to define __stub macros and hopefully few prototypes,
6595 which can conflict with char shmat(); below. */
6597 /* Override any gcc2 internal prototype to avoid an error. */
6598 /* We use char because int might match the return type of a gcc2
6599 builtin and then its argument prototype would still apply. */
6604 /* The GNU C library defines this for functions which it implements
6605 to always fail with ENOSYS. Some functions are actually named
6606 something starting with __ and the normal name is an alias. */
6607 #if defined (__stub_shmat) || defined (__stub___shmat)
6615 if { (eval echo configure:6616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6617 eval "ac_cv_func_shmat=yes"
6619 echo "configure: failed program was:" >&5
6620 cat conftest.$ac_ext >&5
6622 eval "ac_cv_func_shmat=no"
6627 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
6628 echo "$ac_t""yes" 1>&6
6631 echo "$ac_t""no" 1>&6
6634 if test $ac_cv_func_shmat = no; then
6635 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
6636 echo "configure:6637: checking for shmat in -lipc" >&5
6637 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
6638 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6639 echo $ac_n "(cached) $ac_c" 1>&6
6641 ac_save_LIBS="$LIBS"
6643 cat > conftest.$ac_ext <<EOF
6644 #line 6645 "configure"
6645 #include "confdefs.h"
6646 /* Override any gcc2 internal prototype to avoid an error. */
6647 /* We use char because int might match the return type of a gcc2
6648 builtin and then its argument prototype would still apply. */
6655 if { (eval echo configure:6656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6657 eval "ac_cv_lib_$ac_lib_var=yes"
6659 echo "configure: failed program was:" >&5
6660 cat conftest.$ac_ext >&5
6662 eval "ac_cv_lib_$ac_lib_var=no"
6665 LIBS="$ac_save_LIBS"
6668 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6669 echo "$ac_t""yes" 1>&6
6670 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6672 echo "$ac_t""no" 1>&6
6678 # Check for libraries that X11R6 Xt/Xaw programs need.
6679 ac_save_LDFLAGS="$LDFLAGS"
6680 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6681 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6682 # check for ICE first), but we must link in the order -lSM -lICE or
6683 # we get undefined symbols. So assume we have SM if we have ICE.
6684 # These have to be linked with before -lX11, unlike the other
6685 # libraries we check for below, so use a different variable.
6686 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
6687 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
6688 echo "configure:6689: checking for IceConnectionNumber in -lICE" >&5
6689 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
6690 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6691 echo $ac_n "(cached) $ac_c" 1>&6
6693 ac_save_LIBS="$LIBS"
6694 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6695 cat > conftest.$ac_ext <<EOF
6696 #line 6697 "configure"
6697 #include "confdefs.h"
6698 /* Override any gcc2 internal prototype to avoid an error. */
6699 /* We use char because int might match the return type of a gcc2
6700 builtin and then its argument prototype would still apply. */
6701 char IceConnectionNumber();
6704 IceConnectionNumber()
6707 if { (eval echo configure:6708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6709 eval "ac_cv_lib_$ac_lib_var=yes"
6711 echo "configure: failed program was:" >&5
6712 cat conftest.$ac_ext >&5
6714 eval "ac_cv_lib_$ac_lib_var=no"
6717 LIBS="$ac_save_LIBS"
6720 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6721 echo "$ac_t""yes" 1>&6
6722 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6724 echo "$ac_t""no" 1>&6
6727 LDFLAGS="$ac_save_LDFLAGS"
6732 # Check whether --enable-java-awt or --disable-java-awt was given.
6733 if test "${enable_java_awt+set}" = set; then
6734 enableval="$enable_java_awt"
6739 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
6743 for peer in $peerlibs ; do
6746 if test "$no_x" = yes; then
6747 echo "*** xlib peers requested but no X library available" 1>&2
6757 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
6764 if test "$use_xlib_awt" = yes; then
6773 if test "$use_gtk_awt" = yes; then
6785 # We get this from the environment.
6789 cat > confcache <<\EOF
6790 # This file is a shell script that caches the results of configure
6791 # tests run on this system so they can be shared between configure
6792 # scripts and configure runs. It is not useful on other systems.
6793 # If it contains results you don't want to keep, you may remove or edit it.
6795 # By default, configure uses ./config.cache as the cache file,
6796 # creating it if it does not exist already. You can give configure
6797 # the --cache-file=FILE option to use a different cache file; that is
6798 # what configure does when it calls configure scripts in
6799 # subdirectories, so they share the cache.
6800 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6801 # config.status only pays attention to the cache file if you give it the
6802 # --recheck option to rerun configure.
6805 # The following way of writing the cache mishandles newlines in values,
6806 # but we know of no workaround that is simple, portable, and efficient.
6807 # So, don't put newlines in cache variables' values.
6808 # Ultrix sh set writes to stderr and can't be redirected directly,
6809 # and sets the high bit in the cache file unless we assign to the vars.
6811 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6813 # `set' does not quote correctly, so add quotes (double-quote substitution
6814 # turns \\\\ into \\, and sed turns \\ into \).
6816 -e "s/'/'\\\\''/g" \
6817 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6820 # `set' quotes correctly as required by POSIX, so do not add quotes.
6821 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6824 if cmp -s $cache_file confcache; then
6827 if test -w $cache_file; then
6828 echo "updating cache $cache_file"
6829 cat confcache > $cache_file
6831 echo "not updating unwritable cache $cache_file"
6836 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6838 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6839 # Let make expand exec_prefix.
6840 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6842 # Any assignment to VPATH causes Sun make to only execute
6843 # the first set of double-colon rules, so remove it if not needed.
6844 # If there is a colon in the path, we need to keep it.
6845 if test "x$srcdir" = x.; then
6846 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6849 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6851 DEFS=-DHAVE_CONFIG_H
6853 # Without the "./", some shells look in PATH for config.status.
6854 : ${CONFIG_STATUS=./config.status}
6856 echo creating $CONFIG_STATUS
6857 rm -f $CONFIG_STATUS
6858 cat > $CONFIG_STATUS <<EOF
6860 # Generated automatically by configure.
6861 # Run this file to recreate the current configuration.
6862 # This directory was configured as follows,
6863 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6865 # $0 $ac_configure_args
6867 # Compiler output produced by configure, useful for debugging
6868 # configure, is in ./config.log if it exists.
6870 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6873 case "\$ac_option" in
6874 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6875 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6876 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6877 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6878 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6880 -help | --help | --hel | --he | --h)
6881 echo "\$ac_cs_usage"; exit 0 ;;
6882 *) echo "\$ac_cs_usage"; exit 1 ;;
6886 ac_given_srcdir=$srcdir
6887 ac_given_INSTALL="$INSTALL"
6889 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
6891 cat >> $CONFIG_STATUS <<EOF
6893 # Protect against being on the right side of a sed subst in config.status.
6894 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6895 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6899 s%@CFLAGS@%$CFLAGS%g
6900 s%@CPPFLAGS@%$CPPFLAGS%g
6901 s%@CXXFLAGS@%$CXXFLAGS%g
6902 s%@FFLAGS@%$FFLAGS%g
6904 s%@LDFLAGS@%$LDFLAGS%g
6906 s%@exec_prefix@%$exec_prefix%g
6907 s%@prefix@%$prefix%g
6908 s%@program_transform_name@%$program_transform_name%g
6909 s%@bindir@%$bindir%g
6910 s%@sbindir@%$sbindir%g
6911 s%@libexecdir@%$libexecdir%g
6912 s%@datadir@%$datadir%g
6913 s%@sysconfdir@%$sysconfdir%g
6914 s%@sharedstatedir@%$sharedstatedir%g
6915 s%@localstatedir@%$localstatedir%g
6916 s%@libdir@%$libdir%g
6917 s%@includedir@%$includedir%g
6918 s%@oldincludedir@%$oldincludedir%g
6919 s%@infodir@%$infodir%g
6920 s%@mandir@%$mandir%g
6922 s%@host_alias@%$host_alias%g
6923 s%@host_cpu@%$host_cpu%g
6924 s%@host_vendor@%$host_vendor%g
6925 s%@host_os@%$host_os%g
6926 s%@target@%$target%g
6927 s%@target_alias@%$target_alias%g
6928 s%@target_cpu@%$target_cpu%g
6929 s%@target_vendor@%$target_vendor%g
6930 s%@target_os@%$target_os%g
6932 s%@build_alias@%$build_alias%g
6933 s%@build_cpu@%$build_cpu%g
6934 s%@build_vendor@%$build_vendor%g
6935 s%@build_os@%$build_os%g
6937 s%@libgcj_basedir@%$libgcj_basedir%g
6940 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6941 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6942 s%@INSTALL_DATA@%$INSTALL_DATA%g
6943 s%@PACKAGE@%$PACKAGE%g
6944 s%@VERSION@%$VERSION%g
6945 s%@ACLOCAL@%$ACLOCAL%g
6946 s%@AUTOCONF@%$AUTOCONF%g
6947 s%@AUTOMAKE@%$AUTOMAKE%g
6948 s%@AUTOHEADER@%$AUTOHEADER%g
6949 s%@MAKEINFO@%$MAKEINFO%g
6950 s%@SET_MAKE@%$SET_MAKE%g
6953 s%@RANLIB@%$RANLIB%g
6954 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
6955 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
6957 s%@EXEEXT@%$EXEEXT%g
6958 s%@LIBGCJ_CFLAGS@%$LIBGCJ_CFLAGS%g
6959 s%@LIBGCJ_CXXFLAGS@%$LIBGCJ_CXXFLAGS%g
6960 s%@LIBGCJ_JAVAFLAGS@%$LIBGCJ_JAVAFLAGS%g
6961 s%@INCLTDL@%$INCLTDL%g
6962 s%@LIBLTDL@%$LIBLTDL%g
6963 s%@DIRLTDL@%$DIRLTDL%g
6964 s%@OBJEXT@%$OBJEXT%g
6966 s%@LIBTOOL@%$LIBTOOL%g
6967 s%@CXXCPP@%$CXXCPP%g
6968 s%@subdirs@%$subdirs%g
6969 s%@COMPPATH@%$COMPPATH%g
6970 s%@TESTSUBDIR_TRUE@%$TESTSUBDIR_TRUE%g
6971 s%@TESTSUBDIR_FALSE@%$TESTSUBDIR_FALSE%g
6972 s%@LIBGCJDEBUG@%$LIBGCJDEBUG%g
6973 s%@LIBDATASTARTSPEC@%$LIBDATASTARTSPEC%g
6975 s%@SYSTEMSPEC@%$SYSTEMSPEC%g
6976 s%@LIBGCJTESTSPEC@%$LIBGCJTESTSPEC%g
6977 s%@ZLIBSPEC@%$ZLIBSPEC%g
6978 s%@ZLIBTESTSPEC@%$ZLIBTESTSPEC%g
6979 s%@GCLIBS@%$GCLIBS%g
6980 s%@GCINCS@%$GCINCS%g
6981 s%@GCDEPS@%$GCDEPS%g
6982 s%@GCOBJS@%$GCOBJS%g
6983 s%@GCSPEC@%$GCSPEC%g
6984 s%@JC1GCSPEC@%$JC1GCSPEC%g
6985 s%@GCTESTSPEC@%$GCTESTSPEC%g
6986 s%@THREADLIBS@%$THREADLIBS%g
6987 s%@THREADINCS@%$THREADINCS%g
6988 s%@THREADDEPS@%$THREADDEPS%g
6989 s%@THREADOBJS@%$THREADOBJS%g
6990 s%@THREADSPEC@%$THREADSPEC%g
6991 s%@HASH_SYNC_SPEC@%$HASH_SYNC_SPEC%g
6992 s%@USING_GCC_TRUE@%$USING_GCC_TRUE%g
6993 s%@USING_GCC_FALSE@%$USING_GCC_FALSE%g
6995 s%@GCJFLAGS@%$GCJFLAGS%g
6999 s%@DIVIDESPEC@%$DIVIDESPEC%g
7000 s%@EXCEPTIONSPEC@%$EXCEPTIONSPEC%g
7001 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
7002 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
7003 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
7004 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
7005 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
7006 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
7007 s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
7008 s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
7009 s%@NEEDS_DATA_START_TRUE@%$NEEDS_DATA_START_TRUE%g
7010 s%@NEEDS_DATA_START_FALSE@%$NEEDS_DATA_START_FALSE%g
7011 s%@GCC_UNWIND_INCLUDE@%$GCC_UNWIND_INCLUDE%g
7012 s%@GCJVERSION@%$GCJVERSION%g
7013 s%@AM_RUNTESTFLAGS@%$AM_RUNTESTFLAGS%g
7014 s%@ALLOCA@%$ALLOCA%g
7016 s%@SYSDEP_SOURCES@%$SYSDEP_SOURCES%g
7017 s%@X_CFLAGS@%$X_CFLAGS%g
7018 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
7019 s%@X_LIBS@%$X_LIBS%g
7020 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
7021 s%@XLIB_AWT_TRUE@%$XLIB_AWT_TRUE%g
7022 s%@XLIB_AWT_FALSE@%$XLIB_AWT_FALSE%g
7023 s%@GTK_AWT_TRUE@%$GTK_AWT_TRUE%g
7024 s%@GTK_AWT_FALSE@%$GTK_AWT_FALSE%g
7030 cat >> $CONFIG_STATUS <<\EOF
7032 # Split the substitutions into bite-sized pieces for seds with
7033 # small command number limits, like on Digital OSF/1 and HP-UX.
7034 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7035 ac_file=1 # Number of current file.
7036 ac_beg=1 # First line for current file.
7037 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7040 while $ac_more_lines; do
7041 if test $ac_beg -gt 1; then
7042 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7044 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7046 if test ! -s conftest.s$ac_file; then
7048 rm -f conftest.s$ac_file
7050 if test -z "$ac_sed_cmds"; then
7051 ac_sed_cmds="sed -f conftest.s$ac_file"
7053 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7055 ac_file=`expr $ac_file + 1`
7057 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7060 if test -z "$ac_sed_cmds"; then
7065 cat >> $CONFIG_STATUS <<EOF
7067 CONFIG_FILES=\${CONFIG_FILES-"Makefile libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile"}
7069 cat >> $CONFIG_STATUS <<\EOF
7070 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7071 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7073 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7074 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7075 *) ac_file_in="${ac_file}.in" ;;
7078 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7080 # Remove last slash and all that follows it. Not all systems have dirname.
7081 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7082 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7083 # The file is in a subdirectory.
7084 test ! -d "$ac_dir" && mkdir "$ac_dir"
7085 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7086 # A "../" for each directory in $ac_dir_suffix.
7087 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7089 ac_dir_suffix= ac_dots=
7092 case "$ac_given_srcdir" in
7094 if test -z "$ac_dots"; then top_srcdir=.
7095 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7096 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7098 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7099 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7102 case "$ac_given_INSTALL" in
7103 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7104 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7107 echo creating "$ac_file"
7109 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7111 *Makefile*) ac_comsub="1i\\
7112 # $configure_input" ;;
7116 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7118 s%@configure_input@%$configure_input%g
7119 s%@srcdir@%$srcdir%g
7120 s%@top_srcdir@%$top_srcdir%g
7121 s%@INSTALL@%$INSTALL%g
7122 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7126 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7127 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7129 # ac_d sets the value in "#define NAME VALUE" lines.
7130 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7131 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7134 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7135 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7136 ac_uB='\([ ]\)%\1#\2define\3'
7139 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7140 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7141 ac_eB='$%\1#\2define\3'
7145 if test "${CONFIG_HEADERS+set}" != set; then
7147 cat >> $CONFIG_STATUS <<EOF
7148 CONFIG_HEADERS="include/config.h gcj/libgcj-config.h"
7150 cat >> $CONFIG_STATUS <<\EOF
7152 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7153 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7155 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7156 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7157 *) ac_file_in="${ac_file}.in" ;;
7160 echo creating $ac_file
7162 rm -f conftest.frag conftest.in conftest.out
7163 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7164 cat $ac_file_inputs > conftest.in
7168 # Transform confdefs.h into a sed script conftest.vals that substitutes
7169 # the proper values into config.h.in to produce config.h. And first:
7170 # Protect against being on the right side of a sed subst in config.status.
7171 # Protect against being in an unquoted here document in config.status.
7173 cat > conftest.hdr <<\EOF
7176 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7180 sed -n -f conftest.hdr confdefs.h > conftest.vals
7183 # This sed command replaces #undef with comments. This is necessary, for
7184 # example, in the case of _POSIX_SOURCE, which is predefined and required
7185 # on some systems where configure will not decide to define it.
7186 cat >> conftest.vals <<\EOF
7187 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7190 # Break up conftest.vals because some shells have a limit on
7191 # the size of here documents, and old seds have small limits too.
7196 ac_lines=`grep -c . conftest.vals`
7197 # grep -c gives empty output for an empty file on some AIX systems.
7198 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7199 # Write a limited-size here document to conftest.frag.
7200 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7201 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7203 sed -f conftest.frag conftest.in > conftest.out
7205 mv conftest.out conftest.in
7207 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7209 mv conftest.tail conftest.vals
7213 cat >> $CONFIG_STATUS <<\EOF
7214 rm -f conftest.frag conftest.h
7215 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7216 cat conftest.in >> conftest.h
7218 if cmp -s $ac_file conftest.h 2>/dev/null; then
7219 echo "$ac_file is unchanged"
7222 # Remove last slash and all that follows it. Not all systems have dirname.
7223 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7224 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7225 # The file is in a subdirectory.
7226 test ! -d "$ac_dir" && mkdir "$ac_dir"
7229 mv conftest.h $ac_file
7235 cat >> $CONFIG_STATUS <<EOF
7236 ac_sources="java/io/$FILE_DESCRIPTOR java/lang/${PROCESS}Process.java java/lang/nat${PROCESS}Process.cc include/$GCHDR include/$THREADH $SIGNAL_HANDLER"
7237 ac_dests="java/io/natFileDescriptor.cc java/lang/ConcreteProcess.java java/lang/natConcreteProcess.cc include/java-gc.h include/java-threads.h include/java-signal.h"
7240 cat >> $CONFIG_STATUS <<\EOF
7241 srcdir=$ac_given_srcdir
7242 while test -n "$ac_sources"; do
7243 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
7244 set $ac_sources; ac_source=$1; shift; ac_sources=$*
7246 echo "linking $srcdir/$ac_source to $ac_dest"
7248 if test ! -r $srcdir/$ac_source; then
7249 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
7253 # Make relative symlinks.
7254 # Remove last slash and all that follows it. Not all systems have dirname.
7255 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
7256 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
7257 # The dest file is in a subdirectory.
7258 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
7259 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
7260 # A "../" for each directory in $ac_dest_dir_suffix.
7261 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
7263 ac_dest_dir_suffix= ac_dots=
7267 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
7268 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
7271 # Make a symlink if possible; otherwise try a hard link.
7272 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
7273 ln $srcdir/$ac_source $ac_dest; then :
7275 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
7279 cat >> $CONFIG_STATUS <<EOF
7284 with_multisubdir=${with_multisubdir}
7285 ac_configure_args="${multilib_arg} ${ac_configure_args}"
7286 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
7287 libgcj_basedir=${libgcj_basedir}
7292 cat >> $CONFIG_STATUS <<\EOF
7294 for am_file in include/config.h gcj/libgcj-config.h; do
7295 case " $CONFIG_HEADERS " in
7297 echo timestamp > `echo $am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
7300 am_indx=`expr "$am_indx" + 1`
7302 if test -n "$CONFIG_FILES"; then
7303 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
7306 # Make subdirectories and `.d' files. Look in both srcdir and
7307 # builddir for the .java files.
7310 ( (cd $srcdir && find . -name '*.java' -print) ;
7311 find . -name '*.java' -print) | \
7312 fgrep -v testsuite | \
7313 sed -e 's/\.java/.d/' | \
7315 echo "include $f" >> deps.mk
7318 d=`echo $f | sed -e 's,/[^/]*$,,'`
7320 $srcdir/../mkinstalldirs $d
7327 chmod +x $CONFIG_STATUS
7328 rm -fr confdefs* $ac_clean_files
7329 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7331 if test "$no_recursion" != yes; then
7333 # Remove --cache-file and --srcdir arguments so they do not pile up.
7334 ac_sub_configure_args=
7336 for ac_arg in $ac_configure_args; do
7337 if test -n "$ac_prev"; then
7342 -cache-file | --cache-file | --cache-fil | --cache-fi \
7343 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
7344 ac_prev=cache_file ;;
7345 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
7346 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
7348 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
7350 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
7352 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
7356 for ac_config_dir in $DIRLTDL; do
7358 # Do not complain, so a configure script can configure whichever
7359 # parts of a large source tree are present.
7360 if test ! -d $srcdir/$ac_config_dir; then
7364 echo configuring in $ac_config_dir
7369 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
7371 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
7379 # A "../" for each directory in /$ac_config_dir.
7380 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
7383 .) # No --srcdir option. We are building in place.
7384 ac_sub_srcdir=$srcdir ;;
7385 /*) # Absolute path.
7386 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
7388 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
7391 # Check for guested configure; otherwise get Cygnus style configure.
7392 if test -f $ac_sub_srcdir/configure; then
7393 ac_sub_configure=$ac_sub_srcdir/configure
7394 elif test -f $ac_sub_srcdir/configure.in; then
7395 ac_sub_configure=$ac_configure
7397 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
7401 # The recursion is here.
7402 if test -n "$ac_sub_configure"; then
7404 # Make the cache file name correct relative to the subdirectory.
7405 case "$cache_file" in
7406 /*) ac_sub_cache_file=$cache_file ;;
7408 ac_sub_cache_file="$ac_dots$cache_file" ;;
7410 case "$ac_given_INSTALL" in
7411 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7412 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7415 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
7416 # The eval makes quoting arguments work.
7417 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
7420 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }