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-libgcj-debug enable runtime debugging code"
44 --enable-interpreter enable interpreter"
46 --enable-sjlj-exceptions force use of builtin_setjmp for exceptions"
48 --disable-java-net disable java.net"
50 --disable-jvmpi disable JVMPI support"
52 --with-ecos enable runtime eCos target support"
54 --with-system-zlib use installed libz"
56 --enable-java-gc=TYPE choose garbage collector [boehm]"
58 --with-x use the X Window System"
60 --enable-java-awt list of AWT peer implementations to be built"
62 # Initialize some variables set by options.
63 # The variables have the same names as the options, with
64 # dashes changed to underlines.
66 cache_file=./config.cache
75 program_transform_name=s,x,x,
84 bindir='${exec_prefix}/bin'
85 sbindir='${exec_prefix}/sbin'
86 libexecdir='${exec_prefix}/libexec'
87 datadir='${prefix}/share'
88 sysconfdir='${prefix}/etc'
89 sharedstatedir='${prefix}/com'
90 localstatedir='${prefix}/var'
91 libdir='${exec_prefix}/lib'
92 includedir='${prefix}/include'
93 oldincludedir='/usr/include'
94 infodir='${prefix}/info'
95 mandir='${prefix}/man'
97 # Initialize some other variables.
100 SHELL=${CONFIG_SHELL-/bin/sh}
101 # Maximum number of lines to put in a shell here document.
108 # If the previous option needs an argument, assign it.
109 if test -n "$ac_prev"; then
110 eval "$ac_prev=\$ac_option"
116 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
120 # Accept the important Cygnus configure options, so we can diagnose typos.
124 -bindir | --bindir | --bindi | --bind | --bin | --bi)
126 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
127 bindir="$ac_optarg" ;;
129 -build | --build | --buil | --bui | --bu)
131 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
132 build="$ac_optarg" ;;
134 -cache-file | --cache-file | --cache-fil | --cache-fi \
135 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
136 ac_prev=cache_file ;;
137 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
138 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
139 cache_file="$ac_optarg" ;;
141 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
143 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
145 datadir="$ac_optarg" ;;
147 -disable-* | --disable-*)
148 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
149 # Reject names that are not valid shell variable names.
150 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
151 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
153 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
154 eval "enable_${ac_feature}=no" ;;
156 -enable-* | --enable-*)
157 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
158 # Reject names that are not valid shell variable names.
159 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
160 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
162 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
167 eval "enable_${ac_feature}='$ac_optarg'" ;;
169 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
170 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
171 | --exec | --exe | --ex)
172 ac_prev=exec_prefix ;;
173 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
174 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
175 | --exec=* | --exe=* | --ex=*)
176 exec_prefix="$ac_optarg" ;;
178 -gas | --gas | --ga | --g)
179 # Obsolete; use --with-gas.
182 -help | --help | --hel | --he)
183 # Omit some internal or obsolete options to make the list less imposing.
184 # This message is too long to be a string in the A/UX 3.1 sh.
186 Usage: configure [options] [host]
187 Options: [defaults in brackets after descriptions]
189 --cache-file=FILE cache test results in FILE
190 --help print this message
191 --no-create do not create output files
192 --quiet, --silent do not print \`checking...' messages
193 --site-file=FILE use FILE as the site file
194 --version print the version of autoconf that created configure
195 Directory and file names:
196 --prefix=PREFIX install architecture-independent files in PREFIX
198 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
200 --bindir=DIR user executables in DIR [EPREFIX/bin]
201 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
202 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
203 --datadir=DIR read-only architecture-independent data in DIR
205 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
206 --sharedstatedir=DIR modifiable architecture-independent data in DIR
208 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
209 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
210 --includedir=DIR C header files in DIR [PREFIX/include]
211 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
212 --infodir=DIR info documentation in DIR [PREFIX/info]
213 --mandir=DIR man documentation in DIR [PREFIX/man]
214 --srcdir=DIR find the sources in DIR [configure dir or ..]
215 --program-prefix=PREFIX prepend PREFIX to installed program names
216 --program-suffix=SUFFIX append SUFFIX to installed program names
217 --program-transform-name=PROGRAM
218 run sed PROGRAM on installed program names
222 --build=BUILD configure for building on BUILD [BUILD=HOST]
223 --host=HOST configure for HOST [guessed]
224 --target=TARGET configure for TARGET [TARGET=HOST]
225 Features and packages:
226 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
227 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
228 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
229 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
230 --x-includes=DIR X include files are in DIR
231 --x-libraries=DIR X library files are in DIR
233 if test -n "$ac_help"; then
234 echo "--enable and --with options recognized:$ac_help"
238 -host | --host | --hos | --ho)
240 -host=* | --host=* | --hos=* | --ho=*)
243 -includedir | --includedir | --includedi | --included | --include \
244 | --includ | --inclu | --incl | --inc)
245 ac_prev=includedir ;;
246 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
247 | --includ=* | --inclu=* | --incl=* | --inc=*)
248 includedir="$ac_optarg" ;;
250 -infodir | --infodir | --infodi | --infod | --info | --inf)
252 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
253 infodir="$ac_optarg" ;;
255 -libdir | --libdir | --libdi | --libd)
257 -libdir=* | --libdir=* | --libdi=* | --libd=*)
258 libdir="$ac_optarg" ;;
260 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
261 | --libexe | --libex | --libe)
262 ac_prev=libexecdir ;;
263 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
264 | --libexe=* | --libex=* | --libe=*)
265 libexecdir="$ac_optarg" ;;
267 -localstatedir | --localstatedir | --localstatedi | --localstated \
268 | --localstate | --localstat | --localsta | --localst \
269 | --locals | --local | --loca | --loc | --lo)
270 ac_prev=localstatedir ;;
271 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
272 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
273 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
274 localstatedir="$ac_optarg" ;;
276 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
278 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
279 mandir="$ac_optarg" ;;
282 # Obsolete; use --without-fp.
285 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
289 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
290 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
293 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
294 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
295 | --oldin | --oldi | --old | --ol | --o)
296 ac_prev=oldincludedir ;;
297 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
298 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
299 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
300 oldincludedir="$ac_optarg" ;;
302 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
304 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
305 prefix="$ac_optarg" ;;
307 -program-prefix | --program-prefix | --program-prefi | --program-pref \
308 | --program-pre | --program-pr | --program-p)
309 ac_prev=program_prefix ;;
310 -program-prefix=* | --program-prefix=* | --program-prefi=* \
311 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
312 program_prefix="$ac_optarg" ;;
314 -program-suffix | --program-suffix | --program-suffi | --program-suff \
315 | --program-suf | --program-su | --program-s)
316 ac_prev=program_suffix ;;
317 -program-suffix=* | --program-suffix=* | --program-suffi=* \
318 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
319 program_suffix="$ac_optarg" ;;
321 -program-transform-name | --program-transform-name \
322 | --program-transform-nam | --program-transform-na \
323 | --program-transform-n | --program-transform- \
324 | --program-transform | --program-transfor \
325 | --program-transfo | --program-transf \
326 | --program-trans | --program-tran \
327 | --progr-tra | --program-tr | --program-t)
328 ac_prev=program_transform_name ;;
329 -program-transform-name=* | --program-transform-name=* \
330 | --program-transform-nam=* | --program-transform-na=* \
331 | --program-transform-n=* | --program-transform-=* \
332 | --program-transform=* | --program-transfor=* \
333 | --program-transfo=* | --program-transf=* \
334 | --program-trans=* | --program-tran=* \
335 | --progr-tra=* | --program-tr=* | --program-t=*)
336 program_transform_name="$ac_optarg" ;;
338 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
339 | -silent | --silent | --silen | --sile | --sil)
342 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
344 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
346 sbindir="$ac_optarg" ;;
348 -sharedstatedir | --sharedstatedir | --sharedstatedi \
349 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
350 | --sharedst | --shareds | --shared | --share | --shar \
352 ac_prev=sharedstatedir ;;
353 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
354 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
355 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
357 sharedstatedir="$ac_optarg" ;;
359 -site | --site | --sit)
361 -site=* | --site=* | --sit=*)
364 -site-file | --site-file | --site-fil | --site-fi | --site-f)
366 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
367 sitefile="$ac_optarg" ;;
369 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
371 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
372 srcdir="$ac_optarg" ;;
374 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
375 | --syscon | --sysco | --sysc | --sys | --sy)
376 ac_prev=sysconfdir ;;
377 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
378 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
379 sysconfdir="$ac_optarg" ;;
381 -target | --target | --targe | --targ | --tar | --ta | --t)
383 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
384 target="$ac_optarg" ;;
386 -v | -verbose | --verbose | --verbos | --verbo | --verb)
389 -version | --version | --versio | --versi | --vers)
390 echo "configure generated by autoconf version 2.13"
394 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
395 # Reject names that are not valid shell variable names.
396 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
397 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
399 ac_package=`echo $ac_package| sed 's/-/_/g'`
404 eval "with_${ac_package}='$ac_optarg'" ;;
406 -without-* | --without-*)
407 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
408 # Reject names that are not valid shell variable names.
409 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
410 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
412 ac_package=`echo $ac_package| sed 's/-/_/g'`
413 eval "with_${ac_package}=no" ;;
416 # Obsolete; use --with-x.
419 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
420 | --x-incl | --x-inc | --x-in | --x-i)
421 ac_prev=x_includes ;;
422 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
423 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
424 x_includes="$ac_optarg" ;;
426 -x-libraries | --x-libraries | --x-librarie | --x-librari \
427 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
428 ac_prev=x_libraries ;;
429 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
430 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
431 x_libraries="$ac_optarg" ;;
433 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
437 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
438 echo "configure: warning: $ac_option: invalid host type" 1>&2
440 if test "x$nonopt" != xNONE; then
441 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
449 if test -n "$ac_prev"; then
450 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
453 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
455 # File descriptor usage:
458 # 2 errors and warnings
459 # 3 some systems may open it to /dev/tty
460 # 4 used on the Kubota Titan
461 # 6 checking for... messages and results
462 # 5 compiler messages saved in config.log
463 if test "$silent" = yes; then
471 This file contains any messages produced by compilers while
472 running configure, to aid debugging if configure makes a mistake.
475 # Strip out --no-create and --no-recursion so they do not pile up.
476 # Also quote any args containing shell metacharacters.
481 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
482 | --no-cr | --no-c) ;;
483 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
484 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
485 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
486 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
487 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
492 # Only set these to C if already set. These must not be set unconditionally
493 # because not all systems understand e.g. LANG=C (notably SCO).
494 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
495 # Non-C LC_CTYPE values break the ctype check.
496 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
497 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
498 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
499 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
501 # confdefs.h avoids OS command line length limits that DEFS can exceed.
502 rm -rf conftest* confdefs.h
503 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
506 # A filename unique to this package, relative to the directory that
507 # configure is in, which we can look for to find out if srcdir is correct.
508 ac_unique_file=java/lang/System.java
510 # Find the source files, if location was not specified.
511 if test -z "$srcdir"; then
512 ac_srcdir_defaulted=yes
513 # Try the directory containing this script, then its parent.
515 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
516 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
518 if test ! -r $srcdir/$ac_unique_file; then
522 ac_srcdir_defaulted=no
524 if test ! -r $srcdir/$ac_unique_file; then
525 if test "$ac_srcdir_defaulted" = yes; then
526 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
528 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
531 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
533 # Prefer explicitly selected file to automatically selected ones.
534 if test -z "$sitefile"; then
535 if test -z "$CONFIG_SITE"; then
536 if test "x$prefix" != xNONE; then
537 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
539 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
543 CONFIG_SITE="$sitefile"
545 for ac_site_file in $CONFIG_SITE; do
546 if test -r "$ac_site_file"; then
547 echo "loading site script $ac_site_file"
552 if test -r "$cache_file"; then
553 echo "loading cache $cache_file"
556 echo "creating cache $cache_file"
561 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
562 ac_cpp='$CPP $CPPFLAGS'
563 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
564 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
565 cross_compiling=$ac_cv_prog_cc_cross
569 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
570 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
571 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
578 ac_n= ac_c='\c' ac_t=
584 for ac_dir in .. $srcdir/..; do
585 if test -f $ac_dir/install-sh; then
587 ac_install_sh="$ac_aux_dir/install-sh -c"
589 elif test -f $ac_dir/install.sh; then
591 ac_install_sh="$ac_aux_dir/install.sh -c"
595 if test -z "$ac_aux_dir"; then
596 { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
598 ac_config_guess=$ac_aux_dir/config.guess
599 ac_config_sub=$ac_aux_dir/config.sub
600 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
604 # Do some error checking and defaulting for the host and target type.
606 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
609 # 1. You are not allowed to specify --host, --target, and nonopt at the
611 # 2. Host defaults to nonopt.
612 # 3. If nonopt is not specified, then host defaults to the current host,
613 # as determined by config.guess.
614 # 4. Target and build default to nonopt.
615 # 5. If nonopt is not specified, then target and build default to host.
617 # The aliases save the names the user supplied, while $host etc.
618 # will get canonicalized.
619 case $host---$target---$nonopt in
620 NONE---*---* | *---NONE---* | *---*---NONE) ;;
621 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
625 # Make sure we can run config.sub.
626 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
627 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
630 echo $ac_n "checking host system type""... $ac_c" 1>&6
631 echo "configure:632: checking host system type" >&5
634 case "$host_alias" in
638 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
639 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
641 *) host_alias=$nonopt ;;
645 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
646 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
647 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
648 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
649 echo "$ac_t""$host" 1>&6
651 echo $ac_n "checking target system type""... $ac_c" 1>&6
652 echo "configure:653: checking target system type" >&5
655 case "$target_alias" in
658 NONE) target_alias=$host_alias ;;
659 *) target_alias=$nonopt ;;
663 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
664 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
665 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
666 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
667 echo "$ac_t""$target" 1>&6
669 echo $ac_n "checking build system type""... $ac_c" 1>&6
670 echo "configure:671: checking build system type" >&5
673 case "$build_alias" in
676 NONE) build_alias=$host_alias ;;
677 *) build_alias=$nonopt ;;
681 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
682 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
683 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
684 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
685 echo "$ac_t""$build" 1>&6
687 test "$host_alias" != "$target_alias" &&
688 test "$program_prefix$program_suffix$program_transform_name" = \
690 program_prefix=${target_alias}-
692 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
693 echo "configure:694: checking whether ln -s works" >&5
694 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
695 echo $ac_n "(cached) $ac_c" 1>&6
698 if ln -s X conftestdata 2>/dev/null
701 ac_cv_prog_LN_S="ln -s"
706 LN_S="$ac_cv_prog_LN_S"
707 if test "$ac_cv_prog_LN_S" = "ln -s"; then
708 echo "$ac_t""yes" 1>&6
710 echo "$ac_t""no" 1>&6
714 # Check whether --with-target-subdir or --without-target-subdir was given.
715 if test "${with_target_subdir+set}" = set; then
716 withval="$with_target_subdir"
720 # Check whether --with-cross-host or --without-cross-host was given.
721 if test "${with_cross_host+set}" = set; then
722 withval="$with_cross_host"
727 # Find a good install program. We prefer a C program (faster),
728 # so one script is as good as another. But avoid the broken or
729 # incompatible versions:
730 # SysV /etc/install, /usr/sbin/install
731 # SunOS /usr/etc/install
734 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
735 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
736 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
737 # ./install, which can be erroneously created by make from ./install.sh.
738 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
739 echo "configure:740: checking for a BSD compatible install" >&5
740 if test -z "$INSTALL"; then
741 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
742 echo $ac_n "(cached) $ac_c" 1>&6
744 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
745 for ac_dir in $PATH; do
746 # Account for people who put trailing slashes in PATH elements.
748 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
750 # OSF1 and SCO ODT 3.0 have their own names for install.
751 # Don't use installbsd from OSF since it installs stuff as root
753 for ac_prog in ginstall scoinst install; do
754 if test -f $ac_dir/$ac_prog; then
755 if test $ac_prog = install &&
756 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
757 # AIX install. It has an incompatible calling convention.
760 ac_cv_path_install="$ac_dir/$ac_prog -c"
771 if test "${ac_cv_path_install+set}" = set; then
772 INSTALL="$ac_cv_path_install"
774 # As a last resort, use the slow shell script. We don't cache a
775 # path for INSTALL within a source directory, because that will
776 # break other packages using the cache if that directory is
777 # removed, or if the path is relative.
778 INSTALL="$ac_install_sh"
781 echo "$ac_t""$INSTALL" 1>&6
783 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
784 # It thinks the first close brace ends the variable substitution.
785 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
787 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
789 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
791 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
792 echo "configure:793: checking whether build environment is sane" >&5
795 echo timestamp > conftestfile
796 # Do `set' in a subshell so we don't clobber the current shell's
797 # arguments. Must try -L first in case configure is actually a
798 # symlink; some systems play weird games with the mod time of symlinks
799 # (eg FreeBSD returns the mod time of the symlink's containing
802 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
803 if test "$*" = "X"; then
805 set X `ls -t $srcdir/configure conftestfile`
807 if test "$*" != "X $srcdir/configure conftestfile" \
808 && test "$*" != "X conftestfile $srcdir/configure"; then
810 # If neither matched, then we have a broken ls. This can happen
811 # if, for instance, CONFIG_SHELL is bash and it inherits a
812 # broken ls alias from the environment. This has actually
813 # happened. Such a system could not be considered "sane".
814 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
815 alias in your environment" 1>&2; exit 1; }
818 test "$2" = conftestfile
824 { echo "configure: error: newly created file is older than distributed files!
825 Check your system clock" 1>&2; exit 1; }
828 echo "$ac_t""yes" 1>&6
829 if test "$program_transform_name" = s,x,x,; then
830 program_transform_name=
832 # Double any \ or $. echo might interpret backslashes.
833 cat <<\EOF_SED > conftestsed
834 s,\\,\\\\,g; s,\$,$$,g
836 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
839 test "$program_prefix" != NONE &&
840 program_transform_name="s,^,${program_prefix},; $program_transform_name"
841 # Use a double $ so make ignores it.
842 test "$program_suffix" != NONE &&
843 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
845 # sed with no file args requires a program.
846 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
848 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
849 echo "configure:850: checking whether ${MAKE-make} sets \${MAKE}" >&5
850 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
851 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
852 echo $ac_n "(cached) $ac_c" 1>&6
854 cat > conftestmake <<\EOF
856 @echo 'ac_maketemp="${MAKE}"'
858 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
859 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
860 if test -n "$ac_maketemp"; then
861 eval ac_cv_prog_make_${ac_make}_set=yes
863 eval ac_cv_prog_make_${ac_make}_set=no
867 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
868 echo "$ac_t""yes" 1>&6
871 echo "$ac_t""no" 1>&6
872 SET_MAKE="MAKE=${MAKE-make}"
875 if test $host != $build; then
876 ac_tool_prefix=${host_alias}-
881 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
882 echo "configure:883: checking for Cygwin environment" >&5
883 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
884 echo $ac_n "(cached) $ac_c" 1>&6
886 cat > conftest.$ac_ext <<EOF
887 #line 888 "configure"
888 #include "confdefs.h"
893 #define __CYGWIN__ __CYGWIN32__
898 if { (eval echo configure:899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
902 echo "configure: failed program was:" >&5
903 cat conftest.$ac_ext >&5
911 echo "$ac_t""$ac_cv_cygwin" 1>&6
913 test "$ac_cv_cygwin" = yes && CYGWIN=yes
914 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
915 echo "configure:916: checking for mingw32 environment" >&5
916 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
917 echo $ac_n "(cached) $ac_c" 1>&6
919 cat > conftest.$ac_ext <<EOF
920 #line 921 "configure"
921 #include "confdefs.h"
927 if { (eval echo configure:928: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
931 echo "configure: failed program was:" >&5
932 cat conftest.$ac_ext >&5
940 echo "$ac_t""$ac_cv_mingw32" 1>&6
942 test "$ac_cv_mingw32" = yes && MINGW32=yes
944 # Check whether --enable-multilib or --disable-multilib was given.
945 if test "${enable_multilib+set}" = set; then
946 enableval="$enable_multilib"
947 case "${enableval}" in
950 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
957 if test "${srcdir}" = "."; then
958 if test "${with_target_subdir}" != "."; then
959 libgcj_basedir="${srcdir}/${with_multisrctop}../."
961 libgcj_basedir="${srcdir}/${with_multisrctop}."
964 libgcj_basedir="${srcdir}/."
969 # Make sure we can run config.sub.
970 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
971 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
974 echo $ac_n "checking host system type""... $ac_c" 1>&6
975 echo "configure:976: checking host system type" >&5
978 case "$host_alias" in
982 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
983 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
985 *) host_alias=$nonopt ;;
989 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
990 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
991 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
992 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
993 echo "$ac_t""$host" 1>&6
999 # Extract the first word of "gcc", so it can be a program name with args.
1000 set dummy gcc; ac_word=$2
1001 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1002 echo "configure:1003: checking for $ac_word" >&5
1003 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1004 echo $ac_n "(cached) $ac_c" 1>&6
1006 if test -n "$CC"; then
1007 ac_cv_prog_CC="$CC" # Let the user override the test.
1009 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1011 for ac_dir in $ac_dummy; do
1012 test -z "$ac_dir" && ac_dir=.
1013 if test -f $ac_dir/$ac_word; then
1022 if test -n "$CC"; then
1023 echo "$ac_t""$CC" 1>&6
1025 echo "$ac_t""no" 1>&6
1028 if test -z "$CC"; then
1029 # Extract the first word of "cc", so it can be a program name with args.
1030 set dummy cc; ac_word=$2
1031 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1032 echo "configure:1033: checking for $ac_word" >&5
1033 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1034 echo $ac_n "(cached) $ac_c" 1>&6
1036 if test -n "$CC"; then
1037 ac_cv_prog_CC="$CC" # Let the user override the test.
1039 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1042 for ac_dir in $ac_dummy; do
1043 test -z "$ac_dir" && ac_dir=.
1044 if test -f $ac_dir/$ac_word; then
1045 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1046 ac_prog_rejected=yes
1054 if test $ac_prog_rejected = yes; then
1055 # We found a bogon in the path, so make sure we never use it.
1056 set dummy $ac_cv_prog_CC
1058 if test $# -gt 0; then
1059 # We chose a different compiler from the bogus one.
1060 # However, it has the same basename, so the bogon will be chosen
1061 # first if we set CC to just the basename; use the full file name.
1063 set dummy "$ac_dir/$ac_word" "$@"
1071 if test -n "$CC"; then
1072 echo "$ac_t""$CC" 1>&6
1074 echo "$ac_t""no" 1>&6
1077 if test -z "$CC"; then
1078 case "`uname -s`" in
1080 # Extract the first word of "cl", so it can be a program name with args.
1081 set dummy cl; ac_word=$2
1082 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1083 echo "configure:1084: checking for $ac_word" >&5
1084 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1085 echo $ac_n "(cached) $ac_c" 1>&6
1087 if test -n "$CC"; then
1088 ac_cv_prog_CC="$CC" # Let the user override the test.
1090 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1092 for ac_dir in $ac_dummy; do
1093 test -z "$ac_dir" && ac_dir=.
1094 if test -f $ac_dir/$ac_word; then
1103 if test -n "$CC"; then
1104 echo "$ac_t""$CC" 1>&6
1106 echo "$ac_t""no" 1>&6
1111 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1115 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1116 echo "configure:1117: checking whether we are using GNU C" >&5
1117 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1118 echo $ac_n "(cached) $ac_c" 1>&6
1120 cat > conftest.c <<EOF
1125 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1126: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1132 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1134 if test $ac_cv_prog_gcc = yes; then
1140 ac_test_CFLAGS="${CFLAGS+set}"
1141 ac_save_CFLAGS="$CFLAGS"
1143 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1144 echo "configure:1145: checking whether ${CC-cc} accepts -g" >&5
1145 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1146 echo $ac_n "(cached) $ac_c" 1>&6
1148 echo 'void f(){}' > conftest.c
1149 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1158 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1159 if test "$ac_test_CFLAGS" = set; then
1160 CFLAGS="$ac_save_CFLAGS"
1161 elif test $ac_cv_prog_cc_g = yes; then
1162 if test "$GCC" = yes; then
1168 if test "$GCC" = yes; then
1175 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1177 # Extract the first word of "$ac_prog", so it can be a program name with args.
1178 set dummy $ac_prog; ac_word=$2
1179 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1180 echo "configure:1181: checking for $ac_word" >&5
1181 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1182 echo $ac_n "(cached) $ac_c" 1>&6
1184 if test -n "$CXX"; then
1185 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1187 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1189 for ac_dir in $ac_dummy; do
1190 test -z "$ac_dir" && ac_dir=.
1191 if test -f $ac_dir/$ac_word; then
1192 ac_cv_prog_CXX="$ac_prog"
1199 CXX="$ac_cv_prog_CXX"
1200 if test -n "$CXX"; then
1201 echo "$ac_t""$CXX" 1>&6
1203 echo "$ac_t""no" 1>&6
1206 test -n "$CXX" && break
1208 test -n "$CXX" || CXX="gcc"
1212 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1213 echo "configure:1214: checking whether we are using GNU C++" >&5
1214 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1215 echo $ac_n "(cached) $ac_c" 1>&6
1217 cat > conftest.C <<EOF
1222 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1229 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1231 if test $ac_cv_prog_gxx = yes; then
1237 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1238 ac_save_CXXFLAGS="$CXXFLAGS"
1240 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1241 echo "configure:1242: checking whether ${CXX-g++} accepts -g" >&5
1242 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1243 echo $ac_n "(cached) $ac_c" 1>&6
1245 echo 'void f(){}' > conftest.cc
1246 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1247 ac_cv_prog_cxx_g=yes
1255 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1256 if test "$ac_test_CXXFLAGS" = set; then
1257 CXXFLAGS="$ac_save_CXXFLAGS"
1258 elif test $ac_cv_prog_cxx_g = yes; then
1259 if test "$GXX" = yes; then
1265 if test "$GXX" = yes; then
1279 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1280 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1282 cat >> confdefs.h <<EOF
1283 #define PACKAGE "$PACKAGE"
1286 cat >> confdefs.h <<EOF
1287 #define VERSION "$VERSION"
1292 missing_dir=`cd $ac_aux_dir && pwd`
1293 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1294 echo "configure:1295: checking for working aclocal" >&5
1295 # Run test in a subshell; some versions of sh will print an error if
1296 # an executable is not found, even if stderr is redirected.
1297 # Redirect stdin to placate older versions of autoconf. Sigh.
1298 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1300 echo "$ac_t""found" 1>&6
1302 ACLOCAL="$missing_dir/missing aclocal"
1303 echo "$ac_t""missing" 1>&6
1306 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1307 echo "configure:1308: checking for working autoconf" >&5
1308 # Run test in a subshell; some versions of sh will print an error if
1309 # an executable is not found, even if stderr is redirected.
1310 # Redirect stdin to placate older versions of autoconf. Sigh.
1311 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1313 echo "$ac_t""found" 1>&6
1315 AUTOCONF="$missing_dir/missing autoconf"
1316 echo "$ac_t""missing" 1>&6
1319 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1320 echo "configure:1321: checking for working automake" >&5
1321 # Run test in a subshell; some versions of sh will print an error if
1322 # an executable is not found, even if stderr is redirected.
1323 # Redirect stdin to placate older versions of autoconf. Sigh.
1324 if (automake --version) < /dev/null > /dev/null 2>&1; then
1326 echo "$ac_t""found" 1>&6
1328 AUTOMAKE="$missing_dir/missing automake"
1329 echo "$ac_t""missing" 1>&6
1332 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1333 echo "configure:1334: checking for working autoheader" >&5
1334 # Run test in a subshell; some versions of sh will print an error if
1335 # an executable is not found, even if stderr is redirected.
1336 # Redirect stdin to placate older versions of autoconf. Sigh.
1337 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1338 AUTOHEADER=autoheader
1339 echo "$ac_t""found" 1>&6
1341 AUTOHEADER="$missing_dir/missing autoheader"
1342 echo "$ac_t""missing" 1>&6
1345 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1346 echo "configure:1347: checking for working makeinfo" >&5
1347 # Run test in a subshell; some versions of sh will print an error if
1348 # an executable is not found, even if stderr is redirected.
1349 # Redirect stdin to placate older versions of autoconf. Sigh.
1350 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1352 echo "$ac_t""found" 1>&6
1354 MAKEINFO="$missing_dir/missing makeinfo"
1355 echo "$ac_t""missing" 1>&6
1360 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we dont
1361 # run it explicitly here, it will be run implicitly before
1362 # LIBGCJ_CONFIGURE, which doesn't work because that means that it will
1363 # be run before AC_CANONICAL_HOST.
1364 echo $ac_n "checking build system type""... $ac_c" 1>&6
1365 echo "configure:1366: checking build system type" >&5
1368 case "$build_alias" in
1371 NONE) build_alias=$host_alias ;;
1372 *) build_alias=$nonopt ;;
1376 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1377 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1378 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1379 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1380 echo "$ac_t""$build" 1>&6
1383 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1384 set dummy ${ac_tool_prefix}as; ac_word=$2
1385 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1386 echo "configure:1387: checking for $ac_word" >&5
1387 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1388 echo $ac_n "(cached) $ac_c" 1>&6
1390 if test -n "$AS"; then
1391 ac_cv_prog_AS="$AS" # Let the user override the test.
1393 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1395 for ac_dir in $ac_dummy; do
1396 test -z "$ac_dir" && ac_dir=.
1397 if test -f $ac_dir/$ac_word; then
1398 ac_cv_prog_AS="${ac_tool_prefix}as"
1403 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1407 if test -n "$AS"; then
1408 echo "$ac_t""$AS" 1>&6
1410 echo "$ac_t""no" 1>&6
1415 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1416 set dummy ${ac_tool_prefix}ar; ac_word=$2
1417 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1418 echo "configure:1419: checking for $ac_word" >&5
1419 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1420 echo $ac_n "(cached) $ac_c" 1>&6
1422 if test -n "$AR"; then
1423 ac_cv_prog_AR="$AR" # Let the user override the test.
1425 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1427 for ac_dir in $ac_dummy; do
1428 test -z "$ac_dir" && ac_dir=.
1429 if test -f $ac_dir/$ac_word; then
1430 ac_cv_prog_AR="${ac_tool_prefix}ar"
1435 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1439 if test -n "$AR"; then
1440 echo "$ac_t""$AR" 1>&6
1442 echo "$ac_t""no" 1>&6
1447 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1448 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1449 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1450 echo "configure:1451: checking for $ac_word" >&5
1451 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1452 echo $ac_n "(cached) $ac_c" 1>&6
1454 if test -n "$RANLIB"; then
1455 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1457 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1459 for ac_dir in $ac_dummy; do
1460 test -z "$ac_dir" && ac_dir=.
1461 if test -f $ac_dir/$ac_word; then
1462 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1469 RANLIB="$ac_cv_prog_RANLIB"
1470 if test -n "$RANLIB"; then
1471 echo "$ac_t""$RANLIB" 1>&6
1473 echo "$ac_t""no" 1>&6
1477 if test -z "$ac_cv_prog_RANLIB"; then
1478 if test -n "$ac_tool_prefix"; then
1479 # Extract the first word of "ranlib", so it can be a program name with args.
1480 set dummy ranlib; ac_word=$2
1481 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1482 echo "configure:1483: checking for $ac_word" >&5
1483 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1484 echo $ac_n "(cached) $ac_c" 1>&6
1486 if test -n "$RANLIB"; then
1487 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1489 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1491 for ac_dir in $ac_dummy; do
1492 test -z "$ac_dir" && ac_dir=.
1493 if test -f $ac_dir/$ac_word; then
1494 ac_cv_prog_RANLIB="ranlib"
1499 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1502 RANLIB="$ac_cv_prog_RANLIB"
1503 if test -n "$RANLIB"; then
1504 echo "$ac_t""$RANLIB" 1>&6
1506 echo "$ac_t""no" 1>&6
1515 # Find a good install program. We prefer a C program (faster),
1516 # so one script is as good as another. But avoid the broken or
1517 # incompatible versions:
1518 # SysV /etc/install, /usr/sbin/install
1519 # SunOS /usr/etc/install
1520 # IRIX /sbin/install
1522 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1523 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1524 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1525 # ./install, which can be erroneously created by make from ./install.sh.
1526 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1527 echo "configure:1528: checking for a BSD compatible install" >&5
1528 if test -z "$INSTALL"; then
1529 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1530 echo $ac_n "(cached) $ac_c" 1>&6
1532 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1533 for ac_dir in $PATH; do
1534 # Account for people who put trailing slashes in PATH elements.
1536 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1538 # OSF1 and SCO ODT 3.0 have their own names for install.
1539 # Don't use installbsd from OSF since it installs stuff as root
1541 for ac_prog in ginstall scoinst install; do
1542 if test -f $ac_dir/$ac_prog; then
1543 if test $ac_prog = install &&
1544 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1545 # AIX install. It has an incompatible calling convention.
1548 ac_cv_path_install="$ac_dir/$ac_prog -c"
1559 if test "${ac_cv_path_install+set}" = set; then
1560 INSTALL="$ac_cv_path_install"
1562 # As a last resort, use the slow shell script. We don't cache a
1563 # path for INSTALL within a source directory, because that will
1564 # break other packages using the cache if that directory is
1565 # removed, or if the path is relative.
1566 INSTALL="$ac_install_sh"
1569 echo "$ac_t""$INSTALL" 1>&6
1571 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1572 # It thinks the first close brace ends the variable substitution.
1573 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1575 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1577 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1580 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1581 echo "configure:1582: checking whether to enable maintainer-specific portions of Makefiles" >&5
1582 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1583 if test "${enable_maintainer_mode+set}" = set; then
1584 enableval="$enable_maintainer_mode"
1585 USE_MAINTAINER_MODE=$enableval
1587 USE_MAINTAINER_MODE=no
1590 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1593 if test $USE_MAINTAINER_MODE = yes; then
1594 MAINTAINER_MODE_TRUE=
1595 MAINTAINER_MODE_FALSE='#'
1597 MAINTAINER_MODE_TRUE='#'
1598 MAINTAINER_MODE_FALSE=
1600 MAINT=$MAINTAINER_MODE_TRUE
1604 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1605 # at least currently, we never actually build a program, so we never
1606 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1607 # fails, because we are probably configuring with a cross compiler
1608 # which cant create executables. So we include AC_EXEEXT to keep
1609 # automake happy, but we dont execute it, since we dont care about
1614 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1615 echo "configure:1616: checking for executable suffix" >&5
1616 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1617 echo $ac_n "(cached) $ac_c" 1>&6
1619 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1623 echo 'int main () { return 0; }' > conftest.$ac_ext
1625 if { (eval echo configure:1626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1626 for file in conftest.*; do
1628 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1629 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1633 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1636 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1641 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1642 echo "$ac_t""${ac_cv_exeext}" 1>&6
1647 # configure.host sets the following important variables
1648 # libgcj_cflags - host specific C compiler flags
1649 # libgcj_cxxflags - host specific C++ compiler flags
1650 # libgcj_javaflags - host specific Java compiler flags
1656 . ${libgcj_basedir}/configure.host
1658 case ${libgcj_basedir} in
1659 /* | A-Za-z:/\\*) libgcj_flagbasedir=${libgcj_basedir} ;;
1660 *) libgcj_flagbasedir='$(top_builddir)/'${libgcj_basedir} ;;
1663 LIBGCJ_CFLAGS="${libgcj_cflags}"
1664 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
1665 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
1675 # Only use libltdl for native builds.
1676 if test -z "${with_cross_host}"; then
1677 case $enable_ltdl_convenience in
1678 no) { echo "configure: error: this package needs a convenience libltdl" 1>&2; exit 1; } ;;
1679 "") enable_ltdl_convenience=yes
1680 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
1682 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
1683 INCLTDL='-I${top_srcdir}/''libltdl'
1687 cat >> confdefs.h <<\EOF
1691 # Sigh. Libtool's macro doesn't do the right thing.
1692 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
1697 # Check whether --enable-shared or --disable-shared was given.
1698 if test "${enable_shared+set}" = set; then
1699 enableval="$enable_shared"
1700 p=${PACKAGE-default}
1702 yes) enable_shared=yes ;;
1703 no) enable_shared=no ;;
1706 # Look at the argument we got. We use all the common list separators.
1707 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1708 for pkg in $enableval; do
1709 if test "X$pkg" = "X$p"; then
1720 # Check whether --enable-static or --disable-static was given.
1721 if test "${enable_static+set}" = set; then
1722 enableval="$enable_static"
1723 p=${PACKAGE-default}
1725 yes) enable_static=yes ;;
1726 no) enable_static=no ;;
1729 # Look at the argument we got. We use all the common list separators.
1730 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1731 for pkg in $enableval; do
1732 if test "X$pkg" = "X$p"; then
1743 # Check whether --enable-fast-install or --disable-fast-install was given.
1744 if test "${enable_fast_install+set}" = set; then
1745 enableval="$enable_fast_install"
1746 p=${PACKAGE-default}
1748 yes) enable_fast_install=yes ;;
1749 no) enable_fast_install=no ;;
1751 enable_fast_install=no
1752 # Look at the argument we got. We use all the common list separators.
1753 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1754 for pkg in $enableval; do
1755 if test "X$pkg" = "X$p"; then
1756 enable_fast_install=yes
1763 enable_fast_install=yes
1766 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1767 if test "${with_gnu_ld+set}" = set; then
1768 withval="$with_gnu_ld"
1769 test "$withval" = no || with_gnu_ld=yes
1775 if test "$GCC" = yes; then
1776 # Check if gcc -print-prog-name=ld gives a path.
1777 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1778 echo "configure:1779: checking for ld used by GCC" >&5
1781 # gcc leaves a trailing carriage return which upsets mingw
1782 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1784 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1787 # Accept absolute paths.
1788 [\\/]* | [A-Za-z]:[\\/]*)
1789 re_direlt='/[^/][^/]*/\.\./'
1790 # Canonicalize the path of ld
1791 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1792 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1793 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1795 test -z "$LD" && LD="$ac_prog"
1798 # If it fails, then pretend we aren't using GCC.
1802 # If it is relative, then search for the first ld in PATH.
1806 elif test "$with_gnu_ld" = yes; then
1807 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1808 echo "configure:1809: checking for GNU ld" >&5
1810 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1811 echo "configure:1812: checking for non-GNU ld" >&5
1813 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1814 echo $ac_n "(cached) $ac_c" 1>&6
1816 if test -z "$LD"; then
1817 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1818 for ac_dir in $PATH; do
1819 test -z "$ac_dir" && ac_dir=.
1820 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1821 lt_cv_path_LD="$ac_dir/$ac_prog"
1822 # Check to see if the program is GNU ld. I'd rather use --version,
1823 # but apparently some GNU ld's only accept -v.
1824 # Break only if it was the GNU/non-GNU ld that we prefer.
1825 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1826 test "$with_gnu_ld" != no && break
1828 test "$with_gnu_ld" != yes && break
1834 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1839 if test -n "$LD"; then
1840 echo "$ac_t""$LD" 1>&6
1842 echo "$ac_t""no" 1>&6
1844 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1845 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1846 echo "configure:1847: checking if the linker ($LD) is GNU ld" >&5
1847 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1848 echo $ac_n "(cached) $ac_c" 1>&6
1850 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1851 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1852 lt_cv_prog_gnu_ld=yes
1854 lt_cv_prog_gnu_ld=no
1858 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1859 with_gnu_ld=$lt_cv_prog_gnu_ld
1862 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1863 echo "configure:1864: checking for $LD option to reload object files" >&5
1864 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1865 echo $ac_n "(cached) $ac_c" 1>&6
1867 lt_cv_ld_reload_flag='-r'
1870 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1871 reload_flag=$lt_cv_ld_reload_flag
1872 test -n "$reload_flag" && reload_flag=" $reload_flag"
1874 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1875 echo "configure:1876: checking for BSD-compatible nm" >&5
1876 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1877 echo $ac_n "(cached) $ac_c" 1>&6
1879 if test -n "$NM"; then
1880 # Let the user override the test.
1883 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1884 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1885 test -z "$ac_dir" && ac_dir=.
1886 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1887 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1888 # Check to see if the nm accepts a BSD-compat flag.
1889 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1890 # nm: unknown option "B" ignored
1891 # Tru64's nm complains that /dev/null is an invalid object file
1892 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1893 lt_cv_path_NM="$tmp_nm -B"
1895 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1896 lt_cv_path_NM="$tmp_nm -p"
1899 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1900 continue # so that we can try to find one that supports BSD flags
1905 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1910 echo "$ac_t""$NM" 1>&6
1912 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1913 echo "configure:1914: checking how to recognise dependant libraries" >&5
1914 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1915 echo $ac_n "(cached) $ac_c" 1>&6
1917 lt_cv_file_magic_cmd='$MAGIC_CMD'
1918 lt_cv_file_magic_test_file=
1919 lt_cv_deplibs_check_method='unknown'
1920 # Need to set the preceding variable on all platforms that support
1921 # interlibrary dependencies.
1922 # 'none' -- dependencies not supported.
1923 # `unknown' -- same as none, but documents that we really don't know.
1924 # 'pass_all' -- all dependencies passed with no checks.
1925 # 'test_compile' -- check by making test program.
1926 # 'file_magic [regex]' -- check by looking for files in library path
1927 # which responds to the $file_magic_cmd with a given egrep regex.
1928 # If you have `file' or equivalent on your system and you're not sure
1929 # whether `pass_all' will *always* work, you probably want this one.
1933 lt_cv_deplibs_check_method=pass_all
1937 lt_cv_deplibs_check_method=pass_all
1941 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1942 lt_cv_file_magic_cmd='/usr/bin/file -L'
1943 lt_cv_file_magic_test_file=/shlib/libc.so
1946 cygwin* | mingw* |pw32*)
1947 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1948 lt_cv_file_magic_cmd='$OBJDUMP -f'
1951 darwin* | rhapsody*)
1952 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1953 lt_cv_file_magic_cmd='/usr/bin/file -L'
1955 rhapsody* | darwin1.012)
1956 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1959 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1965 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1968 # Not sure whether the presence of OpenBSD here was a mistake.
1969 # Let's accept both of them until this is cleared up.
1970 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1971 lt_cv_file_magic_cmd=/usr/bin/file
1972 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1976 lt_cv_deplibs_check_method=pass_all
1981 lt_cv_deplibs_check_method=pass_all
1985 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1986 lt_cv_file_magic_cmd=/usr/bin/file
1987 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1993 # this will be overridden with pass_all, but let us keep it just in case
1994 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1998 *-32|*"-32 ") libmagic=32-bit;;
1999 *-n32|*"-n32 ") libmagic=N32;;
2000 *-64|*"-64 ") libmagic=64-bit;;
2001 *) libmagic=never-match;;
2003 # this will be overridden with pass_all, but let us keep it just in case
2004 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2007 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2008 lt_cv_deplibs_check_method=pass_all
2011 # This must be Linux ELF.
2014 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2015 lt_cv_deplibs_check_method=pass_all ;;
2017 # glibc up to 2.1.1 does not perform some relocations on ARM
2018 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2020 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2024 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2025 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2027 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2032 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2033 lt_cv_file_magic_cmd=/usr/bin/file
2034 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2037 osf3* | osf4* | osf5*)
2038 # this will be overridden with pass_all, but let us keep it just in case
2039 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2040 lt_cv_file_magic_test_file=/shlib/libc.so
2041 lt_cv_deplibs_check_method=pass_all
2045 lt_cv_deplibs_check_method=pass_all
2049 lt_cv_deplibs_check_method=pass_all
2050 lt_cv_file_magic_test_file=/lib/libc.so
2053 sysv5uw[78]* | sysv4*uw2*)
2054 lt_cv_deplibs_check_method=pass_all
2057 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2058 case $host_vendor in
2060 lt_cv_deplibs_check_method=pass_all
2063 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]'
2064 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2072 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2073 file_magic_cmd=$lt_cv_file_magic_cmd
2074 deplibs_check_method=$lt_cv_deplibs_check_method
2076 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2077 echo "configure:2078: checking for object suffix" >&5
2078 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2079 echo $ac_n "(cached) $ac_c" 1>&6
2082 echo 'int i = 1;' > conftest.$ac_ext
2083 if { (eval echo configure:2084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2084 for ac_file in conftest.*; do
2087 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2091 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2096 echo "$ac_t""$ac_cv_objext" 1>&6
2097 OBJEXT=$ac_cv_objext
2098 ac_objext=$ac_cv_objext
2100 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2102 # Only perform the check for file, if the check method requires it
2103 case $deplibs_check_method in
2105 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2106 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2107 echo "configure:2108: checking for ${ac_tool_prefix}file" >&5
2108 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2109 echo $ac_n "(cached) $ac_c" 1>&6
2113 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2116 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2119 ac_save_MAGIC_CMD="$MAGIC_CMD"
2120 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2121 ac_dummy="/usr/bin:$PATH"
2122 for ac_dir in $ac_dummy; do
2123 test -z "$ac_dir" && ac_dir=.
2124 if test -f $ac_dir/${ac_tool_prefix}file; then
2125 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2126 if test -n "$file_magic_test_file"; then
2127 case $deplibs_check_method in
2129 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2130 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2131 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2132 egrep "$file_magic_regex" > /dev/null; then
2137 *** Warning: the command libtool uses to detect shared libraries,
2138 *** $file_magic_cmd, produces output that libtool cannot recognize.
2139 *** The result is that libtool may fail to recognize shared libraries
2140 *** as such. This will affect the creation of libtool libraries that
2141 *** depend on shared libraries, but programs linked with such libtool
2142 *** libraries will work regardless of this problem. Nevertheless, you
2143 *** may want to report the problem to your system manager and/or to
2144 *** bug-libtool@gnu.org
2154 MAGIC_CMD="$ac_save_MAGIC_CMD"
2159 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2160 if test -n "$MAGIC_CMD"; then
2161 echo "$ac_t""$MAGIC_CMD" 1>&6
2163 echo "$ac_t""no" 1>&6
2166 if test -z "$lt_cv_path_MAGIC_CMD"; then
2167 if test -n "$ac_tool_prefix"; then
2168 echo $ac_n "checking for file""... $ac_c" 1>&6
2169 echo "configure:2170: checking for file" >&5
2170 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2171 echo $ac_n "(cached) $ac_c" 1>&6
2175 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2178 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2181 ac_save_MAGIC_CMD="$MAGIC_CMD"
2182 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2183 ac_dummy="/usr/bin:$PATH"
2184 for ac_dir in $ac_dummy; do
2185 test -z "$ac_dir" && ac_dir=.
2186 if test -f $ac_dir/file; then
2187 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2188 if test -n "$file_magic_test_file"; then
2189 case $deplibs_check_method in
2191 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2192 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2193 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2194 egrep "$file_magic_regex" > /dev/null; then
2199 *** Warning: the command libtool uses to detect shared libraries,
2200 *** $file_magic_cmd, produces output that libtool cannot recognize.
2201 *** The result is that libtool may fail to recognize shared libraries
2202 *** as such. This will affect the creation of libtool libraries that
2203 *** depend on shared libraries, but programs linked with such libtool
2204 *** libraries will work regardless of this problem. Nevertheless, you
2205 *** may want to report the problem to your system manager and/or to
2206 *** bug-libtool@gnu.org
2216 MAGIC_CMD="$ac_save_MAGIC_CMD"
2221 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2222 if test -n "$MAGIC_CMD"; then
2223 echo "$ac_t""$MAGIC_CMD" 1>&6
2225 echo "$ac_t""no" 1>&6
2237 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2238 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2239 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2240 echo "configure:2241: checking for $ac_word" >&5
2241 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2242 echo $ac_n "(cached) $ac_c" 1>&6
2244 if test -n "$RANLIB"; then
2245 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2247 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2249 for ac_dir in $ac_dummy; do
2250 test -z "$ac_dir" && ac_dir=.
2251 if test -f $ac_dir/$ac_word; then
2252 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2259 RANLIB="$ac_cv_prog_RANLIB"
2260 if test -n "$RANLIB"; then
2261 echo "$ac_t""$RANLIB" 1>&6
2263 echo "$ac_t""no" 1>&6
2267 if test -z "$ac_cv_prog_RANLIB"; then
2268 if test -n "$ac_tool_prefix"; then
2269 # Extract the first word of "ranlib", so it can be a program name with args.
2270 set dummy ranlib; ac_word=$2
2271 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2272 echo "configure:2273: checking for $ac_word" >&5
2273 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2274 echo $ac_n "(cached) $ac_c" 1>&6
2276 if test -n "$RANLIB"; then
2277 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2279 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2281 for ac_dir in $ac_dummy; do
2282 test -z "$ac_dir" && ac_dir=.
2283 if test -f $ac_dir/$ac_word; then
2284 ac_cv_prog_RANLIB="ranlib"
2289 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2292 RANLIB="$ac_cv_prog_RANLIB"
2293 if test -n "$RANLIB"; then
2294 echo "$ac_t""$RANLIB" 1>&6
2296 echo "$ac_t""no" 1>&6
2304 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2305 set dummy ${ac_tool_prefix}strip; ac_word=$2
2306 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2307 echo "configure:2308: checking for $ac_word" >&5
2308 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2309 echo $ac_n "(cached) $ac_c" 1>&6
2311 if test -n "$STRIP"; then
2312 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2314 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2316 for ac_dir in $ac_dummy; do
2317 test -z "$ac_dir" && ac_dir=.
2318 if test -f $ac_dir/$ac_word; then
2319 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2326 STRIP="$ac_cv_prog_STRIP"
2327 if test -n "$STRIP"; then
2328 echo "$ac_t""$STRIP" 1>&6
2330 echo "$ac_t""no" 1>&6
2334 if test -z "$ac_cv_prog_STRIP"; then
2335 if test -n "$ac_tool_prefix"; then
2336 # Extract the first word of "strip", so it can be a program name with args.
2337 set dummy strip; ac_word=$2
2338 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2339 echo "configure:2340: checking for $ac_word" >&5
2340 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2341 echo $ac_n "(cached) $ac_c" 1>&6
2343 if test -n "$STRIP"; then
2344 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2346 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2348 for ac_dir in $ac_dummy; do
2349 test -z "$ac_dir" && ac_dir=.
2350 if test -f $ac_dir/$ac_word; then
2351 ac_cv_prog_STRIP="strip"
2356 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2359 STRIP="$ac_cv_prog_STRIP"
2360 if test -n "$STRIP"; then
2361 echo "$ac_t""$STRIP" 1>&6
2363 echo "$ac_t""no" 1>&6
2372 # Check for any special flags to pass to ltconfig.
2373 libtool_flags="--cache-file=$cache_file"
2374 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2375 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2376 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2377 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2378 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2379 libtool_flags="$libtool_flags --enable-dlopen"
2381 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2382 if test "${enable_libtool_lock+set}" = set; then
2383 enableval="$enable_libtool_lock"
2387 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2388 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2390 # Check whether --with-pic or --without-pic was given.
2391 if test "${with_pic+set}" = set; then
2398 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2399 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2401 # Some flags need to be propagated to the compiler or linker for good
2405 # Find out which ABI we are using.
2406 echo '#line 2407 "configure"' > conftest.$ac_ext
2407 if { (eval echo configure:2408: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2408 case `/usr/bin/file conftest.$ac_objext` in
2424 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2425 SAVE_CFLAGS="$CFLAGS"
2426 CFLAGS="$CFLAGS -belf"
2427 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2428 echo "configure:2429: checking whether the C compiler needs -belf" >&5
2429 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2430 echo $ac_n "(cached) $ac_c" 1>&6
2434 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2435 ac_cpp='$CPP $CPPFLAGS'
2436 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2437 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2438 cross_compiling=$ac_cv_prog_cc_cross
2440 cat > conftest.$ac_ext <<EOF
2441 #line 2442 "configure"
2442 #include "confdefs.h"
2448 if { (eval echo configure:2449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2450 lt_cv_cc_needs_belf=yes
2452 echo "configure: failed program was:" >&5
2453 cat conftest.$ac_ext >&5
2455 lt_cv_cc_needs_belf=no
2459 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2460 ac_cpp='$CPP $CPPFLAGS'
2461 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2462 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2463 cross_compiling=$ac_cv_prog_cc_cross
2467 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2468 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2469 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2470 CFLAGS="$SAVE_CFLAGS"
2477 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2478 echo "configure:2479: checking how to run the C++ preprocessor" >&5
2479 if test -z "$CXXCPP"; then
2480 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2481 echo $ac_n "(cached) $ac_c" 1>&6
2484 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2485 ac_cpp='$CXXCPP $CPPFLAGS'
2486 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2487 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2488 cross_compiling=$ac_cv_prog_cxx_cross
2489 CXXCPP="${CXX-g++} -E"
2490 cat > conftest.$ac_ext <<EOF
2491 #line 2492 "configure"
2492 #include "confdefs.h"
2495 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2496 { (eval echo configure:2497: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2497 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2498 if test -z "$ac_err"; then
2502 echo "configure: failed program was:" >&5
2503 cat conftest.$ac_ext >&5
2508 ac_cv_prog_CXXCPP="$CXXCPP"
2510 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2511 ac_cpp='$CPP $CPPFLAGS'
2512 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2513 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2514 cross_compiling=$ac_cv_prog_cc_cross
2517 CXXCPP="$ac_cv_prog_CXXCPP"
2518 echo "$ac_t""$CXXCPP" 1>&6
2521 # Save cache, so that ltconfig can load it
2522 cat > confcache <<\EOF
2523 # This file is a shell script that caches the results of configure
2524 # tests run on this system so they can be shared between configure
2525 # scripts and configure runs. It is not useful on other systems.
2526 # If it contains results you don't want to keep, you may remove or edit it.
2528 # By default, configure uses ./config.cache as the cache file,
2529 # creating it if it does not exist already. You can give configure
2530 # the --cache-file=FILE option to use a different cache file; that is
2531 # what configure does when it calls configure scripts in
2532 # subdirectories, so they share the cache.
2533 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2534 # config.status only pays attention to the cache file if you give it the
2535 # --recheck option to rerun configure.
2538 # The following way of writing the cache mishandles newlines in values,
2539 # but we know of no workaround that is simple, portable, and efficient.
2540 # So, don't put newlines in cache variables' values.
2541 # Ultrix sh set writes to stderr and can't be redirected directly,
2542 # and sets the high bit in the cache file unless we assign to the vars.
2544 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2546 # `set' does not quote correctly, so add quotes (double-quote substitution
2547 # turns \\\\ into \\, and sed turns \\ into \).
2549 -e "s/'/'\\\\''/g" \
2550 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2553 # `set' quotes correctly as required by POSIX, so do not add quotes.
2554 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2557 if cmp -s $cache_file confcache; then
2560 if test -w $cache_file; then
2561 echo "updating cache $cache_file"
2562 cat confcache > $cache_file
2564 echo "not updating unwritable cache $cache_file"
2570 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2571 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2572 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2573 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2574 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2575 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2576 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2577 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2578 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2579 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2581 # Reload cache, that may have been modified by ltconfig
2582 if test -r "$cache_file"; then
2583 echo "loading cache $cache_file"
2586 echo "creating cache $cache_file"
2591 # This can be used to rebuild libtool when needed
2592 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2594 # Always use our own libtool.
2595 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2597 # Redirect the config.log output again, so that the ltconfig log is not
2598 # clobbered by the next message.
2599 exec 5>>./config.log
2603 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2605 lt_save_CFLAGS="$CFLAGS"
2606 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2607 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2608 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2609 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2610 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2611 deplibs_check_method="$deplibs_check_method" \
2612 file_magic_cmd="$file_magic_cmd" \
2613 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2614 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2615 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2617 CFLAGS="$lt_save_CFLAGS"
2619 # Redirect the config.log output again, so that the ltconfig log is not
2620 # clobbered by the next message.
2621 exec 5>>./config.log
2631 if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
2640 if test -d $srcdir/testsuite; then
2642 TESTSUBDIR_FALSE='#'
2648 # Check whether --enable-fast-character or --disable-fast-character was given.
2649 if test "${enable_fast_character+set}" = set; then
2650 enableval="$enable_fast_character"
2654 cat >> confdefs.h <<\EOF
2655 #define COMPACT_CHARACTER 1
2661 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
2662 if test "${enable_getenv_properties+set}" = set; then
2663 enableval="$enable_getenv_properties"
2668 if test -n "$enable_getenv_properties"; then
2669 enable_getenv_properties=${enable_getenv_properties_default-yes}
2671 if test "$enable_getenv_properties" = no; then
2672 cat >> confdefs.h <<\EOF
2673 #define DISABLE_GETENV_PROPERTIES 1
2680 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
2681 if test "${enable_libgcj_debug+set}" = set; then
2682 enableval="$enable_libgcj_debug"
2683 if test "$enable_libgcj_debug" = yes; then
2684 cat >> confdefs.h <<\EOF
2693 # Check whether --enable-interpreter or --disable-interpreter was given.
2694 if test "${enable_interpreter+set}" = set; then
2695 enableval="$enable_interpreter"
2696 if test "$enable_interpreter" = yes; then
2697 # This can also be set in configure.host.
2698 libgcj_interpreter=yes
2699 elif test "$enable_interpreter" = no; then
2700 libgcj_interpreter=no
2705 if test "$libgcj_interpreter" = yes; then
2706 cat >> confdefs.h <<\EOF
2707 #define INTERPRETER 1
2712 echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
2713 echo "configure:2714: checking for exception model to use" >&5
2716 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2717 ac_cpp='$CXXCPP $CPPFLAGS'
2718 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2719 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2720 cross_compiling=$ac_cv_prog_cxx_cross
2722 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
2723 if test "${enable_sjlj_exceptions+set}" = set; then
2724 enableval="$enable_sjlj_exceptions"
2727 cat > conftest.$ac_ext << EOF
2728 #line 2729 "configure"
2737 old_CXXFLAGS="$CXXFLAGS"
2739 if { (eval echo configure:2740: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2740 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
2741 enable_sjlj_exceptions=yes
2742 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
2743 enable_sjlj_exceptions=no
2746 CXXFLAGS="$old_CXXFLAGS"
2750 if test x$enable_sjlj_exceptions = xyes; then
2751 cat >> confdefs.h <<\EOF
2752 #define SJLJ_EXCEPTIONS 1
2755 ac_exception_model_name=sjlj
2756 elif test x$enable_sjlj_exceptions = xno; then
2757 ac_exception_model_name="call frame"
2759 { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
2762 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2763 ac_cpp='$CPP $CPPFLAGS'
2764 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2765 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2766 cross_compiling=$ac_cv_prog_cc_cross
2768 echo "$ac_t""$ac_exception_model_name" 1>&6
2770 echo $ac_n "checking for data_start""... $ac_c" 1>&6
2771 echo "configure:2772: checking for data_start" >&5
2774 cat > conftest.$ac_ext <<EOF
2775 #line 2776 "configure"
2776 #include "confdefs.h"
2777 extern int data_start;
2779 return ((int) &data_start);
2782 if { (eval echo configure:2783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2784 echo "$ac_t""found it" 1>&6
2786 echo "configure: failed program was:" >&5
2787 cat conftest.$ac_ext >&5
2789 LIBDATASTARTSPEC="-u data_start libgcjdata.a%s"
2790 NEEDS_DATA_START=yes
2791 echo "$ac_t""missing" 1>&6
2796 # Check whether --enable-java-net or --disable-java-net was given.
2797 if test "${enable_java_net+set}" = set; then
2798 enableval="$enable_java_net"
2803 if test -n "$enable_java_net"; then
2804 enable_java_net=${enable_java_net_default-yes}
2806 if test "$enable_java_net" = no; then
2807 cat >> confdefs.h <<\EOF
2808 #define DISABLE_JAVA_NET 1
2813 # Check whether --enable-jvmpi or --disable-jvmpi was given.
2814 if test "${enable_jvmpi+set}" = set; then
2815 enableval="$enable_jvmpi"
2820 if test "$enable_jvmpi" != no; then
2821 cat >> confdefs.h <<\EOF
2822 #define ENABLE_JVMPI 1
2828 # Check whether --with-ecos or --without-ecos was given.
2829 if test "${with_ecos+set}" = set; then
2830 withval="$with_ecos"
2831 TARGET_ECOS="$with_ecos"
2836 case "$TARGET_ECOS" in
2838 FILE_DESCRIPTOR=natFileDescriptorPosix.cc
2839 PROCESS=${PROCESS-Posix}
2842 FILE_DESCRIPTOR=natFileDescriptorEcos.cc
2844 cat >> confdefs.h <<\EOF
2851 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2852 echo "configure:2853: checking how to run the C preprocessor" >&5
2853 # On Suns, sometimes $CPP names a directory.
2854 if test -n "$CPP" && test -d "$CPP"; then
2857 if test -z "$CPP"; then
2858 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2859 echo $ac_n "(cached) $ac_c" 1>&6
2861 # This must be in double quotes, not single quotes, because CPP may get
2862 # substituted into the Makefile and "${CC-cc}" will confuse make.
2864 # On the NeXT, cc -E runs the code through the compiler's parser,
2865 # not just through cpp.
2866 cat > conftest.$ac_ext <<EOF
2867 #line 2868 "configure"
2868 #include "confdefs.h"
2872 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2873 { (eval echo configure:2874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2874 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2875 if test -z "$ac_err"; then
2879 echo "configure: failed program was:" >&5
2880 cat conftest.$ac_ext >&5
2882 CPP="${CC-cc} -E -traditional-cpp"
2883 cat > conftest.$ac_ext <<EOF
2884 #line 2885 "configure"
2885 #include "confdefs.h"
2889 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2890 { (eval echo configure:2891: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2891 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2892 if test -z "$ac_err"; then
2896 echo "configure: failed program was:" >&5
2897 cat conftest.$ac_ext >&5
2899 CPP="${CC-cc} -nologo -E"
2900 cat > conftest.$ac_ext <<EOF
2901 #line 2902 "configure"
2902 #include "confdefs.h"
2906 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2907 { (eval echo configure:2908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2908 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2909 if test -z "$ac_err"; then
2913 echo "configure: failed program was:" >&5
2914 cat conftest.$ac_ext >&5
2923 ac_cv_prog_CPP="$CPP"
2925 CPP="$ac_cv_prog_CPP"
2927 ac_cv_prog_CPP="$CPP"
2929 echo "$ac_t""$CPP" 1>&6
2931 cat > conftest.$ac_ext <<EOF
2932 #line 2933 "configure"
2933 #include "confdefs.h"
2936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2937 egrep "uint32_t" >/dev/null 2>&1; then
2939 cat >> confdefs.h <<\EOF
2940 #define HAVE_INT32_DEFINED 1
2946 cat > conftest.$ac_ext <<EOF
2947 #line 2948 "configure"
2948 #include "confdefs.h"
2949 #include <inttypes.h>
2951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2952 egrep "uint32_t" >/dev/null 2>&1; then
2954 cat >> confdefs.h <<\EOF
2955 #define HAVE_INT32_DEFINED 1
2961 cat > conftest.$ac_ext <<EOF
2962 #line 2963 "configure"
2963 #include "confdefs.h"
2964 #include <sys/types.h>
2966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2967 egrep "u_int32_t" >/dev/null 2>&1; then
2969 cat >> confdefs.h <<\EOF
2970 #define HAVE_BSD_INT32_DEFINED 1
2976 cat > conftest.$ac_ext <<EOF
2977 #line 2978 "configure"
2978 #include "confdefs.h"
2979 #include <sys/config.h>
2981 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2982 egrep "u_int32_t" >/dev/null 2>&1; then
2984 cat >> confdefs.h <<\EOF
2985 #define HAVE_BSD_INT32_DEFINED 1
2993 cat > conftest.$ac_ext <<EOF
2994 #line 2995 "configure"
2995 #include "confdefs.h"
2998 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2999 egrep "mktime" >/dev/null 2>&1; then
3001 cat >> confdefs.h <<\EOF
3002 #define HAVE_MKTIME 1
3008 cat > conftest.$ac_ext <<EOF
3009 #line 3010 "configure"
3010 #include "confdefs.h"
3013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3014 egrep "localtime" >/dev/null 2>&1; then
3016 cat >> confdefs.h <<\EOF
3017 #define HAVE_LOCALTIME 1
3024 test -d java || mkdir java
3025 test -d java/io || mkdir java/io
3026 test -d gnu || mkdir gnu
3029 test -d java/lang || mkdir java/lang
3036 LIBGCJTESTSPEC="-L`pwd`/.libs -rpath `pwd`/.libs"
3039 # Check whether --with-system-zlib or --without-system-zlib was given.
3040 if test "${with_system_zlib+set}" = set; then
3041 withval="$with_system_zlib"
3052 echo $ac_n "checking for garbage collector to use""... $ac_c" 1>&6
3053 echo "configure:3054: checking for garbage collector to use" >&5
3054 # Check whether --enable-java-gc or --disable-java-gc was given.
3055 if test "${enable_java_gc+set}" = set; then
3056 enableval="$enable_java_gc"
3072 echo "$ac_t""boehm" 1>&6
3073 GCDEPS='$(top_builddir)/../boehm-gc/libgcjgc.la'
3074 # We include the path to the boehm-gc build directory.
3075 # See Makefile.am to understand why.
3076 GCLIBS="$GCDEPS -L\$(here)/../boehm-gc/$libsubdir"
3077 GCINCS='-I$(top_srcdir)/../boehm-gc/include'
3079 JC1GCSPEC='-fuse-boehm-gc'
3080 GCTESTSPEC="-L`pwd`/../boehm-gc/.libs -rpath `pwd`/../boehm-gc/.libs"
3081 GCINCS="$GCINCS `cat ../boehm-gc/boehm-cflags`"
3084 cat >> confdefs.h <<\EOF
3085 #define HAVE_BOEHM_GC 1
3090 echo "$ac_t""none" 1>&6
3095 { echo "configure: error: unrecognized collector \"$GC\"" 1>&2; exit 1; }
3108 echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
3109 echo "configure:3110: checking for thread model used by GCC" >&5
3110 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3111 echo "$ac_t""$THREADS" 1>&6
3121 cat >> confdefs.h <<\EOF
3122 #define LINUX_THREADS 1
3128 decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks)
3129 { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
3132 { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
3144 THREADLIBS=-lpthread
3145 THREADSPEC=-lpthread
3146 THREADOBJS=posix-threads.lo
3147 THREADH=posix-threads.h
3148 # MIT pthreads doesn't seem to have the mutexattr functions.
3149 # But for now we don't check for it. We just assume you aren't
3150 # using MIT pthreads.
3151 cat >> confdefs.h <<\EOF
3152 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
3156 # If we're using the Boehm GC, then we happen to know that it
3157 # defines _REENTRANT, so we don't bother. Eww.
3158 if test "$GC" != boehm; then
3159 cat >> confdefs.h <<\EOF
3160 #define _REENTRANT 1
3164 cat >> confdefs.h <<\EOF
3165 #define _POSIX_PTHREAD_SEMANTICS 1
3171 THREADOBJS=no-threads.lo
3172 THREADH=no-threads.h
3184 if test "$GCC" = yes; then
3196 # We're in the tree with gcc, and need to include some of its headers.
3197 GCC_UNWIND_INCLUDE='-I$(top_srcdir)/../gcc'
3199 if test -n "${with_cross_host}"; then
3200 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
3201 # may not work correctly, because the compiler may not be able to
3204 # We assume newlib. This lets us hard-code the functions we know
3206 cat >> confdefs.h <<\EOF
3207 #define HAVE_MEMMOVE 1
3210 cat >> confdefs.h <<\EOF
3211 #define HAVE_MEMCPY 1
3214 cat >> confdefs.h <<\EOF
3215 #define HAVE_STRERROR 1
3218 cat >> confdefs.h <<\EOF
3219 #define HAVE_GMTIME_R 1
3222 cat >> confdefs.h <<\EOF
3223 #define HAVE_LOCALTIME_R 1
3226 cat >> confdefs.h <<\EOF
3227 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
3230 cat >> confdefs.h <<\EOF
3231 #define HAVE_ALLOCA 1
3235 cat >> confdefs.h <<\EOF
3241 ZLIBTESTSPEC="-L`pwd`/../zlib/.libs -rpath `pwd`/../zlib/.libs"
3243 # If Canadian cross, then don't pick up tools from the build
3245 if test "$build" != "$with_cross_host"; then
3248 GCJ="${target_alias}-gcj"
3254 for ac_func in strerror ioctl select fstat open fsync sleep
3256 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3257 echo "configure:3258: checking for $ac_func" >&5
3258 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3259 echo $ac_n "(cached) $ac_c" 1>&6
3261 cat > conftest.$ac_ext <<EOF
3262 #line 3263 "configure"
3263 #include "confdefs.h"
3264 /* System header to define __stub macros and hopefully few prototypes,
3265 which can conflict with char $ac_func(); below. */
3267 /* Override any gcc2 internal prototype to avoid an error. */
3268 /* We use char because int might match the return type of a gcc2
3269 builtin and then its argument prototype would still apply. */
3274 /* The GNU C library defines this for functions which it implements
3275 to always fail with ENOSYS. Some functions are actually named
3276 something starting with __ and the normal name is an alias. */
3277 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3285 if { (eval echo configure:3286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3287 eval "ac_cv_func_$ac_func=yes"
3289 echo "configure: failed program was:" >&5
3290 cat conftest.$ac_ext >&5
3292 eval "ac_cv_func_$ac_func=no"
3297 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3298 echo "$ac_t""yes" 1>&6
3299 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3300 cat >> confdefs.h <<EOF
3301 #define $ac_tr_func 1
3305 echo "$ac_t""no" 1>&6
3309 for ac_func in gmtime_r localtime_r readdir_r getpwuid_r getcwd
3311 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3312 echo "configure:3313: checking for $ac_func" >&5
3313 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3314 echo $ac_n "(cached) $ac_c" 1>&6
3316 cat > conftest.$ac_ext <<EOF
3317 #line 3318 "configure"
3318 #include "confdefs.h"
3319 /* System header to define __stub macros and hopefully few prototypes,
3320 which can conflict with char $ac_func(); below. */
3322 /* Override any gcc2 internal prototype to avoid an error. */
3323 /* We use char because int might match the return type of a gcc2
3324 builtin and then its argument prototype would still apply. */
3329 /* The GNU C library defines this for functions which it implements
3330 to always fail with ENOSYS. Some functions are actually named
3331 something starting with __ and the normal name is an alias. */
3332 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3340 if { (eval echo configure:3341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3342 eval "ac_cv_func_$ac_func=yes"
3344 echo "configure: failed program was:" >&5
3345 cat conftest.$ac_ext >&5
3347 eval "ac_cv_func_$ac_func=no"
3352 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3353 echo "$ac_t""yes" 1>&6
3354 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3355 cat >> confdefs.h <<EOF
3356 #define $ac_tr_func 1
3360 echo "$ac_t""no" 1>&6
3364 for ac_func in access stat mkdir rename rmdir unlink realpath utime chmod
3366 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3367 echo "configure:3368: checking for $ac_func" >&5
3368 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3369 echo $ac_n "(cached) $ac_c" 1>&6
3371 cat > conftest.$ac_ext <<EOF
3372 #line 3373 "configure"
3373 #include "confdefs.h"
3374 /* System header to define __stub macros and hopefully few prototypes,
3375 which can conflict with char $ac_func(); below. */
3377 /* Override any gcc2 internal prototype to avoid an error. */
3378 /* We use char because int might match the return type of a gcc2
3379 builtin and then its argument prototype would still apply. */
3384 /* The GNU C library defines this for functions which it implements
3385 to always fail with ENOSYS. Some functions are actually named
3386 something starting with __ and the normal name is an alias. */
3387 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3395 if { (eval echo configure:3396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3397 eval "ac_cv_func_$ac_func=yes"
3399 echo "configure: failed program was:" >&5
3400 cat conftest.$ac_ext >&5
3402 eval "ac_cv_func_$ac_func=no"
3407 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3408 echo "$ac_t""yes" 1>&6
3409 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3410 cat >> confdefs.h <<EOF
3411 #define $ac_tr_func 1
3415 echo "$ac_t""no" 1>&6
3419 for ac_func in iconv nl_langinfo setlocale
3421 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3422 echo "configure:3423: checking for $ac_func" >&5
3423 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3424 echo $ac_n "(cached) $ac_c" 1>&6
3426 cat > conftest.$ac_ext <<EOF
3427 #line 3428 "configure"
3428 #include "confdefs.h"
3429 /* System header to define __stub macros and hopefully few prototypes,
3430 which can conflict with char $ac_func(); below. */
3432 /* Override any gcc2 internal prototype to avoid an error. */
3433 /* We use char because int might match the return type of a gcc2
3434 builtin and then its argument prototype would still apply. */
3439 /* The GNU C library defines this for functions which it implements
3440 to always fail with ENOSYS. Some functions are actually named
3441 something starting with __ and the normal name is an alias. */
3442 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3450 if { (eval echo configure:3451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3452 eval "ac_cv_func_$ac_func=yes"
3454 echo "configure: failed program was:" >&5
3455 cat conftest.$ac_ext >&5
3457 eval "ac_cv_func_$ac_func=no"
3462 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3463 echo "$ac_t""yes" 1>&6
3464 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3465 cat >> confdefs.h <<EOF
3466 #define $ac_tr_func 1
3470 echo "$ac_t""no" 1>&6
3474 for ac_func in inet_aton inet_addr
3476 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3477 echo "configure:3478: checking for $ac_func" >&5
3478 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3479 echo $ac_n "(cached) $ac_c" 1>&6
3481 cat > conftest.$ac_ext <<EOF
3482 #line 3483 "configure"
3483 #include "confdefs.h"
3484 /* System header to define __stub macros and hopefully few prototypes,
3485 which can conflict with char $ac_func(); below. */
3487 /* Override any gcc2 internal prototype to avoid an error. */
3488 /* We use char because int might match the return type of a gcc2
3489 builtin and then its argument prototype would still apply. */
3494 /* The GNU C library defines this for functions which it implements
3495 to always fail with ENOSYS. Some functions are actually named
3496 something starting with __ and the normal name is an alias. */
3497 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3505 if { (eval echo configure:3506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3507 eval "ac_cv_func_$ac_func=yes"
3509 echo "configure: failed program was:" >&5
3510 cat conftest.$ac_ext >&5
3512 eval "ac_cv_func_$ac_func=no"
3517 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3518 echo "$ac_t""yes" 1>&6
3519 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3520 cat >> confdefs.h <<EOF
3521 #define $ac_tr_func 1
3525 echo "$ac_t""no" 1>&6
3529 for ac_func in inet_pton uname inet_ntoa
3531 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3532 echo "configure:3533: checking for $ac_func" >&5
3533 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3534 echo $ac_n "(cached) $ac_c" 1>&6
3536 cat > conftest.$ac_ext <<EOF
3537 #line 3538 "configure"
3538 #include "confdefs.h"
3539 /* System header to define __stub macros and hopefully few prototypes,
3540 which can conflict with char $ac_func(); below. */
3542 /* Override any gcc2 internal prototype to avoid an error. */
3543 /* We use char because int might match the return type of a gcc2
3544 builtin and then its argument prototype would still apply. */
3549 /* The GNU C library defines this for functions which it implements
3550 to always fail with ENOSYS. Some functions are actually named
3551 something starting with __ and the normal name is an alias. */
3552 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3560 if { (eval echo configure:3561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3562 eval "ac_cv_func_$ac_func=yes"
3564 echo "configure: failed program was:" >&5
3565 cat conftest.$ac_ext >&5
3567 eval "ac_cv_func_$ac_func=no"
3572 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3573 echo "$ac_t""yes" 1>&6
3574 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3575 cat >> confdefs.h <<EOF
3576 #define $ac_tr_func 1
3580 echo "$ac_t""no" 1>&6
3584 for ac_func in backtrace fork execvp pipe
3586 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3587 echo "configure:3588: checking for $ac_func" >&5
3588 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3589 echo $ac_n "(cached) $ac_c" 1>&6
3591 cat > conftest.$ac_ext <<EOF
3592 #line 3593 "configure"
3593 #include "confdefs.h"
3594 /* System header to define __stub macros and hopefully few prototypes,
3595 which can conflict with char $ac_func(); below. */
3597 /* Override any gcc2 internal prototype to avoid an error. */
3598 /* We use char because int might match the return type of a gcc2
3599 builtin and then its argument prototype would still apply. */
3604 /* The GNU C library defines this for functions which it implements
3605 to always fail with ENOSYS. Some functions are actually named
3606 something starting with __ and the normal name is an alias. */
3607 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3615 if { (eval echo configure:3616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3617 eval "ac_cv_func_$ac_func=yes"
3619 echo "configure: failed program was:" >&5
3620 cat conftest.$ac_ext >&5
3622 eval "ac_cv_func_$ac_func=no"
3627 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3628 echo "$ac_t""yes" 1>&6
3629 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3630 cat >> confdefs.h <<EOF
3631 #define $ac_tr_func 1
3635 echo "$ac_t""no" 1>&6
3639 for ac_hdr in execinfo.h unistd.h dlfcn.h
3641 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3642 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3643 echo "configure:3644: checking for $ac_hdr" >&5
3644 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3645 echo $ac_n "(cached) $ac_c" 1>&6
3647 cat > conftest.$ac_ext <<EOF
3648 #line 3649 "configure"
3649 #include "confdefs.h"
3652 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3653 { (eval echo configure:3654: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3654 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3655 if test -z "$ac_err"; then
3657 eval "ac_cv_header_$ac_safe=yes"
3660 echo "configure: failed program was:" >&5
3661 cat conftest.$ac_ext >&5
3663 eval "ac_cv_header_$ac_safe=no"
3667 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3668 echo "$ac_t""yes" 1>&6
3669 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3670 cat >> confdefs.h <<EOF
3671 #define $ac_tr_hdr 1
3675 echo "$ac_t""no" 1>&6
3679 echo $ac_n "checking for dladdr in -ldl""... $ac_c" 1>&6
3680 echo "configure:3681: checking for dladdr in -ldl" >&5
3681 ac_lib_var=`echo dl'_'dladdr | sed 'y%./+-%__p_%'`
3682 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3683 echo $ac_n "(cached) $ac_c" 1>&6
3685 ac_save_LIBS="$LIBS"
3687 cat > conftest.$ac_ext <<EOF
3688 #line 3689 "configure"
3689 #include "confdefs.h"
3690 /* Override any gcc2 internal prototype to avoid an error. */
3691 /* We use char because int might match the return type of a gcc2
3692 builtin and then its argument prototype would still apply. */
3699 if { (eval echo configure:3700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3701 eval "ac_cv_lib_$ac_lib_var=yes"
3703 echo "configure: failed program was:" >&5
3704 cat conftest.$ac_ext >&5
3706 eval "ac_cv_lib_$ac_lib_var=no"
3709 LIBS="$ac_save_LIBS"
3712 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3713 echo "$ac_t""yes" 1>&6
3715 cat >> confdefs.h <<\EOF
3716 #define HAVE_DLADDR 1
3720 echo "$ac_t""no" 1>&6
3723 for ac_file in /proc/self/exe
3726 ac_safe=`echo "$ac_file" | sed 'y%./+-%__p_%'`
3727 echo $ac_n "checking for $ac_file""... $ac_c" 1>&6
3728 echo "configure:3729: checking for $ac_file" >&5
3729 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
3730 echo $ac_n "(cached) $ac_c" 1>&6
3732 if test "$cross_compiling" = yes; then
3733 { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
3735 if test -r $ac_file; then
3736 eval "ac_cv_file_$ac_safe=yes"
3738 eval "ac_cv_file_$ac_safe=no"
3742 if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
3743 echo "$ac_t""yes" 1>&6
3744 ac_tr_file=HAVE_`echo $ac_file | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3745 cat >> confdefs.h <<EOF
3746 #define $ac_tr_file 1
3749 cat >> confdefs.h <<\EOF
3750 #define HAVE_PROC_SELF_EXE 1
3754 echo "$ac_t""no" 1>&6
3760 for ac_func in gethostbyname_r
3762 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3763 echo "configure:3764: checking for $ac_func" >&5
3764 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3765 echo $ac_n "(cached) $ac_c" 1>&6
3767 cat > conftest.$ac_ext <<EOF
3768 #line 3769 "configure"
3769 #include "confdefs.h"
3770 /* System header to define __stub macros and hopefully few prototypes,
3771 which can conflict with char $ac_func(); below. */
3773 /* Override any gcc2 internal prototype to avoid an error. */
3774 /* We use char because int might match the return type of a gcc2
3775 builtin and then its argument prototype would still apply. */
3780 /* The GNU C library defines this for functions which it implements
3781 to always fail with ENOSYS. Some functions are actually named
3782 something starting with __ and the normal name is an alias. */
3783 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3791 if { (eval echo configure:3792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3793 eval "ac_cv_func_$ac_func=yes"
3795 echo "configure: failed program was:" >&5
3796 cat conftest.$ac_ext >&5
3798 eval "ac_cv_func_$ac_func=no"
3803 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3804 echo "$ac_t""yes" 1>&6
3805 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3806 cat >> confdefs.h <<EOF
3807 #define $ac_tr_func 1
3810 cat >> confdefs.h <<\EOF
3811 #define HAVE_GETHOSTBYNAME_R 1
3814 # There are two different kinds of gethostbyname_r.
3815 # We look for the one that returns `int'.
3816 # Hopefully this check is robust enough.
3817 cat > conftest.$ac_ext <<EOF
3818 #line 3819 "configure"
3819 #include "confdefs.h"
3822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3823 egrep "int.*gethostbyname_r" >/dev/null 2>&1; then
3826 cat >> confdefs.h <<\EOF
3827 #define GETHOSTBYNAME_R_RETURNS_INT 1
3835 *" -D_REENTRANT "*) ;;
3837 echo $ac_n "checking whether gethostbyname_r declaration requires -D_REENTRANT""... $ac_c" 1>&6
3838 echo "configure:3839: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
3839 if eval "test \"`echo '$''{'libjava_cv_gethostbyname_r_needs_reentrant'+set}'`\" = set"; then
3840 echo $ac_n "(cached) $ac_c" 1>&6
3844 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3845 ac_cpp='$CXXCPP $CPPFLAGS'
3846 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3847 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3848 cross_compiling=$ac_cv_prog_cxx_cross
3850 cat > conftest.$ac_ext <<EOF
3851 #line 3852 "configure"
3852 #include "confdefs.h"
3855 gethostbyname_r("", 0, 0);
3858 if { (eval echo configure:3859: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3860 libjava_cv_gethostbyname_r_needs_reentrant=no
3862 echo "configure: failed program was:" >&5
3863 cat conftest.$ac_ext >&5
3865 CPPFLAGS_SAVE="$CPPFLAGS"
3866 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
3867 cat > conftest.$ac_ext <<EOF
3868 #line 3869 "configure"
3869 #include "confdefs.h"
3872 gethostbyname_r("", 0, 0);
3875 if { (eval echo configure:3876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3877 libjava_cv_gethostbyname_r_needs_reentrant=yes
3879 echo "configure: failed program was:" >&5
3880 cat conftest.$ac_ext >&5
3882 libjava_cv_gethostbyname_r_needs_reentrant=fail
3885 CPPFLAGS="$CPPFLAGS_SAVE"
3890 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3891 ac_cpp='$CPP $CPPFLAGS'
3892 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3893 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3894 cross_compiling=$ac_cv_prog_cc_cross
3899 echo "$ac_t""$libjava_cv_gethostbyname_r_needs_reentrant" 1>&6
3900 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
3901 cat >> confdefs.h <<\EOF
3902 #define _REENTRANT 1
3909 echo $ac_n "checking for struct hostent_data""... $ac_c" 1>&6
3910 echo "configure:3911: checking for struct hostent_data" >&5
3911 if eval "test \"`echo '$''{'libjava_cv_struct_hostent_data'+set}'`\" = set"; then
3912 echo $ac_n "(cached) $ac_c" 1>&6
3914 cat > conftest.$ac_ext <<EOF
3915 #line 3916 "configure"
3916 #include "confdefs.h"
3918 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
3919 # define _REENTRANT 1
3923 struct hostent_data data;
3926 if { (eval echo configure:3927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3928 libjava_cv_struct_hostent_data=yes
3930 echo "configure: failed program was:" >&5
3931 cat conftest.$ac_ext >&5
3933 libjava_cv_struct_hostent_data=no
3938 echo "$ac_t""$libjava_cv_struct_hostent_data" 1>&6
3939 if test "x$libjava_cv_struct_hostent_data" = xyes; then
3940 cat >> confdefs.h <<\EOF
3941 #define HAVE_STRUCT_HOSTENT_DATA 1
3947 echo "$ac_t""no" 1>&6
3952 for ac_func in gethostbyaddr_r
3954 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3955 echo "configure:3956: checking for $ac_func" >&5
3956 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3957 echo $ac_n "(cached) $ac_c" 1>&6
3959 cat > conftest.$ac_ext <<EOF
3960 #line 3961 "configure"
3961 #include "confdefs.h"
3962 /* System header to define __stub macros and hopefully few prototypes,
3963 which can conflict with char $ac_func(); below. */
3965 /* Override any gcc2 internal prototype to avoid an error. */
3966 /* We use char because int might match the return type of a gcc2
3967 builtin and then its argument prototype would still apply. */
3972 /* The GNU C library defines this for functions which it implements
3973 to always fail with ENOSYS. Some functions are actually named
3974 something starting with __ and the normal name is an alias. */
3975 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3983 if { (eval echo configure:3984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3985 eval "ac_cv_func_$ac_func=yes"
3987 echo "configure: failed program was:" >&5
3988 cat conftest.$ac_ext >&5
3990 eval "ac_cv_func_$ac_func=no"
3995 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3996 echo "$ac_t""yes" 1>&6
3997 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3998 cat >> confdefs.h <<EOF
3999 #define $ac_tr_func 1
4002 cat >> confdefs.h <<\EOF
4003 #define HAVE_GETHOSTBYADDR_R 1
4006 # There are two different kinds of gethostbyaddr_r.
4007 # We look for the one that returns `int'.
4008 # Hopefully this check is robust enough.
4009 cat > conftest.$ac_ext <<EOF
4010 #line 4011 "configure"
4011 #include "confdefs.h"
4014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4015 egrep "int.*gethostbyaddr_r" >/dev/null 2>&1; then
4018 cat >> confdefs.h <<\EOF
4019 #define GETHOSTBYADDR_R_RETURNS_INT 1
4026 echo "$ac_t""no" 1>&6
4031 for ac_func in gethostname
4033 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4034 echo "configure:4035: checking for $ac_func" >&5
4035 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4036 echo $ac_n "(cached) $ac_c" 1>&6
4038 cat > conftest.$ac_ext <<EOF
4039 #line 4040 "configure"
4040 #include "confdefs.h"
4041 /* System header to define __stub macros and hopefully few prototypes,
4042 which can conflict with char $ac_func(); below. */
4044 /* Override any gcc2 internal prototype to avoid an error. */
4045 /* We use char because int might match the return type of a gcc2
4046 builtin and then its argument prototype would still apply. */
4051 /* The GNU C library defines this for functions which it implements
4052 to always fail with ENOSYS. Some functions are actually named
4053 something starting with __ and the normal name is an alias. */
4054 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4062 if { (eval echo configure:4063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4064 eval "ac_cv_func_$ac_func=yes"
4066 echo "configure: failed program was:" >&5
4067 cat conftest.$ac_ext >&5
4069 eval "ac_cv_func_$ac_func=no"
4074 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4075 echo "$ac_t""yes" 1>&6
4076 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4077 cat >> confdefs.h <<EOF
4078 #define $ac_tr_func 1
4081 cat >> confdefs.h <<\EOF
4082 #define HAVE_GETHOSTNAME 1
4085 cat > conftest.$ac_ext <<EOF
4086 #line 4087 "configure"
4087 #include "confdefs.h"
4090 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4091 egrep "gethostname" >/dev/null 2>&1; then
4094 cat >> confdefs.h <<\EOF
4095 #define HAVE_GETHOSTNAME_DECL 1
4102 echo "$ac_t""no" 1>&6
4107 # Look for these functions in the thread library, but only bother
4108 # if using POSIX threads.
4109 if test "$THREADS" = posix; then
4111 LIBS="$LIBS $THREADLIBS"
4112 # Some POSIX thread systems don't have pthread_mutexattr_settype.
4114 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
4116 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4117 echo "configure:4118: checking for $ac_func" >&5
4118 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4119 echo $ac_n "(cached) $ac_c" 1>&6
4121 cat > conftest.$ac_ext <<EOF
4122 #line 4123 "configure"
4123 #include "confdefs.h"
4124 /* System header to define __stub macros and hopefully few prototypes,
4125 which can conflict with char $ac_func(); below. */
4127 /* Override any gcc2 internal prototype to avoid an error. */
4128 /* We use char because int might match the return type of a gcc2
4129 builtin and then its argument prototype would still apply. */
4134 /* The GNU C library defines this for functions which it implements
4135 to always fail with ENOSYS. Some functions are actually named
4136 something starting with __ and the normal name is an alias. */
4137 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4145 if { (eval echo configure:4146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4147 eval "ac_cv_func_$ac_func=yes"
4149 echo "configure: failed program was:" >&5
4150 cat conftest.$ac_ext >&5
4152 eval "ac_cv_func_$ac_func=no"
4157 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4158 echo "$ac_t""yes" 1>&6
4159 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4160 cat >> confdefs.h <<EOF
4161 #define $ac_tr_func 1
4165 echo "$ac_t""no" 1>&6
4170 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
4171 # Solaris 7 the name librt is preferred.
4172 for ac_func in sched_yield
4174 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4175 echo "configure:4176: checking for $ac_func" >&5
4176 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4177 echo $ac_n "(cached) $ac_c" 1>&6
4179 cat > conftest.$ac_ext <<EOF
4180 #line 4181 "configure"
4181 #include "confdefs.h"
4182 /* System header to define __stub macros and hopefully few prototypes,
4183 which can conflict with char $ac_func(); below. */
4185 /* Override any gcc2 internal prototype to avoid an error. */
4186 /* We use char because int might match the return type of a gcc2
4187 builtin and then its argument prototype would still apply. */
4192 /* The GNU C library defines this for functions which it implements
4193 to always fail with ENOSYS. Some functions are actually named
4194 something starting with __ and the normal name is an alias. */
4195 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4203 if { (eval echo configure:4204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4205 eval "ac_cv_func_$ac_func=yes"
4207 echo "configure: failed program was:" >&5
4208 cat conftest.$ac_ext >&5
4210 eval "ac_cv_func_$ac_func=no"
4215 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4216 echo "$ac_t""yes" 1>&6
4217 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4218 cat >> confdefs.h <<EOF
4219 #define $ac_tr_func 1
4223 echo "$ac_t""no" 1>&6
4224 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
4225 echo "configure:4226: checking for sched_yield in -lrt" >&5
4226 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
4227 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4228 echo $ac_n "(cached) $ac_c" 1>&6
4230 ac_save_LIBS="$LIBS"
4232 cat > conftest.$ac_ext <<EOF
4233 #line 4234 "configure"
4234 #include "confdefs.h"
4235 /* Override any gcc2 internal prototype to avoid an error. */
4236 /* We use char because int might match the return type of a gcc2
4237 builtin and then its argument prototype would still apply. */
4244 if { (eval echo configure:4245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4246 eval "ac_cv_lib_$ac_lib_var=yes"
4248 echo "configure: failed program was:" >&5
4249 cat conftest.$ac_ext >&5
4251 eval "ac_cv_lib_$ac_lib_var=no"
4254 LIBS="$ac_save_LIBS"
4257 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4258 echo "$ac_t""yes" 1>&6
4260 cat >> confdefs.h <<\EOF
4261 #define HAVE_SCHED_YIELD 1
4264 THREADLIBS="$THREADLIBS -lrt"
4265 THREADSPEC="$THREADSPEC -lrt"
4267 echo "$ac_t""no" 1>&6
4269 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
4270 echo "configure:4271: checking for sched_yield in -lposix4" >&5
4271 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
4272 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4273 echo $ac_n "(cached) $ac_c" 1>&6
4275 ac_save_LIBS="$LIBS"
4276 LIBS="-lposix4 $LIBS"
4277 cat > conftest.$ac_ext <<EOF
4278 #line 4279 "configure"
4279 #include "confdefs.h"
4280 /* Override any gcc2 internal prototype to avoid an error. */
4281 /* We use char because int might match the return type of a gcc2
4282 builtin and then its argument prototype would still apply. */
4289 if { (eval echo configure:4290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4291 eval "ac_cv_lib_$ac_lib_var=yes"
4293 echo "configure: failed program was:" >&5
4294 cat conftest.$ac_ext >&5
4296 eval "ac_cv_lib_$ac_lib_var=no"
4299 LIBS="$ac_save_LIBS"
4302 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4303 echo "$ac_t""yes" 1>&6
4305 cat >> confdefs.h <<\EOF
4306 #define HAVE_SCHED_YIELD 1
4309 THREADLIBS="$THREADLIBS -lposix4"
4310 THREADSPEC="$THREADSPEC -lposix4"
4312 echo "$ac_t""no" 1>&6
4322 # We can save a little space at runtime if the mutex has m_count
4323 # or __m_count. This is a nice hack for Linux.
4324 cat > conftest.$ac_ext <<EOF
4325 #line 4326 "configure"
4326 #include "confdefs.h"
4327 #include <pthread.h>
4330 extern pthread_mutex_t *mutex; int q = mutex->m_count;
4334 if { (eval echo configure:4335: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4336 cat >> confdefs.h <<\EOF
4337 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
4341 echo "configure: failed program was:" >&5
4342 cat conftest.$ac_ext >&5
4345 cat > conftest.$ac_ext <<EOF
4346 #line 4347 "configure"
4347 #include "confdefs.h"
4348 #include <pthread.h>
4351 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
4355 if { (eval echo configure:4356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4357 cat >> confdefs.h <<\EOF
4358 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
4362 echo "configure: failed program was:" >&5
4363 cat conftest.$ac_ext >&5
4370 # We require a way to get the time.
4372 for ac_func in gettimeofday time ftime
4374 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4375 echo "configure:4376: checking for $ac_func" >&5
4376 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4377 echo $ac_n "(cached) $ac_c" 1>&6
4379 cat > conftest.$ac_ext <<EOF
4380 #line 4381 "configure"
4381 #include "confdefs.h"
4382 /* System header to define __stub macros and hopefully few prototypes,
4383 which can conflict with char $ac_func(); below. */
4385 /* Override any gcc2 internal prototype to avoid an error. */
4386 /* We use char because int might match the return type of a gcc2
4387 builtin and then its argument prototype would still apply. */
4392 /* The GNU C library defines this for functions which it implements
4393 to always fail with ENOSYS. Some functions are actually named
4394 something starting with __ and the normal name is an alias. */
4395 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4403 if { (eval echo configure:4404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4405 eval "ac_cv_func_$ac_func=yes"
4407 echo "configure: failed program was:" >&5
4408 cat conftest.$ac_ext >&5
4410 eval "ac_cv_func_$ac_func=no"
4415 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4416 echo "$ac_t""yes" 1>&6
4417 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4418 cat >> confdefs.h <<EOF
4419 #define $ac_tr_func 1
4423 echo "$ac_t""no" 1>&6
4427 if test "$time_found" = no; then
4428 { echo "configure: error: no function found to get the time" 1>&2; exit 1; }
4431 for ac_func in memmove
4433 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4434 echo "configure:4435: checking for $ac_func" >&5
4435 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4436 echo $ac_n "(cached) $ac_c" 1>&6
4438 cat > conftest.$ac_ext <<EOF
4439 #line 4440 "configure"
4440 #include "confdefs.h"
4441 /* System header to define __stub macros and hopefully few prototypes,
4442 which can conflict with char $ac_func(); below. */
4444 /* Override any gcc2 internal prototype to avoid an error. */
4445 /* We use char because int might match the return type of a gcc2
4446 builtin and then its argument prototype would still apply. */
4451 /* The GNU C library defines this for functions which it implements
4452 to always fail with ENOSYS. Some functions are actually named
4453 something starting with __ and the normal name is an alias. */
4454 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4462 if { (eval echo configure:4463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4464 eval "ac_cv_func_$ac_func=yes"
4466 echo "configure: failed program was:" >&5
4467 cat conftest.$ac_ext >&5
4469 eval "ac_cv_func_$ac_func=no"
4474 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4475 echo "$ac_t""yes" 1>&6
4476 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4477 cat >> confdefs.h <<EOF
4478 #define $ac_tr_func 1
4482 echo "$ac_t""no" 1>&6
4487 # We require memcpy.
4489 for ac_func in memcpy
4491 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4492 echo "configure:4493: checking for $ac_func" >&5
4493 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4494 echo $ac_n "(cached) $ac_c" 1>&6
4496 cat > conftest.$ac_ext <<EOF
4497 #line 4498 "configure"
4498 #include "confdefs.h"
4499 /* System header to define __stub macros and hopefully few prototypes,
4500 which can conflict with char $ac_func(); below. */
4502 /* Override any gcc2 internal prototype to avoid an error. */
4503 /* We use char because int might match the return type of a gcc2
4504 builtin and then its argument prototype would still apply. */
4509 /* The GNU C library defines this for functions which it implements
4510 to always fail with ENOSYS. Some functions are actually named
4511 something starting with __ and the normal name is an alias. */
4512 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4520 if { (eval echo configure:4521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4522 eval "ac_cv_func_$ac_func=yes"
4524 echo "configure: failed program was:" >&5
4525 cat conftest.$ac_ext >&5
4527 eval "ac_cv_func_$ac_func=no"
4532 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4533 echo "$ac_t""yes" 1>&6
4534 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4535 cat >> confdefs.h <<EOF
4536 #define $ac_tr_func 1
4540 echo "$ac_t""no" 1>&6
4544 if test "$memcpy_found" = no; then
4545 { echo "configure: error: memcpy is required" 1>&2; exit 1; }
4548 # Some library-finding code we stole from Tcl.
4549 #--------------------------------------------------------------------
4550 # Check for the existence of the -lsocket and -lnsl libraries.
4551 # The order here is important, so that they end up in the right
4552 # order in the command line generated by make. Here are some
4553 # special considerations:
4554 # 1. Use "connect" and "accept" to check for -lsocket, and
4555 # "gethostbyname" to check for -lnsl.
4556 # 2. Use each function name only once: can't redo a check because
4557 # autoconf caches the results of the last check and won't redo it.
4558 # 3. Use -lnsl and -lsocket only if they supply procedures that
4559 # aren't already present in the normal libraries. This is because
4560 # IRIX 5.2 has libraries, but they aren't needed and they're
4561 # bogus: they goof up name resolution if used.
4562 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
4563 # To get around this problem, check for both libraries together
4564 # if -lsocket doesn't work by itself.
4565 #--------------------------------------------------------------------
4567 echo $ac_n "checking for socket libraries""... $ac_c" 1>&6
4568 echo "configure:4569: checking for socket libraries" >&5
4569 if eval "test \"`echo '$''{'gcj_cv_lib_sockets'+set}'`\" = set"; then
4570 echo $ac_n "(cached) $ac_c" 1>&6
4574 unset ac_cv_func_connect
4575 echo $ac_n "checking for connect""... $ac_c" 1>&6
4576 echo "configure:4577: checking for connect" >&5
4577 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
4578 echo $ac_n "(cached) $ac_c" 1>&6
4580 cat > conftest.$ac_ext <<EOF
4581 #line 4582 "configure"
4582 #include "confdefs.h"
4583 /* System header to define __stub macros and hopefully few prototypes,
4584 which can conflict with char connect(); below. */
4586 /* Override any gcc2 internal prototype to avoid an error. */
4587 /* We use char because int might match the return type of a gcc2
4588 builtin and then its argument prototype would still apply. */
4593 /* The GNU C library defines this for functions which it implements
4594 to always fail with ENOSYS. Some functions are actually named
4595 something starting with __ and the normal name is an alias. */
4596 #if defined (__stub_connect) || defined (__stub___connect)
4604 if { (eval echo configure:4605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4606 eval "ac_cv_func_connect=yes"
4608 echo "configure: failed program was:" >&5
4609 cat conftest.$ac_ext >&5
4611 eval "ac_cv_func_connect=no"
4616 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
4617 echo "$ac_t""yes" 1>&6
4620 echo "$ac_t""no" 1>&6
4624 if test "$gcj_checkSocket" = 1; then
4625 unset ac_cv_func_connect
4626 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4627 echo "configure:4628: checking for main in -lsocket" >&5
4628 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
4629 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4630 echo $ac_n "(cached) $ac_c" 1>&6
4632 ac_save_LIBS="$LIBS"
4633 LIBS="-lsocket $LIBS"
4634 cat > conftest.$ac_ext <<EOF
4635 #line 4636 "configure"
4636 #include "confdefs.h"
4642 if { (eval echo configure:4643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4644 eval "ac_cv_lib_$ac_lib_var=yes"
4646 echo "configure: failed program was:" >&5
4647 cat conftest.$ac_ext >&5
4649 eval "ac_cv_lib_$ac_lib_var=no"
4652 LIBS="$ac_save_LIBS"
4655 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4656 echo "$ac_t""yes" 1>&6
4657 gcj_cv_lib_sockets="-lsocket"
4659 echo "$ac_t""no" 1>&6
4664 if test "$gcj_checkBoth" = 1; then
4666 LIBS="$LIBS -lsocket -lnsl"
4667 unset ac_cv_func_accept
4668 echo $ac_n "checking for accept""... $ac_c" 1>&6
4669 echo "configure:4670: checking for accept" >&5
4670 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
4671 echo $ac_n "(cached) $ac_c" 1>&6
4673 cat > conftest.$ac_ext <<EOF
4674 #line 4675 "configure"
4675 #include "confdefs.h"
4676 /* System header to define __stub macros and hopefully few prototypes,
4677 which can conflict with char accept(); below. */
4679 /* Override any gcc2 internal prototype to avoid an error. */
4680 /* We use char because int might match the return type of a gcc2
4681 builtin and then its argument prototype would still apply. */
4686 /* The GNU C library defines this for functions which it implements
4687 to always fail with ENOSYS. Some functions are actually named
4688 something starting with __ and the normal name is an alias. */
4689 #if defined (__stub_accept) || defined (__stub___accept)
4697 if { (eval echo configure:4698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4699 eval "ac_cv_func_accept=yes"
4701 echo "configure: failed program was:" >&5
4702 cat conftest.$ac_ext >&5
4704 eval "ac_cv_func_accept=no"
4709 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
4710 echo "$ac_t""yes" 1>&6
4712 gcj_cv_lib_sockets="-lsocket -lnsl"
4714 echo "$ac_t""no" 1>&6
4717 unset ac_cv_func_accept
4720 unset ac_cv_func_gethostbyname
4722 LIBS="$LIBS $gcj_cv_lib_sockets"
4723 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4724 echo "configure:4725: checking for gethostbyname" >&5
4725 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
4726 echo $ac_n "(cached) $ac_c" 1>&6
4728 cat > conftest.$ac_ext <<EOF
4729 #line 4730 "configure"
4730 #include "confdefs.h"
4731 /* System header to define __stub macros and hopefully few prototypes,
4732 which can conflict with char gethostbyname(); below. */
4734 /* Override any gcc2 internal prototype to avoid an error. */
4735 /* We use char because int might match the return type of a gcc2
4736 builtin and then its argument prototype would still apply. */
4737 char gethostbyname();
4741 /* The GNU C library defines this for functions which it implements
4742 to always fail with ENOSYS. Some functions are actually named
4743 something starting with __ and the normal name is an alias. */
4744 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4752 if { (eval echo configure:4753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4754 eval "ac_cv_func_gethostbyname=yes"
4756 echo "configure: failed program was:" >&5
4757 cat conftest.$ac_ext >&5
4759 eval "ac_cv_func_gethostbyname=no"
4764 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
4765 echo "$ac_t""yes" 1>&6
4768 echo "$ac_t""no" 1>&6
4769 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
4770 echo "configure:4771: checking for main in -lnsl" >&5
4771 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
4772 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4773 echo $ac_n "(cached) $ac_c" 1>&6
4775 ac_save_LIBS="$LIBS"
4777 cat > conftest.$ac_ext <<EOF
4778 #line 4779 "configure"
4779 #include "confdefs.h"
4785 if { (eval echo configure:4786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4787 eval "ac_cv_lib_$ac_lib_var=yes"
4789 echo "configure: failed program was:" >&5
4790 cat conftest.$ac_ext >&5
4792 eval "ac_cv_lib_$ac_lib_var=no"
4795 LIBS="$ac_save_LIBS"
4798 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4799 echo "$ac_t""yes" 1>&6
4800 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
4802 echo "$ac_t""no" 1>&6
4807 unset ac_cv_func_gethostbyname
4812 echo "$ac_t""$gcj_cv_lib_sockets" 1>&6
4813 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
4815 if test "$with_system_zlib" = yes; then
4816 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
4817 echo "configure:4818: checking for deflate in -lz" >&5
4818 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
4819 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4820 echo $ac_n "(cached) $ac_c" 1>&6
4822 ac_save_LIBS="$LIBS"
4824 cat > conftest.$ac_ext <<EOF
4825 #line 4826 "configure"
4826 #include "confdefs.h"
4827 /* Override any gcc2 internal prototype to avoid an error. */
4828 /* We use char because int might match the return type of a gcc2
4829 builtin and then its argument prototype would still apply. */
4836 if { (eval echo configure:4837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4838 eval "ac_cv_lib_$ac_lib_var=yes"
4840 echo "configure: failed program was:" >&5
4841 cat conftest.$ac_ext >&5
4843 eval "ac_cv_lib_$ac_lib_var=no"
4846 LIBS="$ac_save_LIBS"
4849 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4850 echo "$ac_t""yes" 1>&6
4853 echo "$ac_t""no" 1>&6
4859 ZLIBTESTSPEC="-L`pwd`/../zlib/.libs -rpath `pwd`/../zlib/.libs"
4862 # On Solaris, and maybe other architectures, the Boehm collector
4864 if test "$GC" = boehm; then
4865 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
4866 echo "configure:4867: checking for main in -ldl" >&5
4867 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
4868 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4869 echo $ac_n "(cached) $ac_c" 1>&6
4871 ac_save_LIBS="$LIBS"
4873 cat > conftest.$ac_ext <<EOF
4874 #line 4875 "configure"
4875 #include "confdefs.h"
4881 if { (eval echo configure:4882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4883 eval "ac_cv_lib_$ac_lib_var=yes"
4885 echo "configure: failed program was:" >&5
4886 cat conftest.$ac_ext >&5
4888 eval "ac_cv_lib_$ac_lib_var=no"
4891 LIBS="$ac_save_LIBS"
4894 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4895 echo "$ac_t""yes" 1>&6
4896 SYSTEMSPEC="$SYSTEMSPEC -ldl"
4898 echo "$ac_t""no" 1>&6
4903 if test -z "${with_multisubdir}"; then
4907 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
4910 if test -x "${builddotdot}/../../gcc/gcj"; then
4911 dir="`cd ${builddotdot}/../../gcc && pwd`"
4912 GCJ="$dir/gcj -B`pwd`/ -B$dir/"
4920 # Create it, so that compile/link tests don't fail
4921 test -f libgcj.spec || touch libgcj.spec
4923 # We must search the source tree for java.lang, since we still don't
4924 # have libgcj.jar nor java/lang/*.class
4925 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
4926 CPPFLAGS="$CPPFLAGS -I`pwd` -I`cd $srcdir && pwd`"
4928 # Since some classes depend on this one, we need its source available
4929 # before we can do any GCJ compilation test :-(
4930 if test ! -f gnu/classpath/Configuration.java; then
4931 test -d gnu || mkdir gnu
4932 test -d gnu/classpath || mkdir gnu/classpath
4933 sed 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
4934 < $srcdir/gnu/classpath/Configuration.java.in \
4935 > gnu/classpath/Configuration.java
4936 # We do not want to redirect the output of the grep below to /dev/null,
4937 # but we add /dev/null to the input list so that grep will print the
4938 # filename of Configuration.java in case it finds any matches.
4939 if grep @ gnu/classpath/Configuration.java /dev/null; then
4940 { echo "configure: error: configure.in is missing the substitutions above" 1>&2; exit 1; }
4944 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
4945 set dummy ${ac_tool_prefix}gcj; ac_word=$2
4946 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4947 echo "configure:4948: checking for $ac_word" >&5
4948 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
4949 echo $ac_n "(cached) $ac_c" 1>&6
4951 if test -n "$GCJ"; then
4952 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
4954 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4956 for ac_dir in $ac_dummy; do
4957 test -z "$ac_dir" && ac_dir=.
4958 if test -f $ac_dir/$ac_word; then
4959 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
4966 GCJ="$ac_cv_prog_GCJ"
4967 if test -n "$GCJ"; then
4968 echo "$ac_t""$GCJ" 1>&6
4970 echo "$ac_t""no" 1>&6
4974 if test -z "$ac_cv_prog_GCJ"; then
4975 if test -n "$ac_tool_prefix"; then
4976 # Extract the first word of "gcj", so it can be a program name with args.
4977 set dummy gcj; ac_word=$2
4978 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4979 echo "configure:4980: checking for $ac_word" >&5
4980 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
4981 echo $ac_n "(cached) $ac_c" 1>&6
4983 if test -n "$GCJ"; then
4984 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
4986 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4988 for ac_dir in $ac_dummy; do
4989 test -z "$ac_dir" && ac_dir=.
4990 if test -f $ac_dir/$ac_word; then
4991 ac_cv_prog_GCJ="gcj"
4996 test -z "$ac_cv_prog_GCJ" && ac_cv_prog_GCJ="no"
4999 GCJ="$ac_cv_prog_GCJ"
5000 if test -n "$GCJ"; then
5001 echo "$ac_t""$GCJ" 1>&6
5003 echo "$ac_t""no" 1>&6
5011 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
5015 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
5017 lt_save_CFLAGS="$CFLAGS"
5018 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
5019 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5020 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5021 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5022 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5023 deplibs_check_method="$deplibs_check_method" \
5024 file_magic_cmd="$file_magic_cmd" \
5025 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5026 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
5027 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
5029 CFLAGS="$lt_save_CFLAGS"
5031 # Redirect the config.log output again, so that the ltconfig log is not
5032 # clobbered by the next message.
5033 exec 5>>./config.log
5038 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
5040 echo $ac_n "checking size of void *""... $ac_c" 1>&6
5041 echo "configure:5042: checking size of void *" >&5
5042 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
5043 echo $ac_n "(cached) $ac_c" 1>&6
5045 if test "$cross_compiling" = yes; then
5046 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5048 cat > conftest.$ac_ext <<EOF
5049 #line 5050 "configure"
5050 #include "confdefs.h"
5054 FILE *f=fopen("conftestval", "w");
5056 fprintf(f, "%d\n", sizeof(void *));
5060 if { (eval echo configure:5061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5062 ac_cv_sizeof_void_p=`cat conftestval`
5064 echo "configure: failed program was:" >&5
5065 cat conftest.$ac_ext >&5
5067 ac_cv_sizeof_void_p=0
5073 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
5074 cat >> confdefs.h <<EOF
5075 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5083 if test "x$ZLIBSPEC" = "x-lzgcj"; then
5084 # We include the path to the zlib build directory.
5085 # See Makefile.am to understand why.
5086 ZDEPS='$(top_builddir)/../zlib/libzgcj.la'
5087 ZLIBS="$ZDEPS -L\$(here)/../zlib/$libsubdir"
5088 ZINCS='-I$(top_srcdir)/../zlib'
5100 if test "$CANADIAN" = yes; then
5109 if test "$NULL_TARGET" = yes; then
5111 NULL_TARGET_FALSE='#'
5113 NULL_TARGET_TRUE='#'
5118 if test "$NATIVE" = yes || test "$NULL_TARGET" = yes; then
5127 if test -z "$with_cross_host"; then
5129 USE_LIBDIR_FALSE='#'
5136 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
5137 NEEDS_DATA_START_TRUE=
5138 NEEDS_DATA_START_FALSE='#'
5140 NEEDS_DATA_START_TRUE='#'
5141 NEEDS_DATA_START_FALSE=
5145 # Determine gcj version number.
5147 gcjvers="`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`"
5149 cat >> confdefs.h <<EOF
5150 #define GCJVERSION "$gcjvers"
5157 echo $ac_n "checking for g++ -ffloat-store bug""... $ac_c" 1>&6
5158 echo "configure:5159: checking for g++ -ffloat-store bug" >&5
5159 save_CFLAGS="$CFLAGS"
5160 CFLAGS="-x c++ -O2 -ffloat-store"
5161 cat > conftest.$ac_ext <<EOF
5162 #line 5163 "configure"
5163 #include "confdefs.h"
5169 if { (eval echo configure:5170: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5171 echo "$ac_t""no" 1>&6
5173 echo "configure: failed program was:" >&5
5174 cat conftest.$ac_ext >&5
5176 cat >> confdefs.h <<\EOF
5177 #define __NO_MATH_INLINES 1
5180 echo "$ac_t""yes" 1>&6
5183 CFLAGS="$save_CFLAGS"
5185 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
5187 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5188 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5189 echo "configure:5190: checking for $ac_hdr" >&5
5190 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5191 echo $ac_n "(cached) $ac_c" 1>&6
5193 cat > conftest.$ac_ext <<EOF
5194 #line 5195 "configure"
5195 #include "confdefs.h"
5198 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5199 { (eval echo configure:5200: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5200 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5201 if test -z "$ac_err"; then
5203 eval "ac_cv_header_$ac_safe=yes"
5206 echo "configure: failed program was:" >&5
5207 cat conftest.$ac_ext >&5
5209 eval "ac_cv_header_$ac_safe=no"
5213 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5214 echo "$ac_t""yes" 1>&6
5215 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5216 cat >> confdefs.h <<EOF
5217 #define $ac_tr_hdr 1
5221 echo "$ac_t""no" 1>&6
5225 for ac_hdr in dirent.h
5227 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5228 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5229 echo "configure:5230: checking for $ac_hdr" >&5
5230 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5231 echo $ac_n "(cached) $ac_c" 1>&6
5233 cat > conftest.$ac_ext <<EOF
5234 #line 5235 "configure"
5235 #include "confdefs.h"
5238 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5239 { (eval echo configure:5240: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5240 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5241 if test -z "$ac_err"; then
5243 eval "ac_cv_header_$ac_safe=yes"
5246 echo "configure: failed program was:" >&5
5247 cat conftest.$ac_ext >&5
5249 eval "ac_cv_header_$ac_safe=no"
5253 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5254 echo "$ac_t""yes" 1>&6
5255 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5256 cat >> confdefs.h <<EOF
5257 #define $ac_tr_hdr 1
5261 echo "$ac_t""no" 1>&6
5266 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5267 echo "configure:5268: checking for ANSI C header files" >&5
5268 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5269 echo $ac_n "(cached) $ac_c" 1>&6
5271 cat > conftest.$ac_ext <<EOF
5272 #line 5273 "configure"
5273 #include "confdefs.h"
5279 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5280 { (eval echo configure:5281: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5281 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5282 if test -z "$ac_err"; then
5284 ac_cv_header_stdc=yes
5287 echo "configure: failed program was:" >&5
5288 cat conftest.$ac_ext >&5
5290 ac_cv_header_stdc=no
5294 if test $ac_cv_header_stdc = yes; then
5295 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5296 cat > conftest.$ac_ext <<EOF
5297 #line 5298 "configure"
5298 #include "confdefs.h"
5301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5302 egrep "memchr" >/dev/null 2>&1; then
5306 ac_cv_header_stdc=no
5312 if test $ac_cv_header_stdc = yes; then
5313 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5314 cat > conftest.$ac_ext <<EOF
5315 #line 5316 "configure"
5316 #include "confdefs.h"
5319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5320 egrep "free" >/dev/null 2>&1; then
5324 ac_cv_header_stdc=no
5330 if test $ac_cv_header_stdc = yes; then
5331 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5332 if test "$cross_compiling" = yes; then
5335 cat > conftest.$ac_ext <<EOF
5336 #line 5337 "configure"
5337 #include "confdefs.h"
5339 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5340 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5341 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5342 int main () { int i; for (i = 0; i < 256; i++)
5343 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5347 if { (eval echo configure:5348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5351 echo "configure: failed program was:" >&5
5352 cat conftest.$ac_ext >&5
5354 ac_cv_header_stdc=no
5362 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5363 if test $ac_cv_header_stdc = yes; then
5364 cat >> confdefs.h <<\EOF
5365 #define STDC_HEADERS 1
5370 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
5371 echo "configure:5372: checking for ssize_t" >&5
5372 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
5373 echo $ac_n "(cached) $ac_c" 1>&6
5375 cat > conftest.$ac_ext <<EOF
5376 #line 5377 "configure"
5377 #include "confdefs.h"
5378 #include <sys/types.h>
5384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5385 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5387 ac_cv_type_ssize_t=yes
5390 ac_cv_type_ssize_t=no
5395 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
5396 if test $ac_cv_type_ssize_t = no; then
5397 cat >> confdefs.h <<\EOF
5404 echo $ac_n "checking for in_addr_t""... $ac_c" 1>&6
5405 echo "configure:5406: checking for in_addr_t" >&5
5406 cat > conftest.$ac_ext <<EOF
5407 #line 5408 "configure"
5408 #include "confdefs.h"
5409 #include <sys/types.h>
5414 #if HAVE_NETINET_IN_H
5415 #include <netinet/in.h>
5421 if { (eval echo configure:5422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5423 cat >> confdefs.h <<\EOF
5424 #define HAVE_IN_ADDR_T 1
5427 echo "$ac_t""yes" 1>&6
5429 echo "configure: failed program was:" >&5
5430 cat conftest.$ac_ext >&5
5432 echo "$ac_t""no" 1>&6
5436 echo $ac_n "checking whether struct ip_mreq is in netinet/in.h""... $ac_c" 1>&6
5437 echo "configure:5438: checking whether struct ip_mreq is in netinet/in.h" >&5
5438 cat > conftest.$ac_ext <<EOF
5439 #line 5440 "configure"
5440 #include "confdefs.h"
5441 #include <netinet/in.h>
5443 struct ip_mreq mreq;
5446 if { (eval echo configure:5447: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5448 cat >> confdefs.h <<\EOF
5449 #define HAVE_STRUCT_IP_MREQ 1
5452 echo "$ac_t""yes" 1>&6
5454 echo "configure: failed program was:" >&5
5455 cat conftest.$ac_ext >&5
5457 echo "$ac_t""no" 1>&6
5461 echo $ac_n "checking whether struct sockaddr_in6 is in netinet/in.h""... $ac_c" 1>&6
5462 echo "configure:5463: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
5463 cat > conftest.$ac_ext <<EOF
5464 #line 5465 "configure"
5465 #include "confdefs.h"
5466 #include <netinet/in.h>
5468 struct sockaddr_in6 addr6;
5471 if { (eval echo configure:5472: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5473 cat >> confdefs.h <<\EOF
5474 #define HAVE_INET6 1
5477 echo "$ac_t""yes" 1>&6
5479 echo "configure: failed program was:" >&5
5480 cat conftest.$ac_ext >&5
5482 echo "$ac_t""no" 1>&6
5486 echo $ac_n "checking for socklen_t in sys/socket.h""... $ac_c" 1>&6
5487 echo "configure:5488: checking for socklen_t in sys/socket.h" >&5
5488 cat > conftest.$ac_ext <<EOF
5489 #line 5490 "configure"
5490 #include "confdefs.h"
5491 #include <sys/types.h>
5492 #include <sys/socket.h>
5497 if { (eval echo configure:5498: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5499 cat >> confdefs.h <<\EOF
5500 #define HAVE_SOCKLEN_T 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 tm_gmtoff in struct tm""... $ac_c" 1>&6
5513 echo "configure:5514: checking for tm_gmtoff in struct tm" >&5
5514 cat > conftest.$ac_ext <<EOF
5515 #line 5516 "configure"
5516 #include "confdefs.h"
5519 struct tm tim; tim.tm_gmtoff = 0;
5522 if { (eval echo configure:5523: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5524 cat >> confdefs.h <<\EOF
5525 #define STRUCT_TM_HAS_GMTOFF 1
5528 echo "$ac_t""yes" 1>&6
5530 echo "configure: failed program was:" >&5
5531 cat conftest.$ac_ext >&5
5533 echo "$ac_t""no" 1>&6
5534 echo $ac_n "checking for global timezone variable""... $ac_c" 1>&6
5535 echo "configure:5536: checking for global timezone variable" >&5
5536 cat > conftest.$ac_ext <<EOF
5537 #line 5538 "configure"
5538 #include "confdefs.h"
5544 if { (eval echo configure:5545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5546 cat >> confdefs.h <<\EOF
5547 #define HAVE_TIMEZONE 1
5550 echo "$ac_t""yes" 1>&6
5552 echo "configure: failed program was:" >&5
5553 cat conftest.$ac_ext >&5
5555 echo "$ac_t""no" 1>&6
5561 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5562 # for constant arguments. Useless!
5563 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5564 echo "configure:5565: checking for working alloca.h" >&5
5565 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5566 echo $ac_n "(cached) $ac_c" 1>&6
5568 cat > conftest.$ac_ext <<EOF
5569 #line 5570 "configure"
5570 #include "confdefs.h"
5573 char *p = alloca(2 * sizeof(int));
5576 if { (eval echo configure:5577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5578 ac_cv_header_alloca_h=yes
5580 echo "configure: failed program was:" >&5
5581 cat conftest.$ac_ext >&5
5583 ac_cv_header_alloca_h=no
5588 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5589 if test $ac_cv_header_alloca_h = yes; then
5590 cat >> confdefs.h <<\EOF
5591 #define HAVE_ALLOCA_H 1
5596 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5597 echo "configure:5598: checking for alloca" >&5
5598 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5599 echo $ac_n "(cached) $ac_c" 1>&6
5601 cat > conftest.$ac_ext <<EOF
5602 #line 5603 "configure"
5603 #include "confdefs.h"
5606 # define alloca __builtin_alloca
5609 # include <malloc.h>
5610 # define alloca _alloca
5613 # include <alloca.h>
5618 # ifndef alloca /* predefined by HP cc +Olibcalls */
5627 char *p = (char *) alloca(1);
5630 if { (eval echo configure:5631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5632 ac_cv_func_alloca_works=yes
5634 echo "configure: failed program was:" >&5
5635 cat conftest.$ac_ext >&5
5637 ac_cv_func_alloca_works=no
5642 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5643 if test $ac_cv_func_alloca_works = yes; then
5644 cat >> confdefs.h <<\EOF
5645 #define HAVE_ALLOCA 1
5650 if test $ac_cv_func_alloca_works = no; then
5651 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5652 # that cause trouble. Some versions do not even contain alloca or
5653 # contain a buggy version. If you still want to use their alloca,
5654 # use ar to extract alloca.o from them instead of compiling alloca.c.
5655 ALLOCA=alloca.${ac_objext}
5656 cat >> confdefs.h <<\EOF
5661 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5662 echo "configure:5663: checking whether alloca needs Cray hooks" >&5
5663 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5664 echo $ac_n "(cached) $ac_c" 1>&6
5666 cat > conftest.$ac_ext <<EOF
5667 #line 5668 "configure"
5668 #include "confdefs.h"
5669 #if defined(CRAY) && ! defined(CRAY2)
5676 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5677 egrep "webecray" >/dev/null 2>&1; then
5688 echo "$ac_t""$ac_cv_os_cray" 1>&6
5689 if test $ac_cv_os_cray = yes; then
5690 for ac_func in _getb67 GETB67 getb67; do
5691 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5692 echo "configure:5693: checking for $ac_func" >&5
5693 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5694 echo $ac_n "(cached) $ac_c" 1>&6
5696 cat > conftest.$ac_ext <<EOF
5697 #line 5698 "configure"
5698 #include "confdefs.h"
5699 /* System header to define __stub macros and hopefully few prototypes,
5700 which can conflict with char $ac_func(); below. */
5702 /* Override any gcc2 internal prototype to avoid an error. */
5703 /* We use char because int might match the return type of a gcc2
5704 builtin and then its argument prototype would still apply. */
5709 /* The GNU C library defines this for functions which it implements
5710 to always fail with ENOSYS. Some functions are actually named
5711 something starting with __ and the normal name is an alias. */
5712 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5720 if { (eval echo configure:5721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5722 eval "ac_cv_func_$ac_func=yes"
5724 echo "configure: failed program was:" >&5
5725 cat conftest.$ac_ext >&5
5727 eval "ac_cv_func_$ac_func=no"
5732 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5733 echo "$ac_t""yes" 1>&6
5734 cat >> confdefs.h <<EOF
5735 #define CRAY_STACKSEG_END $ac_func
5740 echo "$ac_t""no" 1>&6
5746 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5747 echo "configure:5748: checking stack direction for C alloca" >&5
5748 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5749 echo $ac_n "(cached) $ac_c" 1>&6
5751 if test "$cross_compiling" = yes; then
5752 ac_cv_c_stack_direction=0
5754 cat > conftest.$ac_ext <<EOF
5755 #line 5756 "configure"
5756 #include "confdefs.h"
5757 find_stack_direction ()
5759 static char *addr = 0;
5764 return find_stack_direction ();
5767 return (&dummy > addr) ? 1 : -1;
5771 exit (find_stack_direction() < 0);
5774 if { (eval echo configure:5775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5776 ac_cv_c_stack_direction=1
5778 echo "configure: failed program was:" >&5
5779 cat conftest.$ac_ext >&5
5781 ac_cv_c_stack_direction=-1
5788 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5789 cat >> confdefs.h <<EOF
5790 #define STACK_DIRECTION $ac_cv_c_stack_direction
5798 # Extract the first word of "$ac_prog", so it can be a program name with args.
5799 set dummy $ac_prog; ac_word=$2
5800 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5801 echo "configure:5802: checking for $ac_word" >&5
5802 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
5803 echo $ac_n "(cached) $ac_c" 1>&6
5805 if test -n "$PERL"; then
5806 ac_cv_prog_PERL="$PERL" # Let the user override the test.
5808 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5810 for ac_dir in $ac_dummy; do
5811 test -z "$ac_dir" && ac_dir=.
5812 if test -f $ac_dir/$ac_word; then
5813 ac_cv_prog_PERL="$ac_prog"
5820 PERL="$ac_cv_prog_PERL"
5821 if test -n "$PERL"; then
5822 echo "$ac_t""$PERL" 1>&6
5824 echo "$ac_t""no" 1>&6
5827 test -n "$PERL" && break
5829 test -n "$PERL" || PERL="false"
5836 SIGNAL_HANDLER=include/i386-signal.h
5839 SIGNAL_HANDLER=include/sparc-signal.h
5842 # SYSDEP_SOURCES=sysdep/ia64.c
5843 # test -d sysdep || mkdir sysdep
5846 SIGNAL_HANDLER=include/dwarf2-signal.h
5849 SIGNAL_HANDLER=include/default-signal.h
5853 # If we're using sjlj exceptions, forget what we just learned.
5854 if test "$libgcj_sjlj" = yes; then
5855 SIGNAL_HANDLER=include/default-signal.h
5862 if test "${multilib}" = "yes"; then
5863 multilib_arg="--enable-multilib"
5868 # If we find X, set shell vars x_includes and x_libraries to the
5869 # paths, otherwise set no_x=yes.
5870 # Uses ac_ vars as temps to allow command line to override cache and checks.
5871 # --without-x overrides everything else, but does not touch the cache.
5872 echo $ac_n "checking for X""... $ac_c" 1>&6
5873 echo "configure:5874: checking for X" >&5
5875 # Check whether --with-x or --without-x was given.
5876 if test "${with_x+set}" = set; then
5881 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5882 if test "x$with_x" = xno; then
5883 # The user explicitly disabled X.
5886 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5887 # Both variables are already set.
5890 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
5891 echo $ac_n "(cached) $ac_c" 1>&6
5893 # One or both of the vars are not set, and there is no cached value.
5894 ac_x_includes=NO ac_x_libraries=NO
5896 if mkdir conftestdir; then
5898 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5899 cat > Imakefile <<'EOF'
5901 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5903 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5904 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5905 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5906 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5907 for ac_extension in a so sl; do
5908 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5909 test -f $ac_im_libdir/libX11.$ac_extension; then
5910 ac_im_usrlibdir=$ac_im_libdir; break
5913 # Screen out bogus values from the imake configuration. They are
5914 # bogus both because they are the default anyway, and because
5915 # using them would break gcc on systems where it needs fixed includes.
5916 case "$ac_im_incroot" in
5918 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
5920 case "$ac_im_usrlibdir" in
5922 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
5929 if test "$ac_x_includes" = NO; then
5930 # Guess where to find include files, by looking for this one X11 .h file.
5931 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
5933 # First, try using that file with no special directory specified.
5934 cat > conftest.$ac_ext <<EOF
5935 #line 5936 "configure"
5936 #include "confdefs.h"
5937 #include <$x_direct_test_include>
5939 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5940 { (eval echo configure:5941: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5941 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5942 if test -z "$ac_err"; then
5944 # We can compile using X headers with no special include directory.
5948 echo "configure: failed program was:" >&5
5949 cat conftest.$ac_ext >&5
5951 # Look for the header file in a standard set of common directories.
5952 # Check X11 before X11Rn because it is often a symlink to the current release.
5955 /usr/X11R6/include \
5956 /usr/X11R5/include \
5957 /usr/X11R4/include \
5960 /usr/include/X11R6 \
5961 /usr/include/X11R5 \
5962 /usr/include/X11R4 \
5964 /usr/local/X11/include \
5965 /usr/local/X11R6/include \
5966 /usr/local/X11R5/include \
5967 /usr/local/X11R4/include \
5969 /usr/local/include/X11 \
5970 /usr/local/include/X11R6 \
5971 /usr/local/include/X11R5 \
5972 /usr/local/include/X11R4 \
5976 /usr/XFree86/include/X11 \
5979 /usr/local/include \
5980 /usr/unsupported/include \
5981 /usr/athena/include \
5982 /usr/local/x11r5/include \
5983 /usr/lpp/Xamples/include \
5985 /usr/openwin/include \
5986 /usr/openwin/share/include \
5989 if test -r "$ac_dir/$x_direct_test_include"; then
5990 ac_x_includes=$ac_dir
5996 fi # $ac_x_includes = NO
5998 if test "$ac_x_libraries" = NO; then
5999 # Check for the libraries.
6001 test -z "$x_direct_test_library" && x_direct_test_library=Xt
6002 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
6004 # See if we find them without any special options.
6005 # Don't add to $LIBS permanently.
6006 ac_save_LIBS="$LIBS"
6007 LIBS="-l$x_direct_test_library $LIBS"
6008 cat > conftest.$ac_ext <<EOF
6009 #line 6010 "configure"
6010 #include "confdefs.h"
6013 ${x_direct_test_function}()
6016 if { (eval echo configure:6017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6018 LIBS="$ac_save_LIBS"
6019 # We can link X programs with no special library path.
6022 echo "configure: failed program was:" >&5
6023 cat conftest.$ac_ext >&5
6025 LIBS="$ac_save_LIBS"
6026 # First see if replacing the include by lib works.
6027 # Check X11 before X11Rn because it is often a symlink to the current release.
6028 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
6039 /usr/local/X11/lib \
6040 /usr/local/X11R6/lib \
6041 /usr/local/X11R5/lib \
6042 /usr/local/X11R4/lib \
6044 /usr/local/lib/X11 \
6045 /usr/local/lib/X11R6 \
6046 /usr/local/lib/X11R5 \
6047 /usr/local/lib/X11R4 \
6051 /usr/XFree86/lib/X11 \
6055 /usr/unsupported/lib \
6057 /usr/local/x11r5/lib \
6058 /usr/lpp/Xamples/lib \
6062 /usr/openwin/share/lib \
6065 for ac_extension in a so sl; do
6066 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
6067 ac_x_libraries=$ac_dir
6074 fi # $ac_x_libraries = NO
6076 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
6077 # Didn't find X anywhere. Cache the known absence of X.
6078 ac_cv_have_x="have_x=no"
6080 # Record where we found X for the cache.
6081 ac_cv_have_x="have_x=yes \
6082 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6086 eval "$ac_cv_have_x"
6089 if test "$have_x" != yes; then
6090 echo "$ac_t""$have_x" 1>&6
6093 # If each of the values was on the command line, it overrides each guess.
6094 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6095 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6096 # Update the cache value to reflect the command line values.
6097 ac_cv_have_x="have_x=yes \
6098 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6099 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
6102 if test "$no_x" = yes; then
6103 # Not all programs may use this symbol, but it does not hurt to define it.
6104 cat >> confdefs.h <<\EOF
6105 #define X_DISPLAY_MISSING 1
6108 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6110 if test -n "$x_includes"; then
6111 X_CFLAGS="$X_CFLAGS -I$x_includes"
6114 # It would also be nice to do this for all -L options, not just this one.
6115 if test -n "$x_libraries"; then
6116 X_LIBS="$X_LIBS -L$x_libraries"
6117 # For Solaris; some versions of Sun CC require a space after -R and
6118 # others require no space. Words are not sufficient . . . .
6119 case "`(uname -sr) 2>/dev/null`" in
6121 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
6122 echo "configure:6123: checking whether -R must be followed by a space" >&5
6123 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
6124 cat > conftest.$ac_ext <<EOF
6125 #line 6126 "configure"
6126 #include "confdefs.h"
6132 if { (eval echo configure:6133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6136 echo "configure: failed program was:" >&5
6137 cat conftest.$ac_ext >&5
6142 if test $ac_R_nospace = yes; then
6143 echo "$ac_t""no" 1>&6
6144 X_LIBS="$X_LIBS -R$x_libraries"
6146 LIBS="$ac_xsave_LIBS -R $x_libraries"
6147 cat > conftest.$ac_ext <<EOF
6148 #line 6149 "configure"
6149 #include "confdefs.h"
6155 if { (eval echo configure:6156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6159 echo "configure: failed program was:" >&5
6160 cat conftest.$ac_ext >&5
6165 if test $ac_R_space = yes; then
6166 echo "$ac_t""yes" 1>&6
6167 X_LIBS="$X_LIBS -R $x_libraries"
6169 echo "$ac_t""neither works" 1>&6
6172 LIBS="$ac_xsave_LIBS"
6176 # Check for system-dependent libraries X programs must link with.
6177 # Do this before checking for the system-independent R6 libraries
6178 # (-lICE), since we may need -lsocket or whatever for X linking.
6180 if test "$ISC" = yes; then
6181 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6183 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
6184 # libraries were built with DECnet support. And karl@cs.umb.edu says
6185 # the Alpha needs dnet_stub (dnet does not exist).
6186 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
6187 echo "configure:6188: checking for dnet_ntoa in -ldnet" >&5
6188 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6189 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6190 echo $ac_n "(cached) $ac_c" 1>&6
6192 ac_save_LIBS="$LIBS"
6194 cat > conftest.$ac_ext <<EOF
6195 #line 6196 "configure"
6196 #include "confdefs.h"
6197 /* Override any gcc2 internal prototype to avoid an error. */
6198 /* We use char because int might match the return type of a gcc2
6199 builtin and then its argument prototype would still apply. */
6206 if { (eval echo configure:6207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6208 eval "ac_cv_lib_$ac_lib_var=yes"
6210 echo "configure: failed program was:" >&5
6211 cat conftest.$ac_ext >&5
6213 eval "ac_cv_lib_$ac_lib_var=no"
6216 LIBS="$ac_save_LIBS"
6219 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6220 echo "$ac_t""yes" 1>&6
6221 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6223 echo "$ac_t""no" 1>&6
6226 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6227 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
6228 echo "configure:6229: checking for dnet_ntoa in -ldnet_stub" >&5
6229 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6230 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6231 echo $ac_n "(cached) $ac_c" 1>&6
6233 ac_save_LIBS="$LIBS"
6234 LIBS="-ldnet_stub $LIBS"
6235 cat > conftest.$ac_ext <<EOF
6236 #line 6237 "configure"
6237 #include "confdefs.h"
6238 /* Override any gcc2 internal prototype to avoid an error. */
6239 /* We use char because int might match the return type of a gcc2
6240 builtin and then its argument prototype would still apply. */
6247 if { (eval echo configure:6248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6249 eval "ac_cv_lib_$ac_lib_var=yes"
6251 echo "configure: failed program was:" >&5
6252 cat conftest.$ac_ext >&5
6254 eval "ac_cv_lib_$ac_lib_var=no"
6257 LIBS="$ac_save_LIBS"
6260 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6261 echo "$ac_t""yes" 1>&6
6262 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6264 echo "$ac_t""no" 1>&6
6269 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6270 # to get the SysV transport functions.
6271 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
6273 # The nsl library prevents programs from opening the X display
6274 # on Irix 5.2, according to dickey@clark.net.
6275 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
6276 echo "configure:6277: checking for gethostbyname" >&5
6277 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
6278 echo $ac_n "(cached) $ac_c" 1>&6
6280 cat > conftest.$ac_ext <<EOF
6281 #line 6282 "configure"
6282 #include "confdefs.h"
6283 /* System header to define __stub macros and hopefully few prototypes,
6284 which can conflict with char gethostbyname(); below. */
6286 /* Override any gcc2 internal prototype to avoid an error. */
6287 /* We use char because int might match the return type of a gcc2
6288 builtin and then its argument prototype would still apply. */
6289 char gethostbyname();
6293 /* The GNU C library defines this for functions which it implements
6294 to always fail with ENOSYS. Some functions are actually named
6295 something starting with __ and the normal name is an alias. */
6296 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6304 if { (eval echo configure:6305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6306 eval "ac_cv_func_gethostbyname=yes"
6308 echo "configure: failed program was:" >&5
6309 cat conftest.$ac_ext >&5
6311 eval "ac_cv_func_gethostbyname=no"
6316 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
6317 echo "$ac_t""yes" 1>&6
6320 echo "$ac_t""no" 1>&6
6323 if test $ac_cv_func_gethostbyname = no; then
6324 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
6325 echo "configure:6326: checking for gethostbyname in -lnsl" >&5
6326 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
6327 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6328 echo $ac_n "(cached) $ac_c" 1>&6
6330 ac_save_LIBS="$LIBS"
6332 cat > conftest.$ac_ext <<EOF
6333 #line 6334 "configure"
6334 #include "confdefs.h"
6335 /* Override any gcc2 internal prototype to avoid an error. */
6336 /* We use char because int might match the return type of a gcc2
6337 builtin and then its argument prototype would still apply. */
6338 char gethostbyname();
6344 if { (eval echo configure:6345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6346 eval "ac_cv_lib_$ac_lib_var=yes"
6348 echo "configure: failed program was:" >&5
6349 cat conftest.$ac_ext >&5
6351 eval "ac_cv_lib_$ac_lib_var=no"
6354 LIBS="$ac_save_LIBS"
6357 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6358 echo "$ac_t""yes" 1>&6
6359 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6361 echo "$ac_t""no" 1>&6
6366 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6367 # socket/setsockopt and other routines are undefined under SCO ODT
6368 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6369 # on later versions), says simon@lia.di.epfl.ch: it contains
6370 # gethostby* variants that don't use the nameserver (or something).
6371 # -lsocket must be given before -lnsl if both are needed.
6372 # We assume that if connect needs -lnsl, so does gethostbyname.
6373 echo $ac_n "checking for connect""... $ac_c" 1>&6
6374 echo "configure:6375: checking for connect" >&5
6375 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
6376 echo $ac_n "(cached) $ac_c" 1>&6
6378 cat > conftest.$ac_ext <<EOF
6379 #line 6380 "configure"
6380 #include "confdefs.h"
6381 /* System header to define __stub macros and hopefully few prototypes,
6382 which can conflict with char connect(); below. */
6384 /* Override any gcc2 internal prototype to avoid an error. */
6385 /* We use char because int might match the return type of a gcc2
6386 builtin and then its argument prototype would still apply. */
6391 /* The GNU C library defines this for functions which it implements
6392 to always fail with ENOSYS. Some functions are actually named
6393 something starting with __ and the normal name is an alias. */
6394 #if defined (__stub_connect) || defined (__stub___connect)
6402 if { (eval echo configure:6403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6404 eval "ac_cv_func_connect=yes"
6406 echo "configure: failed program was:" >&5
6407 cat conftest.$ac_ext >&5
6409 eval "ac_cv_func_connect=no"
6414 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
6415 echo "$ac_t""yes" 1>&6
6418 echo "$ac_t""no" 1>&6
6421 if test $ac_cv_func_connect = no; then
6422 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
6423 echo "configure:6424: checking for connect in -lsocket" >&5
6424 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
6425 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6426 echo $ac_n "(cached) $ac_c" 1>&6
6428 ac_save_LIBS="$LIBS"
6429 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6430 cat > conftest.$ac_ext <<EOF
6431 #line 6432 "configure"
6432 #include "confdefs.h"
6433 /* Override any gcc2 internal prototype to avoid an error. */
6434 /* We use char because int might match the return type of a gcc2
6435 builtin and then its argument prototype would still apply. */
6442 if { (eval echo configure:6443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6444 eval "ac_cv_lib_$ac_lib_var=yes"
6446 echo "configure: failed program was:" >&5
6447 cat conftest.$ac_ext >&5
6449 eval "ac_cv_lib_$ac_lib_var=no"
6452 LIBS="$ac_save_LIBS"
6455 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6456 echo "$ac_t""yes" 1>&6
6457 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6459 echo "$ac_t""no" 1>&6
6464 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
6465 echo $ac_n "checking for remove""... $ac_c" 1>&6
6466 echo "configure:6467: checking for remove" >&5
6467 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
6468 echo $ac_n "(cached) $ac_c" 1>&6
6470 cat > conftest.$ac_ext <<EOF
6471 #line 6472 "configure"
6472 #include "confdefs.h"
6473 /* System header to define __stub macros and hopefully few prototypes,
6474 which can conflict with char remove(); below. */
6476 /* Override any gcc2 internal prototype to avoid an error. */
6477 /* We use char because int might match the return type of a gcc2
6478 builtin and then its argument prototype would still apply. */
6483 /* The GNU C library defines this for functions which it implements
6484 to always fail with ENOSYS. Some functions are actually named
6485 something starting with __ and the normal name is an alias. */
6486 #if defined (__stub_remove) || defined (__stub___remove)
6494 if { (eval echo configure:6495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6496 eval "ac_cv_func_remove=yes"
6498 echo "configure: failed program was:" >&5
6499 cat conftest.$ac_ext >&5
6501 eval "ac_cv_func_remove=no"
6506 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
6507 echo "$ac_t""yes" 1>&6
6510 echo "$ac_t""no" 1>&6
6513 if test $ac_cv_func_remove = no; then
6514 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
6515 echo "configure:6516: checking for remove in -lposix" >&5
6516 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
6517 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6518 echo $ac_n "(cached) $ac_c" 1>&6
6520 ac_save_LIBS="$LIBS"
6521 LIBS="-lposix $LIBS"
6522 cat > conftest.$ac_ext <<EOF
6523 #line 6524 "configure"
6524 #include "confdefs.h"
6525 /* Override any gcc2 internal prototype to avoid an error. */
6526 /* We use char because int might match the return type of a gcc2
6527 builtin and then its argument prototype would still apply. */
6534 if { (eval echo configure:6535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6536 eval "ac_cv_lib_$ac_lib_var=yes"
6538 echo "configure: failed program was:" >&5
6539 cat conftest.$ac_ext >&5
6541 eval "ac_cv_lib_$ac_lib_var=no"
6544 LIBS="$ac_save_LIBS"
6547 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6548 echo "$ac_t""yes" 1>&6
6549 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6551 echo "$ac_t""no" 1>&6
6556 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6557 echo $ac_n "checking for shmat""... $ac_c" 1>&6
6558 echo "configure:6559: checking for shmat" >&5
6559 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
6560 echo $ac_n "(cached) $ac_c" 1>&6
6562 cat > conftest.$ac_ext <<EOF
6563 #line 6564 "configure"
6564 #include "confdefs.h"
6565 /* System header to define __stub macros and hopefully few prototypes,
6566 which can conflict with char shmat(); below. */
6568 /* Override any gcc2 internal prototype to avoid an error. */
6569 /* We use char because int might match the return type of a gcc2
6570 builtin and then its argument prototype would still apply. */
6575 /* The GNU C library defines this for functions which it implements
6576 to always fail with ENOSYS. Some functions are actually named
6577 something starting with __ and the normal name is an alias. */
6578 #if defined (__stub_shmat) || defined (__stub___shmat)
6586 if { (eval echo configure:6587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6588 eval "ac_cv_func_shmat=yes"
6590 echo "configure: failed program was:" >&5
6591 cat conftest.$ac_ext >&5
6593 eval "ac_cv_func_shmat=no"
6598 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
6599 echo "$ac_t""yes" 1>&6
6602 echo "$ac_t""no" 1>&6
6605 if test $ac_cv_func_shmat = no; then
6606 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
6607 echo "configure:6608: checking for shmat in -lipc" >&5
6608 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
6609 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6610 echo $ac_n "(cached) $ac_c" 1>&6
6612 ac_save_LIBS="$LIBS"
6614 cat > conftest.$ac_ext <<EOF
6615 #line 6616 "configure"
6616 #include "confdefs.h"
6617 /* Override any gcc2 internal prototype to avoid an error. */
6618 /* We use char because int might match the return type of a gcc2
6619 builtin and then its argument prototype would still apply. */
6626 if { (eval echo configure:6627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6628 eval "ac_cv_lib_$ac_lib_var=yes"
6630 echo "configure: failed program was:" >&5
6631 cat conftest.$ac_ext >&5
6633 eval "ac_cv_lib_$ac_lib_var=no"
6636 LIBS="$ac_save_LIBS"
6639 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6640 echo "$ac_t""yes" 1>&6
6641 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6643 echo "$ac_t""no" 1>&6
6649 # Check for libraries that X11R6 Xt/Xaw programs need.
6650 ac_save_LDFLAGS="$LDFLAGS"
6651 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6652 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6653 # check for ICE first), but we must link in the order -lSM -lICE or
6654 # we get undefined symbols. So assume we have SM if we have ICE.
6655 # These have to be linked with before -lX11, unlike the other
6656 # libraries we check for below, so use a different variable.
6657 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
6658 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
6659 echo "configure:6660: checking for IceConnectionNumber in -lICE" >&5
6660 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
6661 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6662 echo $ac_n "(cached) $ac_c" 1>&6
6664 ac_save_LIBS="$LIBS"
6665 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6666 cat > conftest.$ac_ext <<EOF
6667 #line 6668 "configure"
6668 #include "confdefs.h"
6669 /* Override any gcc2 internal prototype to avoid an error. */
6670 /* We use char because int might match the return type of a gcc2
6671 builtin and then its argument prototype would still apply. */
6672 char IceConnectionNumber();
6675 IceConnectionNumber()
6678 if { (eval echo configure:6679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6680 eval "ac_cv_lib_$ac_lib_var=yes"
6682 echo "configure: failed program was:" >&5
6683 cat conftest.$ac_ext >&5
6685 eval "ac_cv_lib_$ac_lib_var=no"
6688 LIBS="$ac_save_LIBS"
6691 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6692 echo "$ac_t""yes" 1>&6
6693 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6695 echo "$ac_t""no" 1>&6
6698 LDFLAGS="$ac_save_LDFLAGS"
6703 # Check whether --enable-java-awt or --disable-java-awt was given.
6704 if test "${enable_java_awt+set}" = set; then
6705 enableval="$enable_java_awt"
6710 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
6714 for peer in $peerlibs ; do
6717 if test "$no_x" = yes; then
6718 echo "*** xlib peers requested but no X library available" 1>&2
6728 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
6735 if test "$use_xlib_awt" = yes; then
6744 if test "$use_gtk_awt" = yes; then
6756 # We get this from the environment.
6760 cat > confcache <<\EOF
6761 # This file is a shell script that caches the results of configure
6762 # tests run on this system so they can be shared between configure
6763 # scripts and configure runs. It is not useful on other systems.
6764 # If it contains results you don't want to keep, you may remove or edit it.
6766 # By default, configure uses ./config.cache as the cache file,
6767 # creating it if it does not exist already. You can give configure
6768 # the --cache-file=FILE option to use a different cache file; that is
6769 # what configure does when it calls configure scripts in
6770 # subdirectories, so they share the cache.
6771 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6772 # config.status only pays attention to the cache file if you give it the
6773 # --recheck option to rerun configure.
6776 # The following way of writing the cache mishandles newlines in values,
6777 # but we know of no workaround that is simple, portable, and efficient.
6778 # So, don't put newlines in cache variables' values.
6779 # Ultrix sh set writes to stderr and can't be redirected directly,
6780 # and sets the high bit in the cache file unless we assign to the vars.
6782 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6784 # `set' does not quote correctly, so add quotes (double-quote substitution
6785 # turns \\\\ into \\, and sed turns \\ into \).
6787 -e "s/'/'\\\\''/g" \
6788 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6791 # `set' quotes correctly as required by POSIX, so do not add quotes.
6792 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6795 if cmp -s $cache_file confcache; then
6798 if test -w $cache_file; then
6799 echo "updating cache $cache_file"
6800 cat confcache > $cache_file
6802 echo "not updating unwritable cache $cache_file"
6807 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6809 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6810 # Let make expand exec_prefix.
6811 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6813 # Any assignment to VPATH causes Sun make to only execute
6814 # the first set of double-colon rules, so remove it if not needed.
6815 # If there is a colon in the path, we need to keep it.
6816 if test "x$srcdir" = x.; then
6817 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6820 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6822 DEFS=-DHAVE_CONFIG_H
6824 # Without the "./", some shells look in PATH for config.status.
6825 : ${CONFIG_STATUS=./config.status}
6827 echo creating $CONFIG_STATUS
6828 rm -f $CONFIG_STATUS
6829 cat > $CONFIG_STATUS <<EOF
6831 # Generated automatically by configure.
6832 # Run this file to recreate the current configuration.
6833 # This directory was configured as follows,
6834 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6836 # $0 $ac_configure_args
6838 # Compiler output produced by configure, useful for debugging
6839 # configure, is in ./config.log if it exists.
6841 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6844 case "\$ac_option" in
6845 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6846 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6847 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6848 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6849 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6851 -help | --help | --hel | --he | --h)
6852 echo "\$ac_cs_usage"; exit 0 ;;
6853 *) echo "\$ac_cs_usage"; exit 1 ;;
6857 ac_given_srcdir=$srcdir
6858 ac_given_INSTALL="$INSTALL"
6860 trap 'rm -fr `echo "Makefile libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6862 cat >> $CONFIG_STATUS <<EOF
6864 # Protect against being on the right side of a sed subst in config.status.
6865 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6866 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6870 s%@CFLAGS@%$CFLAGS%g
6871 s%@CPPFLAGS@%$CPPFLAGS%g
6872 s%@CXXFLAGS@%$CXXFLAGS%g
6873 s%@FFLAGS@%$FFLAGS%g
6875 s%@LDFLAGS@%$LDFLAGS%g
6877 s%@exec_prefix@%$exec_prefix%g
6878 s%@prefix@%$prefix%g
6879 s%@program_transform_name@%$program_transform_name%g
6880 s%@bindir@%$bindir%g
6881 s%@sbindir@%$sbindir%g
6882 s%@libexecdir@%$libexecdir%g
6883 s%@datadir@%$datadir%g
6884 s%@sysconfdir@%$sysconfdir%g
6885 s%@sharedstatedir@%$sharedstatedir%g
6886 s%@localstatedir@%$localstatedir%g
6887 s%@libdir@%$libdir%g
6888 s%@includedir@%$includedir%g
6889 s%@oldincludedir@%$oldincludedir%g
6890 s%@infodir@%$infodir%g
6891 s%@mandir@%$mandir%g
6893 s%@host_alias@%$host_alias%g
6894 s%@host_cpu@%$host_cpu%g
6895 s%@host_vendor@%$host_vendor%g
6896 s%@host_os@%$host_os%g
6897 s%@target@%$target%g
6898 s%@target_alias@%$target_alias%g
6899 s%@target_cpu@%$target_cpu%g
6900 s%@target_vendor@%$target_vendor%g
6901 s%@target_os@%$target_os%g
6903 s%@build_alias@%$build_alias%g
6904 s%@build_cpu@%$build_cpu%g
6905 s%@build_vendor@%$build_vendor%g
6906 s%@build_os@%$build_os%g
6908 s%@libgcj_basedir@%$libgcj_basedir%g
6911 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6912 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6913 s%@INSTALL_DATA@%$INSTALL_DATA%g
6914 s%@PACKAGE@%$PACKAGE%g
6915 s%@VERSION@%$VERSION%g
6916 s%@ACLOCAL@%$ACLOCAL%g
6917 s%@AUTOCONF@%$AUTOCONF%g
6918 s%@AUTOMAKE@%$AUTOMAKE%g
6919 s%@AUTOHEADER@%$AUTOHEADER%g
6920 s%@MAKEINFO@%$MAKEINFO%g
6921 s%@SET_MAKE@%$SET_MAKE%g
6924 s%@RANLIB@%$RANLIB%g
6925 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
6926 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
6928 s%@EXEEXT@%$EXEEXT%g
6929 s%@LIBGCJ_CFLAGS@%$LIBGCJ_CFLAGS%g
6930 s%@LIBGCJ_CXXFLAGS@%$LIBGCJ_CXXFLAGS%g
6931 s%@LIBGCJ_JAVAFLAGS@%$LIBGCJ_JAVAFLAGS%g
6932 s%@INCLTDL@%$INCLTDL%g
6933 s%@LIBLTDL@%$LIBLTDL%g
6934 s%@DIRLTDL@%$DIRLTDL%g
6935 s%@OBJEXT@%$OBJEXT%g
6937 s%@LIBTOOL@%$LIBTOOL%g
6938 s%@CXXCPP@%$CXXCPP%g
6939 s%@subdirs@%$subdirs%g
6940 s%@COMPPATH@%$COMPPATH%g
6941 s%@TESTSUBDIR_TRUE@%$TESTSUBDIR_TRUE%g
6942 s%@TESTSUBDIR_FALSE@%$TESTSUBDIR_FALSE%g
6943 s%@LIBGCJDEBUG@%$LIBGCJDEBUG%g
6944 s%@LIBDATASTARTSPEC@%$LIBDATASTARTSPEC%g
6946 s%@SYSTEMSPEC@%$SYSTEMSPEC%g
6947 s%@LIBGCJTESTSPEC@%$LIBGCJTESTSPEC%g
6948 s%@ZLIBSPEC@%$ZLIBSPEC%g
6949 s%@ZLIBTESTSPEC@%$ZLIBTESTSPEC%g
6950 s%@GCLIBS@%$GCLIBS%g
6951 s%@GCINCS@%$GCINCS%g
6952 s%@GCDEPS@%$GCDEPS%g
6953 s%@GCOBJS@%$GCOBJS%g
6954 s%@GCSPEC@%$GCSPEC%g
6955 s%@JC1GCSPEC@%$JC1GCSPEC%g
6956 s%@GCTESTSPEC@%$GCTESTSPEC%g
6957 s%@THREADLIBS@%$THREADLIBS%g
6958 s%@THREADINCS@%$THREADINCS%g
6959 s%@THREADDEPS@%$THREADDEPS%g
6960 s%@THREADOBJS@%$THREADOBJS%g
6961 s%@THREADSPEC@%$THREADSPEC%g
6962 s%@USING_GCC_TRUE@%$USING_GCC_TRUE%g
6963 s%@USING_GCC_FALSE@%$USING_GCC_FALSE%g
6965 s%@GCJFLAGS@%$GCJFLAGS%g
6969 s%@DIVIDESPEC@%$DIVIDESPEC%g
6970 s%@EXCEPTIONSPEC@%$EXCEPTIONSPEC%g
6971 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
6972 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
6973 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
6974 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
6975 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
6976 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
6977 s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
6978 s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
6979 s%@NEEDS_DATA_START_TRUE@%$NEEDS_DATA_START_TRUE%g
6980 s%@NEEDS_DATA_START_FALSE@%$NEEDS_DATA_START_FALSE%g
6981 s%@GCC_UNWIND_INCLUDE@%$GCC_UNWIND_INCLUDE%g
6982 s%@GCJVERSION@%$GCJVERSION%g
6983 s%@AM_RUNTESTFLAGS@%$AM_RUNTESTFLAGS%g
6984 s%@ALLOCA@%$ALLOCA%g
6986 s%@SYSDEP_SOURCES@%$SYSDEP_SOURCES%g
6987 s%@X_CFLAGS@%$X_CFLAGS%g
6988 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
6989 s%@X_LIBS@%$X_LIBS%g
6990 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
6991 s%@XLIB_AWT_TRUE@%$XLIB_AWT_TRUE%g
6992 s%@XLIB_AWT_FALSE@%$XLIB_AWT_FALSE%g
6993 s%@GTK_AWT_TRUE@%$GTK_AWT_TRUE%g
6994 s%@GTK_AWT_FALSE@%$GTK_AWT_FALSE%g
7000 cat >> $CONFIG_STATUS <<\EOF
7002 # Split the substitutions into bite-sized pieces for seds with
7003 # small command number limits, like on Digital OSF/1 and HP-UX.
7004 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7005 ac_file=1 # Number of current file.
7006 ac_beg=1 # First line for current file.
7007 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7010 while $ac_more_lines; do
7011 if test $ac_beg -gt 1; then
7012 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7014 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7016 if test ! -s conftest.s$ac_file; then
7018 rm -f conftest.s$ac_file
7020 if test -z "$ac_sed_cmds"; then
7021 ac_sed_cmds="sed -f conftest.s$ac_file"
7023 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7025 ac_file=`expr $ac_file + 1`
7027 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7030 if test -z "$ac_sed_cmds"; then
7035 cat >> $CONFIG_STATUS <<EOF
7037 CONFIG_FILES=\${CONFIG_FILES-"Makefile libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile"}
7039 cat >> $CONFIG_STATUS <<\EOF
7040 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7041 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7043 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7044 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7045 *) ac_file_in="${ac_file}.in" ;;
7048 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7050 # Remove last slash and all that follows it. Not all systems have dirname.
7051 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7052 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7053 # The file is in a subdirectory.
7054 test ! -d "$ac_dir" && mkdir "$ac_dir"
7055 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7056 # A "../" for each directory in $ac_dir_suffix.
7057 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7059 ac_dir_suffix= ac_dots=
7062 case "$ac_given_srcdir" in
7064 if test -z "$ac_dots"; then top_srcdir=.
7065 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7066 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7068 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7069 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7072 case "$ac_given_INSTALL" in
7073 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7074 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7077 echo creating "$ac_file"
7079 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7081 *Makefile*) ac_comsub="1i\\
7082 # $configure_input" ;;
7086 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7088 s%@configure_input@%$configure_input%g
7089 s%@srcdir@%$srcdir%g
7090 s%@top_srcdir@%$top_srcdir%g
7091 s%@INSTALL@%$INSTALL%g
7092 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7096 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7097 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7099 # ac_d sets the value in "#define NAME VALUE" lines.
7100 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7101 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7104 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7105 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7106 ac_uB='\([ ]\)%\1#\2define\3'
7109 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7110 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7111 ac_eB='$%\1#\2define\3'
7115 if test "${CONFIG_HEADERS+set}" != set; then
7117 cat >> $CONFIG_STATUS <<EOF
7118 CONFIG_HEADERS="include/config.h"
7120 cat >> $CONFIG_STATUS <<\EOF
7122 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7123 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7125 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7126 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7127 *) ac_file_in="${ac_file}.in" ;;
7130 echo creating $ac_file
7132 rm -f conftest.frag conftest.in conftest.out
7133 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7134 cat $ac_file_inputs > conftest.in
7138 # Transform confdefs.h into a sed script conftest.vals that substitutes
7139 # the proper values into config.h.in to produce config.h. And first:
7140 # Protect against being on the right side of a sed subst in config.status.
7141 # Protect against being in an unquoted here document in config.status.
7143 cat > conftest.hdr <<\EOF
7146 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7150 sed -n -f conftest.hdr confdefs.h > conftest.vals
7153 # This sed command replaces #undef with comments. This is necessary, for
7154 # example, in the case of _POSIX_SOURCE, which is predefined and required
7155 # on some systems where configure will not decide to define it.
7156 cat >> conftest.vals <<\EOF
7157 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7160 # Break up conftest.vals because some shells have a limit on
7161 # the size of here documents, and old seds have small limits too.
7166 ac_lines=`grep -c . conftest.vals`
7167 # grep -c gives empty output for an empty file on some AIX systems.
7168 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7169 # Write a limited-size here document to conftest.frag.
7170 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7171 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7173 sed -f conftest.frag conftest.in > conftest.out
7175 mv conftest.out conftest.in
7177 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7179 mv conftest.tail conftest.vals
7183 cat >> $CONFIG_STATUS <<\EOF
7184 rm -f conftest.frag conftest.h
7185 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7186 cat conftest.in >> conftest.h
7188 if cmp -s $ac_file conftest.h 2>/dev/null; then
7189 echo "$ac_file is unchanged"
7192 # Remove last slash and all that follows it. Not all systems have dirname.
7193 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7194 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7195 # The file is in a subdirectory.
7196 test ! -d "$ac_dir" && mkdir "$ac_dir"
7199 mv conftest.h $ac_file
7205 cat >> $CONFIG_STATUS <<EOF
7206 ac_sources="java/io/$FILE_DESCRIPTOR java/lang/${PROCESS}Process.java java/lang/nat${PROCESS}Process.cc include/$GCHDR include/$THREADH $SIGNAL_HANDLER"
7207 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"
7210 cat >> $CONFIG_STATUS <<\EOF
7211 srcdir=$ac_given_srcdir
7212 while test -n "$ac_sources"; do
7213 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
7214 set $ac_sources; ac_source=$1; shift; ac_sources=$*
7216 echo "linking $srcdir/$ac_source to $ac_dest"
7218 if test ! -r $srcdir/$ac_source; then
7219 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
7223 # Make relative symlinks.
7224 # Remove last slash and all that follows it. Not all systems have dirname.
7225 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
7226 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
7227 # The dest file is in a subdirectory.
7228 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
7229 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
7230 # A "../" for each directory in $ac_dest_dir_suffix.
7231 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
7233 ac_dest_dir_suffix= ac_dots=
7237 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
7238 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
7241 # Make a symlink if possible; otherwise try a hard link.
7242 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
7243 ln $srcdir/$ac_source $ac_dest; then :
7245 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
7249 cat >> $CONFIG_STATUS <<EOF
7254 with_multisubdir=${with_multisubdir}
7255 ac_configure_args="${multilib_arg} ${ac_configure_args}"
7256 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
7257 libgcj_basedir=${libgcj_basedir}
7262 cat >> $CONFIG_STATUS <<\EOF
7263 test -z "$CONFIG_HEADERS" || echo timestamp > include/stamp-h
7264 if test -n "$CONFIG_FILES"; then
7265 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
7268 # Make subdirectories and `.d' files. Look in both srcdir and
7269 # builddir for the .java files.
7272 ( (cd $srcdir && find . -name '*.java' -print) ;
7273 find . -name '*.java' -print) | \
7274 fgrep -v testsuite | \
7275 sed -e 's/\.java/.d/' | \
7277 echo "include $f" >> deps.mk
7280 d=`echo $f | sed -e 's,/[^/]*$,,'`
7282 $srcdir/../mkinstalldirs $d
7289 chmod +x $CONFIG_STATUS
7290 rm -fr confdefs* $ac_clean_files
7291 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7293 if test "$no_recursion" != yes; then
7295 # Remove --cache-file and --srcdir arguments so they do not pile up.
7296 ac_sub_configure_args=
7298 for ac_arg in $ac_configure_args; do
7299 if test -n "$ac_prev"; then
7304 -cache-file | --cache-file | --cache-fil | --cache-fi \
7305 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
7306 ac_prev=cache_file ;;
7307 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
7308 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
7310 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
7312 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
7314 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
7318 for ac_config_dir in $DIRLTDL; do
7320 # Do not complain, so a configure script can configure whichever
7321 # parts of a large source tree are present.
7322 if test ! -d $srcdir/$ac_config_dir; then
7326 echo configuring in $ac_config_dir
7331 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
7333 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
7341 # A "../" for each directory in /$ac_config_dir.
7342 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
7345 .) # No --srcdir option. We are building in place.
7346 ac_sub_srcdir=$srcdir ;;
7347 /*) # Absolute path.
7348 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
7350 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
7353 # Check for guested configure; otherwise get Cygnus style configure.
7354 if test -f $ac_sub_srcdir/configure; then
7355 ac_sub_configure=$ac_sub_srcdir/configure
7356 elif test -f $ac_sub_srcdir/configure.in; then
7357 ac_sub_configure=$ac_configure
7359 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
7363 # The recursion is here.
7364 if test -n "$ac_sub_configure"; then
7366 # Make the cache file name correct relative to the subdirectory.
7367 case "$cache_file" in
7368 /*) ac_sub_cache_file=$cache_file ;;
7370 ac_sub_cache_file="$ac_dots$cache_file" ;;
7372 case "$ac_given_INSTALL" in
7373 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7374 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7377 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
7378 # The eval makes quoting arguments work.
7379 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
7382 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }