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
,
84 bindir
='${exec_prefix}/bin'
85 sbindir
='${exec_prefix}/sbin'
86 libexecdir
='${exec_prefix}/libexec'
87 datadir
='${prefix}/share'
88 sysconfdir
='${prefix}/etc'
89 sharedstatedir
='${prefix}/com'
90 localstatedir
='${prefix}/var'
91 libdir
='${exec_prefix}/lib'
92 includedir
='${prefix}/include'
93 oldincludedir
='/usr/include'
94 infodir
='${prefix}/info'
95 mandir
='${prefix}/man'
97 # Initialize some other variables.
100 SHELL
=${CONFIG_SHELL-/bin/sh}
101 # Maximum number of lines to put in a shell here document.
108 # If the previous option needs an argument, assign it.
109 if test -n "$ac_prev"; then
110 eval "$ac_prev=\$ac_option"
116 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
120 # Accept the important Cygnus configure options, so we can diagnose typos.
124 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
126 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
127 bindir
="$ac_optarg" ;;
129 -build |
--build |
--buil |
--bui |
--bu)
131 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
132 build
="$ac_optarg" ;;
134 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
135 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
136 ac_prev
=cache_file
;;
137 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
138 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
139 cache_file
="$ac_optarg" ;;
141 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
143 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
145 datadir
="$ac_optarg" ;;
147 -disable-* |
--disable-*)
148 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
149 # Reject names that are not valid shell variable names.
150 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
151 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
153 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
154 eval "enable_${ac_feature}=no" ;;
156 -enable-* |
--enable-*)
157 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
158 # Reject names that are not valid shell variable names.
159 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
160 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
162 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
167 eval "enable_${ac_feature}='$ac_optarg'" ;;
169 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
170 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
171 |
--exec |
--exe |
--ex)
172 ac_prev
=exec_prefix
;;
173 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
174 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
175 |
--exec=* |
--exe=* |
--ex=*)
176 exec_prefix
="$ac_optarg" ;;
178 -gas |
--gas |
--ga |
--g)
179 # Obsolete; use --with-gas.
182 -help |
--help |
--hel |
--he)
183 # Omit some internal or obsolete options to make the list less imposing.
184 # This message is too long to be a string in the A/UX 3.1 sh.
186 Usage: configure [options] [host]
187 Options: [defaults in brackets after descriptions]
189 --cache-file=FILE cache test results in FILE
190 --help print this message
191 --no-create do not create output files
192 --quiet, --silent do not print \`checking...' messages
193 --site-file=FILE use FILE as the site file
194 --version print the version of autoconf that created configure
195 Directory and file names:
196 --prefix=PREFIX install architecture-independent files in PREFIX
198 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
200 --bindir=DIR user executables in DIR [EPREFIX/bin]
201 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
202 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
203 --datadir=DIR read-only architecture-independent data in DIR
205 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
206 --sharedstatedir=DIR modifiable architecture-independent data in DIR
208 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
209 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
210 --includedir=DIR C header files in DIR [PREFIX/include]
211 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
212 --infodir=DIR info documentation in DIR [PREFIX/info]
213 --mandir=DIR man documentation in DIR [PREFIX/man]
214 --srcdir=DIR find the sources in DIR [configure dir or ..]
215 --program-prefix=PREFIX prepend PREFIX to installed program names
216 --program-suffix=SUFFIX append SUFFIX to installed program names
217 --program-transform-name=PROGRAM
218 run sed PROGRAM on installed program names
222 --build=BUILD configure for building on BUILD [BUILD=HOST]
223 --host=HOST configure for HOST [guessed]
224 --target=TARGET configure for TARGET [TARGET=HOST]
225 Features and packages:
226 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
227 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
228 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
229 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
230 --x-includes=DIR X include files are in DIR
231 --x-libraries=DIR X library files are in DIR
233 if test -n "$ac_help"; then
234 echo "--enable and --with options recognized:$ac_help"
238 -host |
--host |
--hos |
--ho)
240 -host=* |
--host=* |
--hos=* |
--ho=*)
243 -includedir |
--includedir |
--includedi |
--included |
--include \
244 |
--includ |
--inclu |
--incl |
--inc)
245 ac_prev
=includedir
;;
246 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
247 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
248 includedir
="$ac_optarg" ;;
250 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
252 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
253 infodir
="$ac_optarg" ;;
255 -libdir |
--libdir |
--libdi |
--libd)
257 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
258 libdir
="$ac_optarg" ;;
260 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
261 |
--libexe |
--libex |
--libe)
262 ac_prev
=libexecdir
;;
263 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
264 |
--libexe=* |
--libex=* |
--libe=*)
265 libexecdir
="$ac_optarg" ;;
267 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
268 |
--localstate |
--localstat |
--localsta |
--localst \
269 |
--locals |
--local |
--loca |
--loc |
--lo)
270 ac_prev
=localstatedir
;;
271 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
272 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
273 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
274 localstatedir
="$ac_optarg" ;;
276 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
278 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
279 mandir
="$ac_optarg" ;;
282 # Obsolete; use --without-fp.
285 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
289 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
290 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
293 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
294 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
295 |
--oldin |
--oldi |
--old |
--ol |
--o)
296 ac_prev
=oldincludedir
;;
297 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
298 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
299 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
300 oldincludedir
="$ac_optarg" ;;
302 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
304 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
305 prefix
="$ac_optarg" ;;
307 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
308 |
--program-pre |
--program-pr |
--program-p)
309 ac_prev
=program_prefix
;;
310 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
311 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
312 program_prefix
="$ac_optarg" ;;
314 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
315 |
--program-suf |
--program-su |
--program-s)
316 ac_prev
=program_suffix
;;
317 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
318 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
319 program_suffix
="$ac_optarg" ;;
321 -program-transform-name |
--program-transform-name \
322 |
--program-transform-nam |
--program-transform-na \
323 |
--program-transform-n |
--program-transform- \
324 |
--program-transform |
--program-transfor \
325 |
--program-transfo |
--program-transf \
326 |
--program-trans |
--program-tran \
327 |
--progr-tra |
--program-tr |
--program-t)
328 ac_prev
=program_transform_name
;;
329 -program-transform-name=* |
--program-transform-name=* \
330 |
--program-transform-nam=* |
--program-transform-na=* \
331 |
--program-transform-n=* |
--program-transform-=* \
332 |
--program-transform=* |
--program-transfor=* \
333 |
--program-transfo=* |
--program-transf=* \
334 |
--program-trans=* |
--program-tran=* \
335 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
336 program_transform_name
="$ac_optarg" ;;
338 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
339 |
-silent |
--silent |
--silen |
--sile |
--sil)
342 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
344 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
346 sbindir
="$ac_optarg" ;;
348 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
349 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
350 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
352 ac_prev
=sharedstatedir
;;
353 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
354 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
355 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
357 sharedstatedir
="$ac_optarg" ;;
359 -site |
--site |
--sit)
361 -site=* |
--site=* |
--sit=*)
364 -site-file |
--site-file |
--site-fil |
--site-fi |
--site-f)
366 -site-file=* |
--site-file=* |
--site-fil=* |
--site-fi=* |
--site-f=*)
367 sitefile
="$ac_optarg" ;;
369 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
371 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
372 srcdir
="$ac_optarg" ;;
374 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
375 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
376 ac_prev
=sysconfdir
;;
377 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
378 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
379 sysconfdir
="$ac_optarg" ;;
381 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
383 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
384 target
="$ac_optarg" ;;
386 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
389 -version |
--version |
--versio |
--versi |
--vers)
390 echo "configure generated by autoconf version 2.13"
394 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
395 # Reject names that are not valid shell variable names.
396 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
397 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
399 ac_package
=`echo $ac_package| sed 's/-/_/g'`
404 eval "with_${ac_package}='$ac_optarg'" ;;
406 -without-* |
--without-*)
407 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
408 # Reject names that are not valid shell variable names.
409 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
410 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
412 ac_package
=`echo $ac_package| sed 's/-/_/g'`
413 eval "with_${ac_package}=no" ;;
416 # Obsolete; use --with-x.
419 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
420 |
--x-incl |
--x-inc |
--x-in |
--x-i)
421 ac_prev
=x_includes
;;
422 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
423 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
424 x_includes
="$ac_optarg" ;;
426 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
427 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
428 ac_prev
=x_libraries
;;
429 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
430 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
431 x_libraries
="$ac_optarg" ;;
433 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
437 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
438 echo "configure: warning: $ac_option: invalid host type" 1>&2
440 if test "x$nonopt" != xNONE
; then
441 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
449 if test -n "$ac_prev"; then
450 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
453 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
455 # File descriptor usage:
458 # 2 errors and warnings
459 # 3 some systems may open it to /dev/tty
460 # 4 used on the Kubota Titan
461 # 6 checking for... messages and results
462 # 5 compiler messages saved in config.log
463 if test "$silent" = yes; then
471 This file contains any messages produced by compilers while
472 running configure, to aid debugging if configure makes a mistake.
475 # Strip out --no-create and --no-recursion so they do not pile up.
476 # Also quote any args containing shell metacharacters.
481 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
482 |
--no-cr |
--no-c) ;;
483 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
484 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
485 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
486 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
487 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
492 # Only set these to C if already set. These must not be set unconditionally
493 # because not all systems understand e.g. LANG=C (notably SCO).
494 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
495 # Non-C LC_CTYPE values break the ctype check.
496 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
497 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
498 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
499 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
501 # confdefs.h avoids OS command line length limits that DEFS can exceed.
502 rm -rf conftest
* confdefs.h
503 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
506 # A filename unique to this package, relative to the directory that
507 # configure is in, which we can look for to find out if srcdir is correct.
508 ac_unique_file
=java
/lang
/System.java
510 # Find the source files, if location was not specified.
511 if test -z "$srcdir"; then
512 ac_srcdir_defaulted
=yes
513 # Try the directory containing this script, then its parent.
515 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
516 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
518 if test ! -r $srcdir/$ac_unique_file; then
522 ac_srcdir_defaulted
=no
524 if test ! -r $srcdir/$ac_unique_file; then
525 if test "$ac_srcdir_defaulted" = yes; then
526 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
528 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
531 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
533 # Prefer explicitly selected file to automatically selected ones.
534 if test -z "$sitefile"; then
535 if test -z "$CONFIG_SITE"; then
536 if test "x$prefix" != xNONE
; then
537 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
539 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
543 CONFIG_SITE
="$sitefile"
545 for ac_site_file
in $CONFIG_SITE; do
546 if test -r "$ac_site_file"; then
547 echo "loading site script $ac_site_file"
552 if test -r "$cache_file"; then
553 echo "loading cache $cache_file"
556 echo "creating cache $cache_file"
561 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
562 ac_cpp
='$CPP $CPPFLAGS'
563 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
564 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
565 cross_compiling
=$ac_cv_prog_cc_cross
569 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
570 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
571 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
578 ac_n
= ac_c
='\c' ac_t
=
584 for ac_dir
in ..
$srcdir/..
; do
585 if test -f $ac_dir/install-sh
; then
587 ac_install_sh
="$ac_aux_dir/install-sh -c"
589 elif test -f $ac_dir/install.sh
; then
591 ac_install_sh
="$ac_aux_dir/install.sh -c"
595 if test -z "$ac_aux_dir"; then
596 { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
598 ac_config_guess
=$ac_aux_dir/config.guess
599 ac_config_sub
=$ac_aux_dir/config.sub
600 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
604 # Do some error checking and defaulting for the host and target type.
606 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
609 # 1. You are not allowed to specify --host, --target, and nonopt at the
611 # 2. Host defaults to nonopt.
612 # 3. If nonopt is not specified, then host defaults to the current host,
613 # as determined by config.guess.
614 # 4. Target and build default to nonopt.
615 # 5. If nonopt is not specified, then target and build default to host.
617 # The aliases save the names the user supplied, while $host etc.
618 # will get canonicalized.
619 case $host---$target---$nonopt in
620 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
621 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
625 # Make sure we can run config.sub.
626 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
627 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
630 echo $ac_n "checking host system type""... $ac_c" 1>&6
631 echo "configure:632: checking host system type" >&5
634 case "$host_alias" in
638 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
639 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
641 *) host_alias
=$nonopt ;;
645 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
646 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
647 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
648 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
649 echo "$ac_t""$host" 1>&6
651 echo $ac_n "checking target system type""... $ac_c" 1>&6
652 echo "configure:653: checking target system type" >&5
655 case "$target_alias" in
658 NONE
) target_alias
=$host_alias ;;
659 *) target_alias
=$nonopt ;;
663 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
664 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
665 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
666 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
667 echo "$ac_t""$target" 1>&6
669 echo $ac_n "checking build system type""... $ac_c" 1>&6
670 echo "configure:671: checking build system type" >&5
673 case "$build_alias" in
676 NONE
) build_alias
=$host_alias ;;
677 *) build_alias
=$nonopt ;;
681 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
682 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
683 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
684 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
685 echo "$ac_t""$build" 1>&6
687 test "$host_alias" != "$target_alias" &&
688 test "$program_prefix$program_suffix$program_transform_name" = \
690 program_prefix
=${target_alias}-
692 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
693 echo "configure:694: checking whether ln -s works" >&5
694 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
695 echo $ac_n "(cached) $ac_c" 1>&6
698 if ln -s X conftestdata
2>/dev
/null
701 ac_cv_prog_LN_S
="ln -s"
706 LN_S
="$ac_cv_prog_LN_S"
707 if test "$ac_cv_prog_LN_S" = "ln -s"; then
708 echo "$ac_t""yes" 1>&6
710 echo "$ac_t""no" 1>&6
714 # Check whether --with-target-subdir or --without-target-subdir was given.
715 if test "${with_target_subdir+set}" = set; then
716 withval
="$with_target_subdir"
720 # Check whether --with-cross-host or --without-cross-host was given.
721 if test "${with_cross_host+set}" = set; then
722 withval
="$with_cross_host"
727 # Find a good install program. We prefer a C program (faster),
728 # so one script is as good as another. But avoid the broken or
729 # incompatible versions:
730 # SysV /etc/install, /usr/sbin/install
731 # SunOS /usr/etc/install
734 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
735 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
736 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
737 # ./install, which can be erroneously created by make from ./install.sh.
738 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
739 echo "configure:740: checking for a BSD compatible install" >&5
740 if test -z "$INSTALL"; then
741 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
742 echo $ac_n "(cached) $ac_c" 1>&6
744 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
745 for ac_dir
in $PATH; do
746 # Account for people who put trailing slashes in PATH elements.
748 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
750 # OSF1 and SCO ODT 3.0 have their own names for install.
751 # Don't use installbsd from OSF since it installs stuff as root
753 for ac_prog
in ginstall scoinst
install; do
754 if test -f $ac_dir/$ac_prog; then
755 if test $ac_prog = install &&
756 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
757 # AIX install. It has an incompatible calling convention.
760 ac_cv_path_install
="$ac_dir/$ac_prog -c"
771 if test "${ac_cv_path_install+set}" = set; then
772 INSTALL
="$ac_cv_path_install"
774 # As a last resort, use the slow shell script. We don't cache a
775 # path for INSTALL within a source directory, because that will
776 # break other packages using the cache if that directory is
777 # removed, or if the path is relative.
778 INSTALL
="$ac_install_sh"
781 echo "$ac_t""$INSTALL" 1>&6
783 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
784 # It thinks the first close brace ends the variable substitution.
785 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
787 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
789 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
791 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
792 echo "configure:793: checking whether build environment is sane" >&5
795 echo timestamp
> conftestfile
796 # Do `set' in a subshell so we don't clobber the current shell's
797 # arguments. Must try -L first in case configure is actually a
798 # symlink; some systems play weird games with the mod time of symlinks
799 # (eg FreeBSD returns the mod time of the symlink's containing
802 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
803 if test "$*" = "X"; then
805 set X
`ls -t $srcdir/configure conftestfile`
807 if test "$*" != "X $srcdir/configure conftestfile" \
808 && test "$*" != "X conftestfile $srcdir/configure"; then
810 # If neither matched, then we have a broken ls. This can happen
811 # if, for instance, CONFIG_SHELL is bash and it inherits a
812 # broken ls alias from the environment. This has actually
813 # happened. Such a system could not be considered "sane".
814 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
815 alias in your environment" 1>&2; exit 1; }
818 test "$2" = conftestfile
824 { echo "configure: error: newly created file is older than distributed files!
825 Check your system clock" 1>&2; exit 1; }
828 echo "$ac_t""yes" 1>&6
829 if test "$program_transform_name" = s
,x
,x
,; then
830 program_transform_name
=
832 # Double any \ or $. echo might interpret backslashes.
833 cat <<\EOF_SED
> conftestsed
834 s
,\\,\\\\,g
; s
,\$
,$$
,g
836 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
839 test "$program_prefix" != NONE
&&
840 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
841 # Use a double $ so make ignores it.
842 test "$program_suffix" != NONE
&&
843 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
845 # sed with no file args requires a program.
846 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
848 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
849 echo "configure:850: checking whether ${MAKE-make} sets \${MAKE}" >&5
850 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
851 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
852 echo $ac_n "(cached) $ac_c" 1>&6
854 cat > conftestmake
<<\EOF
856 @
echo 'ac_maketemp="${MAKE}"'
858 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
859 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
860 if test -n "$ac_maketemp"; then
861 eval ac_cv_prog_make_
${ac_make}_set
=yes
863 eval ac_cv_prog_make_
${ac_make}_set
=no
867 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
868 echo "$ac_t""yes" 1>&6
871 echo "$ac_t""no" 1>&6
872 SET_MAKE
="MAKE=${MAKE-make}"
875 if test $host != $build; then
876 ac_tool_prefix
=${host_alias}-
881 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
882 echo "configure:883: checking for Cygwin environment" >&5
883 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
884 echo $ac_n "(cached) $ac_c" 1>&6
886 cat > conftest.
$ac_ext <<EOF
887 #line 888 "configure"
888 #include "confdefs.h"
893 #define __CYGWIN__ __CYGWIN32__
898 if { (eval echo configure
:899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
902 echo "configure: failed program was:" >&5
903 cat conftest.
$ac_ext >&5
911 echo "$ac_t""$ac_cv_cygwin" 1>&6
913 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
914 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
915 echo "configure:916: checking for mingw32 environment" >&5
916 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
917 echo $ac_n "(cached) $ac_c" 1>&6
919 cat > conftest.
$ac_ext <<EOF
920 #line 921 "configure"
921 #include "confdefs.h"
927 if { (eval echo configure
:928: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
931 echo "configure: failed program was:" >&5
932 cat conftest.
$ac_ext >&5
940 echo "$ac_t""$ac_cv_mingw32" 1>&6
942 test "$ac_cv_mingw32" = yes && MINGW32
=yes
944 # Check whether --enable-multilib or --disable-multilib was given.
945 if test "${enable_multilib+set}" = set; then
946 enableval
="$enable_multilib"
947 case "${enableval}" in
950 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
957 if test "${srcdir}" = "."; then
958 if test "${with_target_subdir}" != "."; then
959 libgcj_basedir
="${srcdir}/${with_multisrctop}../."
961 libgcj_basedir
="${srcdir}/${with_multisrctop}."
964 libgcj_basedir
="${srcdir}/."
969 # Make sure we can run config.sub.
970 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
971 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
974 echo $ac_n "checking host system type""... $ac_c" 1>&6
975 echo "configure:976: checking host system type" >&5
978 case "$host_alias" in
982 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
983 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
985 *) host_alias
=$nonopt ;;
989 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
990 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
991 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
992 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
993 echo "$ac_t""$host" 1>&6
999 # Extract the first word of "gcc", so it can be a program name with args.
1000 set dummy gcc
; ac_word
=$2
1001 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1002 echo "configure:1003: checking for $ac_word" >&5
1003 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1004 echo $ac_n "(cached) $ac_c" 1>&6
1006 if test -n "$CC"; then
1007 ac_cv_prog_CC
="$CC" # Let the user override the test.
1009 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1011 for ac_dir
in $ac_dummy; do
1012 test -z "$ac_dir" && ac_dir
=.
1013 if test -f $ac_dir/$ac_word; then
1022 if test -n "$CC"; then
1023 echo "$ac_t""$CC" 1>&6
1025 echo "$ac_t""no" 1>&6
1028 if test -z "$CC"; then
1029 # Extract the first word of "cc", so it can be a program name with args.
1030 set dummy cc
; ac_word
=$2
1031 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1032 echo "configure:1033: checking for $ac_word" >&5
1033 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1034 echo $ac_n "(cached) $ac_c" 1>&6
1036 if test -n "$CC"; then
1037 ac_cv_prog_CC
="$CC" # Let the user override the test.
1039 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1042 for ac_dir
in $ac_dummy; do
1043 test -z "$ac_dir" && ac_dir
=.
1044 if test -f $ac_dir/$ac_word; then
1045 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1046 ac_prog_rejected
=yes
1054 if test $ac_prog_rejected = yes; then
1055 # We found a bogon in the path, so make sure we never use it.
1056 set dummy
$ac_cv_prog_CC
1058 if test $# -gt 0; then
1059 # We chose a different compiler from the bogus one.
1060 # However, it has the same basename, so the bogon will be chosen
1061 # first if we set CC to just the basename; use the full file name.
1063 set dummy
"$ac_dir/$ac_word" "$@"
1071 if test -n "$CC"; then
1072 echo "$ac_t""$CC" 1>&6
1074 echo "$ac_t""no" 1>&6
1077 if test -z "$CC"; then
1078 case "`uname -s`" in
1080 # Extract the first word of "cl", so it can be a program name with args.
1081 set dummy cl
; ac_word
=$2
1082 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1083 echo "configure:1084: checking for $ac_word" >&5
1084 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1085 echo $ac_n "(cached) $ac_c" 1>&6
1087 if test -n "$CC"; then
1088 ac_cv_prog_CC
="$CC" # Let the user override the test.
1090 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1092 for ac_dir
in $ac_dummy; do
1093 test -z "$ac_dir" && ac_dir
=.
1094 if test -f $ac_dir/$ac_word; then
1103 if test -n "$CC"; then
1104 echo "$ac_t""$CC" 1>&6
1106 echo "$ac_t""no" 1>&6
1111 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1115 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1116 echo "configure:1117: checking whether we are using GNU C" >&5
1117 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1118 echo $ac_n "(cached) $ac_c" 1>&6
1120 cat > conftest.c
<<EOF
1125 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1126: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1132 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1134 if test $ac_cv_prog_gcc = yes; then
1140 ac_test_CFLAGS
="${CFLAGS+set}"
1141 ac_save_CFLAGS
="$CFLAGS"
1143 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1144 echo "configure:1145: checking whether ${CC-cc} accepts -g" >&5
1145 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1146 echo $ac_n "(cached) $ac_c" 1>&6
1148 echo 'void f(){}' > conftest.c
1149 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1158 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1159 if test "$ac_test_CFLAGS" = set; then
1160 CFLAGS
="$ac_save_CFLAGS"
1161 elif test $ac_cv_prog_cc_g = yes; then
1162 if test "$GCC" = yes; then
1168 if test "$GCC" = yes; then
1175 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
1177 # Extract the first word of "$ac_prog", so it can be a program name with args.
1178 set dummy
$ac_prog; ac_word
=$2
1179 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1180 echo "configure:1181: checking for $ac_word" >&5
1181 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1182 echo $ac_n "(cached) $ac_c" 1>&6
1184 if test -n "$CXX"; then
1185 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
1187 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1189 for ac_dir
in $ac_dummy; do
1190 test -z "$ac_dir" && ac_dir
=.
1191 if test -f $ac_dir/$ac_word; then
1192 ac_cv_prog_CXX
="$ac_prog"
1199 CXX
="$ac_cv_prog_CXX"
1200 if test -n "$CXX"; then
1201 echo "$ac_t""$CXX" 1>&6
1203 echo "$ac_t""no" 1>&6
1206 test -n "$CXX" && break
1208 test -n "$CXX" || CXX
="gcc"
1212 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1213 echo "configure:1214: checking whether we are using GNU C++" >&5
1214 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1215 echo $ac_n "(cached) $ac_c" 1>&6
1217 cat > conftest.C
<<EOF
1222 if { ac_try
='${CXX-g++} -E conftest.C'; { (eval echo configure
:1223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1229 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1231 if test $ac_cv_prog_gxx = yes; then
1237 ac_test_CXXFLAGS
="${CXXFLAGS+set}"
1238 ac_save_CXXFLAGS
="$CXXFLAGS"
1240 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1241 echo "configure:1242: checking whether ${CXX-g++} accepts -g" >&5
1242 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1243 echo $ac_n "(cached) $ac_c" 1>&6
1245 echo 'void f(){}' > conftest.cc
1246 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1247 ac_cv_prog_cxx_g
=yes
1255 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1256 if test "$ac_test_CXXFLAGS" = set; then
1257 CXXFLAGS
="$ac_save_CXXFLAGS"
1258 elif test $ac_cv_prog_cxx_g = yes; then
1259 if test "$GXX" = yes; then
1265 if test "$GXX" = yes; then
1279 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
1280 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
1282 cat >> confdefs.h
<<EOF
1283 #define PACKAGE "$PACKAGE"
1286 cat >> confdefs.h
<<EOF
1287 #define VERSION "$VERSION"
1292 missing_dir
=`cd $ac_aux_dir && pwd`
1293 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1294 echo "configure:1295: checking for working aclocal" >&5
1295 # Run test in a subshell; some versions of sh will print an error if
1296 # an executable is not found, even if stderr is redirected.
1297 # Redirect stdin to placate older versions of autoconf. Sigh.
1298 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
1300 echo "$ac_t""found" 1>&6
1302 ACLOCAL
="$missing_dir/missing aclocal"
1303 echo "$ac_t""missing" 1>&6
1306 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1307 echo "configure:1308: checking for working autoconf" >&5
1308 # Run test in a subshell; some versions of sh will print an error if
1309 # an executable is not found, even if stderr is redirected.
1310 # Redirect stdin to placate older versions of autoconf. Sigh.
1311 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
1313 echo "$ac_t""found" 1>&6
1315 AUTOCONF
="$missing_dir/missing autoconf"
1316 echo "$ac_t""missing" 1>&6
1319 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1320 echo "configure:1321: checking for working automake" >&5
1321 # Run test in a subshell; some versions of sh will print an error if
1322 # an executable is not found, even if stderr is redirected.
1323 # Redirect stdin to placate older versions of autoconf. Sigh.
1324 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
1326 echo "$ac_t""found" 1>&6
1328 AUTOMAKE
="$missing_dir/missing automake"
1329 echo "$ac_t""missing" 1>&6
1332 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1333 echo "configure:1334: checking for working autoheader" >&5
1334 # Run test in a subshell; some versions of sh will print an error if
1335 # an executable is not found, even if stderr is redirected.
1336 # Redirect stdin to placate older versions of autoconf. Sigh.
1337 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
1338 AUTOHEADER
=autoheader
1339 echo "$ac_t""found" 1>&6
1341 AUTOHEADER
="$missing_dir/missing autoheader"
1342 echo "$ac_t""missing" 1>&6
1345 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1346 echo "configure:1347: checking for working makeinfo" >&5
1347 # Run test in a subshell; some versions of sh will print an error if
1348 # an executable is not found, even if stderr is redirected.
1349 # Redirect stdin to placate older versions of autoconf. Sigh.
1350 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
1352 echo "$ac_t""found" 1>&6
1354 MAKEINFO
="$missing_dir/missing makeinfo"
1355 echo "$ac_t""missing" 1>&6
1360 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we dont
1361 # run it explicitly here, it will be run implicitly before
1362 # LIBGCJ_CONFIGURE, which doesn't work because that means that it will
1363 # be run before AC_CANONICAL_HOST.
1364 echo $ac_n "checking build system type""... $ac_c" 1>&6
1365 echo "configure:1366: checking build system type" >&5
1368 case "$build_alias" in
1371 NONE
) build_alias
=$host_alias ;;
1372 *) build_alias
=$nonopt ;;
1376 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1377 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1378 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1379 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1380 echo "$ac_t""$build" 1>&6
1383 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1384 set dummy
${ac_tool_prefix}as
; ac_word
=$2
1385 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1386 echo "configure:1387: checking for $ac_word" >&5
1387 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1388 echo $ac_n "(cached) $ac_c" 1>&6
1390 if test -n "$AS"; then
1391 ac_cv_prog_AS
="$AS" # Let the user override the test.
1393 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1395 for ac_dir
in $ac_dummy; do
1396 test -z "$ac_dir" && ac_dir
=.
1397 if test -f $ac_dir/$ac_word; then
1398 ac_cv_prog_AS
="${ac_tool_prefix}as"
1403 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS
="as"
1407 if test -n "$AS"; then
1408 echo "$ac_t""$AS" 1>&6
1410 echo "$ac_t""no" 1>&6
1415 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1416 set dummy
${ac_tool_prefix}ar; ac_word
=$2
1417 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1418 echo "configure:1419: checking for $ac_word" >&5
1419 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1420 echo $ac_n "(cached) $ac_c" 1>&6
1422 if test -n "$AR"; then
1423 ac_cv_prog_AR
="$AR" # Let the user override the test.
1425 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1427 for ac_dir
in $ac_dummy; do
1428 test -z "$ac_dir" && ac_dir
=.
1429 if test -f $ac_dir/$ac_word; then
1430 ac_cv_prog_AR
="${ac_tool_prefix}ar"
1435 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
1439 if test -n "$AR"; then
1440 echo "$ac_t""$AR" 1>&6
1442 echo "$ac_t""no" 1>&6
1447 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1448 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1449 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1450 echo "configure:1451: checking for $ac_word" >&5
1451 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1452 echo $ac_n "(cached) $ac_c" 1>&6
1454 if test -n "$RANLIB"; then
1455 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1457 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1459 for ac_dir
in $ac_dummy; do
1460 test -z "$ac_dir" && ac_dir
=.
1461 if test -f $ac_dir/$ac_word; then
1462 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1469 RANLIB
="$ac_cv_prog_RANLIB"
1470 if test -n "$RANLIB"; then
1471 echo "$ac_t""$RANLIB" 1>&6
1473 echo "$ac_t""no" 1>&6
1477 if test -z "$ac_cv_prog_RANLIB"; then
1478 if test -n "$ac_tool_prefix"; then
1479 # Extract the first word of "ranlib", so it can be a program name with args.
1480 set dummy ranlib
; ac_word
=$2
1481 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1482 echo "configure:1483: checking for $ac_word" >&5
1483 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1484 echo $ac_n "(cached) $ac_c" 1>&6
1486 if test -n "$RANLIB"; then
1487 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1489 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1491 for ac_dir
in $ac_dummy; do
1492 test -z "$ac_dir" && ac_dir
=.
1493 if test -f $ac_dir/$ac_word; then
1494 ac_cv_prog_RANLIB
="ranlib"
1499 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1502 RANLIB
="$ac_cv_prog_RANLIB"
1503 if test -n "$RANLIB"; then
1504 echo "$ac_t""$RANLIB" 1>&6
1506 echo "$ac_t""no" 1>&6
1515 # Find a good install program. We prefer a C program (faster),
1516 # so one script is as good as another. But avoid the broken or
1517 # incompatible versions:
1518 # SysV /etc/install, /usr/sbin/install
1519 # SunOS /usr/etc/install
1520 # IRIX /sbin/install
1522 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1523 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1524 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1525 # ./install, which can be erroneously created by make from ./install.sh.
1526 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1527 echo "configure:1528: checking for a BSD compatible install" >&5
1528 if test -z "$INSTALL"; then
1529 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1530 echo $ac_n "(cached) $ac_c" 1>&6
1532 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1533 for ac_dir
in $PATH; do
1534 # Account for people who put trailing slashes in PATH elements.
1536 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1538 # OSF1 and SCO ODT 3.0 have their own names for install.
1539 # Don't use installbsd from OSF since it installs stuff as root
1541 for ac_prog
in ginstall scoinst
install; do
1542 if test -f $ac_dir/$ac_prog; then
1543 if test $ac_prog = install &&
1544 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1545 # AIX install. It has an incompatible calling convention.
1548 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1559 if test "${ac_cv_path_install+set}" = set; then
1560 INSTALL
="$ac_cv_path_install"
1562 # As a last resort, use the slow shell script. We don't cache a
1563 # path for INSTALL within a source directory, because that will
1564 # break other packages using the cache if that directory is
1565 # removed, or if the path is relative.
1566 INSTALL
="$ac_install_sh"
1569 echo "$ac_t""$INSTALL" 1>&6
1571 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1572 # It thinks the first close brace ends the variable substitution.
1573 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1575 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1577 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1580 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1581 echo "configure:1582: checking whether to enable maintainer-specific portions of Makefiles" >&5
1582 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1583 if test "${enable_maintainer_mode+set}" = set; then
1584 enableval
="$enable_maintainer_mode"
1585 USE_MAINTAINER_MODE
=$enableval
1587 USE_MAINTAINER_MODE
=no
1590 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1593 if test $USE_MAINTAINER_MODE = yes; then
1594 MAINTAINER_MODE_TRUE
=
1595 MAINTAINER_MODE_FALSE
='#'
1597 MAINTAINER_MODE_TRUE
='#'
1598 MAINTAINER_MODE_FALSE
=
1600 MAINT
=$MAINTAINER_MODE_TRUE
1604 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1605 # at least currently, we never actually build a program, so we never
1606 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1607 # fails, because we are probably configuring with a cross compiler
1608 # which cant create executables. So we include AC_EXEEXT to keep
1609 # automake happy, but we dont execute it, since we dont care about
1614 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1615 echo "configure:1616: checking for executable suffix" >&5
1616 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1617 echo $ac_n "(cached) $ac_c" 1>&6
1619 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
1623 echo 'int main () { return 0; }' > conftest.
$ac_ext
1625 if { (eval echo configure
:1626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1626 for file in conftest.
*; do
1628 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
1629 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
1633 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1636 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
1641 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
1642 echo "$ac_t""${ac_cv_exeext}" 1>&6
1647 # configure.host sets the following important variables
1648 # libgcj_cflags - host specific C compiler flags
1649 # libgcj_cxxflags - host specific C++ compiler flags
1650 # libgcj_javaflags - host specific Java compiler flags
1656 .
${libgcj_basedir}/configure.
host
1658 case ${libgcj_basedir} in
1659 /* | A-Za-z
:/\\*) libgcj_flagbasedir
=${libgcj_basedir} ;;
1660 *) libgcj_flagbasedir
='$(top_builddir)/'${libgcj_basedir} ;;
1663 LIBGCJ_CFLAGS
="${libgcj_cflags}"
1664 LIBGCJ_CXXFLAGS
="${libgcj_cxxflags}"
1665 LIBGCJ_JAVAFLAGS
="${libgcj_javaflags}"
1675 # Only use libltdl for native builds.
1676 if test -z "${with_cross_host}"; then
1677 case "$enable_ltdl_convenience" in
1678 no
) { echo "configure: error: this package needs a convenience libltdl" 1>&2; exit 1; } ;;
1679 "") enable_ltdl_convenience
=yes
1680 ac_configure_args
="$ac_configure_args --enable-ltdl-convenience" ;;
1682 LIBLTDL
='${top_builddir}/''libltdl'/libltdlc.la
1683 INCLTDL
='-I${top_srcdir}/''libltdl'
1687 cat >> confdefs.h
<<\EOF
1691 # Sigh. Libtool's macro doesn't do the right thing.
1692 INCLTDL
="-I\$(top_srcdir)/libltdl $INCLTDL"
1697 # Check whether --enable-shared or --disable-shared was given.
1698 if test "${enable_shared+set}" = set; then
1699 enableval
="$enable_shared"
1700 p
=${PACKAGE-default}
1701 case "$enableval" in
1702 yes) enable_shared
=yes ;;
1703 no
) enable_shared
=no
;;
1706 # Look at the argument we got. We use all the common list separators.
1707 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1708 for pkg
in $enableval; do
1709 if test "X$pkg" = "X$p"; then
1720 # Check whether --enable-static or --disable-static was given.
1721 if test "${enable_static+set}" = set; then
1722 enableval
="$enable_static"
1723 p
=${PACKAGE-default}
1724 case "$enableval" in
1725 yes) enable_static
=yes ;;
1726 no
) enable_static
=no
;;
1729 # Look at the argument we got. We use all the common list separators.
1730 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1731 for pkg
in $enableval; do
1732 if test "X$pkg" = "X$p"; then
1743 # Check whether --enable-fast-install or --disable-fast-install was given.
1744 if test "${enable_fast_install+set}" = set; then
1745 enableval
="$enable_fast_install"
1746 p
=${PACKAGE-default}
1747 case "$enableval" in
1748 yes) enable_fast_install
=yes ;;
1749 no
) enable_fast_install
=no
;;
1751 enable_fast_install
=no
1752 # Look at the argument we got. We use all the common list separators.
1753 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1754 for pkg
in $enableval; do
1755 if test "X$pkg" = "X$p"; then
1756 enable_fast_install
=yes
1763 enable_fast_install
=yes
1766 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1767 if test "${with_gnu_ld+set}" = set; then
1768 withval
="$with_gnu_ld"
1769 test "$withval" = no || with_gnu_ld
=yes
1775 if test "$ac_cv_prog_gcc" = yes; then
1776 # Check if gcc -print-prog-name=ld gives a path.
1777 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1778 echo "configure:1779: checking for ld used by GCC" >&5
1781 # gcc leaves a trailing carriage return which upsets mingw
1782 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1784 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
1787 # Accept absolute paths.
1788 [\\/]* |
[A-Za-z
]:[\\/]*)
1789 re_direlt
='/[^/][^/]*/\.\./'
1790 # Canonicalize the path of ld
1791 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1792 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1793 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1795 test -z "$LD" && LD
="$ac_prog"
1798 # If it fails, then pretend we aren't using GCC.
1802 # If it is relative, then search for the first ld in PATH.
1806 elif test "$with_gnu_ld" = yes; then
1807 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1808 echo "configure:1809: checking for GNU ld" >&5
1810 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1811 echo "configure:1812: checking for non-GNU ld" >&5
1813 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1814 echo $ac_n "(cached) $ac_c" 1>&6
1816 if test -z "$LD"; then
1817 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1818 for ac_dir
in $PATH; do
1819 test -z "$ac_dir" && ac_dir
=.
1820 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
1821 ac_cv_path_LD
="$ac_dir/$ac_prog"
1822 # Check to see if the program is GNU ld. I'd rather use --version,
1823 # but apparently some GNU ld's only accept -v.
1824 # Break only if it was the GNU/non-GNU ld that we prefer.
1825 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1826 test "$with_gnu_ld" != no
&& break
1828 test "$with_gnu_ld" != yes && break
1834 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1839 if test -n "$LD"; then
1840 echo "$ac_t""$LD" 1>&6
1842 echo "$ac_t""no" 1>&6
1844 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1845 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1846 echo "configure:1847: checking if the linker ($LD) is GNU ld" >&5
1847 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1848 echo $ac_n "(cached) $ac_c" 1>&6
1850 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1851 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1852 ac_cv_prog_gnu_ld
=yes
1854 ac_cv_prog_gnu_ld
=no
1858 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1859 with_gnu_ld
=$ac_cv_prog_gnu_ld
1862 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1863 echo "configure:1864: checking for $LD option to reload object files" >&5
1864 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1865 echo $ac_n "(cached) $ac_c" 1>&6
1867 lt_cv_ld_reload_flag
='-r'
1870 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1871 reload_flag
=$lt_cv_ld_reload_flag
1872 test -n "$reload_flag" && reload_flag
=" $reload_flag"
1874 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1875 echo "configure:1876: checking for BSD-compatible nm" >&5
1876 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1877 echo $ac_n "(cached) $ac_c" 1>&6
1879 if test -n "$NM"; then
1880 # Let the user override the test.
1883 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1884 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1885 test -z "$ac_dir" && ac_dir
=.
1886 tmp_nm
=$ac_dir/${ac_tool_prefix}nm
1887 if test -f $tmp_nm ||
test -f $tmp_nm$ac_exeext ; then
1888 # Check to see if the nm accepts a BSD-compat flag.
1889 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1890 # nm: unknown option "B" ignored
1891 # Tru64's nm complains that /dev/null is an invalid object file
1892 if ($tmp_nm -B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep '(/dev/null|Invalid file or object type)' >/dev
/null
; then
1893 ac_cv_path_NM
="$tmp_nm -B"
1895 elif ($tmp_nm -p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1896 ac_cv_path_NM
="$tmp_nm -p"
1899 ac_cv_path_NM
=${ac_cv_path_NM="$tmp_nm"} # keep the first match, but
1900 continue # so that we can try to find one that supports BSD flags
1905 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1910 echo "$ac_t""$NM" 1>&6
1912 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1913 echo "configure:1914: checking how to recognise dependant libraries" >&5
1914 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1915 echo $ac_n "(cached) $ac_c" 1>&6
1917 lt_cv_file_magic_cmd
='$MAGIC_CMD'
1918 lt_cv_file_magic_test_file
=
1919 lt_cv_deplibs_check_method
='unknown'
1920 # Need to set the preceding variable on all platforms that support
1921 # interlibrary dependencies.
1922 # 'none' -- dependencies not supported.
1923 # `unknown' -- same as none, but documents that we really don't know.
1924 # 'pass_all' -- all dependencies passed with no checks.
1925 # 'test_compile' -- check by making test program.
1926 # 'file_magic [regex]' -- check by looking for files in library path
1927 # which responds to the $file_magic_cmd with a given egrep regex.
1928 # If you have `file' or equivalent on your system and you're not sure
1929 # whether `pass_all' will *always* work, you probably want this one.
1933 lt_cv_deplibs_check_method
=pass_all
1937 lt_cv_deplibs_check_method
=pass_all
1941 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1942 lt_cv_file_magic_cmd
='/usr/bin/file -L'
1943 lt_cv_file_magic_test_file
=/shlib
/libc.so
1946 cygwin
* | mingw
* |pw32
*)
1947 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
1948 lt_cv_file_magic_cmd
='$OBJDUMP -f'
1952 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
1955 # Not sure whether the presence of OpenBSD here was a mistake.
1956 # Let's accept both of them until this is cleared up.
1957 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1958 lt_cv_file_magic_cmd
=/usr
/bin
/file
1959 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
1963 lt_cv_deplibs_check_method
=pass_all
1968 lt_cv_deplibs_check_method
=pass_all
1972 # TODO: Does this work for hpux-11 too?
1973 lt_cv_deplibs_check_method
='file_magic (s0-90-90-9|PA-RISC0-9.0-9) shared library'
1974 lt_cv_file_magic_cmd
=/usr
/bin
/file
1975 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
1981 # this will be overridden with pass_all, but let us keep it just in case
1982 lt_cv_deplibs_check_method
="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1986 *-32|
*"-32 ") libmagic
=32-bit;;
1987 *-n32|
*"-n32 ") libmagic
=N32
;;
1988 *-64|
*"-64 ") libmagic
=64-bit;;
1989 *) libmagic
=never-match
;;
1991 # this will be overridden with pass_all, but let us keep it just in case
1992 lt_cv_deplibs_check_method
="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1995 lt_cv_file_magic_test_file
=`echo /lib${libsuff}/libc.so*`
1996 lt_cv_deplibs_check_method
=pass_all
1999 # This must be Linux ELF.
2002 alpha
* | i
*86 | powerpc
* | sparc
* | ia64
* )
2003 lt_cv_deplibs_check_method
=pass_all
;;
2005 # glibc up to 2.1.1 does not perform some relocations on ARM
2006 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2008 lt_cv_file_magic_test_file
=`echo /lib/libc.so* /lib/libc-*.so`
2012 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then :
2014 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
2015 lt_cv_file_magic_cmd
='/usr/bin/file -L'
2016 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
2020 osf3
* | osf4
* | osf5
*)
2021 # this will be overridden with pass_all, but let us keep it just in case
2022 lt_cv_deplibs_check_method
='file_magic COFF format alpha shared library'
2023 lt_cv_file_magic_test_file
=/shlib
/libc.so
2024 lt_cv_deplibs_check_method
=pass_all
2028 lt_cv_deplibs_check_method
=pass_all
2032 lt_cv_deplibs_check_method
=pass_all
2033 lt_cv_file_magic_test_file
=/lib
/libc.so
2036 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
2037 case "$host_vendor" in
2039 lt_cv_deplibs_check_method
=pass_all
2042 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]'
2043 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
2051 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2052 file_magic_cmd
=$lt_cv_file_magic_cmd
2053 deplibs_check_method
=$lt_cv_deplibs_check_method
2055 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2056 echo "configure:2057: checking for object suffix" >&5
2057 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2058 echo $ac_n "(cached) $ac_c" 1>&6
2061 echo 'int i = 1;' > conftest.
$ac_ext
2062 if { (eval echo configure
:2063: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2063 for ac_file
in conftest.
*; do
2066 *) ac_cv_objext
=`echo $ac_file | sed -e s/conftest.//` ;;
2070 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2075 echo "$ac_t""$ac_cv_objext" 1>&6
2076 OBJEXT
=$ac_cv_objext
2077 ac_objext
=$ac_cv_objext
2079 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2081 # Only perform the check for file, if the check method requires it
2082 case "$deplibs_check_method" in
2084 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2085 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2086 echo "configure:2087: checking for ${ac_tool_prefix}file" >&5
2087 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2088 echo $ac_n "(cached) $ac_c" 1>&6
2090 case "$MAGIC_CMD" in
2092 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
2095 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
2098 ac_save_MAGIC_CMD
="$MAGIC_CMD"
2099 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2100 ac_dummy
="/usr/bin:$PATH"
2101 for ac_dir
in $ac_dummy; do
2102 test -z "$ac_dir" && ac_dir
=.
2103 if test -f $ac_dir/${ac_tool_prefix}file; then
2104 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
2105 if test -n "$file_magic_test_file"; then
2106 case "$deplibs_check_method" in
2108 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2109 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
2110 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
2111 egrep "$file_magic_regex" > /dev
/null
; then
2116 *** Warning: the command libtool uses to detect shared libraries,
2117 *** $file_magic_cmd, produces output that libtool cannot recognize.
2118 *** The result is that libtool may fail to recognize shared libraries
2119 *** as such. This will affect the creation of libtool libraries that
2120 *** depend on shared libraries, but programs linked with such libtool
2121 *** libraries will work regardless of this problem. Nevertheless, you
2122 *** may want to report the problem to your system manager and/or to
2123 *** bug-libtool@gnu.org
2133 MAGIC_CMD
="$ac_save_MAGIC_CMD"
2138 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
2139 if test -n "$MAGIC_CMD"; then
2140 echo "$ac_t""$MAGIC_CMD" 1>&6
2142 echo "$ac_t""no" 1>&6
2145 if test -z "$lt_cv_path_MAGIC_CMD"; then
2146 if test -n "$ac_tool_prefix"; then
2147 echo $ac_n "checking for file""... $ac_c" 1>&6
2148 echo "configure:2149: checking for file" >&5
2149 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2150 echo $ac_n "(cached) $ac_c" 1>&6
2152 case "$MAGIC_CMD" in
2154 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
2157 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
2160 ac_save_MAGIC_CMD
="$MAGIC_CMD"
2161 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2162 ac_dummy
="/usr/bin:$PATH"
2163 for ac_dir
in $ac_dummy; do
2164 test -z "$ac_dir" && ac_dir
=.
2165 if test -f $ac_dir/file; then
2166 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
2167 if test -n "$file_magic_test_file"; then
2168 case "$deplibs_check_method" in
2170 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2171 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
2172 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
2173 egrep "$file_magic_regex" > /dev
/null
; then
2178 *** Warning: the command libtool uses to detect shared libraries,
2179 *** $file_magic_cmd, produces output that libtool cannot recognize.
2180 *** The result is that libtool may fail to recognize shared libraries
2181 *** as such. This will affect the creation of libtool libraries that
2182 *** depend on shared libraries, but programs linked with such libtool
2183 *** libraries will work regardless of this problem. Nevertheless, you
2184 *** may want to report the problem to your system manager and/or to
2185 *** bug-libtool@gnu.org
2195 MAGIC_CMD
="$ac_save_MAGIC_CMD"
2200 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
2201 if test -n "$MAGIC_CMD"; then
2202 echo "$ac_t""$MAGIC_CMD" 1>&6
2204 echo "$ac_t""no" 1>&6
2216 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2217 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
2218 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2219 echo "configure:2220: checking for $ac_word" >&5
2220 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2221 echo $ac_n "(cached) $ac_c" 1>&6
2223 if test -n "$RANLIB"; then
2224 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2226 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2228 for ac_dir
in $ac_dummy; do
2229 test -z "$ac_dir" && ac_dir
=.
2230 if test -f $ac_dir/$ac_word; then
2231 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
2238 RANLIB
="$ac_cv_prog_RANLIB"
2239 if test -n "$RANLIB"; then
2240 echo "$ac_t""$RANLIB" 1>&6
2242 echo "$ac_t""no" 1>&6
2246 if test -z "$ac_cv_prog_RANLIB"; then
2247 if test -n "$ac_tool_prefix"; then
2248 # Extract the first word of "ranlib", so it can be a program name with args.
2249 set dummy ranlib
; ac_word
=$2
2250 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2251 echo "configure:2252: checking for $ac_word" >&5
2252 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2253 echo $ac_n "(cached) $ac_c" 1>&6
2255 if test -n "$RANLIB"; then
2256 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2258 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2260 for ac_dir
in $ac_dummy; do
2261 test -z "$ac_dir" && ac_dir
=.
2262 if test -f $ac_dir/$ac_word; then
2263 ac_cv_prog_RANLIB
="ranlib"
2268 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2271 RANLIB
="$ac_cv_prog_RANLIB"
2272 if test -n "$RANLIB"; then
2273 echo "$ac_t""$RANLIB" 1>&6
2275 echo "$ac_t""no" 1>&6
2283 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2284 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2285 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2286 echo "configure:2287: checking for $ac_word" >&5
2287 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2288 echo $ac_n "(cached) $ac_c" 1>&6
2290 if test -n "$STRIP"; then
2291 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2293 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2295 for ac_dir
in $ac_dummy; do
2296 test -z "$ac_dir" && ac_dir
=.
2297 if test -f $ac_dir/$ac_word; then
2298 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2305 STRIP
="$ac_cv_prog_STRIP"
2306 if test -n "$STRIP"; then
2307 echo "$ac_t""$STRIP" 1>&6
2309 echo "$ac_t""no" 1>&6
2313 if test -z "$ac_cv_prog_STRIP"; then
2314 if test -n "$ac_tool_prefix"; then
2315 # Extract the first word of "strip", so it can be a program name with args.
2316 set dummy strip
; ac_word
=$2
2317 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2318 echo "configure:2319: checking for $ac_word" >&5
2319 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2320 echo $ac_n "(cached) $ac_c" 1>&6
2322 if test -n "$STRIP"; then
2323 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2325 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2327 for ac_dir
in $ac_dummy; do
2328 test -z "$ac_dir" && ac_dir
=.
2329 if test -f $ac_dir/$ac_word; then
2330 ac_cv_prog_STRIP
="strip"
2335 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP
=":"
2338 STRIP
="$ac_cv_prog_STRIP"
2339 if test -n "$STRIP"; then
2340 echo "$ac_t""$STRIP" 1>&6
2342 echo "$ac_t""no" 1>&6
2351 # Check for any special flags to pass to ltconfig.
2352 libtool_flags
="--cache-file=$cache_file"
2353 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
2354 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
2355 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
2356 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
2357 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
2358 libtool_flags
="$libtool_flags --enable-dlopen"
2360 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2361 if test "${enable_libtool_lock+set}" = set; then
2362 enableval
="$enable_libtool_lock"
2366 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
2367 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
2369 # Check whether --with-pic or --without-pic was given.
2370 if test "${with_pic+set}" = set; then
2377 test x
"$pic_mode" = xyes
&& libtool_flags
="$libtool_flags --prefer-pic"
2378 test x
"$pic_mode" = xno
&& libtool_flags
="$libtool_flags --prefer-non-pic"
2380 # Some flags need to be propagated to the compiler or linker for good
2384 # Find out which ABI we are using.
2385 echo '#line 2386 "configure"' > conftest.
$ac_ext
2386 if { (eval echo configure
:2387: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2387 case "`/usr/bin/file conftest.o`" in
2403 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2404 SAVE_CFLAGS
="$CFLAGS"
2405 CFLAGS
="$CFLAGS -belf"
2406 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2407 echo "configure:2408: checking whether the C compiler needs -belf" >&5
2408 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2409 echo $ac_n "(cached) $ac_c" 1>&6
2413 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2414 ac_cpp
='$CPP $CPPFLAGS'
2415 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2416 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2417 cross_compiling
=$ac_cv_prog_cc_cross
2419 cat > conftest.
$ac_ext <<EOF
2420 #line 2421 "configure"
2421 #include "confdefs.h"
2427 if { (eval echo configure
:2428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2429 lt_cv_cc_needs_belf
=yes
2431 echo "configure: failed program was:" >&5
2432 cat conftest.
$ac_ext >&5
2434 lt_cv_cc_needs_belf
=no
2438 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2439 ac_cpp
='$CPP $CPPFLAGS'
2440 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2441 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2442 cross_compiling
=$ac_cv_prog_cc_cross
2446 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2447 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
2448 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2449 CFLAGS
="$SAVE_CFLAGS"
2456 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2457 echo "configure:2458: checking how to run the C++ preprocessor" >&5
2458 if test -z "$CXXCPP"; then
2459 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2460 echo $ac_n "(cached) $ac_c" 1>&6
2463 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2464 ac_cpp
='$CXXCPP $CPPFLAGS'
2465 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2466 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2467 cross_compiling
=$ac_cv_prog_cxx_cross
2468 CXXCPP
="${CXX-g++} -E"
2469 cat > conftest.
$ac_ext <<EOF
2470 #line 2471 "configure"
2471 #include "confdefs.h"
2474 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2475 { (eval echo configure
:2476: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2476 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2477 if test -z "$ac_err"; then
2481 echo "configure: failed program was:" >&5
2482 cat conftest.
$ac_ext >&5
2487 ac_cv_prog_CXXCPP
="$CXXCPP"
2489 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2490 ac_cpp
='$CPP $CPPFLAGS'
2491 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2492 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2493 cross_compiling
=$ac_cv_prog_cc_cross
2496 CXXCPP
="$ac_cv_prog_CXXCPP"
2497 echo "$ac_t""$CXXCPP" 1>&6
2500 # Save cache, so that ltconfig can load it
2501 cat > confcache
<<\EOF
2502 # This file is a shell script that caches the results of configure
2503 # tests run on this system so they can be shared between configure
2504 # scripts and configure runs. It is not useful on other systems.
2505 # If it contains results you don't want to keep, you may remove or edit it.
2507 # By default, configure uses ./config.cache as the cache file,
2508 # creating it if it does not exist already. You can give configure
2509 # the --cache-file=FILE option to use a different cache file; that is
2510 # what configure does when it calls configure scripts in
2511 # subdirectories, so they share the cache.
2512 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2513 # config.status only pays attention to the cache file if you give it the
2514 # --recheck option to rerun configure.
2517 # The following way of writing the cache mishandles newlines in values,
2518 # but we know of no workaround that is simple, portable, and efficient.
2519 # So, don't put newlines in cache variables' values.
2520 # Ultrix sh set writes to stderr and can't be redirected directly,
2521 # and sets the high bit in the cache file unless we assign to the vars.
2523 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2525 # `set' does not quote correctly, so add quotes (double-quote substitution
2526 # turns \\\\ into \\, and sed turns \\ into \).
2528 -e "s/'/'\\\\''/g" \
2529 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2532 # `set' quotes correctly as required by POSIX, so do not add quotes.
2533 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2536 if cmp -s $cache_file confcache
; then
2539 if test -w $cache_file; then
2540 echo "updating cache $cache_file"
2541 cat confcache
> $cache_file
2543 echo "not updating unwritable cache $cache_file"
2549 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2550 AR
="$AR" LTCC
="$CC" CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
2551 MAGIC_CMD
="$MAGIC_CMD" LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
2552 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
2553 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
2554 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
2555 deplibs_check_method
="$deplibs_check_method" file_magic_cmd
="$file_magic_cmd" \
2556 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
2557 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh
$host \
2558 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2560 # Reload cache, that may have been modified by ltconfig
2561 if test -r "$cache_file"; then
2562 echo "loading cache $cache_file"
2565 echo "creating cache $cache_file"
2570 # This can be used to rebuild libtool when needed
2571 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2573 # Always use our own libtool.
2574 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
2576 # Redirect the config.log output again, so that the ltconfig log is not
2577 # clobbered by the next message.
2578 exec 5>>.
/config.log
2583 LIBTOOL_DEPS
=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2585 lt_save_CFLAGS
="$CFLAGS"
2586 AR
="$AR" LTCC
="$CC" CC
="$CXX" CXX
="$CXX" CFLAGS
="$CXXFLAGS" CPPFLAGS
="$CPPFLAGS" \
2587 MAGIC_CMD
="$MAGIC_CMD" LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
2588 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
2589 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
2590 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
2591 deplibs_check_method
="$deplibs_check_method" \
2592 file_magic_cmd
="$file_magic_cmd" \
2593 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
-o libtool
$libtool_flags \
2594 --build="$build" --add-tag=CXX
$ac_aux_dir/ltcf-cxx.sh
$host \
2595 ||
{ echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2597 CFLAGS
="$lt_save_CFLAGS"
2599 # Redirect the config.log output again, so that the ltconfig log is not
2600 # clobbered by the next message.
2601 exec 5>>.
/config.log
2612 if test -z "$with_target_subdir" ||
test "$with_target_subdir" = "."; then
2621 if test -d $srcdir/testsuite
; then
2623 TESTSUBDIR_FALSE
='#'
2629 # Check whether --enable-fast-character or --disable-fast-character was given.
2630 if test "${enable_fast_character+set}" = set; then
2631 enableval
="$enable_fast_character"
2635 cat >> confdefs.h
<<\EOF
2636 #define COMPACT_CHARACTER 1
2642 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
2643 if test "${enable_getenv_properties+set}" = set; then
2644 enableval
="$enable_getenv_properties"
2649 if test -n "$enable_getenv_properties"; then
2650 enable_getenv_properties
=${enable_getenv_properties_default-yes}
2652 if test "$enable_getenv_properties" = no
; then
2653 cat >> confdefs.h
<<\EOF
2654 #define DISABLE_GETENV_PROPERTIES 1
2661 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
2662 if test "${enable_libgcj_debug+set}" = set; then
2663 enableval
="$enable_libgcj_debug"
2664 if test "$enable_libgcj_debug" = yes; then
2665 cat >> confdefs.h
<<\EOF
2674 # Check whether --enable-interpreter or --disable-interpreter was given.
2675 if test "${enable_interpreter+set}" = set; then
2676 enableval
="$enable_interpreter"
2677 if test "$enable_interpreter" = yes; then
2678 # This can also be set in configure.host.
2679 libgcj_interpreter
=yes
2680 elif test "$enable_interpreter" = no
; then
2681 libgcj_interpreter
=no
2686 if test "$libgcj_interpreter" = yes; then
2687 cat >> confdefs.h
<<\EOF
2688 #define INTERPRETER 1
2694 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
2695 if test "${enable_sjlj_exceptions+set}" = set; then
2696 enableval
="$enable_sjlj_exceptions"
2697 if test "$enable_sjlj_exceptions" = yes; then
2698 # This can be set in configure.host.
2704 if test "$libgcj_sjlj" = yes; then
2705 EXCEPTIONSPEC
="-fsjlj-exceptions"
2706 cat >> confdefs.h
<<\EOF
2707 #define SJLJ_EXCEPTIONS 1
2713 if test "$ac_cv_prog_gnu_ld" = yes; then
2714 FORCELIBGCCSPEC
="-u __rethrow -u __frame_state_for -lgcc"
2717 echo $ac_n "checking for data_start""... $ac_c" 1>&6
2718 echo "configure:2719: checking for data_start" >&5
2721 cat > conftest.
$ac_ext <<EOF
2722 #line 2723 "configure"
2723 #include "confdefs.h"
2724 extern int data_start;
2726 return ((int) &data_start);
2729 if { (eval echo configure
:2730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2731 echo "$ac_t""found it" 1>&6
2733 echo "configure: failed program was:" >&5
2734 cat conftest.
$ac_ext >&5
2736 LIBDATASTARTSPEC
="-u data_start libgcjdata.a%s"
2737 NEEDS_DATA_START
=yes
2738 echo "$ac_t""missing" 1>&6
2743 # Check whether --enable-java-net or --disable-java-net was given.
2744 if test "${enable_java_net+set}" = set; then
2745 enableval
="$enable_java_net"
2750 if test -n "$enable_java_net"; then
2751 enable_java_net
=${enable_java_net_default-yes}
2753 if test "$enable_java_net" = no
; then
2754 cat >> confdefs.h
<<\EOF
2755 #define DISABLE_JAVA_NET 1
2760 # Check whether --enable-jvmpi or --disable-jvmpi was given.
2761 if test "${enable_jvmpi+set}" = set; then
2762 enableval
="$enable_jvmpi"
2767 if test "$enable_jvmpi" != no
; then
2768 cat >> confdefs.h
<<\EOF
2769 #define ENABLE_JVMPI 1
2775 # Check whether --with-ecos or --without-ecos was given.
2776 if test "${with_ecos+set}" = set; then
2777 withval
="$with_ecos"
2778 TARGET_ECOS
="$with_ecos"
2783 case "$TARGET_ECOS" in
2785 FILE_DESCRIPTOR
=natFileDescriptorPosix.cc
2786 PROCESS
=${PROCESS-Posix}
2789 FILE_DESCRIPTOR
=natFileDescriptorEcos.cc
2791 cat >> confdefs.h
<<\EOF
2798 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2799 echo "configure:2800: checking how to run the C preprocessor" >&5
2800 # On Suns, sometimes $CPP names a directory.
2801 if test -n "$CPP" && test -d "$CPP"; then
2804 if test -z "$CPP"; then
2805 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2806 echo $ac_n "(cached) $ac_c" 1>&6
2808 # This must be in double quotes, not single quotes, because CPP may get
2809 # substituted into the Makefile and "${CC-cc}" will confuse make.
2811 # On the NeXT, cc -E runs the code through the compiler's parser,
2812 # not just through cpp.
2813 cat > conftest.
$ac_ext <<EOF
2814 #line 2815 "configure"
2815 #include "confdefs.h"
2819 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2820 { (eval echo configure
:2821: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2821 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2822 if test -z "$ac_err"; then
2826 echo "configure: failed program was:" >&5
2827 cat conftest.
$ac_ext >&5
2829 CPP
="${CC-cc} -E -traditional-cpp"
2830 cat > conftest.
$ac_ext <<EOF
2831 #line 2832 "configure"
2832 #include "confdefs.h"
2836 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2837 { (eval echo configure
:2838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2838 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2839 if test -z "$ac_err"; then
2843 echo "configure: failed program was:" >&5
2844 cat conftest.
$ac_ext >&5
2846 CPP
="${CC-cc} -nologo -E"
2847 cat > conftest.
$ac_ext <<EOF
2848 #line 2849 "configure"
2849 #include "confdefs.h"
2853 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2854 { (eval echo configure
:2855: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2855 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2856 if test -z "$ac_err"; then
2860 echo "configure: failed program was:" >&5
2861 cat conftest.
$ac_ext >&5
2870 ac_cv_prog_CPP
="$CPP"
2872 CPP
="$ac_cv_prog_CPP"
2874 ac_cv_prog_CPP
="$CPP"
2876 echo "$ac_t""$CPP" 1>&6
2878 cat > conftest.
$ac_ext <<EOF
2879 #line 2880 "configure"
2880 #include "confdefs.h"
2883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2884 egrep "uint32_t" >/dev
/null
2>&1; then
2886 cat >> confdefs.h
<<\EOF
2887 #define HAVE_INT32_DEFINED 1
2893 cat > conftest.
$ac_ext <<EOF
2894 #line 2895 "configure"
2895 #include "confdefs.h"
2896 #include <inttypes.h>
2898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2899 egrep "uint32_t" >/dev
/null
2>&1; then
2901 cat >> confdefs.h
<<\EOF
2902 #define HAVE_INT32_DEFINED 1
2908 cat > conftest.
$ac_ext <<EOF
2909 #line 2910 "configure"
2910 #include "confdefs.h"
2911 #include <sys/types.h>
2913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2914 egrep "u_int32_t" >/dev
/null
2>&1; then
2916 cat >> confdefs.h
<<\EOF
2917 #define HAVE_BSD_INT32_DEFINED 1
2923 cat > conftest.
$ac_ext <<EOF
2924 #line 2925 "configure"
2925 #include "confdefs.h"
2926 #include <sys/config.h>
2928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2929 egrep "u_int32_t" >/dev
/null
2>&1; then
2931 cat >> confdefs.h
<<\EOF
2932 #define HAVE_BSD_INT32_DEFINED 1
2940 cat > conftest.
$ac_ext <<EOF
2941 #line 2942 "configure"
2942 #include "confdefs.h"
2945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2946 egrep "mktime" >/dev
/null
2>&1; then
2948 cat >> confdefs.h
<<\EOF
2949 #define HAVE_MKTIME 1
2955 cat > conftest.
$ac_ext <<EOF
2956 #line 2957 "configure"
2957 #include "confdefs.h"
2960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2961 egrep "localtime" >/dev
/null
2>&1; then
2963 cat >> confdefs.h
<<\EOF
2964 #define HAVE_LOCALTIME 1
2971 test -d java || mkdir java
2972 test -d java
/io || mkdir java
/io
2973 test -d gnu || mkdir gnu
2976 test -d java
/lang || mkdir java
/lang
2983 LIBGCJTESTSPEC
="-L`pwd`/.libs -rpath `pwd`/.libs"
2986 # Check whether --with-system-zlib or --without-system-zlib was given.
2987 if test "${with_system_zlib+set}" = set; then
2988 withval
="$with_system_zlib"
2999 echo $ac_n "checking for garbage collector to use""... $ac_c" 1>&6
3000 echo "configure:3001: checking for garbage collector to use" >&5
3001 # Check whether --enable-java-gc or --disable-java-gc was given.
3002 if test "${enable_java_gc+set}" = set; then
3003 enableval
="$enable_java_gc"
3019 echo "$ac_t""boehm" 1>&6
3020 GCDEPS
='$(top_builddir)/../boehm-gc/libgcjgc.la'
3021 # We include the path to the boehm-gc build directory.
3022 # See Makefile.am to understand why.
3023 GCLIBS
="$GCDEPS -L\$(here)/../boehm-gc/$libsubdir"
3024 GCINCS
='-I$(top_srcdir)/../boehm-gc -I$(top_builddir)/../boehm-gc'
3026 JC1GCSPEC
='-fuse-boehm-gc'
3027 GCTESTSPEC
="-L`pwd`/../boehm-gc/.libs -rpath `pwd`/../boehm-gc/.libs"
3028 GCINCS
="$GCINCS `cat ../boehm-gc/boehm-cflags`"
3031 cat >> confdefs.h
<<\EOF
3032 #define HAVE_BOEHM_GC 1
3037 echo "$ac_t""none" 1>&6
3042 { echo "configure: error: unrecognized collector \"$GC\"" 1>&2; exit 1; }
3055 echo $ac_n "checking for threads package to use""... $ac_c" 1>&6
3056 echo "configure:3057: checking for threads package to use" >&5
3057 # Check whether --enable-threads or --disable-threads was given.
3058 if test "${enable_threads+set}" = set; then
3059 enableval
="$enable_threads"
3066 if test "$THREADS" = yes; then
3072 # FIXME: this isn't correct in all cases.
3079 # FIXME: for now, choose POSIX, because we implement that.
3080 # Later, choose irix threads.
3084 # FIXME: for now, choose POSIX, because we implement that.
3085 # Later, choose solaris threads.
3103 cat >> confdefs.h
<<\EOF
3104 #define LINUX_THREADS 1
3110 decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks
)
3111 { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
3114 { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
3117 echo "$ac_t""$THREADS" 1>&6
3127 THREADLIBS
=-lpthread
3128 THREADSPEC
=-lpthread
3129 THREADOBJS
=posix-threads.lo
3130 THREADH
=posix-threads.h
3131 # MIT pthreads doesn't seem to have the mutexattr functions.
3132 # But for now we don't check for it. We just assume you aren't
3133 # using MIT pthreads.
3134 cat >> confdefs.h
<<\EOF
3135 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
3139 # If we're using the Boehm GC, then we happen to know that it
3140 # defines _REENTRANT, so we don't bother. Eww.
3141 if test "$GC" != boehm
; then
3142 cat >> confdefs.h
<<\EOF
3143 #define _REENTRANT 1
3147 cat >> confdefs.h
<<\EOF
3148 #define _POSIX_PTHREAD_SEMANTICS 1
3154 THREADOBJS
=no-threads.lo
3155 THREADH
=no-threads.h
3167 if test "$GCC" = yes; then
3179 # Find eh-common.h and support headers. If we're in the tree with
3180 # gcc, then look there. Otherwise look in compat-include. If all else
3181 # fails, just hope the user has set things up somehow.
3182 if test -r $srcdir/..
/gcc
/eh-common.h
; then
3183 EH_COMMON_INCLUDE
='-I$(top_srcdir)/../gcc -I$(top_srcdir)/../include'
3185 if test -d $srcdir/..
/compat-include
; then
3186 EH_COMMON_INCLUDE
='-I$(top_srcdir)/../compat-include'
3192 if test -n "${with_cross_host}"; then
3193 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
3194 # may not work correctly, because the compiler may not be able to
3197 # We assume newlib. This lets us hard-code the functions we know
3199 cat >> confdefs.h
<<\EOF
3200 #define HAVE_MEMMOVE 1
3203 cat >> confdefs.h
<<\EOF
3204 #define HAVE_MEMCPY 1
3207 cat >> confdefs.h
<<\EOF
3208 #define HAVE_STRERROR 1
3211 cat >> confdefs.h
<<\EOF
3212 #define HAVE_GMTIME_R 1
3215 cat >> confdefs.h
<<\EOF
3216 #define HAVE_LOCALTIME_R 1
3219 cat >> confdefs.h
<<\EOF
3220 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
3223 cat >> confdefs.h
<<\EOF
3224 #define HAVE_ALLOCA 1
3228 cat >> confdefs.h
<<\EOF
3234 ZLIBTESTSPEC
="-L`pwd`/../zlib/.libs -rpath `pwd`/../zlib/.libs"
3236 # If Canadian cross, then don't pick up tools from the build
3238 if test "$build" != "$with_cross_host"; then
3241 GCJ
="${target_alias}-gcj"
3247 for ac_func
in strerror ioctl
select fstat open fsync
sleep
3249 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3250 echo "configure:3251: checking for $ac_func" >&5
3251 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3252 echo $ac_n "(cached) $ac_c" 1>&6
3254 cat > conftest.
$ac_ext <<EOF
3255 #line 3256 "configure"
3256 #include "confdefs.h"
3257 /* System header to define __stub macros and hopefully few prototypes,
3258 which can conflict with char $ac_func(); below. */
3260 /* Override any gcc2 internal prototype to avoid an error. */
3261 /* We use char because int might match the return type of a gcc2
3262 builtin and then its argument prototype would still apply. */
3267 /* The GNU C library defines this for functions which it implements
3268 to always fail with ENOSYS. Some functions are actually named
3269 something starting with __ and the normal name is an alias. */
3270 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3278 if { (eval echo configure
:3279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3280 eval "ac_cv_func_$ac_func=yes"
3282 echo "configure: failed program was:" >&5
3283 cat conftest.
$ac_ext >&5
3285 eval "ac_cv_func_$ac_func=no"
3290 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3291 echo "$ac_t""yes" 1>&6
3292 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3293 cat >> confdefs.h
<<EOF
3294 #define $ac_tr_func 1
3298 echo "$ac_t""no" 1>&6
3302 for ac_func
in gmtime_r localtime_r readdir_r getpwuid_r getcwd
3304 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3305 echo "configure:3306: checking for $ac_func" >&5
3306 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3307 echo $ac_n "(cached) $ac_c" 1>&6
3309 cat > conftest.
$ac_ext <<EOF
3310 #line 3311 "configure"
3311 #include "confdefs.h"
3312 /* System header to define __stub macros and hopefully few prototypes,
3313 which can conflict with char $ac_func(); below. */
3315 /* Override any gcc2 internal prototype to avoid an error. */
3316 /* We use char because int might match the return type of a gcc2
3317 builtin and then its argument prototype would still apply. */
3322 /* The GNU C library defines this for functions which it implements
3323 to always fail with ENOSYS. Some functions are actually named
3324 something starting with __ and the normal name is an alias. */
3325 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3333 if { (eval echo configure
:3334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3335 eval "ac_cv_func_$ac_func=yes"
3337 echo "configure: failed program was:" >&5
3338 cat conftest.
$ac_ext >&5
3340 eval "ac_cv_func_$ac_func=no"
3345 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3346 echo "$ac_t""yes" 1>&6
3347 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3348 cat >> confdefs.h
<<EOF
3349 #define $ac_tr_func 1
3353 echo "$ac_t""no" 1>&6
3357 for ac_func
in access stat mkdir rename
rmdir unlink realpath
3359 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3360 echo "configure:3361: checking for $ac_func" >&5
3361 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3362 echo $ac_n "(cached) $ac_c" 1>&6
3364 cat > conftest.
$ac_ext <<EOF
3365 #line 3366 "configure"
3366 #include "confdefs.h"
3367 /* System header to define __stub macros and hopefully few prototypes,
3368 which can conflict with char $ac_func(); below. */
3370 /* Override any gcc2 internal prototype to avoid an error. */
3371 /* We use char because int might match the return type of a gcc2
3372 builtin and then its argument prototype would still apply. */
3377 /* The GNU C library defines this for functions which it implements
3378 to always fail with ENOSYS. Some functions are actually named
3379 something starting with __ and the normal name is an alias. */
3380 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3388 if { (eval echo configure
:3389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3390 eval "ac_cv_func_$ac_func=yes"
3392 echo "configure: failed program was:" >&5
3393 cat conftest.
$ac_ext >&5
3395 eval "ac_cv_func_$ac_func=no"
3400 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3401 echo "$ac_t""yes" 1>&6
3402 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3403 cat >> confdefs.h
<<EOF
3404 #define $ac_tr_func 1
3408 echo "$ac_t""no" 1>&6
3412 for ac_func
in iconv nl_langinfo setlocale
3414 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3415 echo "configure:3416: checking for $ac_func" >&5
3416 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3417 echo $ac_n "(cached) $ac_c" 1>&6
3419 cat > conftest.
$ac_ext <<EOF
3420 #line 3421 "configure"
3421 #include "confdefs.h"
3422 /* System header to define __stub macros and hopefully few prototypes,
3423 which can conflict with char $ac_func(); below. */
3425 /* Override any gcc2 internal prototype to avoid an error. */
3426 /* We use char because int might match the return type of a gcc2
3427 builtin and then its argument prototype would still apply. */
3432 /* The GNU C library defines this for functions which it implements
3433 to always fail with ENOSYS. Some functions are actually named
3434 something starting with __ and the normal name is an alias. */
3435 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3443 if { (eval echo configure
:3444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3445 eval "ac_cv_func_$ac_func=yes"
3447 echo "configure: failed program was:" >&5
3448 cat conftest.
$ac_ext >&5
3450 eval "ac_cv_func_$ac_func=no"
3455 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3456 echo "$ac_t""yes" 1>&6
3457 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3458 cat >> confdefs.h
<<EOF
3459 #define $ac_tr_func 1
3463 echo "$ac_t""no" 1>&6
3467 for ac_func
in inet_aton inet_addr
3469 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3470 echo "configure:3471: checking for $ac_func" >&5
3471 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3472 echo $ac_n "(cached) $ac_c" 1>&6
3474 cat > conftest.
$ac_ext <<EOF
3475 #line 3476 "configure"
3476 #include "confdefs.h"
3477 /* System header to define __stub macros and hopefully few prototypes,
3478 which can conflict with char $ac_func(); below. */
3480 /* Override any gcc2 internal prototype to avoid an error. */
3481 /* We use char because int might match the return type of a gcc2
3482 builtin and then its argument prototype would still apply. */
3487 /* The GNU C library defines this for functions which it implements
3488 to always fail with ENOSYS. Some functions are actually named
3489 something starting with __ and the normal name is an alias. */
3490 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3498 if { (eval echo configure
:3499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3500 eval "ac_cv_func_$ac_func=yes"
3502 echo "configure: failed program was:" >&5
3503 cat conftest.
$ac_ext >&5
3505 eval "ac_cv_func_$ac_func=no"
3510 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3511 echo "$ac_t""yes" 1>&6
3512 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3513 cat >> confdefs.h
<<EOF
3514 #define $ac_tr_func 1
3518 echo "$ac_t""no" 1>&6
3522 for ac_func
in inet_pton uname inet_ntoa
3524 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3525 echo "configure:3526: checking for $ac_func" >&5
3526 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3527 echo $ac_n "(cached) $ac_c" 1>&6
3529 cat > conftest.
$ac_ext <<EOF
3530 #line 3531 "configure"
3531 #include "confdefs.h"
3532 /* System header to define __stub macros and hopefully few prototypes,
3533 which can conflict with char $ac_func(); below. */
3535 /* Override any gcc2 internal prototype to avoid an error. */
3536 /* We use char because int might match the return type of a gcc2
3537 builtin and then its argument prototype would still apply. */
3542 /* The GNU C library defines this for functions which it implements
3543 to always fail with ENOSYS. Some functions are actually named
3544 something starting with __ and the normal name is an alias. */
3545 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3553 if { (eval echo configure
:3554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3555 eval "ac_cv_func_$ac_func=yes"
3557 echo "configure: failed program was:" >&5
3558 cat conftest.
$ac_ext >&5
3560 eval "ac_cv_func_$ac_func=no"
3565 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3566 echo "$ac_t""yes" 1>&6
3567 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3568 cat >> confdefs.h
<<EOF
3569 #define $ac_tr_func 1
3573 echo "$ac_t""no" 1>&6
3577 for ac_func
in backtrace fork execvp pipe
3579 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3580 echo "configure:3581: checking for $ac_func" >&5
3581 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3582 echo $ac_n "(cached) $ac_c" 1>&6
3584 cat > conftest.
$ac_ext <<EOF
3585 #line 3586 "configure"
3586 #include "confdefs.h"
3587 /* System header to define __stub macros and hopefully few prototypes,
3588 which can conflict with char $ac_func(); below. */
3590 /* Override any gcc2 internal prototype to avoid an error. */
3591 /* We use char because int might match the return type of a gcc2
3592 builtin and then its argument prototype would still apply. */
3597 /* The GNU C library defines this for functions which it implements
3598 to always fail with ENOSYS. Some functions are actually named
3599 something starting with __ and the normal name is an alias. */
3600 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3608 if { (eval echo configure
:3609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3610 eval "ac_cv_func_$ac_func=yes"
3612 echo "configure: failed program was:" >&5
3613 cat conftest.
$ac_ext >&5
3615 eval "ac_cv_func_$ac_func=no"
3620 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3621 echo "$ac_t""yes" 1>&6
3622 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3623 cat >> confdefs.h
<<EOF
3624 #define $ac_tr_func 1
3628 echo "$ac_t""no" 1>&6
3632 for ac_hdr
in execinfo.h unistd.h dlfcn.h
3634 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3635 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3636 echo "configure:3637: checking for $ac_hdr" >&5
3637 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3638 echo $ac_n "(cached) $ac_c" 1>&6
3640 cat > conftest.
$ac_ext <<EOF
3641 #line 3642 "configure"
3642 #include "confdefs.h"
3645 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3646 { (eval echo configure
:3647: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3647 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3648 if test -z "$ac_err"; then
3650 eval "ac_cv_header_$ac_safe=yes"
3653 echo "configure: failed program was:" >&5
3654 cat conftest.
$ac_ext >&5
3656 eval "ac_cv_header_$ac_safe=no"
3660 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3661 echo "$ac_t""yes" 1>&6
3662 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3663 cat >> confdefs.h
<<EOF
3664 #define $ac_tr_hdr 1
3668 echo "$ac_t""no" 1>&6
3672 echo $ac_n "checking for dladdr in -ldl""... $ac_c" 1>&6
3673 echo "configure:3674: checking for dladdr in -ldl" >&5
3674 ac_lib_var
=`echo dl'_'dladdr | sed 'y%./+-%__p_%'`
3675 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3676 echo $ac_n "(cached) $ac_c" 1>&6
3678 ac_save_LIBS
="$LIBS"
3680 cat > conftest.
$ac_ext <<EOF
3681 #line 3682 "configure"
3682 #include "confdefs.h"
3683 /* Override any gcc2 internal prototype to avoid an error. */
3684 /* We use char because int might match the return type of a gcc2
3685 builtin and then its argument prototype would still apply. */
3692 if { (eval echo configure
:3693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3694 eval "ac_cv_lib_$ac_lib_var=yes"
3696 echo "configure: failed program was:" >&5
3697 cat conftest.
$ac_ext >&5
3699 eval "ac_cv_lib_$ac_lib_var=no"
3702 LIBS
="$ac_save_LIBS"
3705 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3706 echo "$ac_t""yes" 1>&6
3708 cat >> confdefs.h
<<\EOF
3709 #define HAVE_DLADDR 1
3713 echo "$ac_t""no" 1>&6
3716 for ac_file
in /proc
/self
/exe
3719 ac_safe
=`echo "$ac_file" | sed 'y%./+-%__p_%'`
3720 echo $ac_n "checking for $ac_file""... $ac_c" 1>&6
3721 echo "configure:3722: checking for $ac_file" >&5
3722 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
3723 echo $ac_n "(cached) $ac_c" 1>&6
3725 if test "$cross_compiling" = yes; then
3726 { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
3728 if test -r $ac_file; then
3729 eval "ac_cv_file_$ac_safe=yes"
3731 eval "ac_cv_file_$ac_safe=no"
3735 if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
3736 echo "$ac_t""yes" 1>&6
3737 ac_tr_file
=HAVE_
`echo $ac_file | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3738 cat >> confdefs.h
<<EOF
3739 #define $ac_tr_file 1
3742 cat >> confdefs.h
<<\EOF
3743 #define HAVE_PROC_SELF_EXE 1
3747 echo "$ac_t""no" 1>&6
3753 for ac_func
in gethostbyname_r
3755 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3756 echo "configure:3757: checking for $ac_func" >&5
3757 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3758 echo $ac_n "(cached) $ac_c" 1>&6
3760 cat > conftest.
$ac_ext <<EOF
3761 #line 3762 "configure"
3762 #include "confdefs.h"
3763 /* System header to define __stub macros and hopefully few prototypes,
3764 which can conflict with char $ac_func(); below. */
3766 /* Override any gcc2 internal prototype to avoid an error. */
3767 /* We use char because int might match the return type of a gcc2
3768 builtin and then its argument prototype would still apply. */
3773 /* The GNU C library defines this for functions which it implements
3774 to always fail with ENOSYS. Some functions are actually named
3775 something starting with __ and the normal name is an alias. */
3776 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3784 if { (eval echo configure
:3785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3786 eval "ac_cv_func_$ac_func=yes"
3788 echo "configure: failed program was:" >&5
3789 cat conftest.
$ac_ext >&5
3791 eval "ac_cv_func_$ac_func=no"
3796 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3797 echo "$ac_t""yes" 1>&6
3798 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3799 cat >> confdefs.h
<<EOF
3800 #define $ac_tr_func 1
3803 cat >> confdefs.h
<<\EOF
3804 #define HAVE_GETHOSTBYNAME_R 1
3807 # There are two different kinds of gethostbyname_r.
3808 # We look for the one that returns `int'.
3809 # Hopefully this check is robust enough.
3810 cat > conftest.
$ac_ext <<EOF
3811 #line 3812 "configure"
3812 #include "confdefs.h"
3815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3816 egrep "int.*gethostbyname_r" >/dev
/null
2>&1; then
3819 cat >> confdefs.h
<<\EOF
3820 #define GETHOSTBYNAME_R_RETURNS_INT 1
3828 *" -D_REENTRANT "*) ;;
3830 echo $ac_n "checking whether gethostbyname_r declaration requires -D_REENTRANT""... $ac_c" 1>&6
3831 echo "configure:3832: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
3832 if eval "test \"`echo '$''{'libjava_cv_gethostbyname_r_needs_reentrant'+set}'`\" = set"; then
3833 echo $ac_n "(cached) $ac_c" 1>&6
3837 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3838 ac_cpp
='$CXXCPP $CPPFLAGS'
3839 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3840 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3841 cross_compiling
=$ac_cv_prog_cxx_cross
3843 cat > conftest.
$ac_ext <<EOF
3844 #line 3845 "configure"
3845 #include "confdefs.h"
3848 gethostbyname_r("", 0, 0);
3851 if { (eval echo configure
:3852: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3853 libjava_cv_gethostbyname_r_needs_reentrant
=no
3855 echo "configure: failed program was:" >&5
3856 cat conftest.
$ac_ext >&5
3858 CPPFLAGS_SAVE
="$CPPFLAGS"
3859 CPPFLAGS
="$CPPFLAGS -D_REENTRANT"
3860 cat > conftest.
$ac_ext <<EOF
3861 #line 3862 "configure"
3862 #include "confdefs.h"
3865 gethostbyname_r("", 0, 0);
3868 if { (eval echo configure
:3869: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3870 libjava_cv_gethostbyname_r_needs_reentrant
=yes
3872 echo "configure: failed program was:" >&5
3873 cat conftest.
$ac_ext >&5
3875 libjava_cv_gethostbyname_r_needs_reentrant
=fail
3878 CPPFLAGS
="$CPPFLAGS_SAVE"
3883 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3884 ac_cpp
='$CPP $CPPFLAGS'
3885 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3886 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3887 cross_compiling
=$ac_cv_prog_cc_cross
3892 echo "$ac_t""$libjava_cv_gethostbyname_r_needs_reentrant" 1>&6
3893 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes
; then
3894 cat >> confdefs.h
<<\EOF
3895 #define _REENTRANT 1
3902 echo $ac_n "checking for struct hostent_data""... $ac_c" 1>&6
3903 echo "configure:3904: checking for struct hostent_data" >&5
3904 if eval "test \"`echo '$''{'libjava_cv_struct_hostent_data'+set}'`\" = set"; then
3905 echo $ac_n "(cached) $ac_c" 1>&6
3907 cat > conftest.
$ac_ext <<EOF
3908 #line 3909 "configure"
3909 #include "confdefs.h"
3911 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
3912 # define _REENTRANT 1
3916 struct hostent_data data;
3919 if { (eval echo configure
:3920: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3921 libjava_cv_struct_hostent_data
=yes
3923 echo "configure: failed program was:" >&5
3924 cat conftest.
$ac_ext >&5
3926 libjava_cv_struct_hostent_data
=no
3931 echo "$ac_t""$libjava_cv_struct_hostent_data" 1>&6
3932 if test "x$libjava_cv_struct_hostent_data" = xyes
; then
3933 cat >> confdefs.h
<<\EOF
3934 #define HAVE_STRUCT_HOSTENT_DATA 1
3940 echo "$ac_t""no" 1>&6
3945 for ac_func
in gethostbyaddr_r
3947 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3948 echo "configure:3949: checking for $ac_func" >&5
3949 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3950 echo $ac_n "(cached) $ac_c" 1>&6
3952 cat > conftest.
$ac_ext <<EOF
3953 #line 3954 "configure"
3954 #include "confdefs.h"
3955 /* System header to define __stub macros and hopefully few prototypes,
3956 which can conflict with char $ac_func(); below. */
3958 /* Override any gcc2 internal prototype to avoid an error. */
3959 /* We use char because int might match the return type of a gcc2
3960 builtin and then its argument prototype would still apply. */
3965 /* The GNU C library defines this for functions which it implements
3966 to always fail with ENOSYS. Some functions are actually named
3967 something starting with __ and the normal name is an alias. */
3968 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3976 if { (eval echo configure
:3977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3978 eval "ac_cv_func_$ac_func=yes"
3980 echo "configure: failed program was:" >&5
3981 cat conftest.
$ac_ext >&5
3983 eval "ac_cv_func_$ac_func=no"
3988 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3989 echo "$ac_t""yes" 1>&6
3990 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3991 cat >> confdefs.h
<<EOF
3992 #define $ac_tr_func 1
3995 cat >> confdefs.h
<<\EOF
3996 #define HAVE_GETHOSTBYADDR_R 1
3999 # There are two different kinds of gethostbyaddr_r.
4000 # We look for the one that returns `int'.
4001 # Hopefully this check is robust enough.
4002 cat > conftest.
$ac_ext <<EOF
4003 #line 4004 "configure"
4004 #include "confdefs.h"
4007 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4008 egrep "int.*gethostbyaddr_r" >/dev
/null
2>&1; then
4011 cat >> confdefs.h
<<\EOF
4012 #define GETHOSTBYADDR_R_RETURNS_INT 1
4019 echo "$ac_t""no" 1>&6
4024 for ac_func
in gethostname
4026 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4027 echo "configure:4028: checking for $ac_func" >&5
4028 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4029 echo $ac_n "(cached) $ac_c" 1>&6
4031 cat > conftest.
$ac_ext <<EOF
4032 #line 4033 "configure"
4033 #include "confdefs.h"
4034 /* System header to define __stub macros and hopefully few prototypes,
4035 which can conflict with char $ac_func(); below. */
4037 /* Override any gcc2 internal prototype to avoid an error. */
4038 /* We use char because int might match the return type of a gcc2
4039 builtin and then its argument prototype would still apply. */
4044 /* The GNU C library defines this for functions which it implements
4045 to always fail with ENOSYS. Some functions are actually named
4046 something starting with __ and the normal name is an alias. */
4047 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4055 if { (eval echo configure
:4056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4057 eval "ac_cv_func_$ac_func=yes"
4059 echo "configure: failed program was:" >&5
4060 cat conftest.
$ac_ext >&5
4062 eval "ac_cv_func_$ac_func=no"
4067 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4068 echo "$ac_t""yes" 1>&6
4069 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4070 cat >> confdefs.h
<<EOF
4071 #define $ac_tr_func 1
4074 cat >> confdefs.h
<<\EOF
4075 #define HAVE_GETHOSTNAME 1
4078 cat > conftest.
$ac_ext <<EOF
4079 #line 4080 "configure"
4080 #include "confdefs.h"
4083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4084 egrep "gethostname" >/dev
/null
2>&1; then
4087 cat >> confdefs.h
<<\EOF
4088 #define HAVE_GETHOSTNAME_DECL 1
4095 echo "$ac_t""no" 1>&6
4100 # Look for these functions in the thread library, but only bother
4101 # if using POSIX threads.
4102 if test "$THREADS" = posix
; then
4104 LIBS
="$LIBS $THREADLIBS"
4105 # Some POSIX thread systems don't have pthread_mutexattr_settype.
4107 for ac_func
in pthread_mutexattr_settype pthread_mutexattr_setkind_np
4109 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4110 echo "configure:4111: checking for $ac_func" >&5
4111 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4112 echo $ac_n "(cached) $ac_c" 1>&6
4114 cat > conftest.
$ac_ext <<EOF
4115 #line 4116 "configure"
4116 #include "confdefs.h"
4117 /* System header to define __stub macros and hopefully few prototypes,
4118 which can conflict with char $ac_func(); below. */
4120 /* Override any gcc2 internal prototype to avoid an error. */
4121 /* We use char because int might match the return type of a gcc2
4122 builtin and then its argument prototype would still apply. */
4127 /* The GNU C library defines this for functions which it implements
4128 to always fail with ENOSYS. Some functions are actually named
4129 something starting with __ and the normal name is an alias. */
4130 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4138 if { (eval echo configure
:4139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4140 eval "ac_cv_func_$ac_func=yes"
4142 echo "configure: failed program was:" >&5
4143 cat conftest.
$ac_ext >&5
4145 eval "ac_cv_func_$ac_func=no"
4150 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4151 echo "$ac_t""yes" 1>&6
4152 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4153 cat >> confdefs.h
<<EOF
4154 #define $ac_tr_func 1
4158 echo "$ac_t""no" 1>&6
4163 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
4164 # Solaris 7 the name librt is preferred.
4165 for ac_func
in sched_yield
4167 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4168 echo "configure:4169: checking for $ac_func" >&5
4169 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4170 echo $ac_n "(cached) $ac_c" 1>&6
4172 cat > conftest.
$ac_ext <<EOF
4173 #line 4174 "configure"
4174 #include "confdefs.h"
4175 /* System header to define __stub macros and hopefully few prototypes,
4176 which can conflict with char $ac_func(); below. */
4178 /* Override any gcc2 internal prototype to avoid an error. */
4179 /* We use char because int might match the return type of a gcc2
4180 builtin and then its argument prototype would still apply. */
4185 /* The GNU C library defines this for functions which it implements
4186 to always fail with ENOSYS. Some functions are actually named
4187 something starting with __ and the normal name is an alias. */
4188 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4196 if { (eval echo configure
:4197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4198 eval "ac_cv_func_$ac_func=yes"
4200 echo "configure: failed program was:" >&5
4201 cat conftest.
$ac_ext >&5
4203 eval "ac_cv_func_$ac_func=no"
4208 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4209 echo "$ac_t""yes" 1>&6
4210 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4211 cat >> confdefs.h
<<EOF
4212 #define $ac_tr_func 1
4216 echo "$ac_t""no" 1>&6
4217 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
4218 echo "configure:4219: checking for sched_yield in -lrt" >&5
4219 ac_lib_var
=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
4220 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4221 echo $ac_n "(cached) $ac_c" 1>&6
4223 ac_save_LIBS
="$LIBS"
4225 cat > conftest.
$ac_ext <<EOF
4226 #line 4227 "configure"
4227 #include "confdefs.h"
4228 /* Override any gcc2 internal prototype to avoid an error. */
4229 /* We use char because int might match the return type of a gcc2
4230 builtin and then its argument prototype would still apply. */
4237 if { (eval echo configure
:4238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4239 eval "ac_cv_lib_$ac_lib_var=yes"
4241 echo "configure: failed program was:" >&5
4242 cat conftest.
$ac_ext >&5
4244 eval "ac_cv_lib_$ac_lib_var=no"
4247 LIBS
="$ac_save_LIBS"
4250 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4251 echo "$ac_t""yes" 1>&6
4253 cat >> confdefs.h
<<\EOF
4254 #define HAVE_SCHED_YIELD 1
4257 THREADLIBS
="$THREADLIBS -lrt"
4258 THREADSPEC
="$THREADSPEC -lrt"
4260 echo "$ac_t""no" 1>&6
4262 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
4263 echo "configure:4264: checking for sched_yield in -lposix4" >&5
4264 ac_lib_var
=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
4265 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4266 echo $ac_n "(cached) $ac_c" 1>&6
4268 ac_save_LIBS
="$LIBS"
4269 LIBS
="-lposix4 $LIBS"
4270 cat > conftest.
$ac_ext <<EOF
4271 #line 4272 "configure"
4272 #include "confdefs.h"
4273 /* Override any gcc2 internal prototype to avoid an error. */
4274 /* We use char because int might match the return type of a gcc2
4275 builtin and then its argument prototype would still apply. */
4282 if { (eval echo configure
:4283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4284 eval "ac_cv_lib_$ac_lib_var=yes"
4286 echo "configure: failed program was:" >&5
4287 cat conftest.
$ac_ext >&5
4289 eval "ac_cv_lib_$ac_lib_var=no"
4292 LIBS
="$ac_save_LIBS"
4295 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4296 echo "$ac_t""yes" 1>&6
4298 cat >> confdefs.h
<<\EOF
4299 #define HAVE_SCHED_YIELD 1
4302 THREADLIBS
="$THREADLIBS -lposix4"
4303 THREADSPEC
="$THREADSPEC -lposix4"
4305 echo "$ac_t""no" 1>&6
4315 # We can save a little space at runtime if the mutex has m_count
4316 # or __m_count. This is a nice hack for Linux.
4317 cat > conftest.
$ac_ext <<EOF
4318 #line 4319 "configure"
4319 #include "confdefs.h"
4320 #include <pthread.h>
4323 extern pthread_mutex_t *mutex; int q = mutex->m_count;
4327 if { (eval echo configure
:4328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4329 cat >> confdefs.h
<<\EOF
4330 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
4334 echo "configure: failed program was:" >&5
4335 cat conftest.
$ac_ext >&5
4338 cat > conftest.
$ac_ext <<EOF
4339 #line 4340 "configure"
4340 #include "confdefs.h"
4341 #include <pthread.h>
4344 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
4348 if { (eval echo configure
:4349: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4350 cat >> confdefs.h
<<\EOF
4351 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
4355 echo "configure: failed program was:" >&5
4356 cat conftest.
$ac_ext >&5
4363 # We require a way to get the time.
4365 for ac_func
in gettimeofday
time ftime
4367 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4368 echo "configure:4369: checking for $ac_func" >&5
4369 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4370 echo $ac_n "(cached) $ac_c" 1>&6
4372 cat > conftest.
$ac_ext <<EOF
4373 #line 4374 "configure"
4374 #include "confdefs.h"
4375 /* System header to define __stub macros and hopefully few prototypes,
4376 which can conflict with char $ac_func(); below. */
4378 /* Override any gcc2 internal prototype to avoid an error. */
4379 /* We use char because int might match the return type of a gcc2
4380 builtin and then its argument prototype would still apply. */
4385 /* The GNU C library defines this for functions which it implements
4386 to always fail with ENOSYS. Some functions are actually named
4387 something starting with __ and the normal name is an alias. */
4388 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4396 if { (eval echo configure
:4397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4398 eval "ac_cv_func_$ac_func=yes"
4400 echo "configure: failed program was:" >&5
4401 cat conftest.
$ac_ext >&5
4403 eval "ac_cv_func_$ac_func=no"
4408 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4409 echo "$ac_t""yes" 1>&6
4410 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4411 cat >> confdefs.h
<<EOF
4412 #define $ac_tr_func 1
4416 echo "$ac_t""no" 1>&6
4420 if test "$time_found" = no
; then
4421 { echo "configure: error: no function found to get the time" 1>&2; exit 1; }
4424 for ac_func
in memmove
4426 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4427 echo "configure:4428: checking for $ac_func" >&5
4428 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4429 echo $ac_n "(cached) $ac_c" 1>&6
4431 cat > conftest.
$ac_ext <<EOF
4432 #line 4433 "configure"
4433 #include "confdefs.h"
4434 /* System header to define __stub macros and hopefully few prototypes,
4435 which can conflict with char $ac_func(); below. */
4437 /* Override any gcc2 internal prototype to avoid an error. */
4438 /* We use char because int might match the return type of a gcc2
4439 builtin and then its argument prototype would still apply. */
4444 /* The GNU C library defines this for functions which it implements
4445 to always fail with ENOSYS. Some functions are actually named
4446 something starting with __ and the normal name is an alias. */
4447 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4455 if { (eval echo configure
:4456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4457 eval "ac_cv_func_$ac_func=yes"
4459 echo "configure: failed program was:" >&5
4460 cat conftest.
$ac_ext >&5
4462 eval "ac_cv_func_$ac_func=no"
4467 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4468 echo "$ac_t""yes" 1>&6
4469 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4470 cat >> confdefs.h
<<EOF
4471 #define $ac_tr_func 1
4475 echo "$ac_t""no" 1>&6
4480 # We require memcpy.
4482 for ac_func
in memcpy
4484 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4485 echo "configure:4486: checking for $ac_func" >&5
4486 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4487 echo $ac_n "(cached) $ac_c" 1>&6
4489 cat > conftest.
$ac_ext <<EOF
4490 #line 4491 "configure"
4491 #include "confdefs.h"
4492 /* System header to define __stub macros and hopefully few prototypes,
4493 which can conflict with char $ac_func(); below. */
4495 /* Override any gcc2 internal prototype to avoid an error. */
4496 /* We use char because int might match the return type of a gcc2
4497 builtin and then its argument prototype would still apply. */
4502 /* The GNU C library defines this for functions which it implements
4503 to always fail with ENOSYS. Some functions are actually named
4504 something starting with __ and the normal name is an alias. */
4505 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4513 if { (eval echo configure
:4514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4515 eval "ac_cv_func_$ac_func=yes"
4517 echo "configure: failed program was:" >&5
4518 cat conftest.
$ac_ext >&5
4520 eval "ac_cv_func_$ac_func=no"
4525 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4526 echo "$ac_t""yes" 1>&6
4527 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4528 cat >> confdefs.h
<<EOF
4529 #define $ac_tr_func 1
4533 echo "$ac_t""no" 1>&6
4537 if test "$memcpy_found" = no
; then
4538 { echo "configure: error: memcpy is required" 1>&2; exit 1; }
4541 # Some library-finding code we stole from Tcl.
4542 #--------------------------------------------------------------------
4543 # Check for the existence of the -lsocket and -lnsl libraries.
4544 # The order here is important, so that they end up in the right
4545 # order in the command line generated by make. Here are some
4546 # special considerations:
4547 # 1. Use "connect" and "accept" to check for -lsocket, and
4548 # "gethostbyname" to check for -lnsl.
4549 # 2. Use each function name only once: can't redo a check because
4550 # autoconf caches the results of the last check and won't redo it.
4551 # 3. Use -lnsl and -lsocket only if they supply procedures that
4552 # aren't already present in the normal libraries. This is because
4553 # IRIX 5.2 has libraries, but they aren't needed and they're
4554 # bogus: they goof up name resolution if used.
4555 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
4556 # To get around this problem, check for both libraries together
4557 # if -lsocket doesn't work by itself.
4558 #--------------------------------------------------------------------
4560 echo $ac_n "checking for socket libraries""... $ac_c" 1>&6
4561 echo "configure:4562: checking for socket libraries" >&5
4562 if eval "test \"`echo '$''{'gcj_cv_lib_sockets'+set}'`\" = set"; then
4563 echo $ac_n "(cached) $ac_c" 1>&6
4567 unset ac_cv_func_connect
4568 echo $ac_n "checking for connect""... $ac_c" 1>&6
4569 echo "configure:4570: checking for connect" >&5
4570 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
4571 echo $ac_n "(cached) $ac_c" 1>&6
4573 cat > conftest.
$ac_ext <<EOF
4574 #line 4575 "configure"
4575 #include "confdefs.h"
4576 /* System header to define __stub macros and hopefully few prototypes,
4577 which can conflict with char connect(); below. */
4579 /* Override any gcc2 internal prototype to avoid an error. */
4580 /* We use char because int might match the return type of a gcc2
4581 builtin and then its argument prototype would still apply. */
4586 /* The GNU C library defines this for functions which it implements
4587 to always fail with ENOSYS. Some functions are actually named
4588 something starting with __ and the normal name is an alias. */
4589 #if defined (__stub_connect) || defined (__stub___connect)
4597 if { (eval echo configure
:4598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4599 eval "ac_cv_func_connect=yes"
4601 echo "configure: failed program was:" >&5
4602 cat conftest.
$ac_ext >&5
4604 eval "ac_cv_func_connect=no"
4609 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
4610 echo "$ac_t""yes" 1>&6
4613 echo "$ac_t""no" 1>&6
4617 if test "$gcj_checkSocket" = 1; then
4618 unset ac_cv_func_connect
4619 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4620 echo "configure:4621: checking for main in -lsocket" >&5
4621 ac_lib_var
=`echo socket'_'main | sed 'y%./+-%__p_%'`
4622 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4623 echo $ac_n "(cached) $ac_c" 1>&6
4625 ac_save_LIBS
="$LIBS"
4626 LIBS
="-lsocket $LIBS"
4627 cat > conftest.
$ac_ext <<EOF
4628 #line 4629 "configure"
4629 #include "confdefs.h"
4635 if { (eval echo configure
:4636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4637 eval "ac_cv_lib_$ac_lib_var=yes"
4639 echo "configure: failed program was:" >&5
4640 cat conftest.
$ac_ext >&5
4642 eval "ac_cv_lib_$ac_lib_var=no"
4645 LIBS
="$ac_save_LIBS"
4648 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4649 echo "$ac_t""yes" 1>&6
4650 gcj_cv_lib_sockets
="-lsocket"
4652 echo "$ac_t""no" 1>&6
4657 if test "$gcj_checkBoth" = 1; then
4659 LIBS
="$LIBS -lsocket -lnsl"
4660 unset ac_cv_func_accept
4661 echo $ac_n "checking for accept""... $ac_c" 1>&6
4662 echo "configure:4663: checking for accept" >&5
4663 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
4664 echo $ac_n "(cached) $ac_c" 1>&6
4666 cat > conftest.
$ac_ext <<EOF
4667 #line 4668 "configure"
4668 #include "confdefs.h"
4669 /* System header to define __stub macros and hopefully few prototypes,
4670 which can conflict with char accept(); below. */
4672 /* Override any gcc2 internal prototype to avoid an error. */
4673 /* We use char because int might match the return type of a gcc2
4674 builtin and then its argument prototype would still apply. */
4679 /* The GNU C library defines this for functions which it implements
4680 to always fail with ENOSYS. Some functions are actually named
4681 something starting with __ and the normal name is an alias. */
4682 #if defined (__stub_accept) || defined (__stub___accept)
4690 if { (eval echo configure
:4691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4692 eval "ac_cv_func_accept=yes"
4694 echo "configure: failed program was:" >&5
4695 cat conftest.
$ac_ext >&5
4697 eval "ac_cv_func_accept=no"
4702 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
4703 echo "$ac_t""yes" 1>&6
4705 gcj_cv_lib_sockets
="-lsocket -lnsl"
4707 echo "$ac_t""no" 1>&6
4710 unset ac_cv_func_accept
4713 unset ac_cv_func_gethostbyname
4715 LIBS
="$LIBS $gcj_cv_lib_sockets"
4716 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4717 echo "configure:4718: checking for gethostbyname" >&5
4718 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
4719 echo $ac_n "(cached) $ac_c" 1>&6
4721 cat > conftest.
$ac_ext <<EOF
4722 #line 4723 "configure"
4723 #include "confdefs.h"
4724 /* System header to define __stub macros and hopefully few prototypes,
4725 which can conflict with char gethostbyname(); below. */
4727 /* Override any gcc2 internal prototype to avoid an error. */
4728 /* We use char because int might match the return type of a gcc2
4729 builtin and then its argument prototype would still apply. */
4730 char gethostbyname();
4734 /* The GNU C library defines this for functions which it implements
4735 to always fail with ENOSYS. Some functions are actually named
4736 something starting with __ and the normal name is an alias. */
4737 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4745 if { (eval echo configure
:4746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4747 eval "ac_cv_func_gethostbyname=yes"
4749 echo "configure: failed program was:" >&5
4750 cat conftest.
$ac_ext >&5
4752 eval "ac_cv_func_gethostbyname=no"
4757 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
4758 echo "$ac_t""yes" 1>&6
4761 echo "$ac_t""no" 1>&6
4762 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
4763 echo "configure:4764: checking for main in -lnsl" >&5
4764 ac_lib_var
=`echo nsl'_'main | sed 'y%./+-%__p_%'`
4765 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4766 echo $ac_n "(cached) $ac_c" 1>&6
4768 ac_save_LIBS
="$LIBS"
4770 cat > conftest.
$ac_ext <<EOF
4771 #line 4772 "configure"
4772 #include "confdefs.h"
4778 if { (eval echo configure
:4779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4780 eval "ac_cv_lib_$ac_lib_var=yes"
4782 echo "configure: failed program was:" >&5
4783 cat conftest.
$ac_ext >&5
4785 eval "ac_cv_lib_$ac_lib_var=no"
4788 LIBS
="$ac_save_LIBS"
4791 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4792 echo "$ac_t""yes" 1>&6
4793 gcj_cv_lib_sockets
="$gcj_cv_lib_sockets -lnsl"
4795 echo "$ac_t""no" 1>&6
4800 unset ac_cv_func_gethostbyname
4805 echo "$ac_t""$gcj_cv_lib_sockets" 1>&6
4806 SYSTEMSPEC
="$SYSTEMSPEC $gcj_cv_lib_sockets"
4808 if test "$with_system_zlib" = yes; then
4809 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
4810 echo "configure:4811: checking for deflate in -lz" >&5
4811 ac_lib_var
=`echo z'_'deflate | sed 'y%./+-%__p_%'`
4812 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4813 echo $ac_n "(cached) $ac_c" 1>&6
4815 ac_save_LIBS
="$LIBS"
4817 cat > conftest.
$ac_ext <<EOF
4818 #line 4819 "configure"
4819 #include "confdefs.h"
4820 /* Override any gcc2 internal prototype to avoid an error. */
4821 /* We use char because int might match the return type of a gcc2
4822 builtin and then its argument prototype would still apply. */
4829 if { (eval echo configure
:4830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4831 eval "ac_cv_lib_$ac_lib_var=yes"
4833 echo "configure: failed program was:" >&5
4834 cat conftest.
$ac_ext >&5
4836 eval "ac_cv_lib_$ac_lib_var=no"
4839 LIBS
="$ac_save_LIBS"
4842 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4843 echo "$ac_t""yes" 1>&6
4846 echo "$ac_t""no" 1>&6
4852 ZLIBTESTSPEC
="-L`pwd`/../zlib/.libs -rpath `pwd`/../zlib/.libs"
4855 # On Solaris, and maybe other architectures, the Boehm collector
4857 if test "$GC" = boehm
; then
4858 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
4859 echo "configure:4860: checking for main in -ldl" >&5
4860 ac_lib_var
=`echo dl'_'main | sed 'y%./+-%__p_%'`
4861 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4862 echo $ac_n "(cached) $ac_c" 1>&6
4864 ac_save_LIBS
="$LIBS"
4866 cat > conftest.
$ac_ext <<EOF
4867 #line 4868 "configure"
4868 #include "confdefs.h"
4874 if { (eval echo configure
:4875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4876 eval "ac_cv_lib_$ac_lib_var=yes"
4878 echo "configure: failed program was:" >&5
4879 cat conftest.
$ac_ext >&5
4881 eval "ac_cv_lib_$ac_lib_var=no"
4884 LIBS
="$ac_save_LIBS"
4887 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4888 echo "$ac_t""yes" 1>&6
4889 SYSTEMSPEC
="$SYSTEMSPEC -ldl"
4891 echo "$ac_t""no" 1>&6
4896 if test -z "${with_multisubdir}"; then
4900 builddotdot
=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
4903 if test -x "${builddotdot}/../../gcc/gcj"; then
4904 dir
="`cd ${builddotdot}/../../gcc && pwd`"
4905 GCJ
="$dir/gcj -B`pwd`/ -B$dir/"
4913 # Create it, so that compile/link tests don't fail
4914 test -f libgcj.spec ||
touch libgcj.spec
4917 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
4918 set dummy
${ac_tool_prefix}gcj
; ac_word
=$2
4919 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4920 echo "configure:4921: checking for $ac_word" >&5
4921 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
4922 echo $ac_n "(cached) $ac_c" 1>&6
4924 if test -n "$GCJ"; then
4925 ac_cv_prog_GCJ
="$GCJ" # Let the user override the test.
4927 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4929 for ac_dir
in $ac_dummy; do
4930 test -z "$ac_dir" && ac_dir
=.
4931 if test -f $ac_dir/$ac_word; then
4932 ac_cv_prog_GCJ
="${ac_tool_prefix}gcj"
4939 GCJ
="$ac_cv_prog_GCJ"
4940 if test -n "$GCJ"; then
4941 echo "$ac_t""$GCJ" 1>&6
4943 echo "$ac_t""no" 1>&6
4947 if test -z "$ac_cv_prog_GCJ"; then
4948 if test -n "$ac_tool_prefix"; then
4949 # Extract the first word of "gcj", so it can be a program name with args.
4950 set dummy gcj
; ac_word
=$2
4951 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4952 echo "configure:4953: checking for $ac_word" >&5
4953 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
4954 echo $ac_n "(cached) $ac_c" 1>&6
4956 if test -n "$GCJ"; then
4957 ac_cv_prog_GCJ
="$GCJ" # Let the user override the test.
4959 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4961 for ac_dir
in $ac_dummy; do
4962 test -z "$ac_dir" && ac_dir
=.
4963 if test -f $ac_dir/$ac_word; then
4964 ac_cv_prog_GCJ
="gcj"
4969 test -z "$ac_cv_prog_GCJ" && ac_cv_prog_GCJ
="no"
4972 GCJ
="$ac_cv_prog_GCJ"
4973 if test -n "$GCJ"; then
4974 echo "$ac_t""$GCJ" 1>&6
4976 echo "$ac_t""no" 1>&6
4984 test "x${GCJFLAGS+set}" = xset || GCJFLAGS
="-g -O2"
4988 LIBTOOL_DEPS
=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
4990 lt_save_CFLAGS
="$CFLAGS"
4991 AR
="$AR" LTCC
="$CC" CC
="$GCJ" CFLAGS
="$GCJFLAGS" CPPFLAGS
="" \
4992 MAGIC_CMD
="$MAGIC_CMD" LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
4993 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
4994 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
4995 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
4996 deplibs_check_method
="$deplibs_check_method" \
4997 file_magic_cmd
="$file_magic_cmd" \
4998 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
-o libtool
$libtool_flags \
4999 --build="$build" --add-tag=GCJ
$ac_aux_dir/ltcf-gcj.sh
$host \
5000 ||
{ echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
5002 CFLAGS
="$lt_save_CFLAGS"
5004 # Redirect the config.log output again, so that the ltconfig log is not
5005 # clobbered by the next message.
5006 exec 5>>.
/config.log
5011 echo $ac_n "checking size of void *""... $ac_c" 1>&6
5012 echo "configure:5013: checking size of void *" >&5
5013 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
5014 echo $ac_n "(cached) $ac_c" 1>&6
5016 if test "$cross_compiling" = yes; then
5017 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5019 cat > conftest.
$ac_ext <<EOF
5020 #line 5021 "configure"
5021 #include "confdefs.h"
5025 FILE *f=fopen("conftestval", "w");
5027 fprintf(f, "%d\n", sizeof(void *));
5031 if { (eval echo configure
:5032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5033 ac_cv_sizeof_void_p
=`cat conftestval`
5035 echo "configure: failed program was:" >&5
5036 cat conftest.
$ac_ext >&5
5038 ac_cv_sizeof_void_p
=0
5044 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
5045 cat >> confdefs.h
<<EOF
5046 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5054 if test "x$ZLIBSPEC" = "x-lzgcj"; then
5055 # We include the path to the zlib build directory.
5056 # See Makefile.am to understand why.
5057 ZDEPS
='$(top_builddir)/../zlib/libzgcj.la'
5058 ZLIBS
="$ZDEPS -L\$(here)/../zlib/$libsubdir"
5059 ZINCS
='-I$(top_srcdir)/../zlib'
5072 if test "$CANADIAN" = yes; then
5081 if test "$NULL_TARGET" = yes; then
5083 NULL_TARGET_FALSE
='#'
5085 NULL_TARGET_TRUE
='#'
5090 if test "$NATIVE" = yes ||
test "$NULL_TARGET" = yes; then
5099 if test -z "$with_cross_host"; then
5101 USE_LIBDIR_FALSE
='#'
5108 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
5109 NEEDS_DATA_START_TRUE
=
5110 NEEDS_DATA_START_FALSE
='#'
5112 NEEDS_DATA_START_TRUE
='#'
5113 NEEDS_DATA_START_FALSE
=
5117 # Determine gcj version number.
5119 gcjvers
="`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`"
5121 cat >> confdefs.h
<<EOF
5122 #define GCJVERSION "$gcjvers"
5126 # See if gcj supports -fuse-divide-subroutine. gcc 2.95 does not, and
5127 # we want to continue to support that version.
5128 echo $ac_n "checking whether gcj supports -fuse-divide-subroutine""... $ac_c" 1>&6
5129 echo "configure:5130: checking whether gcj supports -fuse-divide-subroutine" >&5
5130 cat > conftest.java
<< 'END'
5131 public class conftest
{ }
5134 $GCJ -classpath $srcdir -fuse-divide-subroutine -fsyntax-only \
5135 conftest.java
> /dev
/null
2>&1 \
5138 if test "$use_fuse" = no
; then
5141 echo "$ac_t""$use_fuse" 1>&6
5145 echo $ac_n "checking for g++ -ffloat-store bug""... $ac_c" 1>&6
5146 echo "configure:5147: checking for g++ -ffloat-store bug" >&5
5147 save_CFLAGS
="$CFLAGS"
5148 CFLAGS
="-x c++ -O2 -ffloat-store"
5149 cat > conftest.
$ac_ext <<EOF
5150 #line 5151 "configure"
5151 #include "confdefs.h"
5157 if { (eval echo configure
:5158: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5159 echo "$ac_t""no" 1>&6
5161 echo "configure: failed program was:" >&5
5162 cat conftest.
$ac_ext >&5
5164 cat >> confdefs.h
<<\EOF
5165 #define __NO_MATH_INLINES 1
5168 echo "$ac_t""yes" 1>&6
5171 CFLAGS
="$save_CFLAGS"
5173 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
5175 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5176 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5177 echo "configure:5178: checking for $ac_hdr" >&5
5178 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5179 echo $ac_n "(cached) $ac_c" 1>&6
5181 cat > conftest.
$ac_ext <<EOF
5182 #line 5183 "configure"
5183 #include "confdefs.h"
5186 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5187 { (eval echo configure
:5188: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5188 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5189 if test -z "$ac_err"; then
5191 eval "ac_cv_header_$ac_safe=yes"
5194 echo "configure: failed program was:" >&5
5195 cat conftest.
$ac_ext >&5
5197 eval "ac_cv_header_$ac_safe=no"
5201 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5202 echo "$ac_t""yes" 1>&6
5203 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5204 cat >> confdefs.h
<<EOF
5205 #define $ac_tr_hdr 1
5209 echo "$ac_t""no" 1>&6
5213 for ac_hdr
in dirent.h
5215 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5216 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5217 echo "configure:5218: checking for $ac_hdr" >&5
5218 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5219 echo $ac_n "(cached) $ac_c" 1>&6
5221 cat > conftest.
$ac_ext <<EOF
5222 #line 5223 "configure"
5223 #include "confdefs.h"
5226 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5227 { (eval echo configure
:5228: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5228 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5229 if test -z "$ac_err"; then
5231 eval "ac_cv_header_$ac_safe=yes"
5234 echo "configure: failed program was:" >&5
5235 cat conftest.
$ac_ext >&5
5237 eval "ac_cv_header_$ac_safe=no"
5241 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5242 echo "$ac_t""yes" 1>&6
5243 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5244 cat >> confdefs.h
<<EOF
5245 #define $ac_tr_hdr 1
5249 echo "$ac_t""no" 1>&6
5254 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5255 echo "configure:5256: checking for ANSI C header files" >&5
5256 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5257 echo $ac_n "(cached) $ac_c" 1>&6
5259 cat > conftest.
$ac_ext <<EOF
5260 #line 5261 "configure"
5261 #include "confdefs.h"
5267 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5268 { (eval echo configure
:5269: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5269 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5270 if test -z "$ac_err"; then
5272 ac_cv_header_stdc
=yes
5275 echo "configure: failed program was:" >&5
5276 cat conftest.
$ac_ext >&5
5278 ac_cv_header_stdc
=no
5282 if test $ac_cv_header_stdc = yes; then
5283 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5284 cat > conftest.
$ac_ext <<EOF
5285 #line 5286 "configure"
5286 #include "confdefs.h"
5289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5290 egrep "memchr" >/dev
/null
2>&1; then
5294 ac_cv_header_stdc
=no
5300 if test $ac_cv_header_stdc = yes; then
5301 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5302 cat > conftest.
$ac_ext <<EOF
5303 #line 5304 "configure"
5304 #include "confdefs.h"
5307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5308 egrep "free" >/dev
/null
2>&1; then
5312 ac_cv_header_stdc
=no
5318 if test $ac_cv_header_stdc = yes; then
5319 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5320 if test "$cross_compiling" = yes; then
5323 cat > conftest.
$ac_ext <<EOF
5324 #line 5325 "configure"
5325 #include "confdefs.h"
5327 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5328 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5329 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5330 int main () { int i; for (i = 0; i < 256; i++)
5331 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5335 if { (eval echo configure
:5336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5339 echo "configure: failed program was:" >&5
5340 cat conftest.
$ac_ext >&5
5342 ac_cv_header_stdc
=no
5350 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5351 if test $ac_cv_header_stdc = yes; then
5352 cat >> confdefs.h
<<\EOF
5353 #define STDC_HEADERS 1
5358 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
5359 echo "configure:5360: checking for ssize_t" >&5
5360 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
5361 echo $ac_n "(cached) $ac_c" 1>&6
5363 cat > conftest.
$ac_ext <<EOF
5364 #line 5365 "configure"
5365 #include "confdefs.h"
5366 #include <sys/types.h>
5372 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5373 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
5375 ac_cv_type_ssize_t
=yes
5378 ac_cv_type_ssize_t
=no
5383 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
5384 if test $ac_cv_type_ssize_t = no
; then
5385 cat >> confdefs.h
<<\EOF
5392 echo $ac_n "checking for in_addr_t""... $ac_c" 1>&6
5393 echo "configure:5394: checking for in_addr_t" >&5
5394 cat > conftest.
$ac_ext <<EOF
5395 #line 5396 "configure"
5396 #include "confdefs.h"
5397 #include <sys/types.h>
5402 #if HAVE_NETINET_IN_H
5403 #include <netinet/in.h>
5409 if { (eval echo configure
:5410: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5411 cat >> confdefs.h
<<\EOF
5412 #define HAVE_IN_ADDR_T 1
5415 echo "$ac_t""yes" 1>&6
5417 echo "configure: failed program was:" >&5
5418 cat conftest.
$ac_ext >&5
5420 echo "$ac_t""no" 1>&6
5424 echo $ac_n "checking whether struct ip_mreq is in netinet/in.h""... $ac_c" 1>&6
5425 echo "configure:5426: checking whether struct ip_mreq is in netinet/in.h" >&5
5426 cat > conftest.
$ac_ext <<EOF
5427 #line 5428 "configure"
5428 #include "confdefs.h"
5429 #include <netinet/in.h>
5431 struct ip_mreq mreq;
5434 if { (eval echo configure
:5435: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5436 cat >> confdefs.h
<<\EOF
5437 #define HAVE_STRUCT_IP_MREQ 1
5440 echo "$ac_t""yes" 1>&6
5442 echo "configure: failed program was:" >&5
5443 cat conftest.
$ac_ext >&5
5445 echo "$ac_t""no" 1>&6
5449 echo $ac_n "checking whether struct sockaddr_in6 is in netinet/in.h""... $ac_c" 1>&6
5450 echo "configure:5451: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
5451 cat > conftest.
$ac_ext <<EOF
5452 #line 5453 "configure"
5453 #include "confdefs.h"
5454 #include <netinet/in.h>
5456 struct sockaddr_in6 addr6;
5459 if { (eval echo configure
:5460: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5461 cat >> confdefs.h
<<\EOF
5462 #define HAVE_INET6 1
5465 echo "$ac_t""yes" 1>&6
5467 echo "configure: failed program was:" >&5
5468 cat conftest.
$ac_ext >&5
5470 echo "$ac_t""no" 1>&6
5474 echo $ac_n "checking for socklen_t in sys/socket.h""... $ac_c" 1>&6
5475 echo "configure:5476: checking for socklen_t in sys/socket.h" >&5
5476 cat > conftest.
$ac_ext <<EOF
5477 #line 5478 "configure"
5478 #include "confdefs.h"
5479 #include <sys/types.h>
5480 #include <sys/socket.h>
5485 if { (eval echo configure
:5486: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5487 cat >> confdefs.h
<<\EOF
5488 #define HAVE_SOCKLEN_T 1
5491 echo "$ac_t""yes" 1>&6
5493 echo "configure: failed program was:" >&5
5494 cat conftest.
$ac_ext >&5
5496 echo "$ac_t""no" 1>&6
5500 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
5501 echo "configure:5502: checking for tm_gmtoff in struct tm" >&5
5502 cat > conftest.
$ac_ext <<EOF
5503 #line 5504 "configure"
5504 #include "confdefs.h"
5507 struct tm tim; tim.tm_gmtoff = 0;
5510 if { (eval echo configure
:5511: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5512 cat >> confdefs.h
<<\EOF
5513 #define STRUCT_TM_HAS_GMTOFF 1
5516 echo "$ac_t""yes" 1>&6
5518 echo "configure: failed program was:" >&5
5519 cat conftest.
$ac_ext >&5
5521 echo "$ac_t""no" 1>&6
5522 echo $ac_n "checking for global timezone variable""... $ac_c" 1>&6
5523 echo "configure:5524: checking for global timezone variable" >&5
5524 cat > conftest.
$ac_ext <<EOF
5525 #line 5526 "configure"
5526 #include "confdefs.h"
5532 if { (eval echo configure
:5533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5534 cat >> confdefs.h
<<\EOF
5535 #define HAVE_TIMEZONE 1
5538 echo "$ac_t""yes" 1>&6
5540 echo "configure: failed program was:" >&5
5541 cat conftest.
$ac_ext >&5
5543 echo "$ac_t""no" 1>&6
5549 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5550 # for constant arguments. Useless!
5551 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5552 echo "configure:5553: checking for working alloca.h" >&5
5553 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5554 echo $ac_n "(cached) $ac_c" 1>&6
5556 cat > conftest.
$ac_ext <<EOF
5557 #line 5558 "configure"
5558 #include "confdefs.h"
5561 char *p = alloca(2 * sizeof(int));
5564 if { (eval echo configure
:5565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5566 ac_cv_header_alloca_h
=yes
5568 echo "configure: failed program was:" >&5
5569 cat conftest.
$ac_ext >&5
5571 ac_cv_header_alloca_h
=no
5576 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5577 if test $ac_cv_header_alloca_h = yes; then
5578 cat >> confdefs.h
<<\EOF
5579 #define HAVE_ALLOCA_H 1
5584 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5585 echo "configure:5586: checking for alloca" >&5
5586 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5587 echo $ac_n "(cached) $ac_c" 1>&6
5589 cat > conftest.
$ac_ext <<EOF
5590 #line 5591 "configure"
5591 #include "confdefs.h"
5594 # define alloca __builtin_alloca
5597 # include <malloc.h>
5598 # define alloca _alloca
5601 # include <alloca.h>
5606 # ifndef alloca /* predefined by HP cc +Olibcalls */
5615 char *p = (char *) alloca(1);
5618 if { (eval echo configure
:5619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5620 ac_cv_func_alloca_works
=yes
5622 echo "configure: failed program was:" >&5
5623 cat conftest.
$ac_ext >&5
5625 ac_cv_func_alloca_works
=no
5630 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5631 if test $ac_cv_func_alloca_works = yes; then
5632 cat >> confdefs.h
<<\EOF
5633 #define HAVE_ALLOCA 1
5638 if test $ac_cv_func_alloca_works = no
; then
5639 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5640 # that cause trouble. Some versions do not even contain alloca or
5641 # contain a buggy version. If you still want to use their alloca,
5642 # use ar to extract alloca.o from them instead of compiling alloca.c.
5643 ALLOCA
=alloca.
${ac_objext}
5644 cat >> confdefs.h
<<\EOF
5649 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5650 echo "configure:5651: checking whether alloca needs Cray hooks" >&5
5651 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5652 echo $ac_n "(cached) $ac_c" 1>&6
5654 cat > conftest.
$ac_ext <<EOF
5655 #line 5656 "configure"
5656 #include "confdefs.h"
5657 #if defined(CRAY) && ! defined(CRAY2)
5664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5665 egrep "webecray" >/dev
/null
2>&1; then
5676 echo "$ac_t""$ac_cv_os_cray" 1>&6
5677 if test $ac_cv_os_cray = yes; then
5678 for ac_func
in _getb67 GETB67 getb67
; do
5679 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5680 echo "configure:5681: checking for $ac_func" >&5
5681 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5682 echo $ac_n "(cached) $ac_c" 1>&6
5684 cat > conftest.
$ac_ext <<EOF
5685 #line 5686 "configure"
5686 #include "confdefs.h"
5687 /* System header to define __stub macros and hopefully few prototypes,
5688 which can conflict with char $ac_func(); below. */
5690 /* Override any gcc2 internal prototype to avoid an error. */
5691 /* We use char because int might match the return type of a gcc2
5692 builtin and then its argument prototype would still apply. */
5697 /* The GNU C library defines this for functions which it implements
5698 to always fail with ENOSYS. Some functions are actually named
5699 something starting with __ and the normal name is an alias. */
5700 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5708 if { (eval echo configure
:5709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5710 eval "ac_cv_func_$ac_func=yes"
5712 echo "configure: failed program was:" >&5
5713 cat conftest.
$ac_ext >&5
5715 eval "ac_cv_func_$ac_func=no"
5720 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5721 echo "$ac_t""yes" 1>&6
5722 cat >> confdefs.h
<<EOF
5723 #define CRAY_STACKSEG_END $ac_func
5728 echo "$ac_t""no" 1>&6
5734 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5735 echo "configure:5736: checking stack direction for C alloca" >&5
5736 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5737 echo $ac_n "(cached) $ac_c" 1>&6
5739 if test "$cross_compiling" = yes; then
5740 ac_cv_c_stack_direction
=0
5742 cat > conftest.
$ac_ext <<EOF
5743 #line 5744 "configure"
5744 #include "confdefs.h"
5745 find_stack_direction ()
5747 static char *addr = 0;
5752 return find_stack_direction ();
5755 return (&dummy > addr) ? 1 : -1;
5759 exit (find_stack_direction() < 0);
5762 if { (eval echo configure
:5763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5764 ac_cv_c_stack_direction
=1
5766 echo "configure: failed program was:" >&5
5767 cat conftest.
$ac_ext >&5
5769 ac_cv_c_stack_direction
=-1
5776 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5777 cat >> confdefs.h
<<EOF
5778 #define STACK_DIRECTION $ac_cv_c_stack_direction
5786 # Extract the first word of "$ac_prog", so it can be a program name with args.
5787 set dummy
$ac_prog; ac_word
=$2
5788 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5789 echo "configure:5790: checking for $ac_word" >&5
5790 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
5791 echo $ac_n "(cached) $ac_c" 1>&6
5793 if test -n "$PERL"; then
5794 ac_cv_prog_PERL
="$PERL" # Let the user override the test.
5796 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5798 for ac_dir
in $ac_dummy; do
5799 test -z "$ac_dir" && ac_dir
=.
5800 if test -f $ac_dir/$ac_word; then
5801 ac_cv_prog_PERL
="$ac_prog"
5808 PERL
="$ac_cv_prog_PERL"
5809 if test -n "$PERL"; then
5810 echo "$ac_t""$PERL" 1>&6
5812 echo "$ac_t""no" 1>&6
5815 test -n "$PERL" && break
5817 test -n "$PERL" || PERL
="false"
5824 SIGNAL_HANDLER
=include
/i386-signal.h
5827 SIGNAL_HANDLER
=include
/sparc-signal.h
5830 SYSDEP_SOURCES
=sysdep
/ia64.c
5831 test -d sysdep || mkdir sysdep
5834 SIGNAL_HANDLER
=include
/default-signal.h
5838 # If we're using sjlj exceptions, forget what we just learned.
5839 if test "$libgcj_sjlj" = yes; then
5840 SIGNAL_HANDLER
=include
/default-signal.h
5847 if test "${multilib}" = "yes"; then
5848 multilib_arg
="--enable-multilib"
5853 # If we find X, set shell vars x_includes and x_libraries to the
5854 # paths, otherwise set no_x=yes.
5855 # Uses ac_ vars as temps to allow command line to override cache and checks.
5856 # --without-x overrides everything else, but does not touch the cache.
5857 echo $ac_n "checking for X""... $ac_c" 1>&6
5858 echo "configure:5859: checking for X" >&5
5860 # Check whether --with-x or --without-x was given.
5861 if test "${with_x+set}" = set; then
5866 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5867 if test "x$with_x" = xno
; then
5868 # The user explicitly disabled X.
5871 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
5872 # Both variables are already set.
5875 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
5876 echo $ac_n "(cached) $ac_c" 1>&6
5878 # One or both of the vars are not set, and there is no cached value.
5879 ac_x_includes
=NO ac_x_libraries
=NO
5881 if mkdir conftestdir
; then
5883 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5884 cat > Imakefile
<<'EOF'
5886 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5888 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
5889 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5890 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5891 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5892 for ac_extension
in a so sl
; do
5893 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
5894 test -f $ac_im_libdir/libX11.
$ac_extension; then
5895 ac_im_usrlibdir
=$ac_im_libdir; break
5898 # Screen out bogus values from the imake configuration. They are
5899 # bogus both because they are the default anyway, and because
5900 # using them would break gcc on systems where it needs fixed includes.
5901 case "$ac_im_incroot" in
5903 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
5905 case "$ac_im_usrlibdir" in
5907 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
5914 if test "$ac_x_includes" = NO
; then
5915 # Guess where to find include files, by looking for this one X11 .h file.
5916 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
5918 # First, try using that file with no special directory specified.
5919 cat > conftest.
$ac_ext <<EOF
5920 #line 5921 "configure"
5921 #include "confdefs.h"
5922 #include <$x_direct_test_include>
5924 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5925 { (eval echo configure
:5926: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5926 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5927 if test -z "$ac_err"; then
5929 # We can compile using X headers with no special include directory.
5933 echo "configure: failed program was:" >&5
5934 cat conftest.
$ac_ext >&5
5936 # Look for the header file in a standard set of common directories.
5937 # Check X11 before X11Rn because it is often a symlink to the current release.
5940 /usr
/X11R
6/include \
5941 /usr
/X11R
5/include \
5942 /usr
/X11R
4/include \
5945 /usr
/include
/X11R6 \
5946 /usr
/include
/X11R5 \
5947 /usr
/include
/X11R4 \
5949 /usr
/local
/X11
/include \
5950 /usr
/local
/X11R
6/include \
5951 /usr
/local
/X11R
5/include \
5952 /usr
/local
/X11R
4/include \
5954 /usr
/local
/include
/X11 \
5955 /usr
/local
/include
/X11R6 \
5956 /usr
/local
/include
/X11R5 \
5957 /usr
/local
/include
/X11R4 \
5961 /usr
/XFree86
/include
/X11 \
5964 /usr
/local
/include \
5965 /usr
/unsupported
/include \
5966 /usr
/athena
/include \
5967 /usr
/local
/x11r
5/include \
5968 /usr
/lpp
/Xamples
/include \
5970 /usr
/openwin
/include \
5971 /usr
/openwin
/share
/include \
5974 if test -r "$ac_dir/$x_direct_test_include"; then
5975 ac_x_includes
=$ac_dir
5981 fi # $ac_x_includes = NO
5983 if test "$ac_x_libraries" = NO
; then
5984 # Check for the libraries.
5986 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
5987 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
5989 # See if we find them without any special options.
5990 # Don't add to $LIBS permanently.
5991 ac_save_LIBS
="$LIBS"
5992 LIBS
="-l$x_direct_test_library $LIBS"
5993 cat > conftest.
$ac_ext <<EOF
5994 #line 5995 "configure"
5995 #include "confdefs.h"
5998 ${x_direct_test_function}()
6001 if { (eval echo configure
:6002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6003 LIBS
="$ac_save_LIBS"
6004 # We can link X programs with no special library path.
6007 echo "configure: failed program was:" >&5
6008 cat conftest.
$ac_ext >&5
6010 LIBS
="$ac_save_LIBS"
6011 # First see if replacing the include by lib works.
6012 # Check X11 before X11Rn because it is often a symlink to the current release.
6013 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
6024 /usr
/local
/X11
/lib \
6025 /usr
/local
/X11R
6/lib \
6026 /usr
/local
/X11R
5/lib \
6027 /usr
/local
/X11R
4/lib \
6029 /usr
/local
/lib
/X11 \
6030 /usr
/local
/lib
/X11R6 \
6031 /usr
/local
/lib
/X11R5 \
6032 /usr
/local
/lib
/X11R4 \
6036 /usr
/XFree86
/lib
/X11 \
6040 /usr
/unsupported
/lib \
6042 /usr
/local
/x11r
5/lib \
6043 /usr
/lpp
/Xamples
/lib \
6047 /usr
/openwin
/share
/lib \
6050 for ac_extension
in a so sl
; do
6051 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
6052 ac_x_libraries
=$ac_dir
6059 fi # $ac_x_libraries = NO
6061 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
6062 # Didn't find X anywhere. Cache the known absence of X.
6063 ac_cv_have_x
="have_x=no"
6065 # Record where we found X for the cache.
6066 ac_cv_have_x
="have_x=yes \
6067 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6071 eval "$ac_cv_have_x"
6074 if test "$have_x" != yes; then
6075 echo "$ac_t""$have_x" 1>&6
6078 # If each of the values was on the command line, it overrides each guess.
6079 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
6080 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
6081 # Update the cache value to reflect the command line values.
6082 ac_cv_have_x
="have_x=yes \
6083 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6084 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
6087 if test "$no_x" = yes; then
6088 # Not all programs may use this symbol, but it does not hurt to define it.
6089 cat >> confdefs.h
<<\EOF
6090 #define X_DISPLAY_MISSING 1
6093 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
6095 if test -n "$x_includes"; then
6096 X_CFLAGS
="$X_CFLAGS -I$x_includes"
6099 # It would also be nice to do this for all -L options, not just this one.
6100 if test -n "$x_libraries"; then
6101 X_LIBS
="$X_LIBS -L$x_libraries"
6102 # For Solaris; some versions of Sun CC require a space after -R and
6103 # others require no space. Words are not sufficient . . . .
6104 case "`(uname -sr) 2>/dev/null`" in
6106 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
6107 echo "configure:6108: checking whether -R must be followed by a space" >&5
6108 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS -R$x_libraries"
6109 cat > conftest.
$ac_ext <<EOF
6110 #line 6111 "configure"
6111 #include "confdefs.h"
6117 if { (eval echo configure
:6118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6121 echo "configure: failed program was:" >&5
6122 cat conftest.
$ac_ext >&5
6127 if test $ac_R_nospace = yes; then
6128 echo "$ac_t""no" 1>&6
6129 X_LIBS
="$X_LIBS -R$x_libraries"
6131 LIBS
="$ac_xsave_LIBS -R $x_libraries"
6132 cat > conftest.
$ac_ext <<EOF
6133 #line 6134 "configure"
6134 #include "confdefs.h"
6140 if { (eval echo configure
:6141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6144 echo "configure: failed program was:" >&5
6145 cat conftest.
$ac_ext >&5
6150 if test $ac_R_space = yes; then
6151 echo "$ac_t""yes" 1>&6
6152 X_LIBS
="$X_LIBS -R $x_libraries"
6154 echo "$ac_t""neither works" 1>&6
6157 LIBS
="$ac_xsave_LIBS"
6161 # Check for system-dependent libraries X programs must link with.
6162 # Do this before checking for the system-independent R6 libraries
6163 # (-lICE), since we may need -lsocket or whatever for X linking.
6165 if test "$ISC" = yes; then
6166 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
6168 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
6169 # libraries were built with DECnet support. And karl@cs.umb.edu says
6170 # the Alpha needs dnet_stub (dnet does not exist).
6171 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
6172 echo "configure:6173: checking for dnet_ntoa in -ldnet" >&5
6173 ac_lib_var
=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6174 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6175 echo $ac_n "(cached) $ac_c" 1>&6
6177 ac_save_LIBS
="$LIBS"
6179 cat > conftest.
$ac_ext <<EOF
6180 #line 6181 "configure"
6181 #include "confdefs.h"
6182 /* Override any gcc2 internal prototype to avoid an error. */
6183 /* We use char because int might match the return type of a gcc2
6184 builtin and then its argument prototype would still apply. */
6191 if { (eval echo configure
:6192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6193 eval "ac_cv_lib_$ac_lib_var=yes"
6195 echo "configure: failed program was:" >&5
6196 cat conftest.
$ac_ext >&5
6198 eval "ac_cv_lib_$ac_lib_var=no"
6201 LIBS
="$ac_save_LIBS"
6204 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6205 echo "$ac_t""yes" 1>&6
6206 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
6208 echo "$ac_t""no" 1>&6
6211 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
6212 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
6213 echo "configure:6214: checking for dnet_ntoa in -ldnet_stub" >&5
6214 ac_lib_var
=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6215 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6216 echo $ac_n "(cached) $ac_c" 1>&6
6218 ac_save_LIBS
="$LIBS"
6219 LIBS
="-ldnet_stub $LIBS"
6220 cat > conftest.
$ac_ext <<EOF
6221 #line 6222 "configure"
6222 #include "confdefs.h"
6223 /* Override any gcc2 internal prototype to avoid an error. */
6224 /* We use char because int might match the return type of a gcc2
6225 builtin and then its argument prototype would still apply. */
6232 if { (eval echo configure
:6233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6234 eval "ac_cv_lib_$ac_lib_var=yes"
6236 echo "configure: failed program was:" >&5
6237 cat conftest.
$ac_ext >&5
6239 eval "ac_cv_lib_$ac_lib_var=no"
6242 LIBS
="$ac_save_LIBS"
6245 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6246 echo "$ac_t""yes" 1>&6
6247 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
6249 echo "$ac_t""no" 1>&6
6254 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6255 # to get the SysV transport functions.
6256 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
6258 # The nsl library prevents programs from opening the X display
6259 # on Irix 5.2, according to dickey@clark.net.
6260 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
6261 echo "configure:6262: checking for gethostbyname" >&5
6262 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
6263 echo $ac_n "(cached) $ac_c" 1>&6
6265 cat > conftest.
$ac_ext <<EOF
6266 #line 6267 "configure"
6267 #include "confdefs.h"
6268 /* System header to define __stub macros and hopefully few prototypes,
6269 which can conflict with char gethostbyname(); below. */
6271 /* Override any gcc2 internal prototype to avoid an error. */
6272 /* We use char because int might match the return type of a gcc2
6273 builtin and then its argument prototype would still apply. */
6274 char gethostbyname();
6278 /* The GNU C library defines this for functions which it implements
6279 to always fail with ENOSYS. Some functions are actually named
6280 something starting with __ and the normal name is an alias. */
6281 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6289 if { (eval echo configure
:6290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6291 eval "ac_cv_func_gethostbyname=yes"
6293 echo "configure: failed program was:" >&5
6294 cat conftest.
$ac_ext >&5
6296 eval "ac_cv_func_gethostbyname=no"
6301 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
6302 echo "$ac_t""yes" 1>&6
6305 echo "$ac_t""no" 1>&6
6308 if test $ac_cv_func_gethostbyname = no
; then
6309 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
6310 echo "configure:6311: checking for gethostbyname in -lnsl" >&5
6311 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
6312 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6313 echo $ac_n "(cached) $ac_c" 1>&6
6315 ac_save_LIBS
="$LIBS"
6317 cat > conftest.
$ac_ext <<EOF
6318 #line 6319 "configure"
6319 #include "confdefs.h"
6320 /* Override any gcc2 internal prototype to avoid an error. */
6321 /* We use char because int might match the return type of a gcc2
6322 builtin and then its argument prototype would still apply. */
6323 char gethostbyname();
6329 if { (eval echo configure
:6330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6331 eval "ac_cv_lib_$ac_lib_var=yes"
6333 echo "configure: failed program was:" >&5
6334 cat conftest.
$ac_ext >&5
6336 eval "ac_cv_lib_$ac_lib_var=no"
6339 LIBS
="$ac_save_LIBS"
6342 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6343 echo "$ac_t""yes" 1>&6
6344 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
6346 echo "$ac_t""no" 1>&6
6351 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6352 # socket/setsockopt and other routines are undefined under SCO ODT
6353 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6354 # on later versions), says simon@lia.di.epfl.ch: it contains
6355 # gethostby* variants that don't use the nameserver (or something).
6356 # -lsocket must be given before -lnsl if both are needed.
6357 # We assume that if connect needs -lnsl, so does gethostbyname.
6358 echo $ac_n "checking for connect""... $ac_c" 1>&6
6359 echo "configure:6360: checking for connect" >&5
6360 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
6361 echo $ac_n "(cached) $ac_c" 1>&6
6363 cat > conftest.
$ac_ext <<EOF
6364 #line 6365 "configure"
6365 #include "confdefs.h"
6366 /* System header to define __stub macros and hopefully few prototypes,
6367 which can conflict with char connect(); below. */
6369 /* Override any gcc2 internal prototype to avoid an error. */
6370 /* We use char because int might match the return type of a gcc2
6371 builtin and then its argument prototype would still apply. */
6376 /* The GNU C library defines this for functions which it implements
6377 to always fail with ENOSYS. Some functions are actually named
6378 something starting with __ and the normal name is an alias. */
6379 #if defined (__stub_connect) || defined (__stub___connect)
6387 if { (eval echo configure
:6388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6389 eval "ac_cv_func_connect=yes"
6391 echo "configure: failed program was:" >&5
6392 cat conftest.
$ac_ext >&5
6394 eval "ac_cv_func_connect=no"
6399 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
6400 echo "$ac_t""yes" 1>&6
6403 echo "$ac_t""no" 1>&6
6406 if test $ac_cv_func_connect = no
; then
6407 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
6408 echo "configure:6409: checking for connect in -lsocket" >&5
6409 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
6410 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6411 echo $ac_n "(cached) $ac_c" 1>&6
6413 ac_save_LIBS
="$LIBS"
6414 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
6415 cat > conftest.
$ac_ext <<EOF
6416 #line 6417 "configure"
6417 #include "confdefs.h"
6418 /* Override any gcc2 internal prototype to avoid an error. */
6419 /* We use char because int might match the return type of a gcc2
6420 builtin and then its argument prototype would still apply. */
6427 if { (eval echo configure
:6428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6429 eval "ac_cv_lib_$ac_lib_var=yes"
6431 echo "configure: failed program was:" >&5
6432 cat conftest.
$ac_ext >&5
6434 eval "ac_cv_lib_$ac_lib_var=no"
6437 LIBS
="$ac_save_LIBS"
6440 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6441 echo "$ac_t""yes" 1>&6
6442 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
6444 echo "$ac_t""no" 1>&6
6449 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
6450 echo $ac_n "checking for remove""... $ac_c" 1>&6
6451 echo "configure:6452: checking for remove" >&5
6452 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
6453 echo $ac_n "(cached) $ac_c" 1>&6
6455 cat > conftest.
$ac_ext <<EOF
6456 #line 6457 "configure"
6457 #include "confdefs.h"
6458 /* System header to define __stub macros and hopefully few prototypes,
6459 which can conflict with char remove(); below. */
6461 /* Override any gcc2 internal prototype to avoid an error. */
6462 /* We use char because int might match the return type of a gcc2
6463 builtin and then its argument prototype would still apply. */
6468 /* The GNU C library defines this for functions which it implements
6469 to always fail with ENOSYS. Some functions are actually named
6470 something starting with __ and the normal name is an alias. */
6471 #if defined (__stub_remove) || defined (__stub___remove)
6479 if { (eval echo configure
:6480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6481 eval "ac_cv_func_remove=yes"
6483 echo "configure: failed program was:" >&5
6484 cat conftest.
$ac_ext >&5
6486 eval "ac_cv_func_remove=no"
6491 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
6492 echo "$ac_t""yes" 1>&6
6495 echo "$ac_t""no" 1>&6
6498 if test $ac_cv_func_remove = no
; then
6499 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
6500 echo "configure:6501: checking for remove in -lposix" >&5
6501 ac_lib_var
=`echo posix'_'remove | sed 'y%./+-%__p_%'`
6502 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6503 echo $ac_n "(cached) $ac_c" 1>&6
6505 ac_save_LIBS
="$LIBS"
6506 LIBS
="-lposix $LIBS"
6507 cat > conftest.
$ac_ext <<EOF
6508 #line 6509 "configure"
6509 #include "confdefs.h"
6510 /* Override any gcc2 internal prototype to avoid an error. */
6511 /* We use char because int might match the return type of a gcc2
6512 builtin and then its argument prototype would still apply. */
6519 if { (eval echo configure
:6520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6521 eval "ac_cv_lib_$ac_lib_var=yes"
6523 echo "configure: failed program was:" >&5
6524 cat conftest.
$ac_ext >&5
6526 eval "ac_cv_lib_$ac_lib_var=no"
6529 LIBS
="$ac_save_LIBS"
6532 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6533 echo "$ac_t""yes" 1>&6
6534 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
6536 echo "$ac_t""no" 1>&6
6541 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6542 echo $ac_n "checking for shmat""... $ac_c" 1>&6
6543 echo "configure:6544: checking for shmat" >&5
6544 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
6545 echo $ac_n "(cached) $ac_c" 1>&6
6547 cat > conftest.
$ac_ext <<EOF
6548 #line 6549 "configure"
6549 #include "confdefs.h"
6550 /* System header to define __stub macros and hopefully few prototypes,
6551 which can conflict with char shmat(); below. */
6553 /* Override any gcc2 internal prototype to avoid an error. */
6554 /* We use char because int might match the return type of a gcc2
6555 builtin and then its argument prototype would still apply. */
6560 /* The GNU C library defines this for functions which it implements
6561 to always fail with ENOSYS. Some functions are actually named
6562 something starting with __ and the normal name is an alias. */
6563 #if defined (__stub_shmat) || defined (__stub___shmat)
6571 if { (eval echo configure
:6572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6573 eval "ac_cv_func_shmat=yes"
6575 echo "configure: failed program was:" >&5
6576 cat conftest.
$ac_ext >&5
6578 eval "ac_cv_func_shmat=no"
6583 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
6584 echo "$ac_t""yes" 1>&6
6587 echo "$ac_t""no" 1>&6
6590 if test $ac_cv_func_shmat = no
; then
6591 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
6592 echo "configure:6593: checking for shmat in -lipc" >&5
6593 ac_lib_var
=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
6594 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6595 echo $ac_n "(cached) $ac_c" 1>&6
6597 ac_save_LIBS
="$LIBS"
6599 cat > conftest.
$ac_ext <<EOF
6600 #line 6601 "configure"
6601 #include "confdefs.h"
6602 /* Override any gcc2 internal prototype to avoid an error. */
6603 /* We use char because int might match the return type of a gcc2
6604 builtin and then its argument prototype would still apply. */
6611 if { (eval echo configure
:6612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6613 eval "ac_cv_lib_$ac_lib_var=yes"
6615 echo "configure: failed program was:" >&5
6616 cat conftest.
$ac_ext >&5
6618 eval "ac_cv_lib_$ac_lib_var=no"
6621 LIBS
="$ac_save_LIBS"
6624 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6625 echo "$ac_t""yes" 1>&6
6626 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
6628 echo "$ac_t""no" 1>&6
6634 # Check for libraries that X11R6 Xt/Xaw programs need.
6635 ac_save_LDFLAGS
="$LDFLAGS"
6636 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
6637 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6638 # check for ICE first), but we must link in the order -lSM -lICE or
6639 # we get undefined symbols. So assume we have SM if we have ICE.
6640 # These have to be linked with before -lX11, unlike the other
6641 # libraries we check for below, so use a different variable.
6642 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
6643 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
6644 echo "configure:6645: checking for IceConnectionNumber in -lICE" >&5
6645 ac_lib_var
=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
6646 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6647 echo $ac_n "(cached) $ac_c" 1>&6
6649 ac_save_LIBS
="$LIBS"
6650 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
6651 cat > conftest.
$ac_ext <<EOF
6652 #line 6653 "configure"
6653 #include "confdefs.h"
6654 /* Override any gcc2 internal prototype to avoid an error. */
6655 /* We use char because int might match the return type of a gcc2
6656 builtin and then its argument prototype would still apply. */
6657 char IceConnectionNumber();
6660 IceConnectionNumber()
6663 if { (eval echo configure
:6664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6665 eval "ac_cv_lib_$ac_lib_var=yes"
6667 echo "configure: failed program was:" >&5
6668 cat conftest.
$ac_ext >&5
6670 eval "ac_cv_lib_$ac_lib_var=no"
6673 LIBS
="$ac_save_LIBS"
6676 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6677 echo "$ac_t""yes" 1>&6
6678 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
6680 echo "$ac_t""no" 1>&6
6683 LDFLAGS
="$ac_save_LDFLAGS"
6690 if test "$no_x" = yes; then
6703 cat > confcache
<<\EOF
6704 # This file is a shell script that caches the results of configure
6705 # tests run on this system so they can be shared between configure
6706 # scripts and configure runs. It is not useful on other systems.
6707 # If it contains results you don't want to keep, you may remove or edit it.
6709 # By default, configure uses ./config.cache as the cache file,
6710 # creating it if it does not exist already. You can give configure
6711 # the --cache-file=FILE option to use a different cache file; that is
6712 # what configure does when it calls configure scripts in
6713 # subdirectories, so they share the cache.
6714 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6715 # config.status only pays attention to the cache file if you give it the
6716 # --recheck option to rerun configure.
6719 # The following way of writing the cache mishandles newlines in values,
6720 # but we know of no workaround that is simple, portable, and efficient.
6721 # So, don't put newlines in cache variables' values.
6722 # Ultrix sh set writes to stderr and can't be redirected directly,
6723 # and sets the high bit in the cache file unless we assign to the vars.
6725 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6727 # `set' does not quote correctly, so add quotes (double-quote substitution
6728 # turns \\\\ into \\, and sed turns \\ into \).
6730 -e "s/'/'\\\\''/g" \
6731 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6734 # `set' quotes correctly as required by POSIX, so do not add quotes.
6735 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6738 if cmp -s $cache_file confcache
; then
6741 if test -w $cache_file; then
6742 echo "updating cache $cache_file"
6743 cat confcache
> $cache_file
6745 echo "not updating unwritable cache $cache_file"
6750 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6752 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6753 # Let make expand exec_prefix.
6754 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6756 # Any assignment to VPATH causes Sun make to only execute
6757 # the first set of double-colon rules, so remove it if not needed.
6758 # If there is a colon in the path, we need to keep it.
6759 if test "x$srcdir" = x.
; then
6760 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
6763 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6765 DEFS
=-DHAVE_CONFIG_H
6767 # Without the "./", some shells look in PATH for config.status.
6768 : ${CONFIG_STATUS=./config.status}
6770 echo creating
$CONFIG_STATUS
6771 rm -f $CONFIG_STATUS
6772 cat > $CONFIG_STATUS <<EOF
6774 # Generated automatically by configure.
6775 # Run this file to recreate the current configuration.
6776 # This directory was configured as follows,
6777 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6779 # $0 $ac_configure_args
6781 # Compiler output produced by configure, useful for debugging
6782 # configure, is in ./config.log if it exists.
6784 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6787 case "\$ac_option" in
6788 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6789 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6790 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6791 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6792 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6794 -help | --help | --hel | --he | --h)
6795 echo "\$ac_cs_usage"; exit 0 ;;
6796 *) echo "\$ac_cs_usage"; exit 1 ;;
6800 ac_given_srcdir=$srcdir
6801 ac_given_INSTALL="$INSTALL"
6803 trap 'rm -fr `echo "Makefile libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6805 cat >> $CONFIG_STATUS <<EOF
6807 # Protect against being on the right side of a sed subst in config.status.
6808 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6809 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6813 s%@CFLAGS@%$CFLAGS%g
6814 s%@CPPFLAGS@%$CPPFLAGS%g
6815 s%@CXXFLAGS@%$CXXFLAGS%g
6816 s%@FFLAGS@%$FFLAGS%g
6818 s%@LDFLAGS@%$LDFLAGS%g
6820 s%@exec_prefix@%$exec_prefix%g
6821 s%@prefix@%$prefix%g
6822 s%@program_transform_name@%$program_transform_name%g
6823 s%@bindir@%$bindir%g
6824 s%@sbindir@%$sbindir%g
6825 s%@libexecdir@%$libexecdir%g
6826 s%@datadir@%$datadir%g
6827 s%@sysconfdir@%$sysconfdir%g
6828 s%@sharedstatedir@%$sharedstatedir%g
6829 s%@localstatedir@%$localstatedir%g
6830 s%@libdir@%$libdir%g
6831 s%@includedir@%$includedir%g
6832 s%@oldincludedir@%$oldincludedir%g
6833 s%@infodir@%$infodir%g
6834 s%@mandir@%$mandir%g
6836 s%@host_alias@%$host_alias%g
6837 s%@host_cpu@%$host_cpu%g
6838 s%@host_vendor@%$host_vendor%g
6839 s%@host_os@%$host_os%g
6840 s%@target@%$target%g
6841 s%@target_alias@%$target_alias%g
6842 s%@target_cpu@%$target_cpu%g
6843 s%@target_vendor@%$target_vendor%g
6844 s%@target_os@%$target_os%g
6846 s%@build_alias@%$build_alias%g
6847 s%@build_cpu@%$build_cpu%g
6848 s%@build_vendor@%$build_vendor%g
6849 s%@build_os@%$build_os%g
6851 s%@libgcj_basedir@%$libgcj_basedir%g
6854 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6855 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6856 s%@INSTALL_DATA@%$INSTALL_DATA%g
6857 s%@PACKAGE@%$PACKAGE%g
6858 s%@VERSION@%$VERSION%g
6859 s%@ACLOCAL@%$ACLOCAL%g
6860 s%@AUTOCONF@%$AUTOCONF%g
6861 s%@AUTOMAKE@%$AUTOMAKE%g
6862 s%@AUTOHEADER@%$AUTOHEADER%g
6863 s%@MAKEINFO@%$MAKEINFO%g
6864 s%@SET_MAKE@%$SET_MAKE%g
6867 s%@RANLIB@%$RANLIB%g
6868 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
6869 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
6871 s%@EXEEXT@%$EXEEXT%g
6872 s%@LIBGCJ_CFLAGS@%$LIBGCJ_CFLAGS%g
6873 s%@LIBGCJ_CXXFLAGS@%$LIBGCJ_CXXFLAGS%g
6874 s%@LIBGCJ_JAVAFLAGS@%$LIBGCJ_JAVAFLAGS%g
6875 s%@INCLTDL@%$INCLTDL%g
6876 s%@LIBLTDL@%$LIBLTDL%g
6877 s%@DIRLTDL@%$DIRLTDL%g
6878 s%@OBJEXT@%$OBJEXT%g
6880 s%@LIBTOOL@%$LIBTOOL%g
6881 s%@CXXCPP@%$CXXCPP%g
6882 s%@subdirs@%$subdirs%g
6883 s%@COMPPATH@%$COMPPATH%g
6884 s%@TESTSUBDIR_TRUE@%$TESTSUBDIR_TRUE%g
6885 s%@TESTSUBDIR_FALSE@%$TESTSUBDIR_FALSE%g
6886 s%@LIBGCJDEBUG@%$LIBGCJDEBUG%g
6887 s%@LIBDATASTARTSPEC@%$LIBDATASTARTSPEC%g
6889 s%@SYSTEMSPEC@%$SYSTEMSPEC%g
6890 s%@LIBGCJTESTSPEC@%$LIBGCJTESTSPEC%g
6891 s%@ZLIBSPEC@%$ZLIBSPEC%g
6892 s%@ZLIBTESTSPEC@%$ZLIBTESTSPEC%g
6893 s%@GCLIBS@%$GCLIBS%g
6894 s%@GCINCS@%$GCINCS%g
6895 s%@GCDEPS@%$GCDEPS%g
6896 s%@GCOBJS@%$GCOBJS%g
6897 s%@GCSPEC@%$GCSPEC%g
6898 s%@JC1GCSPEC@%$JC1GCSPEC%g
6899 s%@GCTESTSPEC@%$GCTESTSPEC%g
6900 s%@THREADLIBS@%$THREADLIBS%g
6901 s%@THREADINCS@%$THREADINCS%g
6902 s%@THREADDEPS@%$THREADDEPS%g
6903 s%@THREADOBJS@%$THREADOBJS%g
6904 s%@THREADSPEC@%$THREADSPEC%g
6905 s%@USING_GCC_TRUE@%$USING_GCC_TRUE%g
6906 s%@USING_GCC_FALSE@%$USING_GCC_FALSE%g
6908 s%@GCJFLAGS@%$GCJFLAGS%g
6912 s%@DIVIDESPEC@%$DIVIDESPEC%g
6913 s%@EXCEPTIONSPEC@%$EXCEPTIONSPEC%g
6914 s%@FORCELIBGCCSPEC@%$FORCELIBGCCSPEC%g
6915 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
6916 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
6917 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
6918 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
6919 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
6920 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
6921 s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
6922 s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
6923 s%@NEEDS_DATA_START_TRUE@%$NEEDS_DATA_START_TRUE%g
6924 s%@NEEDS_DATA_START_FALSE@%$NEEDS_DATA_START_FALSE%g
6925 s%@EH_COMMON_INCLUDE@%$EH_COMMON_INCLUDE%g
6926 s%@AM_RUNTESTFLAGS@%$AM_RUNTESTFLAGS%g
6927 s%@ALLOCA@%$ALLOCA%g
6929 s%@SYSDEP_SOURCES@%$SYSDEP_SOURCES%g
6930 s%@X_CFLAGS@%$X_CFLAGS%g
6931 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
6932 s%@X_LIBS@%$X_LIBS%g
6933 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
6934 s%@NO_X_TRUE@%$NO_X_TRUE%g
6935 s%@NO_X_FALSE@%$NO_X_FALSE%g
6941 cat >> $CONFIG_STATUS <<\EOF
6943 # Split the substitutions into bite-sized pieces for seds with
6944 # small command number limits, like on Digital OSF/1 and HP-UX.
6945 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
6946 ac_file
=1 # Number of current file.
6947 ac_beg
=1 # First line for current file.
6948 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
6951 while $ac_more_lines; do
6952 if test $ac_beg -gt 1; then
6953 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
6955 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
6957 if test ! -s conftest.s
$ac_file; then
6959 rm -f conftest.s
$ac_file
6961 if test -z "$ac_sed_cmds"; then
6962 ac_sed_cmds
="sed -f conftest.s$ac_file"
6964 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
6966 ac_file
=`expr $ac_file + 1`
6968 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
6971 if test -z "$ac_sed_cmds"; then
6976 cat >> $CONFIG_STATUS <<EOF
6978 CONFIG_FILES=\${CONFIG_FILES-"Makefile libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile"}
6980 cat >> $CONFIG_STATUS <<\EOF
6981 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
6982 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6984 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6985 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6986 *) ac_file_in
="${ac_file}.in" ;;
6989 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6991 # Remove last slash and all that follows it. Not all systems have dirname.
6992 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6993 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
6994 # The file is in a subdirectory.
6995 test ! -d "$ac_dir" && mkdir
"$ac_dir"
6996 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
6997 # A "../" for each directory in $ac_dir_suffix.
6998 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7000 ac_dir_suffix
= ac_dots
=
7003 case "$ac_given_srcdir" in
7005 if test -z "$ac_dots"; then top_srcdir
=.
7006 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7007 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
7009 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7010 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
7013 case "$ac_given_INSTALL" in
7014 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
7015 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
7018 echo creating
"$ac_file"
7020 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7022 *Makefile
*) ac_comsub
="1i\\
7023 # $configure_input" ;;
7027 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7029 s%@configure_input@%$configure_input%g
7030 s%@srcdir@%$srcdir%g
7031 s%@top_srcdir@%$top_srcdir%g
7032 s%@INSTALL@%$INSTALL%g
7033 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
7037 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7038 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7040 # ac_d sets the value in "#define NAME VALUE" lines.
7041 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7042 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
7045 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7046 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7047 ac_uB
='\([ ]\)%\1#\2define\3'
7050 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7051 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7052 ac_eB
='$%\1#\2define\3'
7056 if test "${CONFIG_HEADERS+set}" != set; then
7058 cat >> $CONFIG_STATUS <<EOF
7059 CONFIG_HEADERS="include/config.h"
7061 cat >> $CONFIG_STATUS <<\EOF
7063 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
7064 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7066 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
7067 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
7068 *) ac_file_in
="${ac_file}.in" ;;
7071 echo creating
$ac_file
7073 rm -f conftest.frag conftest.
in conftest.out
7074 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7075 cat $ac_file_inputs > conftest.
in
7079 # Transform confdefs.h into a sed script conftest.vals that substitutes
7080 # the proper values into config.h.in to produce config.h. And first:
7081 # Protect against being on the right side of a sed subst in config.status.
7082 # Protect against being in an unquoted here document in config.status.
7084 cat > conftest.hdr
<<\EOF
7087 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7091 sed -n -f conftest.hdr confdefs.h > conftest.vals
7094 # This sed command replaces #undef with comments. This is necessary, for
7095 # example, in the case of _POSIX_SOURCE, which is predefined and required
7096 # on some systems where configure will not decide to define it.
7097 cat >> conftest.vals <<\EOF
7098 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7101 # Break up conftest.vals because some shells have a limit on
7102 # the size of here documents, and old seds have small limits too.
7107 ac_lines=`grep -c . conftest.vals
`
7108 # grep -c gives empty output for an empty file on some AIX systems.
7109 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7110 # Write a limited-size here document to conftest.frag.
7111 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7112 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7114 sed -f conftest.frag conftest.in > conftest.out
7116 mv conftest.out conftest.in
7118 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7120 mv conftest.tail conftest.vals
7124 cat >> $CONFIG_STATUS <<\EOF
7125 rm -f conftest.frag conftest.h
7126 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7127 cat conftest.in >> conftest.h
7129 if cmp -s $ac_file conftest.h 2>/dev/null; then
7130 echo "$ac_file is unchanged"
7133 # Remove last slash and all that follows it. Not all systems have dirname.
7134 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
7135 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7136 # The file is in a subdirectory.
7137 test ! -d "$ac_dir" && mkdir "$ac_dir"
7140 mv conftest.h $ac_file
7146 cat >> $CONFIG_STATUS <<EOF
7147 ac_sources="java/io/$FILE_DESCRIPTOR java/lang/${PROCESS}Process.java java/lang/nat${PROCESS}Process.cc include/$GCHDR include/$THREADH $SIGNAL_HANDLER"
7148 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"
7151 cat >> $CONFIG_STATUS <<\EOF
7152 srcdir=$ac_given_srcdir
7153 while test -n "$ac_sources"; do
7154 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
7155 set $ac_sources; ac_source=$1; shift; ac_sources=$*
7157 echo "linking $srcdir/$ac_source to $ac_dest"
7159 if test ! -r $srcdir/$ac_source; then
7160 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
7164 # Make relative symlinks.
7165 # Remove last slash and all that follows it. Not all systems have dirname.
7166 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
7167 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
7168 # The dest file is in a subdirectory.
7169 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
7170 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
7171 # A "../" for each directory in $ac_dest_dir_suffix.
7172 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
7174 ac_dest_dir_suffix= ac_dots=
7178 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
7179 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
7182 # Make a symlink if possible; otherwise try a hard link.
7183 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
7184 ln $srcdir/$ac_source $ac_dest; then :
7186 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
7190 cat >> $CONFIG_STATUS <<EOF
7195 with_multisubdir=${with_multisubdir}
7196 ac_configure_args="${multilib_arg} ${ac_configure_args}"
7197 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
7198 libgcj_basedir=${libgcj_basedir}
7203 cat >> $CONFIG_STATUS <<\EOF
7204 test -z "$CONFIG_HEADERS" || echo timestamp > include/stamp-h
7205 if test -n "$CONFIG_FILES"; then
7206 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
7209 # Make subdirectories and `.d
' files. Look in both srcdir and
7210 # builddir for the .java files.
7213 ( (cd $srcdir && find . -name '*.java
' -print) ;
7214 find . -name '*.java
' -print) | \
7215 fgrep -v testsuite | \
7216 sed -e 's
/\.java
/.d
/' | \
7218 echo "include $f" >> deps.mk
7221 d=`echo $f | sed -e 's
,/[^
/]*$
,,'`
7223 $srcdir/../mkinstalldirs $d
7230 chmod +x $CONFIG_STATUS
7231 rm -fr confdefs* $ac_clean_files
7232 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7234 if test "$no_recursion" != yes; then
7236 # Remove --cache-file and --srcdir arguments so they do not pile up.
7237 ac_sub_configure_args=
7239 for ac_arg in $ac_configure_args; do
7240 if test -n "$ac_prev"; then
7245 -cache-file | --cache-file | --cache-fil | --cache-fi \
7246 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
7247 ac_prev=cache_file ;;
7248 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
7249 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
7251 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
7253 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
7255 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
7259 for ac_config_dir in $DIRLTDL; do
7261 # Do not complain, so a configure script can configure whichever
7262 # parts of a large source tree are present.
7263 if test ! -d $srcdir/$ac_config_dir; then
7267 echo configuring in $ac_config_dir
7272 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
7274 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
7282 # A "../" for each directory in /$ac_config_dir.
7283 ac_dots=`echo $ac_config_dir|sed -e 's
%^\.
/%%' -e 's
%[^
/]$
%&/%' -e 's
%[^
/]*/%..
/%g
'`
7286 .) # No --srcdir option. We are building in place.
7287 ac_sub_srcdir=$srcdir ;;
7288 /*) # Absolute path.
7289 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
7291 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
7294 # Check for guested configure; otherwise get Cygnus style configure.
7295 if test -f $ac_sub_srcdir/configure; then
7296 ac_sub_configure=$ac_sub_srcdir/configure
7297 elif test -f $ac_sub_srcdir/configure.in; then
7298 ac_sub_configure=$ac_configure
7300 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
7304 # The recursion is here.
7305 if test -n "$ac_sub_configure"; then
7307 # Make the cache file name correct relative to the subdirectory.
7308 case "$cache_file" in
7309 /*) ac_sub_cache_file=$cache_file ;;
7311 ac_sub_cache_file="$ac_dots$cache_file" ;;
7313 case "$ac_given_INSTALL" in
7314 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7315 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7318 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
7319 # The eval makes quoting arguments work.
7320 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
7323 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }