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 use setjmp/longjmp 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 --enable-threads=TYPE choose threading package"
60 --with-x use the X Window System"
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
,
83 bindir
='${exec_prefix}/bin'
84 sbindir
='${exec_prefix}/sbin'
85 libexecdir
='${exec_prefix}/libexec'
86 datadir
='${prefix}/share'
87 sysconfdir
='${prefix}/etc'
88 sharedstatedir
='${prefix}/com'
89 localstatedir
='${prefix}/var'
90 libdir
='${exec_prefix}/lib'
91 includedir
='${prefix}/include'
92 oldincludedir
='/usr/include'
93 infodir
='${prefix}/info'
94 mandir
='${prefix}/man'
96 # Initialize some other variables.
99 SHELL
=${CONFIG_SHELL-/bin/sh}
100 # Maximum number of lines to put in a shell here document.
107 # If the previous option needs an argument, assign it.
108 if test -n "$ac_prev"; then
109 eval "$ac_prev=\$ac_option"
115 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
119 # Accept the important Cygnus configure options, so we can diagnose typos.
123 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
125 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
126 bindir
="$ac_optarg" ;;
128 -build |
--build |
--buil |
--bui |
--bu)
130 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
131 build
="$ac_optarg" ;;
133 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
134 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
135 ac_prev
=cache_file
;;
136 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
137 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
138 cache_file
="$ac_optarg" ;;
140 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
142 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
144 datadir
="$ac_optarg" ;;
146 -disable-* |
--disable-*)
147 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
148 # Reject names that are not valid shell variable names.
149 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
150 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
152 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
153 eval "enable_${ac_feature}=no" ;;
155 -enable-* |
--enable-*)
156 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
157 # Reject names that are not valid shell variable names.
158 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
159 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
161 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
166 eval "enable_${ac_feature}='$ac_optarg'" ;;
168 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
169 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
170 |
--exec |
--exe |
--ex)
171 ac_prev
=exec_prefix
;;
172 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
173 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
174 |
--exec=* |
--exe=* |
--ex=*)
175 exec_prefix
="$ac_optarg" ;;
177 -gas |
--gas |
--ga |
--g)
178 # Obsolete; use --with-gas.
181 -help |
--help |
--hel |
--he)
182 # Omit some internal or obsolete options to make the list less imposing.
183 # This message is too long to be a string in the A/UX 3.1 sh.
185 Usage: configure [options] [host]
186 Options: [defaults in brackets after descriptions]
188 --cache-file=FILE cache test results in FILE
189 --help print this message
190 --no-create do not create output files
191 --quiet, --silent do not print \`checking...' messages
192 --version print the version of autoconf that created configure
193 Directory and file names:
194 --prefix=PREFIX install architecture-independent files in PREFIX
196 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
198 --bindir=DIR user executables in DIR [EPREFIX/bin]
199 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
200 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
201 --datadir=DIR read-only architecture-independent data in DIR
203 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
204 --sharedstatedir=DIR modifiable architecture-independent data in DIR
206 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
207 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
208 --includedir=DIR C header files in DIR [PREFIX/include]
209 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
210 --infodir=DIR info documentation in DIR [PREFIX/info]
211 --mandir=DIR man documentation in DIR [PREFIX/man]
212 --srcdir=DIR find the sources in DIR [configure dir or ..]
213 --program-prefix=PREFIX prepend PREFIX to installed program names
214 --program-suffix=SUFFIX append SUFFIX to installed program names
215 --program-transform-name=PROGRAM
216 run sed PROGRAM on installed program names
220 --build=BUILD configure for building on BUILD [BUILD=HOST]
221 --host=HOST configure for HOST [guessed]
222 --target=TARGET configure for TARGET [TARGET=HOST]
223 Features and packages:
224 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
225 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
226 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
227 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
228 --x-includes=DIR X include files are in DIR
229 --x-libraries=DIR X library files are in DIR
231 if test -n "$ac_help"; then
232 echo "--enable and --with options recognized:$ac_help"
236 -host |
--host |
--hos |
--ho)
238 -host=* |
--host=* |
--hos=* |
--ho=*)
241 -includedir |
--includedir |
--includedi |
--included |
--include \
242 |
--includ |
--inclu |
--incl |
--inc)
243 ac_prev
=includedir
;;
244 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
245 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
246 includedir
="$ac_optarg" ;;
248 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
250 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
251 infodir
="$ac_optarg" ;;
253 -libdir |
--libdir |
--libdi |
--libd)
255 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
256 libdir
="$ac_optarg" ;;
258 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
259 |
--libexe |
--libex |
--libe)
260 ac_prev
=libexecdir
;;
261 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
262 |
--libexe=* |
--libex=* |
--libe=*)
263 libexecdir
="$ac_optarg" ;;
265 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
266 |
--localstate |
--localstat |
--localsta |
--localst \
267 |
--locals |
--local |
--loca |
--loc |
--lo)
268 ac_prev
=localstatedir
;;
269 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
270 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
271 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
272 localstatedir
="$ac_optarg" ;;
274 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
276 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
277 mandir
="$ac_optarg" ;;
280 # Obsolete; use --without-fp.
283 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
287 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
288 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
291 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
292 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
293 |
--oldin |
--oldi |
--old |
--ol |
--o)
294 ac_prev
=oldincludedir
;;
295 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
296 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
297 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
298 oldincludedir
="$ac_optarg" ;;
300 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
302 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
303 prefix
="$ac_optarg" ;;
305 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
306 |
--program-pre |
--program-pr |
--program-p)
307 ac_prev
=program_prefix
;;
308 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
309 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
310 program_prefix
="$ac_optarg" ;;
312 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
313 |
--program-suf |
--program-su |
--program-s)
314 ac_prev
=program_suffix
;;
315 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
316 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
317 program_suffix
="$ac_optarg" ;;
319 -program-transform-name |
--program-transform-name \
320 |
--program-transform-nam |
--program-transform-na \
321 |
--program-transform-n |
--program-transform- \
322 |
--program-transform |
--program-transfor \
323 |
--program-transfo |
--program-transf \
324 |
--program-trans |
--program-tran \
325 |
--progr-tra |
--program-tr |
--program-t)
326 ac_prev
=program_transform_name
;;
327 -program-transform-name=* |
--program-transform-name=* \
328 |
--program-transform-nam=* |
--program-transform-na=* \
329 |
--program-transform-n=* |
--program-transform-=* \
330 |
--program-transform=* |
--program-transfor=* \
331 |
--program-transfo=* |
--program-transf=* \
332 |
--program-trans=* |
--program-tran=* \
333 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
334 program_transform_name
="$ac_optarg" ;;
336 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
337 |
-silent |
--silent |
--silen |
--sile |
--sil)
340 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
342 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
344 sbindir
="$ac_optarg" ;;
346 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
347 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
348 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
350 ac_prev
=sharedstatedir
;;
351 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
352 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
353 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
355 sharedstatedir
="$ac_optarg" ;;
357 -site |
--site |
--sit)
359 -site=* |
--site=* |
--sit=*)
362 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
364 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
365 srcdir
="$ac_optarg" ;;
367 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
368 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
369 ac_prev
=sysconfdir
;;
370 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
371 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
372 sysconfdir
="$ac_optarg" ;;
374 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
376 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
377 target
="$ac_optarg" ;;
379 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
382 -version |
--version |
--versio |
--versi |
--vers)
383 echo "configure generated by autoconf version 2.13"
387 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
388 # Reject names that are not valid shell variable names.
389 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
390 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
392 ac_package
=`echo $ac_package| sed 's/-/_/g'`
397 eval "with_${ac_package}='$ac_optarg'" ;;
399 -without-* |
--without-*)
400 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
401 # Reject names that are not valid shell variable names.
402 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
403 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
405 ac_package
=`echo $ac_package| sed 's/-/_/g'`
406 eval "with_${ac_package}=no" ;;
409 # Obsolete; use --with-x.
412 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
413 |
--x-incl |
--x-inc |
--x-in |
--x-i)
414 ac_prev
=x_includes
;;
415 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
416 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
417 x_includes
="$ac_optarg" ;;
419 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
420 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
421 ac_prev
=x_libraries
;;
422 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
423 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
424 x_libraries
="$ac_optarg" ;;
426 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
430 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
431 echo "configure: warning: $ac_option: invalid host type" 1>&2
433 if test "x$nonopt" != xNONE
; then
434 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
442 if test -n "$ac_prev"; then
443 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
446 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
448 # File descriptor usage:
451 # 2 errors and warnings
452 # 3 some systems may open it to /dev/tty
453 # 4 used on the Kubota Titan
454 # 6 checking for... messages and results
455 # 5 compiler messages saved in config.log
456 if test "$silent" = yes; then
464 This file contains any messages produced by compilers while
465 running configure, to aid debugging if configure makes a mistake.
468 # Strip out --no-create and --no-recursion so they do not pile up.
469 # Also quote any args containing shell metacharacters.
474 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
475 |
--no-cr |
--no-c) ;;
476 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
477 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
478 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
479 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
480 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
485 # Only set these to C if already set. These must not be set unconditionally
486 # because not all systems understand e.g. LANG=C (notably SCO).
487 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
488 # Non-C LC_CTYPE values break the ctype check.
489 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
490 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
491 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
492 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
494 # confdefs.h avoids OS command line length limits that DEFS can exceed.
495 rm -rf conftest
* confdefs.h
496 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
499 # A filename unique to this package, relative to the directory that
500 # configure is in, which we can look for to find out if srcdir is correct.
501 ac_unique_file
=java
/lang
/System.java
503 # Find the source files, if location was not specified.
504 if test -z "$srcdir"; then
505 ac_srcdir_defaulted
=yes
506 # Try the directory containing this script, then its parent.
508 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
509 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
511 if test ! -r $srcdir/$ac_unique_file; then
515 ac_srcdir_defaulted
=no
517 if test ! -r $srcdir/$ac_unique_file; then
518 if test "$ac_srcdir_defaulted" = yes; then
519 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
521 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
524 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
526 # Prefer explicitly selected file to automatically selected ones.
527 if test -z "$CONFIG_SITE"; then
528 if test "x$prefix" != xNONE
; then
529 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
531 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
534 for ac_site_file
in $CONFIG_SITE; do
535 if test -r "$ac_site_file"; then
536 echo "loading site script $ac_site_file"
541 if test -r "$cache_file"; then
542 echo "loading cache $cache_file"
545 echo "creating cache $cache_file"
550 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
551 ac_cpp
='$CPP $CPPFLAGS'
552 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
553 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
554 cross_compiling
=$ac_cv_prog_cc_cross
558 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
559 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
560 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
567 ac_n
= ac_c
='\c' ac_t
=
573 for ac_dir
in ..
$srcdir/..
; do
574 if test -f $ac_dir/install-sh
; then
576 ac_install_sh
="$ac_aux_dir/install-sh -c"
578 elif test -f $ac_dir/install.sh
; then
580 ac_install_sh
="$ac_aux_dir/install.sh -c"
584 if test -z "$ac_aux_dir"; then
585 { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
587 ac_config_guess
=$ac_aux_dir/config.guess
588 ac_config_sub
=$ac_aux_dir/config.sub
589 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
593 # Do some error checking and defaulting for the host and target type.
595 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
598 # 1. You are not allowed to specify --host, --target, and nonopt at the
600 # 2. Host defaults to nonopt.
601 # 3. If nonopt is not specified, then host defaults to the current host,
602 # as determined by config.guess.
603 # 4. Target and build default to nonopt.
604 # 5. If nonopt is not specified, then target and build default to host.
606 # The aliases save the names the user supplied, while $host etc.
607 # will get canonicalized.
608 case $host---$target---$nonopt in
609 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
610 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
614 # Make sure we can run config.sub.
615 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
616 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
619 echo $ac_n "checking host system type""... $ac_c" 1>&6
620 echo "configure:621: checking host system type" >&5
623 case "$host_alias" in
627 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
628 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
630 *) host_alias
=$nonopt ;;
634 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
635 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
636 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
637 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
638 echo "$ac_t""$host" 1>&6
640 echo $ac_n "checking target system type""... $ac_c" 1>&6
641 echo "configure:642: checking target system type" >&5
644 case "$target_alias" in
647 NONE
) target_alias
=$host_alias ;;
648 *) target_alias
=$nonopt ;;
652 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
653 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
654 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
655 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
656 echo "$ac_t""$target" 1>&6
658 echo $ac_n "checking build system type""... $ac_c" 1>&6
659 echo "configure:660: checking build system type" >&5
662 case "$build_alias" in
665 NONE
) build_alias
=$host_alias ;;
666 *) build_alias
=$nonopt ;;
670 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
671 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
672 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
673 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
674 echo "$ac_t""$build" 1>&6
676 test "$host_alias" != "$target_alias" &&
677 test "$program_prefix$program_suffix$program_transform_name" = \
679 program_prefix
=${target_alias}-
682 # Check whether --with-target-subdir or --without-target-subdir was given.
683 if test "${with_target_subdir+set}" = set; then
684 withval
="$with_target_subdir"
688 # Check whether --with-cross-host or --without-cross-host was given.
689 if test "${with_cross_host+set}" = set; then
690 withval
="$with_cross_host"
695 # Find a good install program. We prefer a C program (faster),
696 # so one script is as good as another. But avoid the broken or
697 # incompatible versions:
698 # SysV /etc/install, /usr/sbin/install
699 # SunOS /usr/etc/install
702 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
703 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
704 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
705 # ./install, which can be erroneously created by make from ./install.sh.
706 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
707 echo "configure:708: checking for a BSD compatible install" >&5
708 if test -z "$INSTALL"; then
709 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
710 echo $ac_n "(cached) $ac_c" 1>&6
712 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
713 for ac_dir
in $PATH; do
714 # Account for people who put trailing slashes in PATH elements.
716 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
718 # OSF1 and SCO ODT 3.0 have their own names for install.
719 # Don't use installbsd from OSF since it installs stuff as root
721 for ac_prog
in ginstall scoinst
install; do
722 if test -f $ac_dir/$ac_prog; then
723 if test $ac_prog = install &&
724 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
725 # AIX install. It has an incompatible calling convention.
728 ac_cv_path_install
="$ac_dir/$ac_prog -c"
739 if test "${ac_cv_path_install+set}" = set; then
740 INSTALL
="$ac_cv_path_install"
742 # As a last resort, use the slow shell script. We don't cache a
743 # path for INSTALL within a source directory, because that will
744 # break other packages using the cache if that directory is
745 # removed, or if the path is relative.
746 INSTALL
="$ac_install_sh"
749 echo "$ac_t""$INSTALL" 1>&6
751 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
752 # It thinks the first close brace ends the variable substitution.
753 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
755 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
757 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
759 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
760 echo "configure:761: checking whether build environment is sane" >&5
763 echo timestamp
> conftestfile
764 # Do `set' in a subshell so we don't clobber the current shell's
765 # arguments. Must try -L first in case configure is actually a
766 # symlink; some systems play weird games with the mod time of symlinks
767 # (eg FreeBSD returns the mod time of the symlink's containing
770 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
771 if test "$*" = "X"; then
773 set X
`ls -t $srcdir/configure conftestfile`
775 if test "$*" != "X $srcdir/configure conftestfile" \
776 && test "$*" != "X conftestfile $srcdir/configure"; then
778 # If neither matched, then we have a broken ls. This can happen
779 # if, for instance, CONFIG_SHELL is bash and it inherits a
780 # broken ls alias from the environment. This has actually
781 # happened. Such a system could not be considered "sane".
782 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
783 alias in your environment" 1>&2; exit 1; }
786 test "$2" = conftestfile
792 { echo "configure: error: newly created file is older than distributed files!
793 Check your system clock" 1>&2; exit 1; }
796 echo "$ac_t""yes" 1>&6
797 if test "$program_transform_name" = s
,x
,x
,; then
798 program_transform_name
=
800 # Double any \ or $. echo might interpret backslashes.
801 cat <<\EOF_SED
> conftestsed
802 s
,\\,\\\\,g
; s
,\$
,$$
,g
804 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
807 test "$program_prefix" != NONE
&&
808 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
809 # Use a double $ so make ignores it.
810 test "$program_suffix" != NONE
&&
811 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
813 # sed with no file args requires a program.
814 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
816 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
817 echo "configure:818: checking whether ${MAKE-make} sets \${MAKE}" >&5
818 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
819 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
820 echo $ac_n "(cached) $ac_c" 1>&6
822 cat > conftestmake
<<\EOF
824 @
echo 'ac_maketemp="${MAKE}"'
826 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
827 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
828 if test -n "$ac_maketemp"; then
829 eval ac_cv_prog_make_
${ac_make}_set
=yes
831 eval ac_cv_prog_make_
${ac_make}_set
=no
835 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
836 echo "$ac_t""yes" 1>&6
839 echo "$ac_t""no" 1>&6
840 SET_MAKE
="MAKE=${MAKE-make}"
843 if test $host != $build; then
844 ac_tool_prefix
=${host_alias}-
849 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
850 echo "configure:851: checking for Cygwin environment" >&5
851 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
852 echo $ac_n "(cached) $ac_c" 1>&6
854 cat > conftest.
$ac_ext <<EOF
855 #line 856 "configure"
856 #include "confdefs.h"
861 #define __CYGWIN__ __CYGWIN32__
866 if { (eval echo configure
:867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
870 echo "configure: failed program was:" >&5
871 cat conftest.
$ac_ext >&5
879 echo "$ac_t""$ac_cv_cygwin" 1>&6
881 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
882 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
883 echo "configure:884: checking for mingw32 environment" >&5
884 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
885 echo $ac_n "(cached) $ac_c" 1>&6
887 cat > conftest.
$ac_ext <<EOF
888 #line 889 "configure"
889 #include "confdefs.h"
895 if { (eval echo configure
:896: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
899 echo "configure: failed program was:" >&5
900 cat conftest.
$ac_ext >&5
908 echo "$ac_t""$ac_cv_mingw32" 1>&6
910 test "$ac_cv_mingw32" = yes && MINGW32
=yes
912 # Check whether --enable-multilib or --disable-multilib was given.
913 if test "${enable_multilib+set}" = set; then
914 enableval
="$enable_multilib"
915 case "${enableval}" in
918 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
925 if test "${srcdir}" = "."; then
926 if test "${with_target_subdir}" != "."; then
927 libgcj_basedir
="${srcdir}/${with_multisrctop}../."
929 libgcj_basedir
="${srcdir}/${with_multisrctop}."
932 libgcj_basedir
="${srcdir}/."
937 # Make sure we can run config.sub.
938 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
939 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
942 echo $ac_n "checking host system type""... $ac_c" 1>&6
943 echo "configure:944: checking host system type" >&5
946 case "$host_alias" in
950 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
951 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
953 *) host_alias
=$nonopt ;;
957 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
958 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
959 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
960 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
961 echo "$ac_t""$host" 1>&6
967 # Extract the first word of "gcc", so it can be a program name with args.
968 set dummy gcc
; ac_word
=$2
969 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
970 echo "configure:971: checking for $ac_word" >&5
971 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
972 echo $ac_n "(cached) $ac_c" 1>&6
974 if test -n "$CC"; then
975 ac_cv_prog_CC
="$CC" # Let the user override the test.
977 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
979 for ac_dir
in $ac_dummy; do
980 test -z "$ac_dir" && ac_dir
=.
981 if test -f $ac_dir/$ac_word; then
990 if test -n "$CC"; then
991 echo "$ac_t""$CC" 1>&6
993 echo "$ac_t""no" 1>&6
996 if test -z "$CC"; then
997 # Extract the first word of "cc", so it can be a program name with args.
998 set dummy cc
; ac_word
=$2
999 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1000 echo "configure:1001: checking for $ac_word" >&5
1001 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1002 echo $ac_n "(cached) $ac_c" 1>&6
1004 if test -n "$CC"; then
1005 ac_cv_prog_CC
="$CC" # Let the user override the test.
1007 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1010 for ac_dir
in $ac_dummy; do
1011 test -z "$ac_dir" && ac_dir
=.
1012 if test -f $ac_dir/$ac_word; then
1013 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1014 ac_prog_rejected
=yes
1022 if test $ac_prog_rejected = yes; then
1023 # We found a bogon in the path, so make sure we never use it.
1024 set dummy
$ac_cv_prog_CC
1026 if test $# -gt 0; then
1027 # We chose a different compiler from the bogus one.
1028 # However, it has the same basename, so the bogon will be chosen
1029 # first if we set CC to just the basename; use the full file name.
1031 set dummy
"$ac_dir/$ac_word" "$@"
1039 if test -n "$CC"; then
1040 echo "$ac_t""$CC" 1>&6
1042 echo "$ac_t""no" 1>&6
1045 if test -z "$CC"; then
1046 case "`uname -s`" in
1048 # Extract the first word of "cl", so it can be a program name with args.
1049 set dummy cl
; ac_word
=$2
1050 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1051 echo "configure:1052: checking for $ac_word" >&5
1052 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1053 echo $ac_n "(cached) $ac_c" 1>&6
1055 if test -n "$CC"; then
1056 ac_cv_prog_CC
="$CC" # Let the user override the test.
1058 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1060 for ac_dir
in $ac_dummy; do
1061 test -z "$ac_dir" && ac_dir
=.
1062 if test -f $ac_dir/$ac_word; then
1071 if test -n "$CC"; then
1072 echo "$ac_t""$CC" 1>&6
1074 echo "$ac_t""no" 1>&6
1079 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1083 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1084 echo "configure:1085: checking whether we are using GNU C" >&5
1085 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1086 echo $ac_n "(cached) $ac_c" 1>&6
1088 cat > conftest.c
<<EOF
1093 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1094: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1100 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1102 if test $ac_cv_prog_gcc = yes; then
1108 ac_test_CFLAGS
="${CFLAGS+set}"
1109 ac_save_CFLAGS
="$CFLAGS"
1111 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1112 echo "configure:1113: checking whether ${CC-cc} accepts -g" >&5
1113 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1114 echo $ac_n "(cached) $ac_c" 1>&6
1116 echo 'void f(){}' > conftest.c
1117 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1126 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1127 if test "$ac_test_CFLAGS" = set; then
1128 CFLAGS
="$ac_save_CFLAGS"
1129 elif test $ac_cv_prog_cc_g = yes; then
1130 if test "$GCC" = yes; then
1136 if test "$GCC" = yes; then
1143 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
1145 # Extract the first word of "$ac_prog", so it can be a program name with args.
1146 set dummy
$ac_prog; ac_word
=$2
1147 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1148 echo "configure:1149: checking for $ac_word" >&5
1149 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1150 echo $ac_n "(cached) $ac_c" 1>&6
1152 if test -n "$CXX"; then
1153 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
1155 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1157 for ac_dir
in $ac_dummy; do
1158 test -z "$ac_dir" && ac_dir
=.
1159 if test -f $ac_dir/$ac_word; then
1160 ac_cv_prog_CXX
="$ac_prog"
1167 CXX
="$ac_cv_prog_CXX"
1168 if test -n "$CXX"; then
1169 echo "$ac_t""$CXX" 1>&6
1171 echo "$ac_t""no" 1>&6
1174 test -n "$CXX" && break
1176 test -n "$CXX" || CXX
="gcc"
1180 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1181 echo "configure:1182: checking whether we are using GNU C++" >&5
1182 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1183 echo $ac_n "(cached) $ac_c" 1>&6
1185 cat > conftest.C
<<EOF
1190 if { ac_try
='${CXX-g++} -E conftest.C'; { (eval echo configure
:1191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1197 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1199 if test $ac_cv_prog_gxx = yes; then
1205 ac_test_CXXFLAGS
="${CXXFLAGS+set}"
1206 ac_save_CXXFLAGS
="$CXXFLAGS"
1208 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1209 echo "configure:1210: checking whether ${CXX-g++} accepts -g" >&5
1210 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1211 echo $ac_n "(cached) $ac_c" 1>&6
1213 echo 'void f(){}' > conftest.cc
1214 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1215 ac_cv_prog_cxx_g
=yes
1223 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1224 if test "$ac_test_CXXFLAGS" = set; then
1225 CXXFLAGS
="$ac_save_CXXFLAGS"
1226 elif test $ac_cv_prog_cxx_g = yes; then
1227 if test "$GXX" = yes; then
1233 if test "$GXX" = yes; then
1247 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
1248 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
1250 cat >> confdefs.h
<<EOF
1251 #define PACKAGE "$PACKAGE"
1254 cat >> confdefs.h
<<EOF
1255 #define VERSION "$VERSION"
1260 missing_dir
=`cd $ac_aux_dir && pwd`
1261 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1262 echo "configure:1263: checking for working aclocal" >&5
1263 # Run test in a subshell; some versions of sh will print an error if
1264 # an executable is not found, even if stderr is redirected.
1265 # Redirect stdin to placate older versions of autoconf. Sigh.
1266 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
1268 echo "$ac_t""found" 1>&6
1270 ACLOCAL
="$missing_dir/missing aclocal"
1271 echo "$ac_t""missing" 1>&6
1274 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1275 echo "configure:1276: checking for working autoconf" >&5
1276 # Run test in a subshell; some versions of sh will print an error if
1277 # an executable is not found, even if stderr is redirected.
1278 # Redirect stdin to placate older versions of autoconf. Sigh.
1279 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
1281 echo "$ac_t""found" 1>&6
1283 AUTOCONF
="$missing_dir/missing autoconf"
1284 echo "$ac_t""missing" 1>&6
1287 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1288 echo "configure:1289: checking for working automake" >&5
1289 # Run test in a subshell; some versions of sh will print an error if
1290 # an executable is not found, even if stderr is redirected.
1291 # Redirect stdin to placate older versions of autoconf. Sigh.
1292 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
1294 echo "$ac_t""found" 1>&6
1296 AUTOMAKE
="$missing_dir/missing automake"
1297 echo "$ac_t""missing" 1>&6
1300 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1301 echo "configure:1302: checking for working autoheader" >&5
1302 # Run test in a subshell; some versions of sh will print an error if
1303 # an executable is not found, even if stderr is redirected.
1304 # Redirect stdin to placate older versions of autoconf. Sigh.
1305 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
1306 AUTOHEADER
=autoheader
1307 echo "$ac_t""found" 1>&6
1309 AUTOHEADER
="$missing_dir/missing autoheader"
1310 echo "$ac_t""missing" 1>&6
1313 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1314 echo "configure:1315: checking for working makeinfo" >&5
1315 # Run test in a subshell; some versions of sh will print an error if
1316 # an executable is not found, even if stderr is redirected.
1317 # Redirect stdin to placate older versions of autoconf. Sigh.
1318 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
1320 echo "$ac_t""found" 1>&6
1322 MAKEINFO
="$missing_dir/missing makeinfo"
1323 echo "$ac_t""missing" 1>&6
1328 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we dont
1329 # run it explicitly here, it will be run implicitly before
1330 # LIBGCJ_CONFIGURE, which doesn't work because that means that it will
1331 # be run before AC_CANONICAL_HOST.
1332 echo $ac_n "checking build system type""... $ac_c" 1>&6
1333 echo "configure:1334: checking build system type" >&5
1336 case "$build_alias" in
1339 NONE
) build_alias
=$host_alias ;;
1340 *) build_alias
=$nonopt ;;
1344 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1345 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1346 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1347 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1348 echo "$ac_t""$build" 1>&6
1351 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1352 set dummy
${ac_tool_prefix}as
; ac_word
=$2
1353 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1354 echo "configure:1355: checking for $ac_word" >&5
1355 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1356 echo $ac_n "(cached) $ac_c" 1>&6
1358 if test -n "$AS"; then
1359 ac_cv_prog_AS
="$AS" # Let the user override the test.
1361 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1363 for ac_dir
in $ac_dummy; do
1364 test -z "$ac_dir" && ac_dir
=.
1365 if test -f $ac_dir/$ac_word; then
1366 ac_cv_prog_AS
="${ac_tool_prefix}as"
1371 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS
="as"
1375 if test -n "$AS"; then
1376 echo "$ac_t""$AS" 1>&6
1378 echo "$ac_t""no" 1>&6
1383 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1384 set dummy
${ac_tool_prefix}ar; 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_AR'+set}'`\" = set"; then
1388 echo $ac_n "(cached) $ac_c" 1>&6
1390 if test -n "$AR"; then
1391 ac_cv_prog_AR
="$AR" # 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_AR
="${ac_tool_prefix}ar"
1403 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
1407 if test -n "$AR"; then
1408 echo "$ac_t""$AR" 1>&6
1410 echo "$ac_t""no" 1>&6
1415 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1416 set dummy
${ac_tool_prefix}ranlib
; 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_RANLIB'+set}'`\" = set"; then
1420 echo $ac_n "(cached) $ac_c" 1>&6
1422 if test -n "$RANLIB"; then
1423 ac_cv_prog_RANLIB
="$RANLIB" # 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_RANLIB
="${ac_tool_prefix}ranlib"
1437 RANLIB
="$ac_cv_prog_RANLIB"
1438 if test -n "$RANLIB"; then
1439 echo "$ac_t""$RANLIB" 1>&6
1441 echo "$ac_t""no" 1>&6
1445 if test -z "$ac_cv_prog_RANLIB"; then
1446 if test -n "$ac_tool_prefix"; then
1447 # Extract the first word of "ranlib", so it can be a program name with args.
1448 set dummy 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
="ranlib"
1467 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1470 RANLIB
="$ac_cv_prog_RANLIB"
1471 if test -n "$RANLIB"; then
1472 echo "$ac_t""$RANLIB" 1>&6
1474 echo "$ac_t""no" 1>&6
1483 # Find a good install program. We prefer a C program (faster),
1484 # so one script is as good as another. But avoid the broken or
1485 # incompatible versions:
1486 # SysV /etc/install, /usr/sbin/install
1487 # SunOS /usr/etc/install
1488 # IRIX /sbin/install
1490 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1491 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1492 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1493 # ./install, which can be erroneously created by make from ./install.sh.
1494 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1495 echo "configure:1496: checking for a BSD compatible install" >&5
1496 if test -z "$INSTALL"; then
1497 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1498 echo $ac_n "(cached) $ac_c" 1>&6
1500 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1501 for ac_dir
in $PATH; do
1502 # Account for people who put trailing slashes in PATH elements.
1504 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1506 # OSF1 and SCO ODT 3.0 have their own names for install.
1507 # Don't use installbsd from OSF since it installs stuff as root
1509 for ac_prog
in ginstall scoinst
install; do
1510 if test -f $ac_dir/$ac_prog; then
1511 if test $ac_prog = install &&
1512 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1513 # AIX install. It has an incompatible calling convention.
1516 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1527 if test "${ac_cv_path_install+set}" = set; then
1528 INSTALL
="$ac_cv_path_install"
1530 # As a last resort, use the slow shell script. We don't cache a
1531 # path for INSTALL within a source directory, because that will
1532 # break other packages using the cache if that directory is
1533 # removed, or if the path is relative.
1534 INSTALL
="$ac_install_sh"
1537 echo "$ac_t""$INSTALL" 1>&6
1539 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1540 # It thinks the first close brace ends the variable substitution.
1541 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1543 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1545 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1548 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1549 echo "configure:1550: checking whether to enable maintainer-specific portions of Makefiles" >&5
1550 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1551 if test "${enable_maintainer_mode+set}" = set; then
1552 enableval
="$enable_maintainer_mode"
1553 USE_MAINTAINER_MODE
=$enableval
1555 USE_MAINTAINER_MODE
=no
1558 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1561 if test $USE_MAINTAINER_MODE = yes; then
1562 MAINTAINER_MODE_TRUE
=
1563 MAINTAINER_MODE_FALSE
='#'
1565 MAINTAINER_MODE_TRUE
='#'
1566 MAINTAINER_MODE_FALSE
=
1568 MAINT
=$MAINTAINER_MODE_TRUE
1572 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1573 # at least currently, we never actually build a program, so we never
1574 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1575 # fails, because we are probably configuring with a cross compiler
1576 # which cant create executables. So we include AC_EXEEXT to keep
1577 # automake happy, but we dont execute it, since we dont care about
1582 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1583 echo "configure:1584: checking for executable suffix" >&5
1584 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1585 echo $ac_n "(cached) $ac_c" 1>&6
1587 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
1591 echo 'int main () { return 0; }' > conftest.
$ac_ext
1593 if { (eval echo configure
:1594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1594 for file in conftest.
*; do
1596 *.c |
*.o |
*.obj
) ;;
1597 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
1601 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1604 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
1609 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
1610 echo "$ac_t""${ac_cv_exeext}" 1>&6
1615 # configure.host sets the following important variables
1616 # libgcj_cflags - host specific C compiler flags
1617 # libgcj_cxxflags - host specific C++ compiler flags
1618 # libgcj_javaflags - host specific Java compiler flags
1624 .
${libgcj_basedir}/configure.
host
1626 case ${libgcj_basedir} in
1627 /* | A-Za-z
:/\\*) libgcj_flagbasedir
=${libgcj_basedir} ;;
1628 *) libgcj_flagbasedir
='$(top_builddir)/'${libgcj_basedir} ;;
1631 LIBGCJ_CFLAGS
="${libgcj_cflags}"
1632 LIBGCJ_CXXFLAGS
="${libgcj_cxxflags}"
1633 LIBGCJ_JAVAFLAGS
="${libgcj_javaflags}"
1643 # Only use libltdl for native builds.
1644 if test -z "${with_cross_host}"; then
1645 case "$enable_ltdl_convenience" in
1646 no
) { echo "configure: error: this package needs a convenience libltdl" 1>&2; exit 1; } ;;
1647 "") enable_ltdl_convenience
=yes
1648 ac_configure_args
="$ac_configure_args --enable-ltdl-convenience" ;;
1650 LIBLTDL
='${top_builddir}/''libltdl'/libltdlc.la
1651 INCLTDL
='-I${top_srcdir}/''libltdl'
1655 cat >> confdefs.h
<<\EOF
1659 # Sigh. Libtool's macro doesn't do the right thing.
1660 INCLTDL
="-I\$(top_srcdir)/libltdl $INCLTDL"
1665 # Check whether --enable-shared or --disable-shared was given.
1666 if test "${enable_shared+set}" = set; then
1667 enableval
="$enable_shared"
1668 p
=${PACKAGE-default}
1669 case "$enableval" in
1670 yes) enable_shared
=yes ;;
1671 no
) enable_shared
=no
;;
1674 # Look at the argument we got. We use all the common list separators.
1675 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1676 for pkg
in $enableval; do
1677 if test "X$pkg" = "X$p"; then
1688 # Check whether --enable-static or --disable-static was given.
1689 if test "${enable_static+set}" = set; then
1690 enableval
="$enable_static"
1691 p
=${PACKAGE-default}
1692 case "$enableval" in
1693 yes) enable_static
=yes ;;
1694 no
) enable_static
=no
;;
1697 # Look at the argument we got. We use all the common list separators.
1698 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1699 for pkg
in $enableval; do
1700 if test "X$pkg" = "X$p"; then
1711 # Check whether --enable-fast-install or --disable-fast-install was given.
1712 if test "${enable_fast_install+set}" = set; then
1713 enableval
="$enable_fast_install"
1714 p
=${PACKAGE-default}
1715 case "$enableval" in
1716 yes) enable_fast_install
=yes ;;
1717 no
) enable_fast_install
=no
;;
1719 enable_fast_install
=no
1720 # Look at the argument we got. We use all the common list separators.
1721 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1722 for pkg
in $enableval; do
1723 if test "X$pkg" = "X$p"; then
1724 enable_fast_install
=yes
1731 enable_fast_install
=yes
1734 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1735 if test "${with_gnu_ld+set}" = set; then
1736 withval
="$with_gnu_ld"
1737 test "$withval" = no || with_gnu_ld
=yes
1743 if test "$ac_cv_prog_gcc" = yes; then
1744 # Check if gcc -print-prog-name=ld gives a path.
1745 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1746 echo "configure:1747: checking for ld used by GCC" >&5
1749 # gcc leaves a trailing carriage return which upsets mingw
1750 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1752 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
1755 # Accept absolute paths.
1756 [\\/]* |
[A-Za-z
]:[\\/]*)
1757 re_direlt
='/[^/][^/]*/\.\./'
1758 # Canonicalize the path of ld
1759 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1760 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1761 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1763 test -z "$LD" && LD
="$ac_prog"
1766 # If it fails, then pretend we aren't using GCC.
1770 # If it is relative, then search for the first ld in PATH.
1774 elif test "$with_gnu_ld" = yes; then
1775 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1776 echo "configure:1777: checking for GNU ld" >&5
1778 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1779 echo "configure:1780: checking for non-GNU ld" >&5
1781 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1782 echo $ac_n "(cached) $ac_c" 1>&6
1784 if test -z "$LD"; then
1785 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1786 for ac_dir
in $PATH; do
1787 test -z "$ac_dir" && ac_dir
=.
1788 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
1789 ac_cv_path_LD
="$ac_dir/$ac_prog"
1790 # Check to see if the program is GNU ld. I'd rather use --version,
1791 # but apparently some GNU ld's only accept -v.
1792 # Break only if it was the GNU/non-GNU ld that we prefer.
1793 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1794 test "$with_gnu_ld" != no
&& break
1796 test "$with_gnu_ld" != yes && break
1802 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1807 if test -n "$LD"; then
1808 echo "$ac_t""$LD" 1>&6
1810 echo "$ac_t""no" 1>&6
1812 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1813 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1814 echo "configure:1815: checking if the linker ($LD) is GNU ld" >&5
1815 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1816 echo $ac_n "(cached) $ac_c" 1>&6
1818 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1819 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1820 ac_cv_prog_gnu_ld
=yes
1822 ac_cv_prog_gnu_ld
=no
1826 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1827 with_gnu_ld
=$ac_cv_prog_gnu_ld
1830 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1831 echo "configure:1832: checking for $LD option to reload object files" >&5
1832 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1833 echo $ac_n "(cached) $ac_c" 1>&6
1835 lt_cv_ld_reload_flag
='-r'
1838 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1839 reload_flag
=$lt_cv_ld_reload_flag
1840 test -n "$reload_flag" && reload_flag
=" $reload_flag"
1842 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1843 echo "configure:1844: checking for BSD-compatible nm" >&5
1844 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1845 echo $ac_n "(cached) $ac_c" 1>&6
1847 if test -n "$NM"; then
1848 # Let the user override the test.
1851 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1852 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1853 test -z "$ac_dir" && ac_dir
=.
1854 tmp_nm
=$ac_dir/${ac_tool_prefix}nm
1855 if test -f $tmp_nm ||
test -f $tmp_nm$ac_exeext ; then
1856 # Check to see if the nm accepts a BSD-compat flag.
1857 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1858 # nm: unknown option "B" ignored
1859 # Tru64's nm complains that /dev/null is an invalid object file
1860 if ($tmp_nm -B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep '(/dev/null|Invalid file or object type)' >/dev
/null
; then
1861 ac_cv_path_NM
="$tmp_nm -B"
1863 elif ($tmp_nm -p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1864 ac_cv_path_NM
="$tmp_nm -p"
1867 ac_cv_path_NM
=${ac_cv_path_NM="$tmp_nm"} # keep the first match, but
1868 continue # so that we can try to find one that supports BSD flags
1873 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1878 echo "$ac_t""$NM" 1>&6
1880 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1881 echo "configure:1882: checking whether ln -s works" >&5
1882 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1883 echo $ac_n "(cached) $ac_c" 1>&6
1886 if ln -s X conftestdata
2>/dev
/null
1889 ac_cv_prog_LN_S
="ln -s"
1894 LN_S
="$ac_cv_prog_LN_S"
1895 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1896 echo "$ac_t""yes" 1>&6
1898 echo "$ac_t""no" 1>&6
1901 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1902 echo "configure:1903: checking how to recognise dependant libraries" >&5
1903 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1904 echo $ac_n "(cached) $ac_c" 1>&6
1906 lt_cv_file_magic_cmd
='$MAGIC_CMD'
1907 lt_cv_file_magic_test_file
=
1908 lt_cv_deplibs_check_method
='unknown'
1909 # Need to set the preceding variable on all platforms that support
1910 # interlibrary dependencies.
1911 # 'none' -- dependencies not supported.
1912 # `unknown' -- same as none, but documents that we really don't know.
1913 # 'pass_all' -- all dependencies passed with no checks.
1914 # 'test_compile' -- check by making test program.
1915 # 'file_magic [regex]' -- check by looking for files in library path
1916 # which responds to the $file_magic_cmd with a given egrep regex.
1917 # If you have `file' or equivalent on your system and you're not sure
1918 # whether `pass_all' will *always* work, you probably want this one.
1922 lt_cv_deplibs_check_method
=pass_all
1926 lt_cv_deplibs_check_method
=pass_all
1930 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1931 lt_cv_file_magic_cmd
='/usr/bin/file -L'
1932 lt_cv_file_magic_test_file
=/shlib
/libc.so
1935 cygwin
* | mingw
* |pw32
*)
1936 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
1937 lt_cv_file_magic_cmd
='$OBJDUMP -f'
1941 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
1944 # Not sure whether the presence of OpenBSD here was a mistake.
1945 # Let's accept both of them until this is cleared up.
1946 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1947 lt_cv_file_magic_cmd
=/usr
/bin
/file
1948 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
1952 lt_cv_deplibs_check_method
=pass_all
1957 lt_cv_deplibs_check_method
=pass_all
1961 # TODO: Does this work for hpux-11 too?
1962 lt_cv_deplibs_check_method
='file_magic (s0-90-90-9|PA-RISC0-9.0-9) shared library'
1963 lt_cv_file_magic_cmd
=/usr
/bin
/file
1964 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
1970 # this will be overridden with pass_all, but let us keep it just in case
1971 lt_cv_deplibs_check_method
="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1975 *-32|
*"-32 ") libmagic
=32-bit;;
1976 *-n32|
*"-n32 ") libmagic
=N32
;;
1977 *-64|
*"-64 ") libmagic
=64-bit;;
1978 *) libmagic
=never-match
;;
1980 # this will be overridden with pass_all, but let us keep it just in case
1981 lt_cv_deplibs_check_method
="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1984 lt_cv_file_magic_test_file
=`echo /lib${libsuff}/libc.so*`
1985 lt_cv_deplibs_check_method
=pass_all
1988 # This must be Linux ELF.
1991 alpha
* | i
*86 | powerpc
* | sparc
* | ia64
* )
1992 lt_cv_deplibs_check_method
=pass_all
;;
1994 # glibc up to 2.1.1 does not perform some relocations on ARM
1995 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1997 lt_cv_file_magic_test_file
=`echo /lib/libc.so* /lib/libc-*.so`
2001 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then :
2003 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
2004 lt_cv_file_magic_cmd
='/usr/bin/file -L'
2005 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
2009 osf3
* | osf4
* | osf5
*)
2010 # this will be overridden with pass_all, but let us keep it just in case
2011 lt_cv_deplibs_check_method
='file_magic COFF format alpha shared library'
2012 lt_cv_file_magic_test_file
=/shlib
/libc.so
2013 lt_cv_deplibs_check_method
=pass_all
2017 lt_cv_deplibs_check_method
=pass_all
2021 lt_cv_deplibs_check_method
=pass_all
2022 lt_cv_file_magic_test_file
=/lib
/libc.so
2025 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
2026 case "$host_vendor" in
2028 lt_cv_deplibs_check_method
=pass_all
2031 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]'
2032 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
2040 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2041 file_magic_cmd
=$lt_cv_file_magic_cmd
2042 deplibs_check_method
=$lt_cv_deplibs_check_method
2044 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2045 echo "configure:2046: checking for object suffix" >&5
2046 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2047 echo $ac_n "(cached) $ac_c" 1>&6
2050 echo 'int i = 1;' > conftest.
$ac_ext
2051 if { (eval echo configure
:2052: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2052 for ac_file
in conftest.
*; do
2055 *) ac_cv_objext
=`echo $ac_file | sed -e s/conftest.//` ;;
2059 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2064 echo "$ac_t""$ac_cv_objext" 1>&6
2065 OBJEXT
=$ac_cv_objext
2066 ac_objext
=$ac_cv_objext
2068 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2070 # Only perform the check for file, if the check method requires it
2071 case "$deplibs_check_method" in
2073 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2074 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2075 echo "configure:2076: checking for ${ac_tool_prefix}file" >&5
2076 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2077 echo $ac_n "(cached) $ac_c" 1>&6
2079 case "$MAGIC_CMD" in
2081 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
2084 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
2087 ac_save_MAGIC_CMD
="$MAGIC_CMD"
2088 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2089 ac_dummy
="/usr/bin:$PATH"
2090 for ac_dir
in $ac_dummy; do
2091 test -z "$ac_dir" && ac_dir
=.
2092 if test -f $ac_dir/${ac_tool_prefix}file; then
2093 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
2094 if test -n "$file_magic_test_file"; then
2095 case "$deplibs_check_method" in
2097 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2098 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
2099 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
2100 egrep "$file_magic_regex" > /dev
/null
; then
2105 *** Warning: the command libtool uses to detect shared libraries,
2106 *** $file_magic_cmd, produces output that libtool cannot recognize.
2107 *** The result is that libtool may fail to recognize shared libraries
2108 *** as such. This will affect the creation of libtool libraries that
2109 *** depend on shared libraries, but programs linked with such libtool
2110 *** libraries will work regardless of this problem. Nevertheless, you
2111 *** may want to report the problem to your system manager and/or to
2112 *** bug-libtool@gnu.org
2122 MAGIC_CMD
="$ac_save_MAGIC_CMD"
2127 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
2128 if test -n "$MAGIC_CMD"; then
2129 echo "$ac_t""$MAGIC_CMD" 1>&6
2131 echo "$ac_t""no" 1>&6
2134 if test -z "$lt_cv_path_MAGIC_CMD"; then
2135 if test -n "$ac_tool_prefix"; then
2136 echo $ac_n "checking for file""... $ac_c" 1>&6
2137 echo "configure:2138: checking for file" >&5
2138 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2139 echo $ac_n "(cached) $ac_c" 1>&6
2141 case "$MAGIC_CMD" in
2143 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
2146 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
2149 ac_save_MAGIC_CMD
="$MAGIC_CMD"
2150 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2151 ac_dummy
="/usr/bin:$PATH"
2152 for ac_dir
in $ac_dummy; do
2153 test -z "$ac_dir" && ac_dir
=.
2154 if test -f $ac_dir/file; then
2155 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
2156 if test -n "$file_magic_test_file"; then
2157 case "$deplibs_check_method" in
2159 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2160 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
2161 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
2162 egrep "$file_magic_regex" > /dev
/null
; then
2167 *** Warning: the command libtool uses to detect shared libraries,
2168 *** $file_magic_cmd, produces output that libtool cannot recognize.
2169 *** The result is that libtool may fail to recognize shared libraries
2170 *** as such. This will affect the creation of libtool libraries that
2171 *** depend on shared libraries, but programs linked with such libtool
2172 *** libraries will work regardless of this problem. Nevertheless, you
2173 *** may want to report the problem to your system manager and/or to
2174 *** bug-libtool@gnu.org
2184 MAGIC_CMD
="$ac_save_MAGIC_CMD"
2189 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
2190 if test -n "$MAGIC_CMD"; then
2191 echo "$ac_t""$MAGIC_CMD" 1>&6
2193 echo "$ac_t""no" 1>&6
2205 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2206 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
2207 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2208 echo "configure:2209: checking for $ac_word" >&5
2209 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2210 echo $ac_n "(cached) $ac_c" 1>&6
2212 if test -n "$RANLIB"; then
2213 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2215 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2217 for ac_dir
in $ac_dummy; do
2218 test -z "$ac_dir" && ac_dir
=.
2219 if test -f $ac_dir/$ac_word; then
2220 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
2227 RANLIB
="$ac_cv_prog_RANLIB"
2228 if test -n "$RANLIB"; then
2229 echo "$ac_t""$RANLIB" 1>&6
2231 echo "$ac_t""no" 1>&6
2235 if test -z "$ac_cv_prog_RANLIB"; then
2236 if test -n "$ac_tool_prefix"; then
2237 # Extract the first word of "ranlib", so it can be a program name with args.
2238 set dummy 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
="ranlib"
2257 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2260 RANLIB
="$ac_cv_prog_RANLIB"
2261 if test -n "$RANLIB"; then
2262 echo "$ac_t""$RANLIB" 1>&6
2264 echo "$ac_t""no" 1>&6
2272 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2273 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2274 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2275 echo "configure:2276: checking for $ac_word" >&5
2276 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2277 echo $ac_n "(cached) $ac_c" 1>&6
2279 if test -n "$STRIP"; then
2280 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2282 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2284 for ac_dir
in $ac_dummy; do
2285 test -z "$ac_dir" && ac_dir
=.
2286 if test -f $ac_dir/$ac_word; then
2287 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2294 STRIP
="$ac_cv_prog_STRIP"
2295 if test -n "$STRIP"; then
2296 echo "$ac_t""$STRIP" 1>&6
2298 echo "$ac_t""no" 1>&6
2302 if test -z "$ac_cv_prog_STRIP"; then
2303 if test -n "$ac_tool_prefix"; then
2304 # Extract the first word of "strip", so it can be a program name with args.
2305 set dummy 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
="strip"
2324 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP
=":"
2327 STRIP
="$ac_cv_prog_STRIP"
2328 if test -n "$STRIP"; then
2329 echo "$ac_t""$STRIP" 1>&6
2331 echo "$ac_t""no" 1>&6
2340 # Check for any special flags to pass to ltconfig.
2341 libtool_flags
="--cache-file=$cache_file"
2342 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
2343 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
2344 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
2345 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
2346 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
2347 libtool_flags
="$libtool_flags --enable-dlopen"
2349 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2350 if test "${enable_libtool_lock+set}" = set; then
2351 enableval
="$enable_libtool_lock"
2355 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
2356 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
2358 # Check whether --with-pic or --without-pic was given.
2359 if test "${with_pic+set}" = set; then
2366 test x
"$pic_mode" = xyes
&& libtool_flags
="$libtool_flags --prefer-pic"
2367 test x
"$pic_mode" = xno
&& libtool_flags
="$libtool_flags --prefer-non-pic"
2369 # Some flags need to be propagated to the compiler or linker for good
2373 # Find out which ABI we are using.
2374 echo '#line 2375 "configure"' > conftest.
$ac_ext
2375 if { (eval echo configure
:2376: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2376 case "`/usr/bin/file conftest.o`" in
2392 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2393 SAVE_CFLAGS
="$CFLAGS"
2394 CFLAGS
="$CFLAGS -belf"
2395 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2396 echo "configure:2397: checking whether the C compiler needs -belf" >&5
2397 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2398 echo $ac_n "(cached) $ac_c" 1>&6
2402 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2403 ac_cpp
='$CPP $CPPFLAGS'
2404 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2405 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2406 cross_compiling
=$ac_cv_prog_cc_cross
2408 cat > conftest.
$ac_ext <<EOF
2409 #line 2410 "configure"
2410 #include "confdefs.h"
2416 if { (eval echo configure
:2417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2418 lt_cv_cc_needs_belf
=yes
2420 echo "configure: failed program was:" >&5
2421 cat conftest.
$ac_ext >&5
2423 lt_cv_cc_needs_belf
=no
2427 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2428 ac_cpp
='$CPP $CPPFLAGS'
2429 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2430 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2431 cross_compiling
=$ac_cv_prog_cc_cross
2435 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2436 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
2437 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2438 CFLAGS
="$SAVE_CFLAGS"
2445 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2446 echo "configure:2447: checking how to run the C++ preprocessor" >&5
2447 if test -z "$CXXCPP"; then
2448 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2449 echo $ac_n "(cached) $ac_c" 1>&6
2452 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2453 ac_cpp
='$CXXCPP $CPPFLAGS'
2454 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2455 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2456 cross_compiling
=$ac_cv_prog_cxx_cross
2457 CXXCPP
="${CXX-g++} -E"
2458 cat > conftest.
$ac_ext <<EOF
2459 #line 2460 "configure"
2460 #include "confdefs.h"
2463 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2464 { (eval echo configure
:2465: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2465 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2466 if test -z "$ac_err"; then
2470 echo "configure: failed program was:" >&5
2471 cat conftest.
$ac_ext >&5
2476 ac_cv_prog_CXXCPP
="$CXXCPP"
2478 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2479 ac_cpp
='$CPP $CPPFLAGS'
2480 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2481 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2482 cross_compiling
=$ac_cv_prog_cc_cross
2485 CXXCPP
="$ac_cv_prog_CXXCPP"
2486 echo "$ac_t""$CXXCPP" 1>&6
2489 # Save cache, so that ltconfig can load it
2490 cat > confcache
<<\EOF
2491 # This file is a shell script that caches the results of configure
2492 # tests run on this system so they can be shared between configure
2493 # scripts and configure runs. It is not useful on other systems.
2494 # If it contains results you don't want to keep, you may remove or edit it.
2496 # By default, configure uses ./config.cache as the cache file,
2497 # creating it if it does not exist already. You can give configure
2498 # the --cache-file=FILE option to use a different cache file; that is
2499 # what configure does when it calls configure scripts in
2500 # subdirectories, so they share the cache.
2501 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2502 # config.status only pays attention to the cache file if you give it the
2503 # --recheck option to rerun configure.
2506 # The following way of writing the cache mishandles newlines in values,
2507 # but we know of no workaround that is simple, portable, and efficient.
2508 # So, don't put newlines in cache variables' values.
2509 # Ultrix sh set writes to stderr and can't be redirected directly,
2510 # and sets the high bit in the cache file unless we assign to the vars.
2512 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2514 # `set' does not quote correctly, so add quotes (double-quote substitution
2515 # turns \\\\ into \\, and sed turns \\ into \).
2517 -e "s/'/'\\\\''/g" \
2518 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2521 # `set' quotes correctly as required by POSIX, so do not add quotes.
2522 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2525 if cmp -s $cache_file confcache
; then
2528 if test -w $cache_file; then
2529 echo "updating cache $cache_file"
2530 cat confcache
> $cache_file
2532 echo "not updating unwritable cache $cache_file"
2538 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2539 AR
="$AR" LTCC
="$CC" CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
2540 MAGIC_CMD
="$MAGIC_CMD" LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
2541 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
2542 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
2543 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
2544 deplibs_check_method
="$deplibs_check_method" file_magic_cmd
="$file_magic_cmd" \
2545 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
2546 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh
$host \
2547 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2549 # Reload cache, that may have been modified by ltconfig
2550 if test -r "$cache_file"; then
2551 echo "loading cache $cache_file"
2554 echo "creating cache $cache_file"
2559 # This can be used to rebuild libtool when needed
2560 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2562 # Always use our own libtool.
2563 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
2565 # Redirect the config.log output again, so that the ltconfig log is not
2566 # clobbered by the next message.
2567 exec 5>>.
/config.log
2572 LIBTOOL_DEPS
=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2574 lt_save_CFLAGS
="$CFLAGS"
2575 AR
="$AR" LTCC
="$CC" CC
="$CXX" CXX
="$CXX" CFLAGS
="$CXXFLAGS" CPPFLAGS
="$CPPFLAGS" \
2576 MAGIC_CMD
="$MAGIC_CMD" LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
2577 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
2578 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
2579 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
2580 deplibs_check_method
="$deplibs_check_method" \
2581 file_magic_cmd
="$file_magic_cmd" \
2582 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
-o libtool
$libtool_flags \
2583 --build="$build" --add-tag=CXX
$ac_aux_dir/ltcf-cxx.sh
$host \
2584 ||
{ echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2586 CFLAGS
="$lt_save_CFLAGS"
2588 # Redirect the config.log output again, so that the ltconfig log is not
2589 # clobbered by the next message.
2590 exec 5>>.
/config.log
2601 if test -z "$with_target_subdir" ||
test "$with_target_subdir" = "."; then
2610 if test -d $srcdir/testsuite
; then
2612 TESTSUBDIR_FALSE
='#'
2618 # Check whether --enable-fast-character or --disable-fast-character was given.
2619 if test "${enable_fast_character+set}" = set; then
2620 enableval
="$enable_fast_character"
2624 cat >> confdefs.h
<<\EOF
2625 #define COMPACT_CHARACTER 1
2631 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
2632 if test "${enable_getenv_properties+set}" = set; then
2633 enableval
="$enable_getenv_properties"
2638 if test -n "$enable_getenv_properties"; then
2639 enable_getenv_properties
=${enable_getenv_properties_default-yes}
2641 if test "$enable_getenv_properties" = no
; then
2642 cat >> confdefs.h
<<\EOF
2643 #define DISABLE_GETENV_PROPERTIES 1
2648 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
2649 if test "${enable_libgcj_debug+set}" = set; then
2650 enableval
="$enable_libgcj_debug"
2651 if test "$enable_libgcj_debug" = yes; then
2652 cat >> confdefs.h
<<\EOF
2660 # Check whether --enable-interpreter or --disable-interpreter was given.
2661 if test "${enable_interpreter+set}" = set; then
2662 enableval
="$enable_interpreter"
2663 if test "$enable_interpreter" = yes; then
2664 # This can also be set in configure.host.
2665 libgcj_interpreter
=yes
2666 elif test "$enable_interpreter" = no
; then
2667 libgcj_interpreter
=no
2672 if test "$libgcj_interpreter" = yes; then
2673 cat >> confdefs.h
<<\EOF
2674 #define INTERPRETER 1
2680 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
2681 if test "${enable_sjlj_exceptions+set}" = set; then
2682 enableval
="$enable_sjlj_exceptions"
2683 if test "$enable_sjlj_exceptions" = yes; then
2684 # This can be set in configure.host.
2690 if test "$libgcj_sjlj" = yes; then
2691 EXCEPTIONSPEC
="-fsjlj-exceptions"
2692 cat >> confdefs.h
<<\EOF
2693 #define SJLJ_EXCEPTIONS 1
2699 if test "$ac_cv_prog_gnu_ld" = yes; then
2700 FORCELIBGCCSPEC
="-u __rethrow -u __frame_state_for -lgcc"
2703 echo $ac_n "checking for data_start""... $ac_c" 1>&6
2704 echo "configure:2705: checking for data_start" >&5
2707 cat > conftest.
$ac_ext <<EOF
2708 #line 2709 "configure"
2709 #include "confdefs.h"
2710 extern int data_start;
2712 return ((int) &data_start);
2715 if { (eval echo configure
:2716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2717 echo "$ac_t""found it" 1>&6
2719 echo "configure: failed program was:" >&5
2720 cat conftest.
$ac_ext >&5
2722 LIBDATASTARTSPEC
="-u data_start libgcjdata.a%s"
2723 NEEDS_DATA_START
=yes
2724 echo "$ac_t""missing" 1>&6
2729 # Check whether --enable-java-net or --disable-java-net was given.
2730 if test "${enable_java_net+set}" = set; then
2731 enableval
="$enable_java_net"
2736 if test -n "$enable_java_net"; then
2737 enable_java_net
=${enable_java_net_default-yes}
2739 if test "$enable_java_net" = no
; then
2740 cat >> confdefs.h
<<\EOF
2741 #define DISABLE_JAVA_NET 1
2746 # Check whether --enable-jvmpi or --disable-jvmpi was given.
2747 if test "${enable_jvmpi+set}" = set; then
2748 enableval
="$enable_jvmpi"
2753 if test "$enable_jvmpi" != no
; then
2754 cat >> confdefs.h
<<\EOF
2755 #define ENABLE_JVMPI 1
2761 # Check whether --with-ecos or --without-ecos was given.
2762 if test "${with_ecos+set}" = set; then
2763 withval
="$with_ecos"
2764 TARGET_ECOS
="$with_ecos"
2769 case "$TARGET_ECOS" in
2771 FILE_DESCRIPTOR
=natFileDescriptorPosix.cc
2772 PROCESS
=${PROCESS-Posix}
2775 FILE_DESCRIPTOR
=natFileDescriptorEcos.cc
2777 cat >> confdefs.h
<<\EOF
2784 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2785 echo "configure:2786: checking how to run the C preprocessor" >&5
2786 # On Suns, sometimes $CPP names a directory.
2787 if test -n "$CPP" && test -d "$CPP"; then
2790 if test -z "$CPP"; then
2791 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2792 echo $ac_n "(cached) $ac_c" 1>&6
2794 # This must be in double quotes, not single quotes, because CPP may get
2795 # substituted into the Makefile and "${CC-cc}" will confuse make.
2797 # On the NeXT, cc -E runs the code through the compiler's parser,
2798 # not just through cpp.
2799 cat > conftest.
$ac_ext <<EOF
2800 #line 2801 "configure"
2801 #include "confdefs.h"
2805 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2806 { (eval echo configure
:2807: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2807 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2808 if test -z "$ac_err"; then
2812 echo "configure: failed program was:" >&5
2813 cat conftest.
$ac_ext >&5
2815 CPP
="${CC-cc} -E -traditional-cpp"
2816 cat > conftest.
$ac_ext <<EOF
2817 #line 2818 "configure"
2818 #include "confdefs.h"
2822 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2823 { (eval echo configure
:2824: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2824 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2825 if test -z "$ac_err"; then
2829 echo "configure: failed program was:" >&5
2830 cat conftest.
$ac_ext >&5
2832 CPP
="${CC-cc} -nologo -E"
2833 cat > conftest.
$ac_ext <<EOF
2834 #line 2835 "configure"
2835 #include "confdefs.h"
2839 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2840 { (eval echo configure
:2841: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2841 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2842 if test -z "$ac_err"; then
2846 echo "configure: failed program was:" >&5
2847 cat conftest.
$ac_ext >&5
2856 ac_cv_prog_CPP
="$CPP"
2858 CPP
="$ac_cv_prog_CPP"
2860 ac_cv_prog_CPP
="$CPP"
2862 echo "$ac_t""$CPP" 1>&6
2864 cat > conftest.
$ac_ext <<EOF
2865 #line 2866 "configure"
2866 #include "confdefs.h"
2869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2870 egrep "uint32_t" >/dev
/null
2>&1; then
2872 cat >> confdefs.h
<<\EOF
2873 #define HAVE_INT32_DEFINED 1
2879 cat > conftest.
$ac_ext <<EOF
2880 #line 2881 "configure"
2881 #include "confdefs.h"
2882 #include <inttypes.h>
2884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2885 egrep "uint32_t" >/dev
/null
2>&1; then
2887 cat >> confdefs.h
<<\EOF
2888 #define HAVE_INT32_DEFINED 1
2894 cat > conftest.
$ac_ext <<EOF
2895 #line 2896 "configure"
2896 #include "confdefs.h"
2897 #include <sys/types.h>
2899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2900 egrep "u_int32_t" >/dev
/null
2>&1; then
2902 cat >> confdefs.h
<<\EOF
2903 #define HAVE_BSD_INT32_DEFINED 1
2909 cat > conftest.
$ac_ext <<EOF
2910 #line 2911 "configure"
2911 #include "confdefs.h"
2912 #include <sys/config.h>
2914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2915 egrep "u_int32_t" >/dev
/null
2>&1; then
2917 cat >> confdefs.h
<<\EOF
2918 #define HAVE_BSD_INT32_DEFINED 1
2926 cat > conftest.
$ac_ext <<EOF
2927 #line 2928 "configure"
2928 #include "confdefs.h"
2931 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2932 egrep "mktime" >/dev
/null
2>&1; then
2934 cat >> confdefs.h
<<\EOF
2935 #define HAVE_MKTIME 1
2941 cat > conftest.
$ac_ext <<EOF
2942 #line 2943 "configure"
2943 #include "confdefs.h"
2946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2947 egrep "localtime" >/dev
/null
2>&1; then
2949 cat >> confdefs.h
<<\EOF
2950 #define HAVE_LOCALTIME 1
2957 test -d java || mkdir java
2958 test -d java
/io || mkdir java
/io
2961 test -d java
/lang || mkdir java
/lang
2968 LIBGCJTESTSPEC
="-L`pwd`/.libs -rpath `pwd`/.libs"
2971 # Check whether --with-system-zlib or --without-system-zlib was given.
2972 if test "${with_system_zlib+set}" = set; then
2973 withval
="$with_system_zlib"
2984 echo $ac_n "checking for garbage collector to use""... $ac_c" 1>&6
2985 echo "configure:2986: checking for garbage collector to use" >&5
2986 # Check whether --enable-java-gc or --disable-java-gc was given.
2987 if test "${enable_java_gc+set}" = set; then
2988 enableval
="$enable_java_gc"
3004 echo "$ac_t""boehm" 1>&6
3005 GCDEPS
='$(top_builddir)/../boehm-gc/libgcjgc.la'
3006 # We include the path to the boehm-gc build directory.
3007 # See Makefile.am to understand why.
3008 GCLIBS
="$GCDEPS -L\$(here)/../boehm-gc/$libsubdir"
3009 GCINCS
='-I$(top_srcdir)/../boehm-gc -I$(top_builddir)/../boehm-gc'
3011 JC1GCSPEC
='-fuse-boehm-gc'
3012 GCTESTSPEC
="-L`pwd`/../boehm-gc/.libs -rpath `pwd`/../boehm-gc/.libs"
3013 GCINCS
="$GCINCS `cat ../boehm-gc/boehm-cflags`"
3016 cat >> confdefs.h
<<\EOF
3017 #define HAVE_BOEHM_GC 1
3022 echo "$ac_t""none" 1>&6
3027 { echo "configure: error: unrecognized collector \"$GC\"" 1>&2; exit 1; }
3040 echo $ac_n "checking for threads package to use""... $ac_c" 1>&6
3041 echo "configure:3042: checking for threads package to use" >&5
3042 # Check whether --enable-threads or --disable-threads was given.
3043 if test "${enable_threads+set}" = set; then
3044 enableval
="$enable_threads"
3051 if test "$THREADS" = yes; then
3057 # FIXME: this isn't correct in all cases.
3064 # FIXME: for now, choose POSIX, because we implement that.
3065 # Later, choose irix threads.
3069 # FIXME: for now, choose POSIX, because we implement that.
3070 # Later, choose solaris threads.
3088 cat >> confdefs.h
<<\EOF
3089 #define LINUX_THREADS 1
3095 decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks
)
3096 { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
3099 { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
3102 echo "$ac_t""$THREADS" 1>&6
3112 THREADLIBS
=-lpthread
3113 THREADSPEC
=-lpthread
3114 THREADOBJS
=posix-threads.lo
3115 THREADH
=posix-threads.h
3116 # MIT pthreads doesn't seem to have the mutexattr functions.
3117 # But for now we don't check for it. We just assume you aren't
3118 # using MIT pthreads.
3119 cat >> confdefs.h
<<\EOF
3120 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
3124 # If we're using the Boehm GC, then we happen to know that it
3125 # defines _REENTRANT, so we don't bother. Eww.
3126 if test "$GC" != boehm
; then
3127 cat >> confdefs.h
<<\EOF
3128 #define _REENTRANT 1
3132 cat >> confdefs.h
<<\EOF
3133 #define _POSIX_PTHREAD_SEMANTICS 1
3139 THREADOBJS
=no-threads.lo
3140 THREADH
=no-threads.h
3152 if test "$GCC" = yes; then
3164 # Find eh-common.h and support headers. If we're in the tree with
3165 # gcc, then look there. Otherwise look in compat-include. If all else
3166 # fails, just hope the user has set things up somehow.
3167 if test -r $srcdir/..
/gcc
/eh-common.h
; then
3168 EH_COMMON_INCLUDE
='-I$(top_srcdir)/../gcc -I$(top_srcdir)/../include'
3170 if test -d $srcdir/..
/compat-include
; then
3171 EH_COMMON_INCLUDE
='-I$(top_srcdir)/../compat-include'
3177 if test -n "${with_cross_host}"; then
3178 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
3179 # may not work correctly, because the compiler may not be able to
3182 # We assume newlib. This lets us hard-code the functions we know
3184 cat >> confdefs.h
<<\EOF
3185 #define HAVE_MEMMOVE 1
3188 cat >> confdefs.h
<<\EOF
3189 #define HAVE_MEMCPY 1
3192 cat >> confdefs.h
<<\EOF
3193 #define HAVE_STRERROR 1
3196 cat >> confdefs.h
<<\EOF
3197 #define HAVE_GMTIME_R 1
3200 cat >> confdefs.h
<<\EOF
3201 #define HAVE_LOCALTIME_R 1
3204 cat >> confdefs.h
<<\EOF
3205 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
3208 cat >> confdefs.h
<<\EOF
3209 #define HAVE_ALLOCA 1
3213 cat >> confdefs.h
<<\EOF
3219 ZLIBTESTSPEC
="-L`pwd`/../zlib/.libs -rpath `pwd`/../zlib/.libs"
3221 # If Canadian cross, then don't pick up tools from the build
3223 if test "$build" != "$with_cross_host"; then
3226 GCJ
="${target_alias}-gcj"
3232 for ac_func
in strerror ioctl
select fstat open fsync
sleep
3234 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3235 echo "configure:3236: checking for $ac_func" >&5
3236 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3237 echo $ac_n "(cached) $ac_c" 1>&6
3239 cat > conftest.
$ac_ext <<EOF
3240 #line 3241 "configure"
3241 #include "confdefs.h"
3242 /* System header to define __stub macros and hopefully few prototypes,
3243 which can conflict with char $ac_func(); below. */
3245 /* Override any gcc2 internal prototype to avoid an error. */
3246 /* We use char because int might match the return type of a gcc2
3247 builtin and then its argument prototype would still apply. */
3252 /* The GNU C library defines this for functions which it implements
3253 to always fail with ENOSYS. Some functions are actually named
3254 something starting with __ and the normal name is an alias. */
3255 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3263 if { (eval echo configure
:3264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3265 eval "ac_cv_func_$ac_func=yes"
3267 echo "configure: failed program was:" >&5
3268 cat conftest.
$ac_ext >&5
3270 eval "ac_cv_func_$ac_func=no"
3275 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3276 echo "$ac_t""yes" 1>&6
3277 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3278 cat >> confdefs.h
<<EOF
3279 #define $ac_tr_func 1
3283 echo "$ac_t""no" 1>&6
3287 for ac_func
in gmtime_r localtime_r readdir_r getpwuid_r getcwd
3289 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3290 echo "configure:3291: checking for $ac_func" >&5
3291 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3292 echo $ac_n "(cached) $ac_c" 1>&6
3294 cat > conftest.
$ac_ext <<EOF
3295 #line 3296 "configure"
3296 #include "confdefs.h"
3297 /* System header to define __stub macros and hopefully few prototypes,
3298 which can conflict with char $ac_func(); below. */
3300 /* Override any gcc2 internal prototype to avoid an error. */
3301 /* We use char because int might match the return type of a gcc2
3302 builtin and then its argument prototype would still apply. */
3307 /* The GNU C library defines this for functions which it implements
3308 to always fail with ENOSYS. Some functions are actually named
3309 something starting with __ and the normal name is an alias. */
3310 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3318 if { (eval echo configure
:3319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3320 eval "ac_cv_func_$ac_func=yes"
3322 echo "configure: failed program was:" >&5
3323 cat conftest.
$ac_ext >&5
3325 eval "ac_cv_func_$ac_func=no"
3330 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3331 echo "$ac_t""yes" 1>&6
3332 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3333 cat >> confdefs.h
<<EOF
3334 #define $ac_tr_func 1
3338 echo "$ac_t""no" 1>&6
3342 for ac_func
in access stat mkdir rename
rmdir unlink realpath
3344 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3345 echo "configure:3346: checking for $ac_func" >&5
3346 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3347 echo $ac_n "(cached) $ac_c" 1>&6
3349 cat > conftest.
$ac_ext <<EOF
3350 #line 3351 "configure"
3351 #include "confdefs.h"
3352 /* System header to define __stub macros and hopefully few prototypes,
3353 which can conflict with char $ac_func(); below. */
3355 /* Override any gcc2 internal prototype to avoid an error. */
3356 /* We use char because int might match the return type of a gcc2
3357 builtin and then its argument prototype would still apply. */
3362 /* The GNU C library defines this for functions which it implements
3363 to always fail with ENOSYS. Some functions are actually named
3364 something starting with __ and the normal name is an alias. */
3365 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3373 if { (eval echo configure
:3374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3375 eval "ac_cv_func_$ac_func=yes"
3377 echo "configure: failed program was:" >&5
3378 cat conftest.
$ac_ext >&5
3380 eval "ac_cv_func_$ac_func=no"
3385 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3386 echo "$ac_t""yes" 1>&6
3387 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3388 cat >> confdefs.h
<<EOF
3389 #define $ac_tr_func 1
3393 echo "$ac_t""no" 1>&6
3397 for ac_func
in iconv nl_langinfo
3399 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3400 echo "configure:3401: checking for $ac_func" >&5
3401 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3402 echo $ac_n "(cached) $ac_c" 1>&6
3404 cat > conftest.
$ac_ext <<EOF
3405 #line 3406 "configure"
3406 #include "confdefs.h"
3407 /* System header to define __stub macros and hopefully few prototypes,
3408 which can conflict with char $ac_func(); below. */
3410 /* Override any gcc2 internal prototype to avoid an error. */
3411 /* We use char because int might match the return type of a gcc2
3412 builtin and then its argument prototype would still apply. */
3417 /* The GNU C library defines this for functions which it implements
3418 to always fail with ENOSYS. Some functions are actually named
3419 something starting with __ and the normal name is an alias. */
3420 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3428 if { (eval echo configure
:3429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3430 eval "ac_cv_func_$ac_func=yes"
3432 echo "configure: failed program was:" >&5
3433 cat conftest.
$ac_ext >&5
3435 eval "ac_cv_func_$ac_func=no"
3440 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3441 echo "$ac_t""yes" 1>&6
3442 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3443 cat >> confdefs.h
<<EOF
3444 #define $ac_tr_func 1
3448 echo "$ac_t""no" 1>&6
3452 for ac_func
in inet_aton inet_addr
3454 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3455 echo "configure:3456: checking for $ac_func" >&5
3456 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3457 echo $ac_n "(cached) $ac_c" 1>&6
3459 cat > conftest.
$ac_ext <<EOF
3460 #line 3461 "configure"
3461 #include "confdefs.h"
3462 /* System header to define __stub macros and hopefully few prototypes,
3463 which can conflict with char $ac_func(); below. */
3465 /* Override any gcc2 internal prototype to avoid an error. */
3466 /* We use char because int might match the return type of a gcc2
3467 builtin and then its argument prototype would still apply. */
3472 /* The GNU C library defines this for functions which it implements
3473 to always fail with ENOSYS. Some functions are actually named
3474 something starting with __ and the normal name is an alias. */
3475 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3483 if { (eval echo configure
:3484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3485 eval "ac_cv_func_$ac_func=yes"
3487 echo "configure: failed program was:" >&5
3488 cat conftest.
$ac_ext >&5
3490 eval "ac_cv_func_$ac_func=no"
3495 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3496 echo "$ac_t""yes" 1>&6
3497 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3498 cat >> confdefs.h
<<EOF
3499 #define $ac_tr_func 1
3503 echo "$ac_t""no" 1>&6
3507 for ac_func
in inet_pton uname inet_ntoa
3509 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3510 echo "configure:3511: checking for $ac_func" >&5
3511 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3512 echo $ac_n "(cached) $ac_c" 1>&6
3514 cat > conftest.
$ac_ext <<EOF
3515 #line 3516 "configure"
3516 #include "confdefs.h"
3517 /* System header to define __stub macros and hopefully few prototypes,
3518 which can conflict with char $ac_func(); below. */
3520 /* Override any gcc2 internal prototype to avoid an error. */
3521 /* We use char because int might match the return type of a gcc2
3522 builtin and then its argument prototype would still apply. */
3527 /* The GNU C library defines this for functions which it implements
3528 to always fail with ENOSYS. Some functions are actually named
3529 something starting with __ and the normal name is an alias. */
3530 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3538 if { (eval echo configure
:3539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3540 eval "ac_cv_func_$ac_func=yes"
3542 echo "configure: failed program was:" >&5
3543 cat conftest.
$ac_ext >&5
3545 eval "ac_cv_func_$ac_func=no"
3550 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3551 echo "$ac_t""yes" 1>&6
3552 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3553 cat >> confdefs.h
<<EOF
3554 #define $ac_tr_func 1
3558 echo "$ac_t""no" 1>&6
3562 for ac_func
in backtrace fork execvp pipe
3564 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3565 echo "configure:3566: checking for $ac_func" >&5
3566 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3567 echo $ac_n "(cached) $ac_c" 1>&6
3569 cat > conftest.
$ac_ext <<EOF
3570 #line 3571 "configure"
3571 #include "confdefs.h"
3572 /* System header to define __stub macros and hopefully few prototypes,
3573 which can conflict with char $ac_func(); below. */
3575 /* Override any gcc2 internal prototype to avoid an error. */
3576 /* We use char because int might match the return type of a gcc2
3577 builtin and then its argument prototype would still apply. */
3582 /* The GNU C library defines this for functions which it implements
3583 to always fail with ENOSYS. Some functions are actually named
3584 something starting with __ and the normal name is an alias. */
3585 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3593 if { (eval echo configure
:3594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3595 eval "ac_cv_func_$ac_func=yes"
3597 echo "configure: failed program was:" >&5
3598 cat conftest.
$ac_ext >&5
3600 eval "ac_cv_func_$ac_func=no"
3605 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3606 echo "$ac_t""yes" 1>&6
3607 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3608 cat >> confdefs.h
<<EOF
3609 #define $ac_tr_func 1
3613 echo "$ac_t""no" 1>&6
3617 for ac_hdr
in execinfo.h unistd.h dlfcn.h
3619 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3620 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3621 echo "configure:3622: checking for $ac_hdr" >&5
3622 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3623 echo $ac_n "(cached) $ac_c" 1>&6
3625 cat > conftest.
$ac_ext <<EOF
3626 #line 3627 "configure"
3627 #include "confdefs.h"
3630 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3631 { (eval echo configure
:3632: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3632 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3633 if test -z "$ac_err"; then
3635 eval "ac_cv_header_$ac_safe=yes"
3638 echo "configure: failed program was:" >&5
3639 cat conftest.
$ac_ext >&5
3641 eval "ac_cv_header_$ac_safe=no"
3645 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3646 echo "$ac_t""yes" 1>&6
3647 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3648 cat >> confdefs.h
<<EOF
3649 #define $ac_tr_hdr 1
3653 echo "$ac_t""no" 1>&6
3657 echo $ac_n "checking for dladdr in -ldl""... $ac_c" 1>&6
3658 echo "configure:3659: checking for dladdr in -ldl" >&5
3659 ac_lib_var
=`echo dl'_'dladdr | sed 'y%./+-%__p_%'`
3660 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3661 echo $ac_n "(cached) $ac_c" 1>&6
3663 ac_save_LIBS
="$LIBS"
3665 cat > conftest.
$ac_ext <<EOF
3666 #line 3667 "configure"
3667 #include "confdefs.h"
3668 /* Override any gcc2 internal prototype to avoid an error. */
3669 /* We use char because int might match the return type of a gcc2
3670 builtin and then its argument prototype would still apply. */
3677 if { (eval echo configure
:3678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3679 eval "ac_cv_lib_$ac_lib_var=yes"
3681 echo "configure: failed program was:" >&5
3682 cat conftest.
$ac_ext >&5
3684 eval "ac_cv_lib_$ac_lib_var=no"
3687 LIBS
="$ac_save_LIBS"
3690 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3691 echo "$ac_t""yes" 1>&6
3693 cat >> confdefs.h
<<\EOF
3694 #define HAVE_DLADDR 1
3698 echo "$ac_t""no" 1>&6
3701 for ac_file
in /proc
/self
/exe
3704 ac_safe
=`echo "$ac_file" | sed 'y%./+-%__p_%'`
3705 echo $ac_n "checking for $ac_file""... $ac_c" 1>&6
3706 echo "configure:3707: checking for $ac_file" >&5
3707 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
3708 echo $ac_n "(cached) $ac_c" 1>&6
3710 if test "$cross_compiling" = yes; then
3711 { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
3713 if test -r $ac_file; then
3714 eval "ac_cv_file_$ac_safe=yes"
3716 eval "ac_cv_file_$ac_safe=no"
3720 if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
3721 echo "$ac_t""yes" 1>&6
3722 ac_tr_file
=HAVE_
`echo $ac_file | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3723 cat >> confdefs.h
<<EOF
3724 #define $ac_tr_file 1
3727 cat >> confdefs.h
<<\EOF
3728 #define HAVE_PROC_SELF_EXE 1
3732 echo "$ac_t""no" 1>&6
3738 for ac_func
in gethostbyname_r
3740 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3741 echo "configure:3742: checking for $ac_func" >&5
3742 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3743 echo $ac_n "(cached) $ac_c" 1>&6
3745 cat > conftest.
$ac_ext <<EOF
3746 #line 3747 "configure"
3747 #include "confdefs.h"
3748 /* System header to define __stub macros and hopefully few prototypes,
3749 which can conflict with char $ac_func(); below. */
3751 /* Override any gcc2 internal prototype to avoid an error. */
3752 /* We use char because int might match the return type of a gcc2
3753 builtin and then its argument prototype would still apply. */
3758 /* The GNU C library defines this for functions which it implements
3759 to always fail with ENOSYS. Some functions are actually named
3760 something starting with __ and the normal name is an alias. */
3761 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3769 if { (eval echo configure
:3770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3771 eval "ac_cv_func_$ac_func=yes"
3773 echo "configure: failed program was:" >&5
3774 cat conftest.
$ac_ext >&5
3776 eval "ac_cv_func_$ac_func=no"
3781 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3782 echo "$ac_t""yes" 1>&6
3783 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3784 cat >> confdefs.h
<<EOF
3785 #define $ac_tr_func 1
3788 cat >> confdefs.h
<<\EOF
3789 #define HAVE_GETHOSTBYNAME_R 1
3792 # There are two different kinds of gethostbyname_r.
3793 # We look for the one that returns `int'.
3794 # Hopefully this check is robust enough.
3795 cat > conftest.
$ac_ext <<EOF
3796 #line 3797 "configure"
3797 #include "confdefs.h"
3800 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3801 egrep "int.*gethostbyname_r" >/dev
/null
2>&1; then
3804 cat >> confdefs.h
<<\EOF
3805 #define GETHOSTBYNAME_R_RETURNS_INT 1
3813 *" -D_REENTRANT "*) ;;
3815 echo $ac_n "checking whether gethostbyname_r declaration requires -D_REENTRANT""... $ac_c" 1>&6
3816 echo "configure:3817: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
3817 if eval "test \"`echo '$''{'libjava_cv_gethostbyname_r_needs_reentrant'+set}'`\" = set"; then
3818 echo $ac_n "(cached) $ac_c" 1>&6
3822 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3823 ac_cpp
='$CXXCPP $CPPFLAGS'
3824 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3825 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3826 cross_compiling
=$ac_cv_prog_cxx_cross
3828 cat > conftest.
$ac_ext <<EOF
3829 #line 3830 "configure"
3830 #include "confdefs.h"
3833 gethostbyname_r("", 0, 0);
3836 if { (eval echo configure
:3837: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3838 libjava_cv_gethostbyname_r_needs_reentrant
=no
3840 echo "configure: failed program was:" >&5
3841 cat conftest.
$ac_ext >&5
3843 CPPFLAGS_SAVE
="$CPPFLAGS"
3844 CPPFLAGS
="$CPPFLAGS -D_REENTRANT"
3845 cat > conftest.
$ac_ext <<EOF
3846 #line 3847 "configure"
3847 #include "confdefs.h"
3850 gethostbyname_r("", 0, 0);
3853 if { (eval echo configure
:3854: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3855 libjava_cv_gethostbyname_r_needs_reentrant
=yes
3857 echo "configure: failed program was:" >&5
3858 cat conftest.
$ac_ext >&5
3860 libjava_cv_gethostbyname_r_needs_reentrant
=fail
3863 CPPFLAGS
="$CPPFLAGS_SAVE"
3868 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3869 ac_cpp
='$CPP $CPPFLAGS'
3870 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3871 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3872 cross_compiling
=$ac_cv_prog_cc_cross
3877 echo "$ac_t""$libjava_cv_gethostbyname_r_needs_reentrant" 1>&6
3878 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes
; then
3879 cat >> confdefs.h
<<\EOF
3880 #define _REENTRANT 1
3887 echo $ac_n "checking for struct hostent_data""... $ac_c" 1>&6
3888 echo "configure:3889: checking for struct hostent_data" >&5
3889 if eval "test \"`echo '$''{'libjava_cv_struct_hostent_data'+set}'`\" = set"; then
3890 echo $ac_n "(cached) $ac_c" 1>&6
3892 cat > conftest.
$ac_ext <<EOF
3893 #line 3894 "configure"
3894 #include "confdefs.h"
3896 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
3897 # define _REENTRANT 1
3901 struct hostent_data data;
3904 if { (eval echo configure
:3905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3906 libjava_cv_struct_hostent_data
=yes
3908 echo "configure: failed program was:" >&5
3909 cat conftest.
$ac_ext >&5
3911 libjava_cv_struct_hostent_data
=no
3916 echo "$ac_t""$libjava_cv_struct_hostent_data" 1>&6
3917 if test "x$libjava_cv_struct_hostent_data" = xyes
; then
3918 cat >> confdefs.h
<<\EOF
3919 #define HAVE_STRUCT_HOSTENT_DATA 1
3925 echo "$ac_t""no" 1>&6
3930 for ac_func
in gethostbyaddr_r
3932 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3933 echo "configure:3934: checking for $ac_func" >&5
3934 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3935 echo $ac_n "(cached) $ac_c" 1>&6
3937 cat > conftest.
$ac_ext <<EOF
3938 #line 3939 "configure"
3939 #include "confdefs.h"
3940 /* System header to define __stub macros and hopefully few prototypes,
3941 which can conflict with char $ac_func(); below. */
3943 /* Override any gcc2 internal prototype to avoid an error. */
3944 /* We use char because int might match the return type of a gcc2
3945 builtin and then its argument prototype would still apply. */
3950 /* The GNU C library defines this for functions which it implements
3951 to always fail with ENOSYS. Some functions are actually named
3952 something starting with __ and the normal name is an alias. */
3953 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3961 if { (eval echo configure
:3962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3963 eval "ac_cv_func_$ac_func=yes"
3965 echo "configure: failed program was:" >&5
3966 cat conftest.
$ac_ext >&5
3968 eval "ac_cv_func_$ac_func=no"
3973 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3974 echo "$ac_t""yes" 1>&6
3975 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3976 cat >> confdefs.h
<<EOF
3977 #define $ac_tr_func 1
3980 cat >> confdefs.h
<<\EOF
3981 #define HAVE_GETHOSTBYADDR_R 1
3984 # There are two different kinds of gethostbyaddr_r.
3985 # We look for the one that returns `int'.
3986 # Hopefully this check is robust enough.
3987 cat > conftest.
$ac_ext <<EOF
3988 #line 3989 "configure"
3989 #include "confdefs.h"
3992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3993 egrep "int.*gethostbyaddr_r" >/dev
/null
2>&1; then
3996 cat >> confdefs.h
<<\EOF
3997 #define GETHOSTBYADDR_R_RETURNS_INT 1
4004 echo "$ac_t""no" 1>&6
4009 for ac_func
in gethostname
4011 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4012 echo "configure:4013: checking for $ac_func" >&5
4013 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4014 echo $ac_n "(cached) $ac_c" 1>&6
4016 cat > conftest.
$ac_ext <<EOF
4017 #line 4018 "configure"
4018 #include "confdefs.h"
4019 /* System header to define __stub macros and hopefully few prototypes,
4020 which can conflict with char $ac_func(); below. */
4022 /* Override any gcc2 internal prototype to avoid an error. */
4023 /* We use char because int might match the return type of a gcc2
4024 builtin and then its argument prototype would still apply. */
4029 /* The GNU C library defines this for functions which it implements
4030 to always fail with ENOSYS. Some functions are actually named
4031 something starting with __ and the normal name is an alias. */
4032 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4040 if { (eval echo configure
:4041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4042 eval "ac_cv_func_$ac_func=yes"
4044 echo "configure: failed program was:" >&5
4045 cat conftest.
$ac_ext >&5
4047 eval "ac_cv_func_$ac_func=no"
4052 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4053 echo "$ac_t""yes" 1>&6
4054 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4055 cat >> confdefs.h
<<EOF
4056 #define $ac_tr_func 1
4059 cat >> confdefs.h
<<\EOF
4060 #define HAVE_GETHOSTNAME 1
4063 cat > conftest.
$ac_ext <<EOF
4064 #line 4065 "configure"
4065 #include "confdefs.h"
4068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4069 egrep "gethostname" >/dev
/null
2>&1; then
4072 cat >> confdefs.h
<<\EOF
4073 #define HAVE_GETHOSTNAME_DECL 1
4080 echo "$ac_t""no" 1>&6
4085 # Look for these functions in the thread library, but only bother
4086 # if using POSIX threads.
4087 if test "$THREADS" = posix
; then
4089 LIBS
="$LIBS $THREADLIBS"
4090 # Some POSIX thread systems don't have pthread_mutexattr_settype.
4092 for ac_func
in pthread_mutexattr_settype pthread_mutexattr_setkind_np
4094 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4095 echo "configure:4096: checking for $ac_func" >&5
4096 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4097 echo $ac_n "(cached) $ac_c" 1>&6
4099 cat > conftest.
$ac_ext <<EOF
4100 #line 4101 "configure"
4101 #include "confdefs.h"
4102 /* System header to define __stub macros and hopefully few prototypes,
4103 which can conflict with char $ac_func(); below. */
4105 /* Override any gcc2 internal prototype to avoid an error. */
4106 /* We use char because int might match the return type of a gcc2
4107 builtin and then its argument prototype would still apply. */
4112 /* The GNU C library defines this for functions which it implements
4113 to always fail with ENOSYS. Some functions are actually named
4114 something starting with __ and the normal name is an alias. */
4115 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4123 if { (eval echo configure
:4124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4125 eval "ac_cv_func_$ac_func=yes"
4127 echo "configure: failed program was:" >&5
4128 cat conftest.
$ac_ext >&5
4130 eval "ac_cv_func_$ac_func=no"
4135 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4136 echo "$ac_t""yes" 1>&6
4137 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4138 cat >> confdefs.h
<<EOF
4139 #define $ac_tr_func 1
4143 echo "$ac_t""no" 1>&6
4148 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
4149 # Solaris 7 the name librt is preferred.
4150 for ac_func
in sched_yield
4152 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4153 echo "configure:4154: checking for $ac_func" >&5
4154 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4155 echo $ac_n "(cached) $ac_c" 1>&6
4157 cat > conftest.
$ac_ext <<EOF
4158 #line 4159 "configure"
4159 #include "confdefs.h"
4160 /* System header to define __stub macros and hopefully few prototypes,
4161 which can conflict with char $ac_func(); below. */
4163 /* Override any gcc2 internal prototype to avoid an error. */
4164 /* We use char because int might match the return type of a gcc2
4165 builtin and then its argument prototype would still apply. */
4170 /* The GNU C library defines this for functions which it implements
4171 to always fail with ENOSYS. Some functions are actually named
4172 something starting with __ and the normal name is an alias. */
4173 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4181 if { (eval echo configure
:4182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4183 eval "ac_cv_func_$ac_func=yes"
4185 echo "configure: failed program was:" >&5
4186 cat conftest.
$ac_ext >&5
4188 eval "ac_cv_func_$ac_func=no"
4193 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4194 echo "$ac_t""yes" 1>&6
4195 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4196 cat >> confdefs.h
<<EOF
4197 #define $ac_tr_func 1
4201 echo "$ac_t""no" 1>&6
4202 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
4203 echo "configure:4204: checking for sched_yield in -lrt" >&5
4204 ac_lib_var
=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
4205 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4206 echo $ac_n "(cached) $ac_c" 1>&6
4208 ac_save_LIBS
="$LIBS"
4210 cat > conftest.
$ac_ext <<EOF
4211 #line 4212 "configure"
4212 #include "confdefs.h"
4213 /* Override any gcc2 internal prototype to avoid an error. */
4214 /* We use char because int might match the return type of a gcc2
4215 builtin and then its argument prototype would still apply. */
4222 if { (eval echo configure
:4223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4224 eval "ac_cv_lib_$ac_lib_var=yes"
4226 echo "configure: failed program was:" >&5
4227 cat conftest.
$ac_ext >&5
4229 eval "ac_cv_lib_$ac_lib_var=no"
4232 LIBS
="$ac_save_LIBS"
4235 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4236 echo "$ac_t""yes" 1>&6
4238 cat >> confdefs.h
<<\EOF
4239 #define HAVE_SCHED_YIELD 1
4242 THREADLIBS
="$THREADLIBS -lrt"
4243 THREADSPEC
="$THREADSPEC -lrt"
4245 echo "$ac_t""no" 1>&6
4247 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
4248 echo "configure:4249: checking for sched_yield in -lposix4" >&5
4249 ac_lib_var
=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
4250 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4251 echo $ac_n "(cached) $ac_c" 1>&6
4253 ac_save_LIBS
="$LIBS"
4254 LIBS
="-lposix4 $LIBS"
4255 cat > conftest.
$ac_ext <<EOF
4256 #line 4257 "configure"
4257 #include "confdefs.h"
4258 /* Override any gcc2 internal prototype to avoid an error. */
4259 /* We use char because int might match the return type of a gcc2
4260 builtin and then its argument prototype would still apply. */
4267 if { (eval echo configure
:4268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4269 eval "ac_cv_lib_$ac_lib_var=yes"
4271 echo "configure: failed program was:" >&5
4272 cat conftest.
$ac_ext >&5
4274 eval "ac_cv_lib_$ac_lib_var=no"
4277 LIBS
="$ac_save_LIBS"
4280 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4281 echo "$ac_t""yes" 1>&6
4283 cat >> confdefs.h
<<\EOF
4284 #define HAVE_SCHED_YIELD 1
4287 THREADLIBS
="$THREADLIBS -lposix4"
4288 THREADSPEC
="$THREADSPEC -lposix4"
4290 echo "$ac_t""no" 1>&6
4300 # We can save a little space at runtime if the mutex has m_count
4301 # or __m_count. This is a nice hack for Linux.
4302 cat > conftest.
$ac_ext <<EOF
4303 #line 4304 "configure"
4304 #include "confdefs.h"
4305 #include <pthread.h>
4308 extern pthread_mutex_t *mutex; int q = mutex->m_count;
4312 if { (eval echo configure
:4313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4314 cat >> confdefs.h
<<\EOF
4315 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
4319 echo "configure: failed program was:" >&5
4320 cat conftest.
$ac_ext >&5
4323 cat > conftest.
$ac_ext <<EOF
4324 #line 4325 "configure"
4325 #include "confdefs.h"
4326 #include <pthread.h>
4329 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
4333 if { (eval echo configure
:4334: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4335 cat >> confdefs.h
<<\EOF
4336 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
4340 echo "configure: failed program was:" >&5
4341 cat conftest.
$ac_ext >&5
4348 # We require a way to get the time.
4350 for ac_func
in gettimeofday
time ftime
4352 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4353 echo "configure:4354: checking for $ac_func" >&5
4354 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4355 echo $ac_n "(cached) $ac_c" 1>&6
4357 cat > conftest.
$ac_ext <<EOF
4358 #line 4359 "configure"
4359 #include "confdefs.h"
4360 /* System header to define __stub macros and hopefully few prototypes,
4361 which can conflict with char $ac_func(); below. */
4363 /* Override any gcc2 internal prototype to avoid an error. */
4364 /* We use char because int might match the return type of a gcc2
4365 builtin and then its argument prototype would still apply. */
4370 /* The GNU C library defines this for functions which it implements
4371 to always fail with ENOSYS. Some functions are actually named
4372 something starting with __ and the normal name is an alias. */
4373 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4381 if { (eval echo configure
:4382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4383 eval "ac_cv_func_$ac_func=yes"
4385 echo "configure: failed program was:" >&5
4386 cat conftest.
$ac_ext >&5
4388 eval "ac_cv_func_$ac_func=no"
4393 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4394 echo "$ac_t""yes" 1>&6
4395 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4396 cat >> confdefs.h
<<EOF
4397 #define $ac_tr_func 1
4401 echo "$ac_t""no" 1>&6
4405 if test "$time_found" = no
; then
4406 { echo "configure: error: no function found to get the time" 1>&2; exit 1; }
4409 for ac_func
in memmove
4411 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4412 echo "configure:4413: checking for $ac_func" >&5
4413 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4414 echo $ac_n "(cached) $ac_c" 1>&6
4416 cat > conftest.
$ac_ext <<EOF
4417 #line 4418 "configure"
4418 #include "confdefs.h"
4419 /* System header to define __stub macros and hopefully few prototypes,
4420 which can conflict with char $ac_func(); below. */
4422 /* Override any gcc2 internal prototype to avoid an error. */
4423 /* We use char because int might match the return type of a gcc2
4424 builtin and then its argument prototype would still apply. */
4429 /* The GNU C library defines this for functions which it implements
4430 to always fail with ENOSYS. Some functions are actually named
4431 something starting with __ and the normal name is an alias. */
4432 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4440 if { (eval echo configure
:4441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4442 eval "ac_cv_func_$ac_func=yes"
4444 echo "configure: failed program was:" >&5
4445 cat conftest.
$ac_ext >&5
4447 eval "ac_cv_func_$ac_func=no"
4452 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4453 echo "$ac_t""yes" 1>&6
4454 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4455 cat >> confdefs.h
<<EOF
4456 #define $ac_tr_func 1
4460 echo "$ac_t""no" 1>&6
4465 # We require memcpy.
4467 for ac_func
in memcpy
4469 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4470 echo "configure:4471: checking for $ac_func" >&5
4471 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4472 echo $ac_n "(cached) $ac_c" 1>&6
4474 cat > conftest.
$ac_ext <<EOF
4475 #line 4476 "configure"
4476 #include "confdefs.h"
4477 /* System header to define __stub macros and hopefully few prototypes,
4478 which can conflict with char $ac_func(); below. */
4480 /* Override any gcc2 internal prototype to avoid an error. */
4481 /* We use char because int might match the return type of a gcc2
4482 builtin and then its argument prototype would still apply. */
4487 /* The GNU C library defines this for functions which it implements
4488 to always fail with ENOSYS. Some functions are actually named
4489 something starting with __ and the normal name is an alias. */
4490 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4498 if { (eval echo configure
:4499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4500 eval "ac_cv_func_$ac_func=yes"
4502 echo "configure: failed program was:" >&5
4503 cat conftest.
$ac_ext >&5
4505 eval "ac_cv_func_$ac_func=no"
4510 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4511 echo "$ac_t""yes" 1>&6
4512 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4513 cat >> confdefs.h
<<EOF
4514 #define $ac_tr_func 1
4518 echo "$ac_t""no" 1>&6
4522 if test "$memcpy_found" = no
; then
4523 { echo "configure: error: memcpy is required" 1>&2; exit 1; }
4526 # Some library-finding code we stole from Tcl.
4527 #--------------------------------------------------------------------
4528 # Check for the existence of the -lsocket and -lnsl libraries.
4529 # The order here is important, so that they end up in the right
4530 # order in the command line generated by make. Here are some
4531 # special considerations:
4532 # 1. Use "connect" and "accept" to check for -lsocket, and
4533 # "gethostbyname" to check for -lnsl.
4534 # 2. Use each function name only once: can't redo a check because
4535 # autoconf caches the results of the last check and won't redo it.
4536 # 3. Use -lnsl and -lsocket only if they supply procedures that
4537 # aren't already present in the normal libraries. This is because
4538 # IRIX 5.2 has libraries, but they aren't needed and they're
4539 # bogus: they goof up name resolution if used.
4540 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
4541 # To get around this problem, check for both libraries together
4542 # if -lsocket doesn't work by itself.
4543 #--------------------------------------------------------------------
4545 echo $ac_n "checking for socket libraries""... $ac_c" 1>&6
4546 echo "configure:4547: checking for socket libraries" >&5
4547 if eval "test \"`echo '$''{'gcj_cv_lib_sockets'+set}'`\" = set"; then
4548 echo $ac_n "(cached) $ac_c" 1>&6
4552 unset ac_cv_func_connect
4553 echo $ac_n "checking for connect""... $ac_c" 1>&6
4554 echo "configure:4555: checking for connect" >&5
4555 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
4556 echo $ac_n "(cached) $ac_c" 1>&6
4558 cat > conftest.
$ac_ext <<EOF
4559 #line 4560 "configure"
4560 #include "confdefs.h"
4561 /* System header to define __stub macros and hopefully few prototypes,
4562 which can conflict with char connect(); below. */
4564 /* Override any gcc2 internal prototype to avoid an error. */
4565 /* We use char because int might match the return type of a gcc2
4566 builtin and then its argument prototype would still apply. */
4571 /* The GNU C library defines this for functions which it implements
4572 to always fail with ENOSYS. Some functions are actually named
4573 something starting with __ and the normal name is an alias. */
4574 #if defined (__stub_connect) || defined (__stub___connect)
4582 if { (eval echo configure
:4583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4584 eval "ac_cv_func_connect=yes"
4586 echo "configure: failed program was:" >&5
4587 cat conftest.
$ac_ext >&5
4589 eval "ac_cv_func_connect=no"
4594 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
4595 echo "$ac_t""yes" 1>&6
4598 echo "$ac_t""no" 1>&6
4602 if test "$gcj_checkSocket" = 1; then
4603 unset ac_cv_func_connect
4604 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4605 echo "configure:4606: checking for main in -lsocket" >&5
4606 ac_lib_var
=`echo socket'_'main | sed 'y%./+-%__p_%'`
4607 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4608 echo $ac_n "(cached) $ac_c" 1>&6
4610 ac_save_LIBS
="$LIBS"
4611 LIBS
="-lsocket $LIBS"
4612 cat > conftest.
$ac_ext <<EOF
4613 #line 4614 "configure"
4614 #include "confdefs.h"
4620 if { (eval echo configure
:4621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4622 eval "ac_cv_lib_$ac_lib_var=yes"
4624 echo "configure: failed program was:" >&5
4625 cat conftest.
$ac_ext >&5
4627 eval "ac_cv_lib_$ac_lib_var=no"
4630 LIBS
="$ac_save_LIBS"
4633 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4634 echo "$ac_t""yes" 1>&6
4635 gcj_cv_lib_sockets
="-lsocket"
4637 echo "$ac_t""no" 1>&6
4642 if test "$gcj_checkBoth" = 1; then
4644 LIBS
="$LIBS -lsocket -lnsl"
4645 unset ac_cv_func_accept
4646 echo $ac_n "checking for accept""... $ac_c" 1>&6
4647 echo "configure:4648: checking for accept" >&5
4648 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
4649 echo $ac_n "(cached) $ac_c" 1>&6
4651 cat > conftest.
$ac_ext <<EOF
4652 #line 4653 "configure"
4653 #include "confdefs.h"
4654 /* System header to define __stub macros and hopefully few prototypes,
4655 which can conflict with char accept(); below. */
4657 /* Override any gcc2 internal prototype to avoid an error. */
4658 /* We use char because int might match the return type of a gcc2
4659 builtin and then its argument prototype would still apply. */
4664 /* The GNU C library defines this for functions which it implements
4665 to always fail with ENOSYS. Some functions are actually named
4666 something starting with __ and the normal name is an alias. */
4667 #if defined (__stub_accept) || defined (__stub___accept)
4675 if { (eval echo configure
:4676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4677 eval "ac_cv_func_accept=yes"
4679 echo "configure: failed program was:" >&5
4680 cat conftest.
$ac_ext >&5
4682 eval "ac_cv_func_accept=no"
4687 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
4688 echo "$ac_t""yes" 1>&6
4690 gcj_cv_lib_sockets
="-lsocket -lnsl"
4692 echo "$ac_t""no" 1>&6
4695 unset ac_cv_func_accept
4698 unset ac_cv_func_gethostbyname
4700 LIBS
="$LIBS $gcj_cv_lib_sockets"
4701 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4702 echo "configure:4703: checking for gethostbyname" >&5
4703 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
4704 echo $ac_n "(cached) $ac_c" 1>&6
4706 cat > conftest.
$ac_ext <<EOF
4707 #line 4708 "configure"
4708 #include "confdefs.h"
4709 /* System header to define __stub macros and hopefully few prototypes,
4710 which can conflict with char gethostbyname(); below. */
4712 /* Override any gcc2 internal prototype to avoid an error. */
4713 /* We use char because int might match the return type of a gcc2
4714 builtin and then its argument prototype would still apply. */
4715 char gethostbyname();
4719 /* The GNU C library defines this for functions which it implements
4720 to always fail with ENOSYS. Some functions are actually named
4721 something starting with __ and the normal name is an alias. */
4722 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4730 if { (eval echo configure
:4731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4732 eval "ac_cv_func_gethostbyname=yes"
4734 echo "configure: failed program was:" >&5
4735 cat conftest.
$ac_ext >&5
4737 eval "ac_cv_func_gethostbyname=no"
4742 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
4743 echo "$ac_t""yes" 1>&6
4746 echo "$ac_t""no" 1>&6
4747 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
4748 echo "configure:4749: checking for main in -lnsl" >&5
4749 ac_lib_var
=`echo nsl'_'main | sed 'y%./+-%__p_%'`
4750 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4751 echo $ac_n "(cached) $ac_c" 1>&6
4753 ac_save_LIBS
="$LIBS"
4755 cat > conftest.
$ac_ext <<EOF
4756 #line 4757 "configure"
4757 #include "confdefs.h"
4763 if { (eval echo configure
:4764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4765 eval "ac_cv_lib_$ac_lib_var=yes"
4767 echo "configure: failed program was:" >&5
4768 cat conftest.
$ac_ext >&5
4770 eval "ac_cv_lib_$ac_lib_var=no"
4773 LIBS
="$ac_save_LIBS"
4776 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4777 echo "$ac_t""yes" 1>&6
4778 gcj_cv_lib_sockets
="$gcj_cv_lib_sockets -lnsl"
4780 echo "$ac_t""no" 1>&6
4785 unset ac_cv_func_gethostbyname
4790 echo "$ac_t""$gcj_cv_lib_sockets" 1>&6
4791 SYSTEMSPEC
="$SYSTEMSPEC $gcj_cv_lib_sockets"
4793 if test "$with_system_zlib" = yes; then
4794 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
4795 echo "configure:4796: checking for deflate in -lz" >&5
4796 ac_lib_var
=`echo z'_'deflate | sed 'y%./+-%__p_%'`
4797 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4798 echo $ac_n "(cached) $ac_c" 1>&6
4800 ac_save_LIBS
="$LIBS"
4802 cat > conftest.
$ac_ext <<EOF
4803 #line 4804 "configure"
4804 #include "confdefs.h"
4805 /* Override any gcc2 internal prototype to avoid an error. */
4806 /* We use char because int might match the return type of a gcc2
4807 builtin and then its argument prototype would still apply. */
4814 if { (eval echo configure
:4815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4816 eval "ac_cv_lib_$ac_lib_var=yes"
4818 echo "configure: failed program was:" >&5
4819 cat conftest.
$ac_ext >&5
4821 eval "ac_cv_lib_$ac_lib_var=no"
4824 LIBS
="$ac_save_LIBS"
4827 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4828 echo "$ac_t""yes" 1>&6
4831 echo "$ac_t""no" 1>&6
4837 ZLIBTESTSPEC
="-L`pwd`/../zlib/.libs -rpath `pwd`/../zlib/.libs"
4840 # On Solaris, and maybe other architectures, the Boehm collector
4842 if test "$GC" = boehm
; then
4843 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
4844 echo "configure:4845: checking for main in -ldl" >&5
4845 ac_lib_var
=`echo dl'_'main | sed 'y%./+-%__p_%'`
4846 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4847 echo $ac_n "(cached) $ac_c" 1>&6
4849 ac_save_LIBS
="$LIBS"
4851 cat > conftest.
$ac_ext <<EOF
4852 #line 4853 "configure"
4853 #include "confdefs.h"
4859 if { (eval echo configure
:4860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4861 eval "ac_cv_lib_$ac_lib_var=yes"
4863 echo "configure: failed program was:" >&5
4864 cat conftest.
$ac_ext >&5
4866 eval "ac_cv_lib_$ac_lib_var=no"
4869 LIBS
="$ac_save_LIBS"
4872 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4873 echo "$ac_t""yes" 1>&6
4874 SYSTEMSPEC
="$SYSTEMSPEC -ldl"
4876 echo "$ac_t""no" 1>&6
4881 if test -z "${with_multisubdir}"; then
4885 builddotdot
=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
4888 if test -x "${builddotdot}/../../gcc/gcj"; then
4889 dir
="`cd ${builddotdot}/../../gcc && pwd`"
4890 GCJ
="$dir/gcj -B`pwd`/ -B$dir/"
4898 # Create it, so that compile/link tests don't fail
4899 test -f libgcj.spec ||
touch libgcj.spec
4900 GCJ
="$GCJ -I$srcdir"
4903 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
4904 set dummy
${ac_tool_prefix}gcj
; ac_word
=$2
4905 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4906 echo "configure:4907: checking for $ac_word" >&5
4907 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
4908 echo $ac_n "(cached) $ac_c" 1>&6
4910 if test -n "$GCJ"; then
4911 ac_cv_prog_GCJ
="$GCJ" # Let the user override the test.
4913 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4915 for ac_dir
in $ac_dummy; do
4916 test -z "$ac_dir" && ac_dir
=.
4917 if test -f $ac_dir/$ac_word; then
4918 ac_cv_prog_GCJ
="${ac_tool_prefix}gcj"
4925 GCJ
="$ac_cv_prog_GCJ"
4926 if test -n "$GCJ"; then
4927 echo "$ac_t""$GCJ" 1>&6
4929 echo "$ac_t""no" 1>&6
4933 if test -z "$ac_cv_prog_GCJ"; then
4934 if test -n "$ac_tool_prefix"; then
4935 # Extract the first word of "gcj", so it can be a program name with args.
4936 set dummy gcj
; ac_word
=$2
4937 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4938 echo "configure:4939: checking for $ac_word" >&5
4939 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
4940 echo $ac_n "(cached) $ac_c" 1>&6
4942 if test -n "$GCJ"; then
4943 ac_cv_prog_GCJ
="$GCJ" # Let the user override the test.
4945 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4947 for ac_dir
in $ac_dummy; do
4948 test -z "$ac_dir" && ac_dir
=.
4949 if test -f $ac_dir/$ac_word; then
4950 ac_cv_prog_GCJ
="gcj"
4955 test -z "$ac_cv_prog_GCJ" && ac_cv_prog_GCJ
="no"
4958 GCJ
="$ac_cv_prog_GCJ"
4959 if test -n "$GCJ"; then
4960 echo "$ac_t""$GCJ" 1>&6
4962 echo "$ac_t""no" 1>&6
4970 test "x${GCJFLAGS+set}" = xset || GCJFLAGS
="-g -O2"
4974 LIBTOOL_DEPS
=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
4976 lt_save_CFLAGS
="$CFLAGS"
4977 AR
="$AR" LTCC
="$CC" CC
="$GCJ" CFLAGS
="$GCJFLAGS" CPPFLAGS
="" \
4978 MAGIC_CMD
="$MAGIC_CMD" LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
4979 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
4980 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
4981 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
4982 deplibs_check_method
="$deplibs_check_method" \
4983 file_magic_cmd
="$file_magic_cmd" \
4984 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
-o libtool
$libtool_flags \
4985 --build="$build" --add-tag=GCJ
$ac_aux_dir/ltcf-gcj.sh
$host \
4986 ||
{ echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
4988 CFLAGS
="$lt_save_CFLAGS"
4990 # Redirect the config.log output again, so that the ltconfig log is not
4991 # clobbered by the next message.
4992 exec 5>>.
/config.log
4997 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4998 echo "configure:4999: checking size of void *" >&5
4999 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
5000 echo $ac_n "(cached) $ac_c" 1>&6
5002 if test "$cross_compiling" = yes; then
5003 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5005 cat > conftest.
$ac_ext <<EOF
5006 #line 5007 "configure"
5007 #include "confdefs.h"
5011 FILE *f=fopen("conftestval", "w");
5013 fprintf(f, "%d\n", sizeof(void *));
5017 if { (eval echo configure
:5018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5019 ac_cv_sizeof_void_p
=`cat conftestval`
5021 echo "configure: failed program was:" >&5
5022 cat conftest.
$ac_ext >&5
5024 ac_cv_sizeof_void_p
=0
5030 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
5031 cat >> confdefs.h
<<EOF
5032 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5040 if test "x$ZLIBSPEC" = "x-lzgcj"; then
5041 # We include the path to the zlib build directory.
5042 # See Makefile.am to understand why.
5043 ZDEPS
='$(top_builddir)/../zlib/libzgcj.la'
5044 ZLIBS
="$ZDEPS -L\$(here)/../zlib/$libsubdir"
5045 ZINCS
='-I$(top_srcdir)/../zlib'
5058 if test "$CANADIAN" = yes; then
5067 if test "$NULL_TARGET" = yes; then
5069 NULL_TARGET_FALSE
='#'
5071 NULL_TARGET_TRUE
='#'
5076 if test "$NATIVE" = yes ||
test "$NULL_TARGET" = yes; then
5085 if test -z "$with_cross_host"; then
5087 USE_LIBDIR_FALSE
='#'
5094 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
5095 NEEDS_DATA_START_TRUE
=
5096 NEEDS_DATA_START_FALSE
='#'
5098 NEEDS_DATA_START_TRUE
='#'
5099 NEEDS_DATA_START_FALSE
=
5103 # Determine gcj version number.
5105 gcjvers
="`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`"
5107 cat >> confdefs.h
<<EOF
5108 #define GCJVERSION "$gcjvers"
5112 # See if gcj supports -fuse-divide-subroutine. gcc 2.95 does not, and
5113 # we want to continue to support that version.
5114 echo $ac_n "checking whether gcj supports -fuse-divide-subroutine""... $ac_c" 1>&6
5115 echo "configure:5116: checking whether gcj supports -fuse-divide-subroutine" >&5
5116 cat > conftest.java
<< 'END'
5117 public class conftest
{ }
5120 $GCJ -classpath $srcdir -fuse-divide-subroutine -fsyntax-only \
5121 conftest.java
> /dev
/null
2>&1 \
5124 if test "$use_fuse" = no
; then
5127 echo "$ac_t""$use_fuse" 1>&6
5131 echo $ac_n "checking for g++ -ffloat-store bug""... $ac_c" 1>&6
5132 echo "configure:5133: checking for g++ -ffloat-store bug" >&5
5133 save_CFLAGS
="$CFLAGS"
5134 CFLAGS
="-x c++ -O2 -ffloat-store"
5135 cat > conftest.
$ac_ext <<EOF
5136 #line 5137 "configure"
5137 #include "confdefs.h"
5143 if { (eval echo configure
:5144: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5145 echo "$ac_t""no" 1>&6
5147 echo "configure: failed program was:" >&5
5148 cat conftest.
$ac_ext >&5
5150 cat >> confdefs.h
<<\EOF
5151 #define __NO_MATH_INLINES 1
5154 echo "$ac_t""yes" 1>&6
5157 CFLAGS
="$save_CFLAGS"
5159 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
5161 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5162 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5163 echo "configure:5164: checking for $ac_hdr" >&5
5164 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5165 echo $ac_n "(cached) $ac_c" 1>&6
5167 cat > conftest.
$ac_ext <<EOF
5168 #line 5169 "configure"
5169 #include "confdefs.h"
5172 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5173 { (eval echo configure
:5174: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5174 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5175 if test -z "$ac_err"; then
5177 eval "ac_cv_header_$ac_safe=yes"
5180 echo "configure: failed program was:" >&5
5181 cat conftest.
$ac_ext >&5
5183 eval "ac_cv_header_$ac_safe=no"
5187 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5188 echo "$ac_t""yes" 1>&6
5189 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5190 cat >> confdefs.h
<<EOF
5191 #define $ac_tr_hdr 1
5195 echo "$ac_t""no" 1>&6
5199 for ac_hdr
in dirent.h
5201 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5202 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5203 echo "configure:5204: checking for $ac_hdr" >&5
5204 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5205 echo $ac_n "(cached) $ac_c" 1>&6
5207 cat > conftest.
$ac_ext <<EOF
5208 #line 5209 "configure"
5209 #include "confdefs.h"
5212 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5213 { (eval echo configure
:5214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5214 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5215 if test -z "$ac_err"; then
5217 eval "ac_cv_header_$ac_safe=yes"
5220 echo "configure: failed program was:" >&5
5221 cat conftest.
$ac_ext >&5
5223 eval "ac_cv_header_$ac_safe=no"
5227 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5228 echo "$ac_t""yes" 1>&6
5229 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5230 cat >> confdefs.h
<<EOF
5231 #define $ac_tr_hdr 1
5235 echo "$ac_t""no" 1>&6
5240 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5241 echo "configure:5242: checking for ANSI C header files" >&5
5242 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5243 echo $ac_n "(cached) $ac_c" 1>&6
5245 cat > conftest.
$ac_ext <<EOF
5246 #line 5247 "configure"
5247 #include "confdefs.h"
5253 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5254 { (eval echo configure
:5255: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5255 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5256 if test -z "$ac_err"; then
5258 ac_cv_header_stdc
=yes
5261 echo "configure: failed program was:" >&5
5262 cat conftest.
$ac_ext >&5
5264 ac_cv_header_stdc
=no
5268 if test $ac_cv_header_stdc = yes; then
5269 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5270 cat > conftest.
$ac_ext <<EOF
5271 #line 5272 "configure"
5272 #include "confdefs.h"
5275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5276 egrep "memchr" >/dev
/null
2>&1; then
5280 ac_cv_header_stdc
=no
5286 if test $ac_cv_header_stdc = yes; then
5287 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5288 cat > conftest.
$ac_ext <<EOF
5289 #line 5290 "configure"
5290 #include "confdefs.h"
5293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5294 egrep "free" >/dev
/null
2>&1; then
5298 ac_cv_header_stdc
=no
5304 if test $ac_cv_header_stdc = yes; then
5305 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5306 if test "$cross_compiling" = yes; then
5309 cat > conftest.
$ac_ext <<EOF
5310 #line 5311 "configure"
5311 #include "confdefs.h"
5313 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5314 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5315 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5316 int main () { int i; for (i = 0; i < 256; i++)
5317 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5321 if { (eval echo configure
:5322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5325 echo "configure: failed program was:" >&5
5326 cat conftest.
$ac_ext >&5
5328 ac_cv_header_stdc
=no
5336 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5337 if test $ac_cv_header_stdc = yes; then
5338 cat >> confdefs.h
<<\EOF
5339 #define STDC_HEADERS 1
5344 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
5345 echo "configure:5346: checking for ssize_t" >&5
5346 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
5347 echo $ac_n "(cached) $ac_c" 1>&6
5349 cat > conftest.
$ac_ext <<EOF
5350 #line 5351 "configure"
5351 #include "confdefs.h"
5352 #include <sys/types.h>
5358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5359 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
5361 ac_cv_type_ssize_t
=yes
5364 ac_cv_type_ssize_t
=no
5369 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
5370 if test $ac_cv_type_ssize_t = no
; then
5371 cat >> confdefs.h
<<\EOF
5378 echo $ac_n "checking for in_addr_t""... $ac_c" 1>&6
5379 echo "configure:5380: checking for in_addr_t" >&5
5380 cat > conftest.
$ac_ext <<EOF
5381 #line 5382 "configure"
5382 #include "confdefs.h"
5383 #include <sys/types.h>
5388 #if HAVE_NETINET_IN_H
5389 #include <netinet/in.h>
5395 if { (eval echo configure
:5396: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5397 cat >> confdefs.h
<<\EOF
5398 #define HAVE_IN_ADDR_T 1
5401 echo "$ac_t""yes" 1>&6
5403 echo "configure: failed program was:" >&5
5404 cat conftest.
$ac_ext >&5
5406 echo "$ac_t""no" 1>&6
5410 echo $ac_n "checking whether struct ip_mreq is in netinet/in.h""... $ac_c" 1>&6
5411 echo "configure:5412: checking whether struct ip_mreq is in netinet/in.h" >&5
5412 cat > conftest.
$ac_ext <<EOF
5413 #line 5414 "configure"
5414 #include "confdefs.h"
5415 #include <netinet/in.h>
5417 struct ip_mreq mreq;
5420 if { (eval echo configure
:5421: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5422 cat >> confdefs.h
<<\EOF
5423 #define HAVE_STRUCT_IP_MREQ 1
5426 echo "$ac_t""yes" 1>&6
5428 echo "configure: failed program was:" >&5
5429 cat conftest.
$ac_ext >&5
5431 echo "$ac_t""no" 1>&6
5435 echo $ac_n "checking whether struct sockaddr_in6 is in netinet/in.h""... $ac_c" 1>&6
5436 echo "configure:5437: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
5437 cat > conftest.
$ac_ext <<EOF
5438 #line 5439 "configure"
5439 #include "confdefs.h"
5440 #include <netinet/in.h>
5442 struct sockaddr_in6 addr6;
5445 if { (eval echo configure
:5446: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5447 cat >> confdefs.h
<<\EOF
5448 #define HAVE_INET6 1
5451 echo "$ac_t""yes" 1>&6
5453 echo "configure: failed program was:" >&5
5454 cat conftest.
$ac_ext >&5
5456 echo "$ac_t""no" 1>&6
5460 echo $ac_n "checking for socklen_t in sys/socket.h""... $ac_c" 1>&6
5461 echo "configure:5462: checking for socklen_t in sys/socket.h" >&5
5462 cat > conftest.
$ac_ext <<EOF
5463 #line 5464 "configure"
5464 #include "confdefs.h"
5465 #include <sys/types.h>
5466 #include <sys/socket.h>
5471 if { (eval echo configure
:5472: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5473 cat >> confdefs.h
<<\EOF
5474 #define HAVE_SOCKLEN_T 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 tm_gmtoff in struct tm""... $ac_c" 1>&6
5487 echo "configure:5488: checking for tm_gmtoff in struct tm" >&5
5488 cat > conftest.
$ac_ext <<EOF
5489 #line 5490 "configure"
5490 #include "confdefs.h"
5493 struct tm tim; tim.tm_gmtoff = 0;
5496 if { (eval echo configure
:5497: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5498 cat >> confdefs.h
<<\EOF
5499 #define STRUCT_TM_HAS_GMTOFF 1
5502 echo "$ac_t""yes" 1>&6
5504 echo "configure: failed program was:" >&5
5505 cat conftest.
$ac_ext >&5
5507 echo "$ac_t""no" 1>&6
5508 echo $ac_n "checking for global timezone variable""... $ac_c" 1>&6
5509 echo "configure:5510: checking for global timezone variable" >&5
5510 cat > conftest.
$ac_ext <<EOF
5511 #line 5512 "configure"
5512 #include "confdefs.h"
5518 if { (eval echo configure
:5519: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5520 cat >> confdefs.h
<<\EOF
5521 #define HAVE_TIMEZONE 1
5524 echo "$ac_t""yes" 1>&6
5526 echo "configure: failed program was:" >&5
5527 cat conftest.
$ac_ext >&5
5529 echo "$ac_t""no" 1>&6
5535 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5536 # for constant arguments. Useless!
5537 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5538 echo "configure:5539: checking for working alloca.h" >&5
5539 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5540 echo $ac_n "(cached) $ac_c" 1>&6
5542 cat > conftest.
$ac_ext <<EOF
5543 #line 5544 "configure"
5544 #include "confdefs.h"
5547 void *p = alloca(2 * sizeof(int));
5550 if { (eval echo configure
:5551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5552 ac_cv_header_alloca_h
=yes
5554 echo "configure: failed program was:" >&5
5555 cat conftest.
$ac_ext >&5
5557 ac_cv_header_alloca_h
=no
5562 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5563 if test $ac_cv_header_alloca_h = yes; then
5564 cat >> confdefs.h
<<\EOF
5565 #define HAVE_ALLOCA_H 1
5570 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5571 echo "configure:5572: checking for alloca" >&5
5572 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5573 echo $ac_n "(cached) $ac_c" 1>&6
5575 cat > conftest.
$ac_ext <<EOF
5576 #line 5577 "configure"
5577 #include "confdefs.h"
5580 # define alloca __builtin_alloca
5583 # include <malloc.h>
5584 # define alloca _alloca
5587 # include <alloca.h>
5592 # ifndef alloca /* predefined by HP cc +Olibcalls */
5601 char *p = (char *) alloca(1);
5604 if { (eval echo configure
:5605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5606 ac_cv_func_alloca_works
=yes
5608 echo "configure: failed program was:" >&5
5609 cat conftest.
$ac_ext >&5
5611 ac_cv_func_alloca_works
=no
5616 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5617 if test $ac_cv_func_alloca_works = yes; then
5618 cat >> confdefs.h
<<\EOF
5619 #define HAVE_ALLOCA 1
5624 if test $ac_cv_func_alloca_works = no
; then
5625 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5626 # that cause trouble. Some versions do not even contain alloca or
5627 # contain a buggy version. If you still want to use their alloca,
5628 # use ar to extract alloca.o from them instead of compiling alloca.c.
5629 ALLOCA
=alloca.
${ac_objext}
5630 cat >> confdefs.h
<<\EOF
5635 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5636 echo "configure:5637: checking whether alloca needs Cray hooks" >&5
5637 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5638 echo $ac_n "(cached) $ac_c" 1>&6
5640 cat > conftest.
$ac_ext <<EOF
5641 #line 5642 "configure"
5642 #include "confdefs.h"
5643 #if defined(CRAY) && ! defined(CRAY2)
5650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5651 egrep "webecray" >/dev
/null
2>&1; then
5662 echo "$ac_t""$ac_cv_os_cray" 1>&6
5663 if test $ac_cv_os_cray = yes; then
5664 for ac_func
in _getb67 GETB67 getb67
; do
5665 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5666 echo "configure:5667: checking for $ac_func" >&5
5667 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5668 echo $ac_n "(cached) $ac_c" 1>&6
5670 cat > conftest.
$ac_ext <<EOF
5671 #line 5672 "configure"
5672 #include "confdefs.h"
5673 /* System header to define __stub macros and hopefully few prototypes,
5674 which can conflict with char $ac_func(); below. */
5676 /* Override any gcc2 internal prototype to avoid an error. */
5677 /* We use char because int might match the return type of a gcc2
5678 builtin and then its argument prototype would still apply. */
5683 /* The GNU C library defines this for functions which it implements
5684 to always fail with ENOSYS. Some functions are actually named
5685 something starting with __ and the normal name is an alias. */
5686 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5694 if { (eval echo configure
:5695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5696 eval "ac_cv_func_$ac_func=yes"
5698 echo "configure: failed program was:" >&5
5699 cat conftest.
$ac_ext >&5
5701 eval "ac_cv_func_$ac_func=no"
5706 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5707 echo "$ac_t""yes" 1>&6
5708 cat >> confdefs.h
<<EOF
5709 #define CRAY_STACKSEG_END $ac_func
5714 echo "$ac_t""no" 1>&6
5720 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5721 echo "configure:5722: checking stack direction for C alloca" >&5
5722 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5723 echo $ac_n "(cached) $ac_c" 1>&6
5725 if test "$cross_compiling" = yes; then
5726 ac_cv_c_stack_direction
=0
5728 cat > conftest.
$ac_ext <<EOF
5729 #line 5730 "configure"
5730 #include "confdefs.h"
5731 find_stack_direction ()
5733 static char *addr = 0;
5738 return find_stack_direction ();
5741 return (&dummy > addr) ? 1 : -1;
5745 exit (find_stack_direction() < 0);
5748 if { (eval echo configure
:5749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5750 ac_cv_c_stack_direction
=1
5752 echo "configure: failed program was:" >&5
5753 cat conftest.
$ac_ext >&5
5755 ac_cv_c_stack_direction
=-1
5762 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5763 cat >> confdefs.h
<<EOF
5764 #define STACK_DIRECTION $ac_cv_c_stack_direction
5772 # Extract the first word of "$ac_prog", so it can be a program name with args.
5773 set dummy
$ac_prog; ac_word
=$2
5774 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5775 echo "configure:5776: checking for $ac_word" >&5
5776 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
5777 echo $ac_n "(cached) $ac_c" 1>&6
5779 if test -n "$PERL"; then
5780 ac_cv_prog_PERL
="$PERL" # Let the user override the test.
5782 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5784 for ac_dir
in $ac_dummy; do
5785 test -z "$ac_dir" && ac_dir
=.
5786 if test -f $ac_dir/$ac_word; then
5787 ac_cv_prog_PERL
="$ac_prog"
5794 PERL
="$ac_cv_prog_PERL"
5795 if test -n "$PERL"; then
5796 echo "$ac_t""$PERL" 1>&6
5798 echo "$ac_t""no" 1>&6
5801 test -n "$PERL" && break
5803 test -n "$PERL" || PERL
="false"
5810 SIGNAL_HANDLER
=include
/i386-signal.h
5813 SIGNAL_HANDLER
=include
/sparc-signal.h
5816 SYSDEP_SOURCES
=sysdep
/ia64.c
5817 test -d sysdep || mkdir sysdep
5820 SIGNAL_HANDLER
=include
/default-signal.h
5824 # If we're using sjlj exceptions, forget what we just learned.
5825 if test "$libgcj_sjlj" = yes; then
5826 SIGNAL_HANDLER
=include
/default-signal.h
5833 if test "${multilib}" = "yes"; then
5834 multilib_arg
="--enable-multilib"
5839 # If we find X, set shell vars x_includes and x_libraries to the
5840 # paths, otherwise set no_x=yes.
5841 # Uses ac_ vars as temps to allow command line to override cache and checks.
5842 # --without-x overrides everything else, but does not touch the cache.
5843 echo $ac_n "checking for X""... $ac_c" 1>&6
5844 echo "configure:5845: checking for X" >&5
5846 # Check whether --with-x or --without-x was given.
5847 if test "${with_x+set}" = set; then
5852 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5853 if test "x$with_x" = xno
; then
5854 # The user explicitly disabled X.
5857 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
5858 # Both variables are already set.
5861 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
5862 echo $ac_n "(cached) $ac_c" 1>&6
5864 # One or both of the vars are not set, and there is no cached value.
5865 ac_x_includes
=NO ac_x_libraries
=NO
5867 if mkdir conftestdir
; then
5869 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5870 cat > Imakefile
<<'EOF'
5872 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5874 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
5875 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5876 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5877 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5878 for ac_extension
in a so sl
; do
5879 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
5880 test -f $ac_im_libdir/libX11.
$ac_extension; then
5881 ac_im_usrlibdir
=$ac_im_libdir; break
5884 # Screen out bogus values from the imake configuration. They are
5885 # bogus both because they are the default anyway, and because
5886 # using them would break gcc on systems where it needs fixed includes.
5887 case "$ac_im_incroot" in
5889 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
5891 case "$ac_im_usrlibdir" in
5893 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
5900 if test "$ac_x_includes" = NO
; then
5901 # Guess where to find include files, by looking for this one X11 .h file.
5902 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
5904 # First, try using that file with no special directory specified.
5905 cat > conftest.
$ac_ext <<EOF
5906 #line 5907 "configure"
5907 #include "confdefs.h"
5908 #include <$x_direct_test_include>
5910 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5911 { (eval echo configure
:5912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5912 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5913 if test -z "$ac_err"; then
5915 # We can compile using X headers with no special include directory.
5919 echo "configure: failed program was:" >&5
5920 cat conftest.
$ac_ext >&5
5922 # Look for the header file in a standard set of common directories.
5923 # Check X11 before X11Rn because it is often a symlink to the current release.
5926 /usr
/X11R
6/include \
5927 /usr
/X11R
5/include \
5928 /usr
/X11R
4/include \
5931 /usr
/include
/X11R6 \
5932 /usr
/include
/X11R5 \
5933 /usr
/include
/X11R4 \
5935 /usr
/local
/X11
/include \
5936 /usr
/local
/X11R
6/include \
5937 /usr
/local
/X11R
5/include \
5938 /usr
/local
/X11R
4/include \
5940 /usr
/local
/include
/X11 \
5941 /usr
/local
/include
/X11R6 \
5942 /usr
/local
/include
/X11R5 \
5943 /usr
/local
/include
/X11R4 \
5947 /usr
/XFree86
/include
/X11 \
5950 /usr
/local
/include \
5951 /usr
/unsupported
/include \
5952 /usr
/athena
/include \
5953 /usr
/local
/x11r
5/include \
5954 /usr
/lpp
/Xamples
/include \
5956 /usr
/openwin
/include \
5957 /usr
/openwin
/share
/include \
5960 if test -r "$ac_dir/$x_direct_test_include"; then
5961 ac_x_includes
=$ac_dir
5967 fi # $ac_x_includes = NO
5969 if test "$ac_x_libraries" = NO
; then
5970 # Check for the libraries.
5972 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
5973 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
5975 # See if we find them without any special options.
5976 # Don't add to $LIBS permanently.
5977 ac_save_LIBS
="$LIBS"
5978 LIBS
="-l$x_direct_test_library $LIBS"
5979 cat > conftest.
$ac_ext <<EOF
5980 #line 5981 "configure"
5981 #include "confdefs.h"
5984 ${x_direct_test_function}()
5987 if { (eval echo configure
:5988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5989 LIBS
="$ac_save_LIBS"
5990 # We can link X programs with no special library path.
5993 echo "configure: failed program was:" >&5
5994 cat conftest.
$ac_ext >&5
5996 LIBS
="$ac_save_LIBS"
5997 # First see if replacing the include by lib works.
5998 # Check X11 before X11Rn because it is often a symlink to the current release.
5999 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
6010 /usr
/local
/X11
/lib \
6011 /usr
/local
/X11R
6/lib \
6012 /usr
/local
/X11R
5/lib \
6013 /usr
/local
/X11R
4/lib \
6015 /usr
/local
/lib
/X11 \
6016 /usr
/local
/lib
/X11R6 \
6017 /usr
/local
/lib
/X11R5 \
6018 /usr
/local
/lib
/X11R4 \
6022 /usr
/XFree86
/lib
/X11 \
6026 /usr
/unsupported
/lib \
6028 /usr
/local
/x11r
5/lib \
6029 /usr
/lpp
/Xamples
/lib \
6033 /usr
/openwin
/share
/lib \
6036 for ac_extension
in a so sl
; do
6037 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
6038 ac_x_libraries
=$ac_dir
6045 fi # $ac_x_libraries = NO
6047 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
6048 # Didn't find X anywhere. Cache the known absence of X.
6049 ac_cv_have_x
="have_x=no"
6051 # Record where we found X for the cache.
6052 ac_cv_have_x
="have_x=yes \
6053 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6057 eval "$ac_cv_have_x"
6060 if test "$have_x" != yes; then
6061 echo "$ac_t""$have_x" 1>&6
6064 # If each of the values was on the command line, it overrides each guess.
6065 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
6066 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
6067 # Update the cache value to reflect the command line values.
6068 ac_cv_have_x
="have_x=yes \
6069 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6070 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
6073 if test "$no_x" = yes; then
6074 # Not all programs may use this symbol, but it does not hurt to define it.
6075 cat >> confdefs.h
<<\EOF
6076 #define X_DISPLAY_MISSING 1
6079 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
6081 if test -n "$x_includes"; then
6082 X_CFLAGS
="$X_CFLAGS -I$x_includes"
6085 # It would also be nice to do this for all -L options, not just this one.
6086 if test -n "$x_libraries"; then
6087 X_LIBS
="$X_LIBS -L$x_libraries"
6088 # For Solaris; some versions of Sun CC require a space after -R and
6089 # others require no space. Words are not sufficient . . . .
6090 case "`(uname -sr) 2>/dev/null`" in
6092 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
6093 echo "configure:6094: checking whether -R must be followed by a space" >&5
6094 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS -R$x_libraries"
6095 cat > conftest.
$ac_ext <<EOF
6096 #line 6097 "configure"
6097 #include "confdefs.h"
6103 if { (eval echo configure
:6104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6107 echo "configure: failed program was:" >&5
6108 cat conftest.
$ac_ext >&5
6113 if test $ac_R_nospace = yes; then
6114 echo "$ac_t""no" 1>&6
6115 X_LIBS
="$X_LIBS -R$x_libraries"
6117 LIBS
="$ac_xsave_LIBS -R $x_libraries"
6118 cat > conftest.
$ac_ext <<EOF
6119 #line 6120 "configure"
6120 #include "confdefs.h"
6126 if { (eval echo configure
:6127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6130 echo "configure: failed program was:" >&5
6131 cat conftest.
$ac_ext >&5
6136 if test $ac_R_space = yes; then
6137 echo "$ac_t""yes" 1>&6
6138 X_LIBS
="$X_LIBS -R $x_libraries"
6140 echo "$ac_t""neither works" 1>&6
6143 LIBS
="$ac_xsave_LIBS"
6147 # Check for system-dependent libraries X programs must link with.
6148 # Do this before checking for the system-independent R6 libraries
6149 # (-lICE), since we may need -lsocket or whatever for X linking.
6151 if test "$ISC" = yes; then
6152 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
6154 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
6155 # libraries were built with DECnet support. And karl@cs.umb.edu says
6156 # the Alpha needs dnet_stub (dnet does not exist).
6157 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
6158 echo "configure:6159: checking for dnet_ntoa in -ldnet" >&5
6159 ac_lib_var
=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6160 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6161 echo $ac_n "(cached) $ac_c" 1>&6
6163 ac_save_LIBS
="$LIBS"
6165 cat > conftest.
$ac_ext <<EOF
6166 #line 6167 "configure"
6167 #include "confdefs.h"
6168 /* Override any gcc2 internal prototype to avoid an error. */
6169 /* We use char because int might match the return type of a gcc2
6170 builtin and then its argument prototype would still apply. */
6177 if { (eval echo configure
:6178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6179 eval "ac_cv_lib_$ac_lib_var=yes"
6181 echo "configure: failed program was:" >&5
6182 cat conftest.
$ac_ext >&5
6184 eval "ac_cv_lib_$ac_lib_var=no"
6187 LIBS
="$ac_save_LIBS"
6190 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6191 echo "$ac_t""yes" 1>&6
6192 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
6194 echo "$ac_t""no" 1>&6
6197 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
6198 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
6199 echo "configure:6200: checking for dnet_ntoa in -ldnet_stub" >&5
6200 ac_lib_var
=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6201 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6202 echo $ac_n "(cached) $ac_c" 1>&6
6204 ac_save_LIBS
="$LIBS"
6205 LIBS
="-ldnet_stub $LIBS"
6206 cat > conftest.
$ac_ext <<EOF
6207 #line 6208 "configure"
6208 #include "confdefs.h"
6209 /* Override any gcc2 internal prototype to avoid an error. */
6210 /* We use char because int might match the return type of a gcc2
6211 builtin and then its argument prototype would still apply. */
6218 if { (eval echo configure
:6219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6220 eval "ac_cv_lib_$ac_lib_var=yes"
6222 echo "configure: failed program was:" >&5
6223 cat conftest.
$ac_ext >&5
6225 eval "ac_cv_lib_$ac_lib_var=no"
6228 LIBS
="$ac_save_LIBS"
6231 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6232 echo "$ac_t""yes" 1>&6
6233 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
6235 echo "$ac_t""no" 1>&6
6240 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6241 # to get the SysV transport functions.
6242 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
6244 # The nsl library prevents programs from opening the X display
6245 # on Irix 5.2, according to dickey@clark.net.
6246 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
6247 echo "configure:6248: checking for gethostbyname" >&5
6248 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
6249 echo $ac_n "(cached) $ac_c" 1>&6
6251 cat > conftest.
$ac_ext <<EOF
6252 #line 6253 "configure"
6253 #include "confdefs.h"
6254 /* System header to define __stub macros and hopefully few prototypes,
6255 which can conflict with char gethostbyname(); below. */
6257 /* Override any gcc2 internal prototype to avoid an error. */
6258 /* We use char because int might match the return type of a gcc2
6259 builtin and then its argument prototype would still apply. */
6260 char gethostbyname();
6264 /* The GNU C library defines this for functions which it implements
6265 to always fail with ENOSYS. Some functions are actually named
6266 something starting with __ and the normal name is an alias. */
6267 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6275 if { (eval echo configure
:6276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6277 eval "ac_cv_func_gethostbyname=yes"
6279 echo "configure: failed program was:" >&5
6280 cat conftest.
$ac_ext >&5
6282 eval "ac_cv_func_gethostbyname=no"
6287 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
6288 echo "$ac_t""yes" 1>&6
6291 echo "$ac_t""no" 1>&6
6294 if test $ac_cv_func_gethostbyname = no
; then
6295 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
6296 echo "configure:6297: checking for gethostbyname in -lnsl" >&5
6297 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
6298 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6299 echo $ac_n "(cached) $ac_c" 1>&6
6301 ac_save_LIBS
="$LIBS"
6303 cat > conftest.
$ac_ext <<EOF
6304 #line 6305 "configure"
6305 #include "confdefs.h"
6306 /* Override any gcc2 internal prototype to avoid an error. */
6307 /* We use char because int might match the return type of a gcc2
6308 builtin and then its argument prototype would still apply. */
6309 char gethostbyname();
6315 if { (eval echo configure
:6316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6317 eval "ac_cv_lib_$ac_lib_var=yes"
6319 echo "configure: failed program was:" >&5
6320 cat conftest.
$ac_ext >&5
6322 eval "ac_cv_lib_$ac_lib_var=no"
6325 LIBS
="$ac_save_LIBS"
6328 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6329 echo "$ac_t""yes" 1>&6
6330 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
6332 echo "$ac_t""no" 1>&6
6337 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6338 # socket/setsockopt and other routines are undefined under SCO ODT
6339 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6340 # on later versions), says simon@lia.di.epfl.ch: it contains
6341 # gethostby* variants that don't use the nameserver (or something).
6342 # -lsocket must be given before -lnsl if both are needed.
6343 # We assume that if connect needs -lnsl, so does gethostbyname.
6344 echo $ac_n "checking for connect""... $ac_c" 1>&6
6345 echo "configure:6346: checking for connect" >&5
6346 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
6347 echo $ac_n "(cached) $ac_c" 1>&6
6349 cat > conftest.
$ac_ext <<EOF
6350 #line 6351 "configure"
6351 #include "confdefs.h"
6352 /* System header to define __stub macros and hopefully few prototypes,
6353 which can conflict with char connect(); below. */
6355 /* Override any gcc2 internal prototype to avoid an error. */
6356 /* We use char because int might match the return type of a gcc2
6357 builtin and then its argument prototype would still apply. */
6362 /* The GNU C library defines this for functions which it implements
6363 to always fail with ENOSYS. Some functions are actually named
6364 something starting with __ and the normal name is an alias. */
6365 #if defined (__stub_connect) || defined (__stub___connect)
6373 if { (eval echo configure
:6374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6375 eval "ac_cv_func_connect=yes"
6377 echo "configure: failed program was:" >&5
6378 cat conftest.
$ac_ext >&5
6380 eval "ac_cv_func_connect=no"
6385 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
6386 echo "$ac_t""yes" 1>&6
6389 echo "$ac_t""no" 1>&6
6392 if test $ac_cv_func_connect = no
; then
6393 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
6394 echo "configure:6395: checking for connect in -lsocket" >&5
6395 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
6396 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6397 echo $ac_n "(cached) $ac_c" 1>&6
6399 ac_save_LIBS
="$LIBS"
6400 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
6401 cat > conftest.
$ac_ext <<EOF
6402 #line 6403 "configure"
6403 #include "confdefs.h"
6404 /* Override any gcc2 internal prototype to avoid an error. */
6405 /* We use char because int might match the return type of a gcc2
6406 builtin and then its argument prototype would still apply. */
6413 if { (eval echo configure
:6414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6415 eval "ac_cv_lib_$ac_lib_var=yes"
6417 echo "configure: failed program was:" >&5
6418 cat conftest.
$ac_ext >&5
6420 eval "ac_cv_lib_$ac_lib_var=no"
6423 LIBS
="$ac_save_LIBS"
6426 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6427 echo "$ac_t""yes" 1>&6
6428 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
6430 echo "$ac_t""no" 1>&6
6435 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
6436 echo $ac_n "checking for remove""... $ac_c" 1>&6
6437 echo "configure:6438: checking for remove" >&5
6438 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
6439 echo $ac_n "(cached) $ac_c" 1>&6
6441 cat > conftest.
$ac_ext <<EOF
6442 #line 6443 "configure"
6443 #include "confdefs.h"
6444 /* System header to define __stub macros and hopefully few prototypes,
6445 which can conflict with char remove(); below. */
6447 /* Override any gcc2 internal prototype to avoid an error. */
6448 /* We use char because int might match the return type of a gcc2
6449 builtin and then its argument prototype would still apply. */
6454 /* The GNU C library defines this for functions which it implements
6455 to always fail with ENOSYS. Some functions are actually named
6456 something starting with __ and the normal name is an alias. */
6457 #if defined (__stub_remove) || defined (__stub___remove)
6465 if { (eval echo configure
:6466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6467 eval "ac_cv_func_remove=yes"
6469 echo "configure: failed program was:" >&5
6470 cat conftest.
$ac_ext >&5
6472 eval "ac_cv_func_remove=no"
6477 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
6478 echo "$ac_t""yes" 1>&6
6481 echo "$ac_t""no" 1>&6
6484 if test $ac_cv_func_remove = no
; then
6485 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
6486 echo "configure:6487: checking for remove in -lposix" >&5
6487 ac_lib_var
=`echo posix'_'remove | sed 'y%./+-%__p_%'`
6488 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6489 echo $ac_n "(cached) $ac_c" 1>&6
6491 ac_save_LIBS
="$LIBS"
6492 LIBS
="-lposix $LIBS"
6493 cat > conftest.
$ac_ext <<EOF
6494 #line 6495 "configure"
6495 #include "confdefs.h"
6496 /* Override any gcc2 internal prototype to avoid an error. */
6497 /* We use char because int might match the return type of a gcc2
6498 builtin and then its argument prototype would still apply. */
6505 if { (eval echo configure
:6506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6507 eval "ac_cv_lib_$ac_lib_var=yes"
6509 echo "configure: failed program was:" >&5
6510 cat conftest.
$ac_ext >&5
6512 eval "ac_cv_lib_$ac_lib_var=no"
6515 LIBS
="$ac_save_LIBS"
6518 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6519 echo "$ac_t""yes" 1>&6
6520 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
6522 echo "$ac_t""no" 1>&6
6527 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6528 echo $ac_n "checking for shmat""... $ac_c" 1>&6
6529 echo "configure:6530: checking for shmat" >&5
6530 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
6531 echo $ac_n "(cached) $ac_c" 1>&6
6533 cat > conftest.
$ac_ext <<EOF
6534 #line 6535 "configure"
6535 #include "confdefs.h"
6536 /* System header to define __stub macros and hopefully few prototypes,
6537 which can conflict with char shmat(); below. */
6539 /* Override any gcc2 internal prototype to avoid an error. */
6540 /* We use char because int might match the return type of a gcc2
6541 builtin and then its argument prototype would still apply. */
6546 /* The GNU C library defines this for functions which it implements
6547 to always fail with ENOSYS. Some functions are actually named
6548 something starting with __ and the normal name is an alias. */
6549 #if defined (__stub_shmat) || defined (__stub___shmat)
6557 if { (eval echo configure
:6558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6559 eval "ac_cv_func_shmat=yes"
6561 echo "configure: failed program was:" >&5
6562 cat conftest.
$ac_ext >&5
6564 eval "ac_cv_func_shmat=no"
6569 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
6570 echo "$ac_t""yes" 1>&6
6573 echo "$ac_t""no" 1>&6
6576 if test $ac_cv_func_shmat = no
; then
6577 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
6578 echo "configure:6579: checking for shmat in -lipc" >&5
6579 ac_lib_var
=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
6580 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6581 echo $ac_n "(cached) $ac_c" 1>&6
6583 ac_save_LIBS
="$LIBS"
6585 cat > conftest.
$ac_ext <<EOF
6586 #line 6587 "configure"
6587 #include "confdefs.h"
6588 /* Override any gcc2 internal prototype to avoid an error. */
6589 /* We use char because int might match the return type of a gcc2
6590 builtin and then its argument prototype would still apply. */
6597 if { (eval echo configure
:6598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6599 eval "ac_cv_lib_$ac_lib_var=yes"
6601 echo "configure: failed program was:" >&5
6602 cat conftest.
$ac_ext >&5
6604 eval "ac_cv_lib_$ac_lib_var=no"
6607 LIBS
="$ac_save_LIBS"
6610 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6611 echo "$ac_t""yes" 1>&6
6612 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
6614 echo "$ac_t""no" 1>&6
6620 # Check for libraries that X11R6 Xt/Xaw programs need.
6621 ac_save_LDFLAGS
="$LDFLAGS"
6622 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
6623 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6624 # check for ICE first), but we must link in the order -lSM -lICE or
6625 # we get undefined symbols. So assume we have SM if we have ICE.
6626 # These have to be linked with before -lX11, unlike the other
6627 # libraries we check for below, so use a different variable.
6628 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
6629 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
6630 echo "configure:6631: checking for IceConnectionNumber in -lICE" >&5
6631 ac_lib_var
=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
6632 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6633 echo $ac_n "(cached) $ac_c" 1>&6
6635 ac_save_LIBS
="$LIBS"
6636 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
6637 cat > conftest.
$ac_ext <<EOF
6638 #line 6639 "configure"
6639 #include "confdefs.h"
6640 /* Override any gcc2 internal prototype to avoid an error. */
6641 /* We use char because int might match the return type of a gcc2
6642 builtin and then its argument prototype would still apply. */
6643 char IceConnectionNumber();
6646 IceConnectionNumber()
6649 if { (eval echo configure
:6650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6651 eval "ac_cv_lib_$ac_lib_var=yes"
6653 echo "configure: failed program was:" >&5
6654 cat conftest.
$ac_ext >&5
6656 eval "ac_cv_lib_$ac_lib_var=no"
6659 LIBS
="$ac_save_LIBS"
6662 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6663 echo "$ac_t""yes" 1>&6
6664 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
6666 echo "$ac_t""no" 1>&6
6669 LDFLAGS
="$ac_save_LDFLAGS"
6676 if test "$no_x" = yes; then
6689 cat > confcache
<<\EOF
6690 # This file is a shell script that caches the results of configure
6691 # tests run on this system so they can be shared between configure
6692 # scripts and configure runs. It is not useful on other systems.
6693 # If it contains results you don't want to keep, you may remove or edit it.
6695 # By default, configure uses ./config.cache as the cache file,
6696 # creating it if it does not exist already. You can give configure
6697 # the --cache-file=FILE option to use a different cache file; that is
6698 # what configure does when it calls configure scripts in
6699 # subdirectories, so they share the cache.
6700 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6701 # config.status only pays attention to the cache file if you give it the
6702 # --recheck option to rerun configure.
6705 # The following way of writing the cache mishandles newlines in values,
6706 # but we know of no workaround that is simple, portable, and efficient.
6707 # So, don't put newlines in cache variables' values.
6708 # Ultrix sh set writes to stderr and can't be redirected directly,
6709 # and sets the high bit in the cache file unless we assign to the vars.
6711 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6713 # `set' does not quote correctly, so add quotes (double-quote substitution
6714 # turns \\\\ into \\, and sed turns \\ into \).
6716 -e "s/'/'\\\\''/g" \
6717 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6720 # `set' quotes correctly as required by POSIX, so do not add quotes.
6721 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6724 if cmp -s $cache_file confcache
; then
6727 if test -w $cache_file; then
6728 echo "updating cache $cache_file"
6729 cat confcache
> $cache_file
6731 echo "not updating unwritable cache $cache_file"
6736 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6738 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6739 # Let make expand exec_prefix.
6740 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6742 # Any assignment to VPATH causes Sun make to only execute
6743 # the first set of double-colon rules, so remove it if not needed.
6744 # If there is a colon in the path, we need to keep it.
6745 if test "x$srcdir" = x.
; then
6746 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
6749 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6751 DEFS
=-DHAVE_CONFIG_H
6753 # Without the "./", some shells look in PATH for config.status.
6754 : ${CONFIG_STATUS=./config.status}
6756 echo creating
$CONFIG_STATUS
6757 rm -f $CONFIG_STATUS
6758 cat > $CONFIG_STATUS <<EOF
6760 # Generated automatically by configure.
6761 # Run this file to recreate the current configuration.
6762 # This directory was configured as follows,
6763 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6765 # $0 $ac_configure_args
6767 # Compiler output produced by configure, useful for debugging
6768 # configure, is in ./config.log if it exists.
6770 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6773 case "\$ac_option" in
6774 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6775 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6776 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6777 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6778 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6780 -help | --help | --hel | --he | --h)
6781 echo "\$ac_cs_usage"; exit 0 ;;
6782 *) echo "\$ac_cs_usage"; exit 1 ;;
6786 ac_given_srcdir=$srcdir
6787 ac_given_INSTALL="$INSTALL"
6789 trap 'rm -fr `echo "Makefile libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6791 cat >> $CONFIG_STATUS <<EOF
6793 # Protect against being on the right side of a sed subst in config.status.
6794 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6795 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6799 s%@CFLAGS@%$CFLAGS%g
6800 s%@CPPFLAGS@%$CPPFLAGS%g
6801 s%@CXXFLAGS@%$CXXFLAGS%g
6802 s%@FFLAGS@%$FFLAGS%g
6804 s%@LDFLAGS@%$LDFLAGS%g
6806 s%@exec_prefix@%$exec_prefix%g
6807 s%@prefix@%$prefix%g
6808 s%@program_transform_name@%$program_transform_name%g
6809 s%@bindir@%$bindir%g
6810 s%@sbindir@%$sbindir%g
6811 s%@libexecdir@%$libexecdir%g
6812 s%@datadir@%$datadir%g
6813 s%@sysconfdir@%$sysconfdir%g
6814 s%@sharedstatedir@%$sharedstatedir%g
6815 s%@localstatedir@%$localstatedir%g
6816 s%@libdir@%$libdir%g
6817 s%@includedir@%$includedir%g
6818 s%@oldincludedir@%$oldincludedir%g
6819 s%@infodir@%$infodir%g
6820 s%@mandir@%$mandir%g
6822 s%@host_alias@%$host_alias%g
6823 s%@host_cpu@%$host_cpu%g
6824 s%@host_vendor@%$host_vendor%g
6825 s%@host_os@%$host_os%g
6826 s%@target@%$target%g
6827 s%@target_alias@%$target_alias%g
6828 s%@target_cpu@%$target_cpu%g
6829 s%@target_vendor@%$target_vendor%g
6830 s%@target_os@%$target_os%g
6832 s%@build_alias@%$build_alias%g
6833 s%@build_cpu@%$build_cpu%g
6834 s%@build_vendor@%$build_vendor%g
6835 s%@build_os@%$build_os%g
6836 s%@libgcj_basedir@%$libgcj_basedir%g
6839 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6840 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6841 s%@INSTALL_DATA@%$INSTALL_DATA%g
6842 s%@PACKAGE@%$PACKAGE%g
6843 s%@VERSION@%$VERSION%g
6844 s%@ACLOCAL@%$ACLOCAL%g
6845 s%@AUTOCONF@%$AUTOCONF%g
6846 s%@AUTOMAKE@%$AUTOMAKE%g
6847 s%@AUTOHEADER@%$AUTOHEADER%g
6848 s%@MAKEINFO@%$MAKEINFO%g
6849 s%@SET_MAKE@%$SET_MAKE%g
6852 s%@RANLIB@%$RANLIB%g
6853 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
6854 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
6856 s%@EXEEXT@%$EXEEXT%g
6857 s%@LIBGCJ_CFLAGS@%$LIBGCJ_CFLAGS%g
6858 s%@LIBGCJ_CXXFLAGS@%$LIBGCJ_CXXFLAGS%g
6859 s%@LIBGCJ_JAVAFLAGS@%$LIBGCJ_JAVAFLAGS%g
6860 s%@INCLTDL@%$INCLTDL%g
6861 s%@LIBLTDL@%$LIBLTDL%g
6862 s%@DIRLTDL@%$DIRLTDL%g
6864 s%@OBJEXT@%$OBJEXT%g
6866 s%@LIBTOOL@%$LIBTOOL%g
6867 s%@CXXCPP@%$CXXCPP%g
6868 s%@subdirs@%$subdirs%g
6869 s%@COMPPATH@%$COMPPATH%g
6870 s%@TESTSUBDIR_TRUE@%$TESTSUBDIR_TRUE%g
6871 s%@TESTSUBDIR_FALSE@%$TESTSUBDIR_FALSE%g
6872 s%@LIBDATASTARTSPEC@%$LIBDATASTARTSPEC%g
6874 s%@SYSTEMSPEC@%$SYSTEMSPEC%g
6875 s%@LIBGCJTESTSPEC@%$LIBGCJTESTSPEC%g
6876 s%@ZLIBSPEC@%$ZLIBSPEC%g
6877 s%@ZLIBTESTSPEC@%$ZLIBTESTSPEC%g
6878 s%@GCLIBS@%$GCLIBS%g
6879 s%@GCINCS@%$GCINCS%g
6880 s%@GCDEPS@%$GCDEPS%g
6881 s%@GCOBJS@%$GCOBJS%g
6882 s%@GCSPEC@%$GCSPEC%g
6883 s%@JC1GCSPEC@%$JC1GCSPEC%g
6884 s%@GCTESTSPEC@%$GCTESTSPEC%g
6885 s%@THREADLIBS@%$THREADLIBS%g
6886 s%@THREADINCS@%$THREADINCS%g
6887 s%@THREADDEPS@%$THREADDEPS%g
6888 s%@THREADOBJS@%$THREADOBJS%g
6889 s%@THREADSPEC@%$THREADSPEC%g
6890 s%@USING_GCC_TRUE@%$USING_GCC_TRUE%g
6891 s%@USING_GCC_FALSE@%$USING_GCC_FALSE%g
6893 s%@GCJFLAGS@%$GCJFLAGS%g
6897 s%@DIVIDESPEC@%$DIVIDESPEC%g
6898 s%@EXCEPTIONSPEC@%$EXCEPTIONSPEC%g
6899 s%@FORCELIBGCCSPEC@%$FORCELIBGCCSPEC%g
6900 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
6901 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
6902 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
6903 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
6904 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
6905 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
6906 s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
6907 s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
6908 s%@NEEDS_DATA_START_TRUE@%$NEEDS_DATA_START_TRUE%g
6909 s%@NEEDS_DATA_START_FALSE@%$NEEDS_DATA_START_FALSE%g
6910 s%@EH_COMMON_INCLUDE@%$EH_COMMON_INCLUDE%g
6911 s%@AM_RUNTESTFLAGS@%$AM_RUNTESTFLAGS%g
6912 s%@ALLOCA@%$ALLOCA%g
6914 s%@SYSDEP_SOURCES@%$SYSDEP_SOURCES%g
6915 s%@X_CFLAGS@%$X_CFLAGS%g
6916 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
6917 s%@X_LIBS@%$X_LIBS%g
6918 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
6919 s%@NO_X_TRUE@%$NO_X_TRUE%g
6920 s%@NO_X_FALSE@%$NO_X_FALSE%g
6926 cat >> $CONFIG_STATUS <<\EOF
6928 # Split the substitutions into bite-sized pieces for seds with
6929 # small command number limits, like on Digital OSF/1 and HP-UX.
6930 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
6931 ac_file
=1 # Number of current file.
6932 ac_beg
=1 # First line for current file.
6933 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
6936 while $ac_more_lines; do
6937 if test $ac_beg -gt 1; then
6938 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
6940 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
6942 if test ! -s conftest.s
$ac_file; then
6944 rm -f conftest.s
$ac_file
6946 if test -z "$ac_sed_cmds"; then
6947 ac_sed_cmds
="sed -f conftest.s$ac_file"
6949 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
6951 ac_file
=`expr $ac_file + 1`
6953 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
6956 if test -z "$ac_sed_cmds"; then
6961 cat >> $CONFIG_STATUS <<EOF
6963 CONFIG_FILES=\${CONFIG_FILES-"Makefile libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile"}
6965 cat >> $CONFIG_STATUS <<\EOF
6966 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
6967 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6969 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6970 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6971 *) ac_file_in
="${ac_file}.in" ;;
6974 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6976 # Remove last slash and all that follows it. Not all systems have dirname.
6977 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6978 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
6979 # The file is in a subdirectory.
6980 test ! -d "$ac_dir" && mkdir
"$ac_dir"
6981 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
6982 # A "../" for each directory in $ac_dir_suffix.
6983 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6985 ac_dir_suffix
= ac_dots
=
6988 case "$ac_given_srcdir" in
6990 if test -z "$ac_dots"; then top_srcdir
=.
6991 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6992 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
6994 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6995 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
6998 case "$ac_given_INSTALL" in
6999 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
7000 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
7003 echo creating
"$ac_file"
7005 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7007 *Makefile
*) ac_comsub
="1i\\
7008 # $configure_input" ;;
7012 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7014 s%@configure_input@%$configure_input%g
7015 s%@srcdir@%$srcdir%g
7016 s%@top_srcdir@%$top_srcdir%g
7017 s%@INSTALL@%$INSTALL%g
7018 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
7022 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7023 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7025 # ac_d sets the value in "#define NAME VALUE" lines.
7026 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7027 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
7030 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7031 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7032 ac_uB
='\([ ]\)%\1#\2define\3'
7035 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7036 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7037 ac_eB
='$%\1#\2define\3'
7041 if test "${CONFIG_HEADERS+set}" != set; then
7043 cat >> $CONFIG_STATUS <<EOF
7044 CONFIG_HEADERS="include/config.h"
7046 cat >> $CONFIG_STATUS <<\EOF
7048 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
7049 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7051 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
7052 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
7053 *) ac_file_in
="${ac_file}.in" ;;
7056 echo creating
$ac_file
7058 rm -f conftest.frag conftest.
in conftest.out
7059 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7060 cat $ac_file_inputs > conftest.
in
7064 # Transform confdefs.h into a sed script conftest.vals that substitutes
7065 # the proper values into config.h.in to produce config.h. And first:
7066 # Protect against being on the right side of a sed subst in config.status.
7067 # Protect against being in an unquoted here document in config.status.
7069 cat > conftest.hdr
<<\EOF
7072 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7076 sed -n -f conftest.hdr confdefs.h > conftest.vals
7079 # This sed command replaces #undef with comments. This is necessary, for
7080 # example, in the case of _POSIX_SOURCE, which is predefined and required
7081 # on some systems where configure will not decide to define it.
7082 cat >> conftest.vals <<\EOF
7083 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7086 # Break up conftest.vals because some shells have a limit on
7087 # the size of here documents, and old seds have small limits too.
7092 ac_lines=`grep -c . conftest.vals
`
7093 # grep -c gives empty output for an empty file on some AIX systems.
7094 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7095 # Write a limited-size here document to conftest.frag.
7096 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7097 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7099 sed -f conftest.frag conftest.in > conftest.out
7101 mv conftest.out conftest.in
7103 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7105 mv conftest.tail conftest.vals
7109 cat >> $CONFIG_STATUS <<\EOF
7110 rm -f conftest.frag conftest.h
7111 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7112 cat conftest.in >> conftest.h
7114 if cmp -s $ac_file conftest.h 2>/dev/null; then
7115 echo "$ac_file is unchanged"
7118 # Remove last slash and all that follows it. Not all systems have dirname.
7119 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
7120 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7121 # The file is in a subdirectory.
7122 test ! -d "$ac_dir" && mkdir "$ac_dir"
7125 mv conftest.h $ac_file
7131 cat >> $CONFIG_STATUS <<EOF
7132 ac_sources="java/io/$FILE_DESCRIPTOR java/lang/${PROCESS}Process.java java/lang/nat${PROCESS}Process.cc include/$GCHDR include/$THREADH $SIGNAL_HANDLER"
7133 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"
7136 cat >> $CONFIG_STATUS <<\EOF
7137 srcdir=$ac_given_srcdir
7138 while test -n "$ac_sources"; do
7139 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
7140 set $ac_sources; ac_source=$1; shift; ac_sources=$*
7142 echo "linking $srcdir/$ac_source to $ac_dest"
7144 if test ! -r $srcdir/$ac_source; then
7145 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
7149 # Make relative symlinks.
7150 # Remove last slash and all that follows it. Not all systems have dirname.
7151 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
7152 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
7153 # The dest file is in a subdirectory.
7154 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
7155 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
7156 # A "../" for each directory in $ac_dest_dir_suffix.
7157 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
7159 ac_dest_dir_suffix= ac_dots=
7163 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
7164 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
7167 # Make a symlink if possible; otherwise try a hard link.
7168 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
7169 ln $srcdir/$ac_source $ac_dest; then :
7171 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
7175 cat >> $CONFIG_STATUS <<EOF
7180 with_multisubdir=${with_multisubdir}
7181 ac_configure_args="${multilib_arg} ${ac_configure_args}"
7182 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
7183 libgcj_basedir=${libgcj_basedir}
7188 cat >> $CONFIG_STATUS <<\EOF
7189 test -z "$CONFIG_HEADERS" || echo timestamp > include/stamp-h
7190 if test -n "$CONFIG_FILES"; then
7191 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
7194 # Make subdirectories and `.d
' files. Look in both srcdir and
7195 # builddir for the .java files.
7198 ( (cd $srcdir && find . -name '*.java
' -print) ;
7199 find . -name '*.java
' -print) | \
7200 fgrep -v testsuite | \
7201 sed -e 's
/\.java
/.d
/' | \
7203 echo "include $f" >> deps.mk
7206 d=`echo $f | sed -e 's
,/[^
/]*$
,,'`
7208 $srcdir/../mkinstalldirs $d
7215 chmod +x $CONFIG_STATUS
7216 rm -fr confdefs* $ac_clean_files
7217 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7219 if test "$no_recursion" != yes; then
7221 # Remove --cache-file and --srcdir arguments so they do not pile up.
7222 ac_sub_configure_args=
7224 for ac_arg in $ac_configure_args; do
7225 if test -n "$ac_prev"; then
7230 -cache-file | --cache-file | --cache-fil | --cache-fi \
7231 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
7232 ac_prev=cache_file ;;
7233 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
7234 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
7236 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
7238 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
7240 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
7244 for ac_config_dir in $DIRLTDL; do
7246 # Do not complain, so a configure script can configure whichever
7247 # parts of a large source tree are present.
7248 if test ! -d $srcdir/$ac_config_dir; then
7252 echo configuring in $ac_config_dir
7257 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
7259 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
7267 # A "../" for each directory in /$ac_config_dir.
7268 ac_dots=`echo $ac_config_dir|sed -e 's
%^\.
/%%' -e 's
%[^
/]$
%&/%' -e 's
%[^
/]*/%..
/%g
'`
7271 .) # No --srcdir option. We are building in place.
7272 ac_sub_srcdir=$srcdir ;;
7273 /*) # Absolute path.
7274 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
7276 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
7279 # Check for guested configure; otherwise get Cygnus style configure.
7280 if test -f $ac_sub_srcdir/configure; then
7281 ac_sub_configure=$ac_sub_srcdir/configure
7282 elif test -f $ac_sub_srcdir/configure.in; then
7283 ac_sub_configure=$ac_configure
7285 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
7289 # The recursion is here.
7290 if test -n "$ac_sub_configure"; then
7292 # Make the cache file name correct relative to the subdirectory.
7293 case "$cache_file" in
7294 /*) ac_sub_cache_file=$cache_file ;;
7296 ac_sub_cache_file="$ac_dots$cache_file" ;;
7298 case "$ac_given_INSTALL" in
7299 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7300 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7303 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
7304 # The eval makes quoting arguments work.
7305 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
7308 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }