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
2659 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
2660 if test "${enable_libgcj_debug+set}" = set; then
2661 enableval
="$enable_libgcj_debug"
2662 if test "$enable_libgcj_debug" = yes; then
2663 cat >> confdefs.h
<<\EOF
2671 # Check whether --enable-interpreter or --disable-interpreter was given.
2672 if test "${enable_interpreter+set}" = set; then
2673 enableval
="$enable_interpreter"
2674 if test "$enable_interpreter" = yes; then
2675 # This can also be set in configure.host.
2676 libgcj_interpreter
=yes
2677 elif test "$enable_interpreter" = no
; then
2678 libgcj_interpreter
=no
2683 if test "$libgcj_interpreter" = yes; then
2684 cat >> confdefs.h
<<\EOF
2685 #define INTERPRETER 1
2691 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
2692 if test "${enable_sjlj_exceptions+set}" = set; then
2693 enableval
="$enable_sjlj_exceptions"
2694 if test "$enable_sjlj_exceptions" = yes; then
2695 # This can be set in configure.host.
2701 if test "$libgcj_sjlj" = yes; then
2702 EXCEPTIONSPEC
="-fsjlj-exceptions"
2703 cat >> confdefs.h
<<\EOF
2704 #define SJLJ_EXCEPTIONS 1
2710 if test "$ac_cv_prog_gnu_ld" = yes; then
2711 FORCELIBGCCSPEC
="-u __rethrow -u __frame_state_for -lgcc"
2714 echo $ac_n "checking for data_start""... $ac_c" 1>&6
2715 echo "configure:2716: checking for data_start" >&5
2718 cat > conftest.
$ac_ext <<EOF
2719 #line 2720 "configure"
2720 #include "confdefs.h"
2721 extern int data_start;
2723 return ((int) &data_start);
2726 if { (eval echo configure
:2727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2728 echo "$ac_t""found it" 1>&6
2730 echo "configure: failed program was:" >&5
2731 cat conftest.
$ac_ext >&5
2733 LIBDATASTARTSPEC
="-u data_start libgcjdata.a%s"
2734 NEEDS_DATA_START
=yes
2735 echo "$ac_t""missing" 1>&6
2740 # Check whether --enable-java-net or --disable-java-net was given.
2741 if test "${enable_java_net+set}" = set; then
2742 enableval
="$enable_java_net"
2747 if test -n "$enable_java_net"; then
2748 enable_java_net
=${enable_java_net_default-yes}
2750 if test "$enable_java_net" = no
; then
2751 cat >> confdefs.h
<<\EOF
2752 #define DISABLE_JAVA_NET 1
2757 # Check whether --enable-jvmpi or --disable-jvmpi was given.
2758 if test "${enable_jvmpi+set}" = set; then
2759 enableval
="$enable_jvmpi"
2764 if test "$enable_jvmpi" != no
; then
2765 cat >> confdefs.h
<<\EOF
2766 #define ENABLE_JVMPI 1
2772 # Check whether --with-ecos or --without-ecos was given.
2773 if test "${with_ecos+set}" = set; then
2774 withval
="$with_ecos"
2775 TARGET_ECOS
="$with_ecos"
2780 case "$TARGET_ECOS" in
2782 FILE_DESCRIPTOR
=natFileDescriptorPosix.cc
2783 PROCESS
=${PROCESS-Posix}
2786 FILE_DESCRIPTOR
=natFileDescriptorEcos.cc
2788 cat >> confdefs.h
<<\EOF
2795 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2796 echo "configure:2797: checking how to run the C preprocessor" >&5
2797 # On Suns, sometimes $CPP names a directory.
2798 if test -n "$CPP" && test -d "$CPP"; then
2801 if test -z "$CPP"; then
2802 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2803 echo $ac_n "(cached) $ac_c" 1>&6
2805 # This must be in double quotes, not single quotes, because CPP may get
2806 # substituted into the Makefile and "${CC-cc}" will confuse make.
2808 # On the NeXT, cc -E runs the code through the compiler's parser,
2809 # not just through cpp.
2810 cat > conftest.
$ac_ext <<EOF
2811 #line 2812 "configure"
2812 #include "confdefs.h"
2816 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2817 { (eval echo configure
:2818: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2818 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2819 if test -z "$ac_err"; then
2823 echo "configure: failed program was:" >&5
2824 cat conftest.
$ac_ext >&5
2826 CPP
="${CC-cc} -E -traditional-cpp"
2827 cat > conftest.
$ac_ext <<EOF
2828 #line 2829 "configure"
2829 #include "confdefs.h"
2833 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2834 { (eval echo configure
:2835: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2835 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2836 if test -z "$ac_err"; then
2840 echo "configure: failed program was:" >&5
2841 cat conftest.
$ac_ext >&5
2843 CPP
="${CC-cc} -nologo -E"
2844 cat > conftest.
$ac_ext <<EOF
2845 #line 2846 "configure"
2846 #include "confdefs.h"
2850 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2851 { (eval echo configure
:2852: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2852 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2853 if test -z "$ac_err"; then
2857 echo "configure: failed program was:" >&5
2858 cat conftest.
$ac_ext >&5
2867 ac_cv_prog_CPP
="$CPP"
2869 CPP
="$ac_cv_prog_CPP"
2871 ac_cv_prog_CPP
="$CPP"
2873 echo "$ac_t""$CPP" 1>&6
2875 cat > conftest.
$ac_ext <<EOF
2876 #line 2877 "configure"
2877 #include "confdefs.h"
2880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2881 egrep "uint32_t" >/dev
/null
2>&1; then
2883 cat >> confdefs.h
<<\EOF
2884 #define HAVE_INT32_DEFINED 1
2890 cat > conftest.
$ac_ext <<EOF
2891 #line 2892 "configure"
2892 #include "confdefs.h"
2893 #include <inttypes.h>
2895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2896 egrep "uint32_t" >/dev
/null
2>&1; then
2898 cat >> confdefs.h
<<\EOF
2899 #define HAVE_INT32_DEFINED 1
2905 cat > conftest.
$ac_ext <<EOF
2906 #line 2907 "configure"
2907 #include "confdefs.h"
2908 #include <sys/types.h>
2910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2911 egrep "u_int32_t" >/dev
/null
2>&1; then
2913 cat >> confdefs.h
<<\EOF
2914 #define HAVE_BSD_INT32_DEFINED 1
2920 cat > conftest.
$ac_ext <<EOF
2921 #line 2922 "configure"
2922 #include "confdefs.h"
2923 #include <sys/config.h>
2925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2926 egrep "u_int32_t" >/dev
/null
2>&1; then
2928 cat >> confdefs.h
<<\EOF
2929 #define HAVE_BSD_INT32_DEFINED 1
2937 cat > conftest.
$ac_ext <<EOF
2938 #line 2939 "configure"
2939 #include "confdefs.h"
2942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2943 egrep "mktime" >/dev
/null
2>&1; then
2945 cat >> confdefs.h
<<\EOF
2946 #define HAVE_MKTIME 1
2952 cat > conftest.
$ac_ext <<EOF
2953 #line 2954 "configure"
2954 #include "confdefs.h"
2957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2958 egrep "localtime" >/dev
/null
2>&1; then
2960 cat >> confdefs.h
<<\EOF
2961 #define HAVE_LOCALTIME 1
2968 test -d java || mkdir java
2969 test -d java
/io || mkdir java
/io
2972 test -d java
/lang || mkdir java
/lang
2979 LIBGCJTESTSPEC
="-L`pwd`/.libs -rpath `pwd`/.libs"
2982 # Check whether --with-system-zlib or --without-system-zlib was given.
2983 if test "${with_system_zlib+set}" = set; then
2984 withval
="$with_system_zlib"
2995 echo $ac_n "checking for garbage collector to use""... $ac_c" 1>&6
2996 echo "configure:2997: checking for garbage collector to use" >&5
2997 # Check whether --enable-java-gc or --disable-java-gc was given.
2998 if test "${enable_java_gc+set}" = set; then
2999 enableval
="$enable_java_gc"
3015 echo "$ac_t""boehm" 1>&6
3016 GCDEPS
='$(top_builddir)/../boehm-gc/libgcjgc.la'
3017 # We include the path to the boehm-gc build directory.
3018 # See Makefile.am to understand why.
3019 GCLIBS
="$GCDEPS -L\$(here)/../boehm-gc/$libsubdir"
3020 GCINCS
='-I$(top_srcdir)/../boehm-gc -I$(top_builddir)/../boehm-gc'
3022 JC1GCSPEC
='-fuse-boehm-gc'
3023 GCTESTSPEC
="-L`pwd`/../boehm-gc/.libs -rpath `pwd`/../boehm-gc/.libs"
3024 GCINCS
="$GCINCS `cat ../boehm-gc/boehm-cflags`"
3027 cat >> confdefs.h
<<\EOF
3028 #define HAVE_BOEHM_GC 1
3033 echo "$ac_t""none" 1>&6
3038 { echo "configure: error: unrecognized collector \"$GC\"" 1>&2; exit 1; }
3051 echo $ac_n "checking for threads package to use""... $ac_c" 1>&6
3052 echo "configure:3053: checking for threads package to use" >&5
3053 # Check whether --enable-threads or --disable-threads was given.
3054 if test "${enable_threads+set}" = set; then
3055 enableval
="$enable_threads"
3062 if test "$THREADS" = yes; then
3068 # FIXME: this isn't correct in all cases.
3075 # FIXME: for now, choose POSIX, because we implement that.
3076 # Later, choose irix threads.
3080 # FIXME: for now, choose POSIX, because we implement that.
3081 # Later, choose solaris threads.
3099 cat >> confdefs.h
<<\EOF
3100 #define LINUX_THREADS 1
3106 decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks
)
3107 { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
3110 { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
3113 echo "$ac_t""$THREADS" 1>&6
3123 THREADLIBS
=-lpthread
3124 THREADSPEC
=-lpthread
3125 THREADOBJS
=posix-threads.lo
3126 THREADH
=posix-threads.h
3127 # MIT pthreads doesn't seem to have the mutexattr functions.
3128 # But for now we don't check for it. We just assume you aren't
3129 # using MIT pthreads.
3130 cat >> confdefs.h
<<\EOF
3131 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
3135 # If we're using the Boehm GC, then we happen to know that it
3136 # defines _REENTRANT, so we don't bother. Eww.
3137 if test "$GC" != boehm
; then
3138 cat >> confdefs.h
<<\EOF
3139 #define _REENTRANT 1
3143 cat >> confdefs.h
<<\EOF
3144 #define _POSIX_PTHREAD_SEMANTICS 1
3150 THREADOBJS
=no-threads.lo
3151 THREADH
=no-threads.h
3163 if test "$GCC" = yes; then
3175 # Find eh-common.h and support headers. If we're in the tree with
3176 # gcc, then look there. Otherwise look in compat-include. If all else
3177 # fails, just hope the user has set things up somehow.
3178 if test -r $srcdir/..
/gcc
/eh-common.h
; then
3179 EH_COMMON_INCLUDE
='-I$(top_srcdir)/../gcc -I$(top_srcdir)/../include'
3181 if test -d $srcdir/..
/compat-include
; then
3182 EH_COMMON_INCLUDE
='-I$(top_srcdir)/../compat-include'
3188 if test -n "${with_cross_host}"; then
3189 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
3190 # may not work correctly, because the compiler may not be able to
3193 # We assume newlib. This lets us hard-code the functions we know
3195 cat >> confdefs.h
<<\EOF
3196 #define HAVE_MEMMOVE 1
3199 cat >> confdefs.h
<<\EOF
3200 #define HAVE_MEMCPY 1
3203 cat >> confdefs.h
<<\EOF
3204 #define HAVE_STRERROR 1
3207 cat >> confdefs.h
<<\EOF
3208 #define HAVE_GMTIME_R 1
3211 cat >> confdefs.h
<<\EOF
3212 #define HAVE_LOCALTIME_R 1
3215 cat >> confdefs.h
<<\EOF
3216 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
3219 cat >> confdefs.h
<<\EOF
3220 #define HAVE_ALLOCA 1
3224 cat >> confdefs.h
<<\EOF
3230 ZLIBTESTSPEC
="-L`pwd`/../zlib/.libs -rpath `pwd`/../zlib/.libs"
3232 # If Canadian cross, then don't pick up tools from the build
3234 if test "$build" != "$with_cross_host"; then
3237 GCJ
="${target_alias}-gcj"
3243 for ac_func
in strerror ioctl
select fstat open fsync
sleep
3245 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3246 echo "configure:3247: checking for $ac_func" >&5
3247 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3248 echo $ac_n "(cached) $ac_c" 1>&6
3250 cat > conftest.
$ac_ext <<EOF
3251 #line 3252 "configure"
3252 #include "confdefs.h"
3253 /* System header to define __stub macros and hopefully few prototypes,
3254 which can conflict with char $ac_func(); below. */
3256 /* Override any gcc2 internal prototype to avoid an error. */
3257 /* We use char because int might match the return type of a gcc2
3258 builtin and then its argument prototype would still apply. */
3263 /* The GNU C library defines this for functions which it implements
3264 to always fail with ENOSYS. Some functions are actually named
3265 something starting with __ and the normal name is an alias. */
3266 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3274 if { (eval echo configure
:3275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3276 eval "ac_cv_func_$ac_func=yes"
3278 echo "configure: failed program was:" >&5
3279 cat conftest.
$ac_ext >&5
3281 eval "ac_cv_func_$ac_func=no"
3286 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3287 echo "$ac_t""yes" 1>&6
3288 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3289 cat >> confdefs.h
<<EOF
3290 #define $ac_tr_func 1
3294 echo "$ac_t""no" 1>&6
3298 for ac_func
in gmtime_r localtime_r readdir_r getpwuid_r getcwd
3300 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3301 echo "configure:3302: checking for $ac_func" >&5
3302 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3303 echo $ac_n "(cached) $ac_c" 1>&6
3305 cat > conftest.
$ac_ext <<EOF
3306 #line 3307 "configure"
3307 #include "confdefs.h"
3308 /* System header to define __stub macros and hopefully few prototypes,
3309 which can conflict with char $ac_func(); below. */
3311 /* Override any gcc2 internal prototype to avoid an error. */
3312 /* We use char because int might match the return type of a gcc2
3313 builtin and then its argument prototype would still apply. */
3318 /* The GNU C library defines this for functions which it implements
3319 to always fail with ENOSYS. Some functions are actually named
3320 something starting with __ and the normal name is an alias. */
3321 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3329 if { (eval echo configure
:3330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3331 eval "ac_cv_func_$ac_func=yes"
3333 echo "configure: failed program was:" >&5
3334 cat conftest.
$ac_ext >&5
3336 eval "ac_cv_func_$ac_func=no"
3341 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3342 echo "$ac_t""yes" 1>&6
3343 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3344 cat >> confdefs.h
<<EOF
3345 #define $ac_tr_func 1
3349 echo "$ac_t""no" 1>&6
3353 for ac_func
in access stat mkdir rename
rmdir unlink realpath
3355 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3356 echo "configure:3357: checking for $ac_func" >&5
3357 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3358 echo $ac_n "(cached) $ac_c" 1>&6
3360 cat > conftest.
$ac_ext <<EOF
3361 #line 3362 "configure"
3362 #include "confdefs.h"
3363 /* System header to define __stub macros and hopefully few prototypes,
3364 which can conflict with char $ac_func(); below. */
3366 /* Override any gcc2 internal prototype to avoid an error. */
3367 /* We use char because int might match the return type of a gcc2
3368 builtin and then its argument prototype would still apply. */
3373 /* The GNU C library defines this for functions which it implements
3374 to always fail with ENOSYS. Some functions are actually named
3375 something starting with __ and the normal name is an alias. */
3376 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3384 if { (eval echo configure
:3385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3386 eval "ac_cv_func_$ac_func=yes"
3388 echo "configure: failed program was:" >&5
3389 cat conftest.
$ac_ext >&5
3391 eval "ac_cv_func_$ac_func=no"
3396 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3397 echo "$ac_t""yes" 1>&6
3398 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3399 cat >> confdefs.h
<<EOF
3400 #define $ac_tr_func 1
3404 echo "$ac_t""no" 1>&6
3408 for ac_func
in iconv nl_langinfo
3410 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3411 echo "configure:3412: checking for $ac_func" >&5
3412 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3413 echo $ac_n "(cached) $ac_c" 1>&6
3415 cat > conftest.
$ac_ext <<EOF
3416 #line 3417 "configure"
3417 #include "confdefs.h"
3418 /* System header to define __stub macros and hopefully few prototypes,
3419 which can conflict with char $ac_func(); below. */
3421 /* Override any gcc2 internal prototype to avoid an error. */
3422 /* We use char because int might match the return type of a gcc2
3423 builtin and then its argument prototype would still apply. */
3428 /* The GNU C library defines this for functions which it implements
3429 to always fail with ENOSYS. Some functions are actually named
3430 something starting with __ and the normal name is an alias. */
3431 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3439 if { (eval echo configure
:3440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3441 eval "ac_cv_func_$ac_func=yes"
3443 echo "configure: failed program was:" >&5
3444 cat conftest.
$ac_ext >&5
3446 eval "ac_cv_func_$ac_func=no"
3451 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3452 echo "$ac_t""yes" 1>&6
3453 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3454 cat >> confdefs.h
<<EOF
3455 #define $ac_tr_func 1
3459 echo "$ac_t""no" 1>&6
3463 for ac_func
in inet_aton inet_addr
3465 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3466 echo "configure:3467: checking for $ac_func" >&5
3467 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3468 echo $ac_n "(cached) $ac_c" 1>&6
3470 cat > conftest.
$ac_ext <<EOF
3471 #line 3472 "configure"
3472 #include "confdefs.h"
3473 /* System header to define __stub macros and hopefully few prototypes,
3474 which can conflict with char $ac_func(); below. */
3476 /* Override any gcc2 internal prototype to avoid an error. */
3477 /* We use char because int might match the return type of a gcc2
3478 builtin and then its argument prototype would still apply. */
3483 /* The GNU C library defines this for functions which it implements
3484 to always fail with ENOSYS. Some functions are actually named
3485 something starting with __ and the normal name is an alias. */
3486 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3494 if { (eval echo configure
:3495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3496 eval "ac_cv_func_$ac_func=yes"
3498 echo "configure: failed program was:" >&5
3499 cat conftest.
$ac_ext >&5
3501 eval "ac_cv_func_$ac_func=no"
3506 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3507 echo "$ac_t""yes" 1>&6
3508 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3509 cat >> confdefs.h
<<EOF
3510 #define $ac_tr_func 1
3514 echo "$ac_t""no" 1>&6
3518 for ac_func
in inet_pton uname inet_ntoa
3520 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3521 echo "configure:3522: checking for $ac_func" >&5
3522 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3523 echo $ac_n "(cached) $ac_c" 1>&6
3525 cat > conftest.
$ac_ext <<EOF
3526 #line 3527 "configure"
3527 #include "confdefs.h"
3528 /* System header to define __stub macros and hopefully few prototypes,
3529 which can conflict with char $ac_func(); below. */
3531 /* Override any gcc2 internal prototype to avoid an error. */
3532 /* We use char because int might match the return type of a gcc2
3533 builtin and then its argument prototype would still apply. */
3538 /* The GNU C library defines this for functions which it implements
3539 to always fail with ENOSYS. Some functions are actually named
3540 something starting with __ and the normal name is an alias. */
3541 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3549 if { (eval echo configure
:3550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3551 eval "ac_cv_func_$ac_func=yes"
3553 echo "configure: failed program was:" >&5
3554 cat conftest.
$ac_ext >&5
3556 eval "ac_cv_func_$ac_func=no"
3561 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3562 echo "$ac_t""yes" 1>&6
3563 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3564 cat >> confdefs.h
<<EOF
3565 #define $ac_tr_func 1
3569 echo "$ac_t""no" 1>&6
3573 for ac_func
in backtrace fork execvp pipe
3575 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3576 echo "configure:3577: checking for $ac_func" >&5
3577 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3578 echo $ac_n "(cached) $ac_c" 1>&6
3580 cat > conftest.
$ac_ext <<EOF
3581 #line 3582 "configure"
3582 #include "confdefs.h"
3583 /* System header to define __stub macros and hopefully few prototypes,
3584 which can conflict with char $ac_func(); below. */
3586 /* Override any gcc2 internal prototype to avoid an error. */
3587 /* We use char because int might match the return type of a gcc2
3588 builtin and then its argument prototype would still apply. */
3593 /* The GNU C library defines this for functions which it implements
3594 to always fail with ENOSYS. Some functions are actually named
3595 something starting with __ and the normal name is an alias. */
3596 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3604 if { (eval echo configure
:3605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3606 eval "ac_cv_func_$ac_func=yes"
3608 echo "configure: failed program was:" >&5
3609 cat conftest.
$ac_ext >&5
3611 eval "ac_cv_func_$ac_func=no"
3616 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3617 echo "$ac_t""yes" 1>&6
3618 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3619 cat >> confdefs.h
<<EOF
3620 #define $ac_tr_func 1
3624 echo "$ac_t""no" 1>&6
3628 for ac_hdr
in execinfo.h unistd.h dlfcn.h
3630 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3631 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3632 echo "configure:3633: checking for $ac_hdr" >&5
3633 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3634 echo $ac_n "(cached) $ac_c" 1>&6
3636 cat > conftest.
$ac_ext <<EOF
3637 #line 3638 "configure"
3638 #include "confdefs.h"
3641 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3642 { (eval echo configure
:3643: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3643 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3644 if test -z "$ac_err"; then
3646 eval "ac_cv_header_$ac_safe=yes"
3649 echo "configure: failed program was:" >&5
3650 cat conftest.
$ac_ext >&5
3652 eval "ac_cv_header_$ac_safe=no"
3656 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3657 echo "$ac_t""yes" 1>&6
3658 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3659 cat >> confdefs.h
<<EOF
3660 #define $ac_tr_hdr 1
3664 echo "$ac_t""no" 1>&6
3668 echo $ac_n "checking for dladdr in -ldl""... $ac_c" 1>&6
3669 echo "configure:3670: checking for dladdr in -ldl" >&5
3670 ac_lib_var
=`echo dl'_'dladdr | sed 'y%./+-%__p_%'`
3671 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3672 echo $ac_n "(cached) $ac_c" 1>&6
3674 ac_save_LIBS
="$LIBS"
3676 cat > conftest.
$ac_ext <<EOF
3677 #line 3678 "configure"
3678 #include "confdefs.h"
3679 /* Override any gcc2 internal prototype to avoid an error. */
3680 /* We use char because int might match the return type of a gcc2
3681 builtin and then its argument prototype would still apply. */
3688 if { (eval echo configure
:3689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3690 eval "ac_cv_lib_$ac_lib_var=yes"
3692 echo "configure: failed program was:" >&5
3693 cat conftest.
$ac_ext >&5
3695 eval "ac_cv_lib_$ac_lib_var=no"
3698 LIBS
="$ac_save_LIBS"
3701 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3702 echo "$ac_t""yes" 1>&6
3704 cat >> confdefs.h
<<\EOF
3705 #define HAVE_DLADDR 1
3709 echo "$ac_t""no" 1>&6
3712 for ac_file
in /proc
/self
/exe
3715 ac_safe
=`echo "$ac_file" | sed 'y%./+-%__p_%'`
3716 echo $ac_n "checking for $ac_file""... $ac_c" 1>&6
3717 echo "configure:3718: checking for $ac_file" >&5
3718 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
3719 echo $ac_n "(cached) $ac_c" 1>&6
3721 if test "$cross_compiling" = yes; then
3722 { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; }
3724 if test -r $ac_file; then
3725 eval "ac_cv_file_$ac_safe=yes"
3727 eval "ac_cv_file_$ac_safe=no"
3731 if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
3732 echo "$ac_t""yes" 1>&6
3733 ac_tr_file
=HAVE_
`echo $ac_file | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3734 cat >> confdefs.h
<<EOF
3735 #define $ac_tr_file 1
3738 cat >> confdefs.h
<<\EOF
3739 #define HAVE_PROC_SELF_EXE 1
3743 echo "$ac_t""no" 1>&6
3749 for ac_func
in gethostbyname_r
3751 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3752 echo "configure:3753: checking for $ac_func" >&5
3753 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3754 echo $ac_n "(cached) $ac_c" 1>&6
3756 cat > conftest.
$ac_ext <<EOF
3757 #line 3758 "configure"
3758 #include "confdefs.h"
3759 /* System header to define __stub macros and hopefully few prototypes,
3760 which can conflict with char $ac_func(); below. */
3762 /* Override any gcc2 internal prototype to avoid an error. */
3763 /* We use char because int might match the return type of a gcc2
3764 builtin and then its argument prototype would still apply. */
3769 /* The GNU C library defines this for functions which it implements
3770 to always fail with ENOSYS. Some functions are actually named
3771 something starting with __ and the normal name is an alias. */
3772 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3780 if { (eval echo configure
:3781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3782 eval "ac_cv_func_$ac_func=yes"
3784 echo "configure: failed program was:" >&5
3785 cat conftest.
$ac_ext >&5
3787 eval "ac_cv_func_$ac_func=no"
3792 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3793 echo "$ac_t""yes" 1>&6
3794 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3795 cat >> confdefs.h
<<EOF
3796 #define $ac_tr_func 1
3799 cat >> confdefs.h
<<\EOF
3800 #define HAVE_GETHOSTBYNAME_R 1
3803 # There are two different kinds of gethostbyname_r.
3804 # We look for the one that returns `int'.
3805 # Hopefully this check is robust enough.
3806 cat > conftest.
$ac_ext <<EOF
3807 #line 3808 "configure"
3808 #include "confdefs.h"
3811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3812 egrep "int.*gethostbyname_r" >/dev
/null
2>&1; then
3815 cat >> confdefs.h
<<\EOF
3816 #define GETHOSTBYNAME_R_RETURNS_INT 1
3824 *" -D_REENTRANT "*) ;;
3826 echo $ac_n "checking whether gethostbyname_r declaration requires -D_REENTRANT""... $ac_c" 1>&6
3827 echo "configure:3828: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
3828 if eval "test \"`echo '$''{'libjava_cv_gethostbyname_r_needs_reentrant'+set}'`\" = set"; then
3829 echo $ac_n "(cached) $ac_c" 1>&6
3833 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3834 ac_cpp
='$CXXCPP $CPPFLAGS'
3835 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3836 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3837 cross_compiling
=$ac_cv_prog_cxx_cross
3839 cat > conftest.
$ac_ext <<EOF
3840 #line 3841 "configure"
3841 #include "confdefs.h"
3844 gethostbyname_r("", 0, 0);
3847 if { (eval echo configure
:3848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3849 libjava_cv_gethostbyname_r_needs_reentrant
=no
3851 echo "configure: failed program was:" >&5
3852 cat conftest.
$ac_ext >&5
3854 CPPFLAGS_SAVE
="$CPPFLAGS"
3855 CPPFLAGS
="$CPPFLAGS -D_REENTRANT"
3856 cat > conftest.
$ac_ext <<EOF
3857 #line 3858 "configure"
3858 #include "confdefs.h"
3861 gethostbyname_r("", 0, 0);
3864 if { (eval echo configure
:3865: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3866 libjava_cv_gethostbyname_r_needs_reentrant
=yes
3868 echo "configure: failed program was:" >&5
3869 cat conftest.
$ac_ext >&5
3871 libjava_cv_gethostbyname_r_needs_reentrant
=fail
3874 CPPFLAGS
="$CPPFLAGS_SAVE"
3879 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3880 ac_cpp
='$CPP $CPPFLAGS'
3881 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3882 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3883 cross_compiling
=$ac_cv_prog_cc_cross
3888 echo "$ac_t""$libjava_cv_gethostbyname_r_needs_reentrant" 1>&6
3889 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes
; then
3890 cat >> confdefs.h
<<\EOF
3891 #define _REENTRANT 1
3898 echo $ac_n "checking for struct hostent_data""... $ac_c" 1>&6
3899 echo "configure:3900: checking for struct hostent_data" >&5
3900 if eval "test \"`echo '$''{'libjava_cv_struct_hostent_data'+set}'`\" = set"; then
3901 echo $ac_n "(cached) $ac_c" 1>&6
3903 cat > conftest.
$ac_ext <<EOF
3904 #line 3905 "configure"
3905 #include "confdefs.h"
3907 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
3908 # define _REENTRANT 1
3912 struct hostent_data data;
3915 if { (eval echo configure
:3916: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3917 libjava_cv_struct_hostent_data
=yes
3919 echo "configure: failed program was:" >&5
3920 cat conftest.
$ac_ext >&5
3922 libjava_cv_struct_hostent_data
=no
3927 echo "$ac_t""$libjava_cv_struct_hostent_data" 1>&6
3928 if test "x$libjava_cv_struct_hostent_data" = xyes
; then
3929 cat >> confdefs.h
<<\EOF
3930 #define HAVE_STRUCT_HOSTENT_DATA 1
3936 echo "$ac_t""no" 1>&6
3941 for ac_func
in gethostbyaddr_r
3943 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3944 echo "configure:3945: checking for $ac_func" >&5
3945 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3946 echo $ac_n "(cached) $ac_c" 1>&6
3948 cat > conftest.
$ac_ext <<EOF
3949 #line 3950 "configure"
3950 #include "confdefs.h"
3951 /* System header to define __stub macros and hopefully few prototypes,
3952 which can conflict with char $ac_func(); below. */
3954 /* Override any gcc2 internal prototype to avoid an error. */
3955 /* We use char because int might match the return type of a gcc2
3956 builtin and then its argument prototype would still apply. */
3961 /* The GNU C library defines this for functions which it implements
3962 to always fail with ENOSYS. Some functions are actually named
3963 something starting with __ and the normal name is an alias. */
3964 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3972 if { (eval echo configure
:3973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3974 eval "ac_cv_func_$ac_func=yes"
3976 echo "configure: failed program was:" >&5
3977 cat conftest.
$ac_ext >&5
3979 eval "ac_cv_func_$ac_func=no"
3984 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3985 echo "$ac_t""yes" 1>&6
3986 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3987 cat >> confdefs.h
<<EOF
3988 #define $ac_tr_func 1
3991 cat >> confdefs.h
<<\EOF
3992 #define HAVE_GETHOSTBYADDR_R 1
3995 # There are two different kinds of gethostbyaddr_r.
3996 # We look for the one that returns `int'.
3997 # Hopefully this check is robust enough.
3998 cat > conftest.
$ac_ext <<EOF
3999 #line 4000 "configure"
4000 #include "confdefs.h"
4003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4004 egrep "int.*gethostbyaddr_r" >/dev
/null
2>&1; then
4007 cat >> confdefs.h
<<\EOF
4008 #define GETHOSTBYADDR_R_RETURNS_INT 1
4015 echo "$ac_t""no" 1>&6
4020 for ac_func
in gethostname
4022 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4023 echo "configure:4024: checking for $ac_func" >&5
4024 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4025 echo $ac_n "(cached) $ac_c" 1>&6
4027 cat > conftest.
$ac_ext <<EOF
4028 #line 4029 "configure"
4029 #include "confdefs.h"
4030 /* System header to define __stub macros and hopefully few prototypes,
4031 which can conflict with char $ac_func(); below. */
4033 /* Override any gcc2 internal prototype to avoid an error. */
4034 /* We use char because int might match the return type of a gcc2
4035 builtin and then its argument prototype would still apply. */
4040 /* The GNU C library defines this for functions which it implements
4041 to always fail with ENOSYS. Some functions are actually named
4042 something starting with __ and the normal name is an alias. */
4043 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4051 if { (eval echo configure
:4052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4053 eval "ac_cv_func_$ac_func=yes"
4055 echo "configure: failed program was:" >&5
4056 cat conftest.
$ac_ext >&5
4058 eval "ac_cv_func_$ac_func=no"
4063 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4064 echo "$ac_t""yes" 1>&6
4065 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4066 cat >> confdefs.h
<<EOF
4067 #define $ac_tr_func 1
4070 cat >> confdefs.h
<<\EOF
4071 #define HAVE_GETHOSTNAME 1
4074 cat > conftest.
$ac_ext <<EOF
4075 #line 4076 "configure"
4076 #include "confdefs.h"
4079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4080 egrep "gethostname" >/dev
/null
2>&1; then
4083 cat >> confdefs.h
<<\EOF
4084 #define HAVE_GETHOSTNAME_DECL 1
4091 echo "$ac_t""no" 1>&6
4096 # Look for these functions in the thread library, but only bother
4097 # if using POSIX threads.
4098 if test "$THREADS" = posix
; then
4100 LIBS
="$LIBS $THREADLIBS"
4101 # Some POSIX thread systems don't have pthread_mutexattr_settype.
4103 for ac_func
in pthread_mutexattr_settype pthread_mutexattr_setkind_np
4105 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4106 echo "configure:4107: checking for $ac_func" >&5
4107 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4108 echo $ac_n "(cached) $ac_c" 1>&6
4110 cat > conftest.
$ac_ext <<EOF
4111 #line 4112 "configure"
4112 #include "confdefs.h"
4113 /* System header to define __stub macros and hopefully few prototypes,
4114 which can conflict with char $ac_func(); below. */
4116 /* Override any gcc2 internal prototype to avoid an error. */
4117 /* We use char because int might match the return type of a gcc2
4118 builtin and then its argument prototype would still apply. */
4123 /* The GNU C library defines this for functions which it implements
4124 to always fail with ENOSYS. Some functions are actually named
4125 something starting with __ and the normal name is an alias. */
4126 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4134 if { (eval echo configure
:4135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4136 eval "ac_cv_func_$ac_func=yes"
4138 echo "configure: failed program was:" >&5
4139 cat conftest.
$ac_ext >&5
4141 eval "ac_cv_func_$ac_func=no"
4146 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4147 echo "$ac_t""yes" 1>&6
4148 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4149 cat >> confdefs.h
<<EOF
4150 #define $ac_tr_func 1
4154 echo "$ac_t""no" 1>&6
4159 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
4160 # Solaris 7 the name librt is preferred.
4161 for ac_func
in sched_yield
4163 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4164 echo "configure:4165: checking for $ac_func" >&5
4165 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4166 echo $ac_n "(cached) $ac_c" 1>&6
4168 cat > conftest.
$ac_ext <<EOF
4169 #line 4170 "configure"
4170 #include "confdefs.h"
4171 /* System header to define __stub macros and hopefully few prototypes,
4172 which can conflict with char $ac_func(); below. */
4174 /* Override any gcc2 internal prototype to avoid an error. */
4175 /* We use char because int might match the return type of a gcc2
4176 builtin and then its argument prototype would still apply. */
4181 /* The GNU C library defines this for functions which it implements
4182 to always fail with ENOSYS. Some functions are actually named
4183 something starting with __ and the normal name is an alias. */
4184 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4192 if { (eval echo configure
:4193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4194 eval "ac_cv_func_$ac_func=yes"
4196 echo "configure: failed program was:" >&5
4197 cat conftest.
$ac_ext >&5
4199 eval "ac_cv_func_$ac_func=no"
4204 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4205 echo "$ac_t""yes" 1>&6
4206 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4207 cat >> confdefs.h
<<EOF
4208 #define $ac_tr_func 1
4212 echo "$ac_t""no" 1>&6
4213 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
4214 echo "configure:4215: checking for sched_yield in -lrt" >&5
4215 ac_lib_var
=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
4216 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4217 echo $ac_n "(cached) $ac_c" 1>&6
4219 ac_save_LIBS
="$LIBS"
4221 cat > conftest.
$ac_ext <<EOF
4222 #line 4223 "configure"
4223 #include "confdefs.h"
4224 /* Override any gcc2 internal prototype to avoid an error. */
4225 /* We use char because int might match the return type of a gcc2
4226 builtin and then its argument prototype would still apply. */
4233 if { (eval echo configure
:4234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4235 eval "ac_cv_lib_$ac_lib_var=yes"
4237 echo "configure: failed program was:" >&5
4238 cat conftest.
$ac_ext >&5
4240 eval "ac_cv_lib_$ac_lib_var=no"
4243 LIBS
="$ac_save_LIBS"
4246 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4247 echo "$ac_t""yes" 1>&6
4249 cat >> confdefs.h
<<\EOF
4250 #define HAVE_SCHED_YIELD 1
4253 THREADLIBS
="$THREADLIBS -lrt"
4254 THREADSPEC
="$THREADSPEC -lrt"
4256 echo "$ac_t""no" 1>&6
4258 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
4259 echo "configure:4260: checking for sched_yield in -lposix4" >&5
4260 ac_lib_var
=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
4261 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4262 echo $ac_n "(cached) $ac_c" 1>&6
4264 ac_save_LIBS
="$LIBS"
4265 LIBS
="-lposix4 $LIBS"
4266 cat > conftest.
$ac_ext <<EOF
4267 #line 4268 "configure"
4268 #include "confdefs.h"
4269 /* Override any gcc2 internal prototype to avoid an error. */
4270 /* We use char because int might match the return type of a gcc2
4271 builtin and then its argument prototype would still apply. */
4278 if { (eval echo configure
:4279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4280 eval "ac_cv_lib_$ac_lib_var=yes"
4282 echo "configure: failed program was:" >&5
4283 cat conftest.
$ac_ext >&5
4285 eval "ac_cv_lib_$ac_lib_var=no"
4288 LIBS
="$ac_save_LIBS"
4291 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4292 echo "$ac_t""yes" 1>&6
4294 cat >> confdefs.h
<<\EOF
4295 #define HAVE_SCHED_YIELD 1
4298 THREADLIBS
="$THREADLIBS -lposix4"
4299 THREADSPEC
="$THREADSPEC -lposix4"
4301 echo "$ac_t""no" 1>&6
4311 # We can save a little space at runtime if the mutex has m_count
4312 # or __m_count. This is a nice hack for Linux.
4313 cat > conftest.
$ac_ext <<EOF
4314 #line 4315 "configure"
4315 #include "confdefs.h"
4316 #include <pthread.h>
4319 extern pthread_mutex_t *mutex; int q = mutex->m_count;
4323 if { (eval echo configure
:4324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4325 cat >> confdefs.h
<<\EOF
4326 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
4330 echo "configure: failed program was:" >&5
4331 cat conftest.
$ac_ext >&5
4334 cat > conftest.
$ac_ext <<EOF
4335 #line 4336 "configure"
4336 #include "confdefs.h"
4337 #include <pthread.h>
4340 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
4344 if { (eval echo configure
:4345: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4346 cat >> confdefs.h
<<\EOF
4347 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
4351 echo "configure: failed program was:" >&5
4352 cat conftest.
$ac_ext >&5
4359 # We require a way to get the time.
4361 for ac_func
in gettimeofday
time ftime
4363 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4364 echo "configure:4365: checking for $ac_func" >&5
4365 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4366 echo $ac_n "(cached) $ac_c" 1>&6
4368 cat > conftest.
$ac_ext <<EOF
4369 #line 4370 "configure"
4370 #include "confdefs.h"
4371 /* System header to define __stub macros and hopefully few prototypes,
4372 which can conflict with char $ac_func(); below. */
4374 /* Override any gcc2 internal prototype to avoid an error. */
4375 /* We use char because int might match the return type of a gcc2
4376 builtin and then its argument prototype would still apply. */
4381 /* The GNU C library defines this for functions which it implements
4382 to always fail with ENOSYS. Some functions are actually named
4383 something starting with __ and the normal name is an alias. */
4384 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4392 if { (eval echo configure
:4393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4394 eval "ac_cv_func_$ac_func=yes"
4396 echo "configure: failed program was:" >&5
4397 cat conftest.
$ac_ext >&5
4399 eval "ac_cv_func_$ac_func=no"
4404 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4405 echo "$ac_t""yes" 1>&6
4406 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4407 cat >> confdefs.h
<<EOF
4408 #define $ac_tr_func 1
4412 echo "$ac_t""no" 1>&6
4416 if test "$time_found" = no
; then
4417 { echo "configure: error: no function found to get the time" 1>&2; exit 1; }
4420 for ac_func
in memmove
4422 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4423 echo "configure:4424: checking for $ac_func" >&5
4424 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4425 echo $ac_n "(cached) $ac_c" 1>&6
4427 cat > conftest.
$ac_ext <<EOF
4428 #line 4429 "configure"
4429 #include "confdefs.h"
4430 /* System header to define __stub macros and hopefully few prototypes,
4431 which can conflict with char $ac_func(); below. */
4433 /* Override any gcc2 internal prototype to avoid an error. */
4434 /* We use char because int might match the return type of a gcc2
4435 builtin and then its argument prototype would still apply. */
4440 /* The GNU C library defines this for functions which it implements
4441 to always fail with ENOSYS. Some functions are actually named
4442 something starting with __ and the normal name is an alias. */
4443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4451 if { (eval echo configure
:4452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4453 eval "ac_cv_func_$ac_func=yes"
4455 echo "configure: failed program was:" >&5
4456 cat conftest.
$ac_ext >&5
4458 eval "ac_cv_func_$ac_func=no"
4463 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4464 echo "$ac_t""yes" 1>&6
4465 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4466 cat >> confdefs.h
<<EOF
4467 #define $ac_tr_func 1
4471 echo "$ac_t""no" 1>&6
4476 # We require memcpy.
4478 for ac_func
in memcpy
4480 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4481 echo "configure:4482: checking for $ac_func" >&5
4482 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4483 echo $ac_n "(cached) $ac_c" 1>&6
4485 cat > conftest.
$ac_ext <<EOF
4486 #line 4487 "configure"
4487 #include "confdefs.h"
4488 /* System header to define __stub macros and hopefully few prototypes,
4489 which can conflict with char $ac_func(); below. */
4491 /* Override any gcc2 internal prototype to avoid an error. */
4492 /* We use char because int might match the return type of a gcc2
4493 builtin and then its argument prototype would still apply. */
4498 /* The GNU C library defines this for functions which it implements
4499 to always fail with ENOSYS. Some functions are actually named
4500 something starting with __ and the normal name is an alias. */
4501 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4509 if { (eval echo configure
:4510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4511 eval "ac_cv_func_$ac_func=yes"
4513 echo "configure: failed program was:" >&5
4514 cat conftest.
$ac_ext >&5
4516 eval "ac_cv_func_$ac_func=no"
4521 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4522 echo "$ac_t""yes" 1>&6
4523 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4524 cat >> confdefs.h
<<EOF
4525 #define $ac_tr_func 1
4529 echo "$ac_t""no" 1>&6
4533 if test "$memcpy_found" = no
; then
4534 { echo "configure: error: memcpy is required" 1>&2; exit 1; }
4537 # Some library-finding code we stole from Tcl.
4538 #--------------------------------------------------------------------
4539 # Check for the existence of the -lsocket and -lnsl libraries.
4540 # The order here is important, so that they end up in the right
4541 # order in the command line generated by make. Here are some
4542 # special considerations:
4543 # 1. Use "connect" and "accept" to check for -lsocket, and
4544 # "gethostbyname" to check for -lnsl.
4545 # 2. Use each function name only once: can't redo a check because
4546 # autoconf caches the results of the last check and won't redo it.
4547 # 3. Use -lnsl and -lsocket only if they supply procedures that
4548 # aren't already present in the normal libraries. This is because
4549 # IRIX 5.2 has libraries, but they aren't needed and they're
4550 # bogus: they goof up name resolution if used.
4551 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
4552 # To get around this problem, check for both libraries together
4553 # if -lsocket doesn't work by itself.
4554 #--------------------------------------------------------------------
4556 echo $ac_n "checking for socket libraries""... $ac_c" 1>&6
4557 echo "configure:4558: checking for socket libraries" >&5
4558 if eval "test \"`echo '$''{'gcj_cv_lib_sockets'+set}'`\" = set"; then
4559 echo $ac_n "(cached) $ac_c" 1>&6
4563 unset ac_cv_func_connect
4564 echo $ac_n "checking for connect""... $ac_c" 1>&6
4565 echo "configure:4566: checking for connect" >&5
4566 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
4567 echo $ac_n "(cached) $ac_c" 1>&6
4569 cat > conftest.
$ac_ext <<EOF
4570 #line 4571 "configure"
4571 #include "confdefs.h"
4572 /* System header to define __stub macros and hopefully few prototypes,
4573 which can conflict with char connect(); below. */
4575 /* Override any gcc2 internal prototype to avoid an error. */
4576 /* We use char because int might match the return type of a gcc2
4577 builtin and then its argument prototype would still apply. */
4582 /* The GNU C library defines this for functions which it implements
4583 to always fail with ENOSYS. Some functions are actually named
4584 something starting with __ and the normal name is an alias. */
4585 #if defined (__stub_connect) || defined (__stub___connect)
4593 if { (eval echo configure
:4594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4595 eval "ac_cv_func_connect=yes"
4597 echo "configure: failed program was:" >&5
4598 cat conftest.
$ac_ext >&5
4600 eval "ac_cv_func_connect=no"
4605 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
4606 echo "$ac_t""yes" 1>&6
4609 echo "$ac_t""no" 1>&6
4613 if test "$gcj_checkSocket" = 1; then
4614 unset ac_cv_func_connect
4615 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4616 echo "configure:4617: checking for main in -lsocket" >&5
4617 ac_lib_var
=`echo socket'_'main | sed 'y%./+-%__p_%'`
4618 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4619 echo $ac_n "(cached) $ac_c" 1>&6
4621 ac_save_LIBS
="$LIBS"
4622 LIBS
="-lsocket $LIBS"
4623 cat > conftest.
$ac_ext <<EOF
4624 #line 4625 "configure"
4625 #include "confdefs.h"
4631 if { (eval echo configure
:4632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4633 eval "ac_cv_lib_$ac_lib_var=yes"
4635 echo "configure: failed program was:" >&5
4636 cat conftest.
$ac_ext >&5
4638 eval "ac_cv_lib_$ac_lib_var=no"
4641 LIBS
="$ac_save_LIBS"
4644 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4645 echo "$ac_t""yes" 1>&6
4646 gcj_cv_lib_sockets
="-lsocket"
4648 echo "$ac_t""no" 1>&6
4653 if test "$gcj_checkBoth" = 1; then
4655 LIBS
="$LIBS -lsocket -lnsl"
4656 unset ac_cv_func_accept
4657 echo $ac_n "checking for accept""... $ac_c" 1>&6
4658 echo "configure:4659: checking for accept" >&5
4659 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
4660 echo $ac_n "(cached) $ac_c" 1>&6
4662 cat > conftest.
$ac_ext <<EOF
4663 #line 4664 "configure"
4664 #include "confdefs.h"
4665 /* System header to define __stub macros and hopefully few prototypes,
4666 which can conflict with char accept(); below. */
4668 /* Override any gcc2 internal prototype to avoid an error. */
4669 /* We use char because int might match the return type of a gcc2
4670 builtin and then its argument prototype would still apply. */
4675 /* The GNU C library defines this for functions which it implements
4676 to always fail with ENOSYS. Some functions are actually named
4677 something starting with __ and the normal name is an alias. */
4678 #if defined (__stub_accept) || defined (__stub___accept)
4686 if { (eval echo configure
:4687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4688 eval "ac_cv_func_accept=yes"
4690 echo "configure: failed program was:" >&5
4691 cat conftest.
$ac_ext >&5
4693 eval "ac_cv_func_accept=no"
4698 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
4699 echo "$ac_t""yes" 1>&6
4701 gcj_cv_lib_sockets
="-lsocket -lnsl"
4703 echo "$ac_t""no" 1>&6
4706 unset ac_cv_func_accept
4709 unset ac_cv_func_gethostbyname
4711 LIBS
="$LIBS $gcj_cv_lib_sockets"
4712 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4713 echo "configure:4714: checking for gethostbyname" >&5
4714 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
4715 echo $ac_n "(cached) $ac_c" 1>&6
4717 cat > conftest.
$ac_ext <<EOF
4718 #line 4719 "configure"
4719 #include "confdefs.h"
4720 /* System header to define __stub macros and hopefully few prototypes,
4721 which can conflict with char gethostbyname(); below. */
4723 /* Override any gcc2 internal prototype to avoid an error. */
4724 /* We use char because int might match the return type of a gcc2
4725 builtin and then its argument prototype would still apply. */
4726 char gethostbyname();
4730 /* The GNU C library defines this for functions which it implements
4731 to always fail with ENOSYS. Some functions are actually named
4732 something starting with __ and the normal name is an alias. */
4733 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4741 if { (eval echo configure
:4742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4743 eval "ac_cv_func_gethostbyname=yes"
4745 echo "configure: failed program was:" >&5
4746 cat conftest.
$ac_ext >&5
4748 eval "ac_cv_func_gethostbyname=no"
4753 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
4754 echo "$ac_t""yes" 1>&6
4757 echo "$ac_t""no" 1>&6
4758 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
4759 echo "configure:4760: checking for main in -lnsl" >&5
4760 ac_lib_var
=`echo nsl'_'main | sed 'y%./+-%__p_%'`
4761 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4762 echo $ac_n "(cached) $ac_c" 1>&6
4764 ac_save_LIBS
="$LIBS"
4766 cat > conftest.
$ac_ext <<EOF
4767 #line 4768 "configure"
4768 #include "confdefs.h"
4774 if { (eval echo configure
:4775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4776 eval "ac_cv_lib_$ac_lib_var=yes"
4778 echo "configure: failed program was:" >&5
4779 cat conftest.
$ac_ext >&5
4781 eval "ac_cv_lib_$ac_lib_var=no"
4784 LIBS
="$ac_save_LIBS"
4787 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4788 echo "$ac_t""yes" 1>&6
4789 gcj_cv_lib_sockets
="$gcj_cv_lib_sockets -lnsl"
4791 echo "$ac_t""no" 1>&6
4796 unset ac_cv_func_gethostbyname
4801 echo "$ac_t""$gcj_cv_lib_sockets" 1>&6
4802 SYSTEMSPEC
="$SYSTEMSPEC $gcj_cv_lib_sockets"
4804 if test "$with_system_zlib" = yes; then
4805 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
4806 echo "configure:4807: checking for deflate in -lz" >&5
4807 ac_lib_var
=`echo z'_'deflate | sed 'y%./+-%__p_%'`
4808 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4809 echo $ac_n "(cached) $ac_c" 1>&6
4811 ac_save_LIBS
="$LIBS"
4813 cat > conftest.
$ac_ext <<EOF
4814 #line 4815 "configure"
4815 #include "confdefs.h"
4816 /* Override any gcc2 internal prototype to avoid an error. */
4817 /* We use char because int might match the return type of a gcc2
4818 builtin and then its argument prototype would still apply. */
4825 if { (eval echo configure
:4826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4827 eval "ac_cv_lib_$ac_lib_var=yes"
4829 echo "configure: failed program was:" >&5
4830 cat conftest.
$ac_ext >&5
4832 eval "ac_cv_lib_$ac_lib_var=no"
4835 LIBS
="$ac_save_LIBS"
4838 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4839 echo "$ac_t""yes" 1>&6
4842 echo "$ac_t""no" 1>&6
4848 ZLIBTESTSPEC
="-L`pwd`/../zlib/.libs -rpath `pwd`/../zlib/.libs"
4851 # On Solaris, and maybe other architectures, the Boehm collector
4853 if test "$GC" = boehm
; then
4854 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
4855 echo "configure:4856: checking for main in -ldl" >&5
4856 ac_lib_var
=`echo dl'_'main | sed 'y%./+-%__p_%'`
4857 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4858 echo $ac_n "(cached) $ac_c" 1>&6
4860 ac_save_LIBS
="$LIBS"
4862 cat > conftest.
$ac_ext <<EOF
4863 #line 4864 "configure"
4864 #include "confdefs.h"
4870 if { (eval echo configure
:4871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4872 eval "ac_cv_lib_$ac_lib_var=yes"
4874 echo "configure: failed program was:" >&5
4875 cat conftest.
$ac_ext >&5
4877 eval "ac_cv_lib_$ac_lib_var=no"
4880 LIBS
="$ac_save_LIBS"
4883 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4884 echo "$ac_t""yes" 1>&6
4885 SYSTEMSPEC
="$SYSTEMSPEC -ldl"
4887 echo "$ac_t""no" 1>&6
4892 if test -z "${with_multisubdir}"; then
4896 builddotdot
=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
4899 if test -x "${builddotdot}/../../gcc/gcj"; then
4900 dir
="`cd ${builddotdot}/../../gcc && pwd`"
4901 GCJ
="$dir/gcj -B`pwd`/ -B$dir/"
4909 # Create it, so that compile/link tests don't fail
4910 test -f libgcj.spec ||
touch libgcj.spec
4913 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
4914 set dummy
${ac_tool_prefix}gcj
; ac_word
=$2
4915 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4916 echo "configure:4917: checking for $ac_word" >&5
4917 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
4918 echo $ac_n "(cached) $ac_c" 1>&6
4920 if test -n "$GCJ"; then
4921 ac_cv_prog_GCJ
="$GCJ" # Let the user override the test.
4923 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4925 for ac_dir
in $ac_dummy; do
4926 test -z "$ac_dir" && ac_dir
=.
4927 if test -f $ac_dir/$ac_word; then
4928 ac_cv_prog_GCJ
="${ac_tool_prefix}gcj"
4935 GCJ
="$ac_cv_prog_GCJ"
4936 if test -n "$GCJ"; then
4937 echo "$ac_t""$GCJ" 1>&6
4939 echo "$ac_t""no" 1>&6
4943 if test -z "$ac_cv_prog_GCJ"; then
4944 if test -n "$ac_tool_prefix"; then
4945 # Extract the first word of "gcj", so it can be a program name with args.
4946 set dummy gcj
; ac_word
=$2
4947 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4948 echo "configure:4949: checking for $ac_word" >&5
4949 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
4950 echo $ac_n "(cached) $ac_c" 1>&6
4952 if test -n "$GCJ"; then
4953 ac_cv_prog_GCJ
="$GCJ" # Let the user override the test.
4955 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4957 for ac_dir
in $ac_dummy; do
4958 test -z "$ac_dir" && ac_dir
=.
4959 if test -f $ac_dir/$ac_word; then
4960 ac_cv_prog_GCJ
="gcj"
4965 test -z "$ac_cv_prog_GCJ" && ac_cv_prog_GCJ
="no"
4968 GCJ
="$ac_cv_prog_GCJ"
4969 if test -n "$GCJ"; then
4970 echo "$ac_t""$GCJ" 1>&6
4972 echo "$ac_t""no" 1>&6
4980 test "x${GCJFLAGS+set}" = xset || GCJFLAGS
="-g -O2"
4984 LIBTOOL_DEPS
=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
4986 lt_save_CFLAGS
="$CFLAGS"
4987 AR
="$AR" LTCC
="$CC" CC
="$GCJ" CFLAGS
="$GCJFLAGS" CPPFLAGS
="" \
4988 MAGIC_CMD
="$MAGIC_CMD" LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
4989 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
4990 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
4991 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
4992 deplibs_check_method
="$deplibs_check_method" \
4993 file_magic_cmd
="$file_magic_cmd" \
4994 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
-o libtool
$libtool_flags \
4995 --build="$build" --add-tag=GCJ
$ac_aux_dir/ltcf-gcj.sh
$host \
4996 ||
{ echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
4998 CFLAGS
="$lt_save_CFLAGS"
5000 # Redirect the config.log output again, so that the ltconfig log is not
5001 # clobbered by the next message.
5002 exec 5>>.
/config.log
5007 echo $ac_n "checking size of void *""... $ac_c" 1>&6
5008 echo "configure:5009: checking size of void *" >&5
5009 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
5010 echo $ac_n "(cached) $ac_c" 1>&6
5012 if test "$cross_compiling" = yes; then
5013 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5015 cat > conftest.
$ac_ext <<EOF
5016 #line 5017 "configure"
5017 #include "confdefs.h"
5021 FILE *f=fopen("conftestval", "w");
5023 fprintf(f, "%d\n", sizeof(void *));
5027 if { (eval echo configure
:5028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5029 ac_cv_sizeof_void_p
=`cat conftestval`
5031 echo "configure: failed program was:" >&5
5032 cat conftest.
$ac_ext >&5
5034 ac_cv_sizeof_void_p
=0
5040 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
5041 cat >> confdefs.h
<<EOF
5042 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5050 if test "x$ZLIBSPEC" = "x-lzgcj"; then
5051 # We include the path to the zlib build directory.
5052 # See Makefile.am to understand why.
5053 ZDEPS
='$(top_builddir)/../zlib/libzgcj.la'
5054 ZLIBS
="$ZDEPS -L\$(here)/../zlib/$libsubdir"
5055 ZINCS
='-I$(top_srcdir)/../zlib'
5068 if test "$CANADIAN" = yes; then
5077 if test "$NULL_TARGET" = yes; then
5079 NULL_TARGET_FALSE
='#'
5081 NULL_TARGET_TRUE
='#'
5086 if test "$NATIVE" = yes ||
test "$NULL_TARGET" = yes; then
5095 if test -z "$with_cross_host"; then
5097 USE_LIBDIR_FALSE
='#'
5104 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
5105 NEEDS_DATA_START_TRUE
=
5106 NEEDS_DATA_START_FALSE
='#'
5108 NEEDS_DATA_START_TRUE
='#'
5109 NEEDS_DATA_START_FALSE
=
5113 # Determine gcj version number.
5115 gcjvers
="`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`"
5117 cat >> confdefs.h
<<EOF
5118 #define GCJVERSION "$gcjvers"
5122 # See if gcj supports -fuse-divide-subroutine. gcc 2.95 does not, and
5123 # we want to continue to support that version.
5124 echo $ac_n "checking whether gcj supports -fuse-divide-subroutine""... $ac_c" 1>&6
5125 echo "configure:5126: checking whether gcj supports -fuse-divide-subroutine" >&5
5126 cat > conftest.java
<< 'END'
5127 public class conftest
{ }
5130 $GCJ -classpath $srcdir -fuse-divide-subroutine -fsyntax-only \
5131 conftest.java
> /dev
/null
2>&1 \
5134 if test "$use_fuse" = no
; then
5137 echo "$ac_t""$use_fuse" 1>&6
5141 echo $ac_n "checking for g++ -ffloat-store bug""... $ac_c" 1>&6
5142 echo "configure:5143: checking for g++ -ffloat-store bug" >&5
5143 save_CFLAGS
="$CFLAGS"
5144 CFLAGS
="-x c++ -O2 -ffloat-store"
5145 cat > conftest.
$ac_ext <<EOF
5146 #line 5147 "configure"
5147 #include "confdefs.h"
5153 if { (eval echo configure
:5154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5155 echo "$ac_t""no" 1>&6
5157 echo "configure: failed program was:" >&5
5158 cat conftest.
$ac_ext >&5
5160 cat >> confdefs.h
<<\EOF
5161 #define __NO_MATH_INLINES 1
5164 echo "$ac_t""yes" 1>&6
5167 CFLAGS
="$save_CFLAGS"
5169 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
5171 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5172 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5173 echo "configure:5174: checking for $ac_hdr" >&5
5174 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5175 echo $ac_n "(cached) $ac_c" 1>&6
5177 cat > conftest.
$ac_ext <<EOF
5178 #line 5179 "configure"
5179 #include "confdefs.h"
5182 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5183 { (eval echo configure
:5184: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5184 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5185 if test -z "$ac_err"; then
5187 eval "ac_cv_header_$ac_safe=yes"
5190 echo "configure: failed program was:" >&5
5191 cat conftest.
$ac_ext >&5
5193 eval "ac_cv_header_$ac_safe=no"
5197 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5198 echo "$ac_t""yes" 1>&6
5199 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5200 cat >> confdefs.h
<<EOF
5201 #define $ac_tr_hdr 1
5205 echo "$ac_t""no" 1>&6
5209 for ac_hdr
in dirent.h
5211 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5212 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5213 echo "configure:5214: checking for $ac_hdr" >&5
5214 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5215 echo $ac_n "(cached) $ac_c" 1>&6
5217 cat > conftest.
$ac_ext <<EOF
5218 #line 5219 "configure"
5219 #include "confdefs.h"
5222 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5223 { (eval echo configure
:5224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5224 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5225 if test -z "$ac_err"; then
5227 eval "ac_cv_header_$ac_safe=yes"
5230 echo "configure: failed program was:" >&5
5231 cat conftest.
$ac_ext >&5
5233 eval "ac_cv_header_$ac_safe=no"
5237 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5238 echo "$ac_t""yes" 1>&6
5239 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5240 cat >> confdefs.h
<<EOF
5241 #define $ac_tr_hdr 1
5245 echo "$ac_t""no" 1>&6
5250 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5251 echo "configure:5252: checking for ANSI C header files" >&5
5252 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5253 echo $ac_n "(cached) $ac_c" 1>&6
5255 cat > conftest.
$ac_ext <<EOF
5256 #line 5257 "configure"
5257 #include "confdefs.h"
5263 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5264 { (eval echo configure
:5265: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5265 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5266 if test -z "$ac_err"; then
5268 ac_cv_header_stdc
=yes
5271 echo "configure: failed program was:" >&5
5272 cat conftest.
$ac_ext >&5
5274 ac_cv_header_stdc
=no
5278 if test $ac_cv_header_stdc = yes; then
5279 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5280 cat > conftest.
$ac_ext <<EOF
5281 #line 5282 "configure"
5282 #include "confdefs.h"
5285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5286 egrep "memchr" >/dev
/null
2>&1; then
5290 ac_cv_header_stdc
=no
5296 if test $ac_cv_header_stdc = yes; then
5297 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5298 cat > conftest.
$ac_ext <<EOF
5299 #line 5300 "configure"
5300 #include "confdefs.h"
5303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5304 egrep "free" >/dev
/null
2>&1; then
5308 ac_cv_header_stdc
=no
5314 if test $ac_cv_header_stdc = yes; then
5315 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5316 if test "$cross_compiling" = yes; then
5319 cat > conftest.
$ac_ext <<EOF
5320 #line 5321 "configure"
5321 #include "confdefs.h"
5323 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5324 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5325 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5326 int main () { int i; for (i = 0; i < 256; i++)
5327 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5331 if { (eval echo configure
:5332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5335 echo "configure: failed program was:" >&5
5336 cat conftest.
$ac_ext >&5
5338 ac_cv_header_stdc
=no
5346 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5347 if test $ac_cv_header_stdc = yes; then
5348 cat >> confdefs.h
<<\EOF
5349 #define STDC_HEADERS 1
5354 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
5355 echo "configure:5356: checking for ssize_t" >&5
5356 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
5357 echo $ac_n "(cached) $ac_c" 1>&6
5359 cat > conftest.
$ac_ext <<EOF
5360 #line 5361 "configure"
5361 #include "confdefs.h"
5362 #include <sys/types.h>
5368 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5369 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
5371 ac_cv_type_ssize_t
=yes
5374 ac_cv_type_ssize_t
=no
5379 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
5380 if test $ac_cv_type_ssize_t = no
; then
5381 cat >> confdefs.h
<<\EOF
5388 echo $ac_n "checking for in_addr_t""... $ac_c" 1>&6
5389 echo "configure:5390: checking for in_addr_t" >&5
5390 cat > conftest.
$ac_ext <<EOF
5391 #line 5392 "configure"
5392 #include "confdefs.h"
5393 #include <sys/types.h>
5398 #if HAVE_NETINET_IN_H
5399 #include <netinet/in.h>
5405 if { (eval echo configure
:5406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5407 cat >> confdefs.h
<<\EOF
5408 #define HAVE_IN_ADDR_T 1
5411 echo "$ac_t""yes" 1>&6
5413 echo "configure: failed program was:" >&5
5414 cat conftest.
$ac_ext >&5
5416 echo "$ac_t""no" 1>&6
5420 echo $ac_n "checking whether struct ip_mreq is in netinet/in.h""... $ac_c" 1>&6
5421 echo "configure:5422: checking whether struct ip_mreq is in netinet/in.h" >&5
5422 cat > conftest.
$ac_ext <<EOF
5423 #line 5424 "configure"
5424 #include "confdefs.h"
5425 #include <netinet/in.h>
5427 struct ip_mreq mreq;
5430 if { (eval echo configure
:5431: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5432 cat >> confdefs.h
<<\EOF
5433 #define HAVE_STRUCT_IP_MREQ 1
5436 echo "$ac_t""yes" 1>&6
5438 echo "configure: failed program was:" >&5
5439 cat conftest.
$ac_ext >&5
5441 echo "$ac_t""no" 1>&6
5445 echo $ac_n "checking whether struct sockaddr_in6 is in netinet/in.h""... $ac_c" 1>&6
5446 echo "configure:5447: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
5447 cat > conftest.
$ac_ext <<EOF
5448 #line 5449 "configure"
5449 #include "confdefs.h"
5450 #include <netinet/in.h>
5452 struct sockaddr_in6 addr6;
5455 if { (eval echo configure
:5456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5457 cat >> confdefs.h
<<\EOF
5458 #define HAVE_INET6 1
5461 echo "$ac_t""yes" 1>&6
5463 echo "configure: failed program was:" >&5
5464 cat conftest.
$ac_ext >&5
5466 echo "$ac_t""no" 1>&6
5470 echo $ac_n "checking for socklen_t in sys/socket.h""... $ac_c" 1>&6
5471 echo "configure:5472: checking for socklen_t in sys/socket.h" >&5
5472 cat > conftest.
$ac_ext <<EOF
5473 #line 5474 "configure"
5474 #include "confdefs.h"
5475 #include <sys/types.h>
5476 #include <sys/socket.h>
5481 if { (eval echo configure
:5482: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5483 cat >> confdefs.h
<<\EOF
5484 #define HAVE_SOCKLEN_T 1
5487 echo "$ac_t""yes" 1>&6
5489 echo "configure: failed program was:" >&5
5490 cat conftest.
$ac_ext >&5
5492 echo "$ac_t""no" 1>&6
5496 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
5497 echo "configure:5498: checking for tm_gmtoff in struct tm" >&5
5498 cat > conftest.
$ac_ext <<EOF
5499 #line 5500 "configure"
5500 #include "confdefs.h"
5503 struct tm tim; tim.tm_gmtoff = 0;
5506 if { (eval echo configure
:5507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5508 cat >> confdefs.h
<<\EOF
5509 #define STRUCT_TM_HAS_GMTOFF 1
5512 echo "$ac_t""yes" 1>&6
5514 echo "configure: failed program was:" >&5
5515 cat conftest.
$ac_ext >&5
5517 echo "$ac_t""no" 1>&6
5518 echo $ac_n "checking for global timezone variable""... $ac_c" 1>&6
5519 echo "configure:5520: checking for global timezone variable" >&5
5520 cat > conftest.
$ac_ext <<EOF
5521 #line 5522 "configure"
5522 #include "confdefs.h"
5528 if { (eval echo configure
:5529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5530 cat >> confdefs.h
<<\EOF
5531 #define HAVE_TIMEZONE 1
5534 echo "$ac_t""yes" 1>&6
5536 echo "configure: failed program was:" >&5
5537 cat conftest.
$ac_ext >&5
5539 echo "$ac_t""no" 1>&6
5545 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5546 # for constant arguments. Useless!
5547 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5548 echo "configure:5549: checking for working alloca.h" >&5
5549 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5550 echo $ac_n "(cached) $ac_c" 1>&6
5552 cat > conftest.
$ac_ext <<EOF
5553 #line 5554 "configure"
5554 #include "confdefs.h"
5557 char *p = alloca(2 * sizeof(int));
5560 if { (eval echo configure
:5561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5562 ac_cv_header_alloca_h
=yes
5564 echo "configure: failed program was:" >&5
5565 cat conftest.
$ac_ext >&5
5567 ac_cv_header_alloca_h
=no
5572 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5573 if test $ac_cv_header_alloca_h = yes; then
5574 cat >> confdefs.h
<<\EOF
5575 #define HAVE_ALLOCA_H 1
5580 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5581 echo "configure:5582: checking for alloca" >&5
5582 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5583 echo $ac_n "(cached) $ac_c" 1>&6
5585 cat > conftest.
$ac_ext <<EOF
5586 #line 5587 "configure"
5587 #include "confdefs.h"
5590 # define alloca __builtin_alloca
5593 # include <malloc.h>
5594 # define alloca _alloca
5597 # include <alloca.h>
5602 # ifndef alloca /* predefined by HP cc +Olibcalls */
5611 char *p = (char *) alloca(1);
5614 if { (eval echo configure
:5615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5616 ac_cv_func_alloca_works
=yes
5618 echo "configure: failed program was:" >&5
5619 cat conftest.
$ac_ext >&5
5621 ac_cv_func_alloca_works
=no
5626 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5627 if test $ac_cv_func_alloca_works = yes; then
5628 cat >> confdefs.h
<<\EOF
5629 #define HAVE_ALLOCA 1
5634 if test $ac_cv_func_alloca_works = no
; then
5635 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5636 # that cause trouble. Some versions do not even contain alloca or
5637 # contain a buggy version. If you still want to use their alloca,
5638 # use ar to extract alloca.o from them instead of compiling alloca.c.
5639 ALLOCA
=alloca.
${ac_objext}
5640 cat >> confdefs.h
<<\EOF
5645 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5646 echo "configure:5647: checking whether alloca needs Cray hooks" >&5
5647 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5648 echo $ac_n "(cached) $ac_c" 1>&6
5650 cat > conftest.
$ac_ext <<EOF
5651 #line 5652 "configure"
5652 #include "confdefs.h"
5653 #if defined(CRAY) && ! defined(CRAY2)
5660 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5661 egrep "webecray" >/dev
/null
2>&1; then
5672 echo "$ac_t""$ac_cv_os_cray" 1>&6
5673 if test $ac_cv_os_cray = yes; then
5674 for ac_func
in _getb67 GETB67 getb67
; do
5675 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5676 echo "configure:5677: checking for $ac_func" >&5
5677 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5678 echo $ac_n "(cached) $ac_c" 1>&6
5680 cat > conftest.
$ac_ext <<EOF
5681 #line 5682 "configure"
5682 #include "confdefs.h"
5683 /* System header to define __stub macros and hopefully few prototypes,
5684 which can conflict with char $ac_func(); below. */
5686 /* Override any gcc2 internal prototype to avoid an error. */
5687 /* We use char because int might match the return type of a gcc2
5688 builtin and then its argument prototype would still apply. */
5693 /* The GNU C library defines this for functions which it implements
5694 to always fail with ENOSYS. Some functions are actually named
5695 something starting with __ and the normal name is an alias. */
5696 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5704 if { (eval echo configure
:5705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5706 eval "ac_cv_func_$ac_func=yes"
5708 echo "configure: failed program was:" >&5
5709 cat conftest.
$ac_ext >&5
5711 eval "ac_cv_func_$ac_func=no"
5716 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5717 echo "$ac_t""yes" 1>&6
5718 cat >> confdefs.h
<<EOF
5719 #define CRAY_STACKSEG_END $ac_func
5724 echo "$ac_t""no" 1>&6
5730 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5731 echo "configure:5732: checking stack direction for C alloca" >&5
5732 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5733 echo $ac_n "(cached) $ac_c" 1>&6
5735 if test "$cross_compiling" = yes; then
5736 ac_cv_c_stack_direction
=0
5738 cat > conftest.
$ac_ext <<EOF
5739 #line 5740 "configure"
5740 #include "confdefs.h"
5741 find_stack_direction ()
5743 static char *addr = 0;
5748 return find_stack_direction ();
5751 return (&dummy > addr) ? 1 : -1;
5755 exit (find_stack_direction() < 0);
5758 if { (eval echo configure
:5759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5760 ac_cv_c_stack_direction
=1
5762 echo "configure: failed program was:" >&5
5763 cat conftest.
$ac_ext >&5
5765 ac_cv_c_stack_direction
=-1
5772 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5773 cat >> confdefs.h
<<EOF
5774 #define STACK_DIRECTION $ac_cv_c_stack_direction
5782 # Extract the first word of "$ac_prog", so it can be a program name with args.
5783 set dummy
$ac_prog; ac_word
=$2
5784 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5785 echo "configure:5786: checking for $ac_word" >&5
5786 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
5787 echo $ac_n "(cached) $ac_c" 1>&6
5789 if test -n "$PERL"; then
5790 ac_cv_prog_PERL
="$PERL" # Let the user override the test.
5792 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5794 for ac_dir
in $ac_dummy; do
5795 test -z "$ac_dir" && ac_dir
=.
5796 if test -f $ac_dir/$ac_word; then
5797 ac_cv_prog_PERL
="$ac_prog"
5804 PERL
="$ac_cv_prog_PERL"
5805 if test -n "$PERL"; then
5806 echo "$ac_t""$PERL" 1>&6
5808 echo "$ac_t""no" 1>&6
5811 test -n "$PERL" && break
5813 test -n "$PERL" || PERL
="false"
5820 SIGNAL_HANDLER
=include
/i386-signal.h
5823 SIGNAL_HANDLER
=include
/sparc-signal.h
5826 SYSDEP_SOURCES
=sysdep
/ia64.c
5827 test -d sysdep || mkdir sysdep
5830 SIGNAL_HANDLER
=include
/default-signal.h
5834 # If we're using sjlj exceptions, forget what we just learned.
5835 if test "$libgcj_sjlj" = yes; then
5836 SIGNAL_HANDLER
=include
/default-signal.h
5843 if test "${multilib}" = "yes"; then
5844 multilib_arg
="--enable-multilib"
5849 # If we find X, set shell vars x_includes and x_libraries to the
5850 # paths, otherwise set no_x=yes.
5851 # Uses ac_ vars as temps to allow command line to override cache and checks.
5852 # --without-x overrides everything else, but does not touch the cache.
5853 echo $ac_n "checking for X""... $ac_c" 1>&6
5854 echo "configure:5855: checking for X" >&5
5856 # Check whether --with-x or --without-x was given.
5857 if test "${with_x+set}" = set; then
5862 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5863 if test "x$with_x" = xno
; then
5864 # The user explicitly disabled X.
5867 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
5868 # Both variables are already set.
5871 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
5872 echo $ac_n "(cached) $ac_c" 1>&6
5874 # One or both of the vars are not set, and there is no cached value.
5875 ac_x_includes
=NO ac_x_libraries
=NO
5877 if mkdir conftestdir
; then
5879 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5880 cat > Imakefile
<<'EOF'
5882 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5884 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
5885 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5886 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5887 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5888 for ac_extension
in a so sl
; do
5889 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
5890 test -f $ac_im_libdir/libX11.
$ac_extension; then
5891 ac_im_usrlibdir
=$ac_im_libdir; break
5894 # Screen out bogus values from the imake configuration. They are
5895 # bogus both because they are the default anyway, and because
5896 # using them would break gcc on systems where it needs fixed includes.
5897 case "$ac_im_incroot" in
5899 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
5901 case "$ac_im_usrlibdir" in
5903 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
5910 if test "$ac_x_includes" = NO
; then
5911 # Guess where to find include files, by looking for this one X11 .h file.
5912 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
5914 # First, try using that file with no special directory specified.
5915 cat > conftest.
$ac_ext <<EOF
5916 #line 5917 "configure"
5917 #include "confdefs.h"
5918 #include <$x_direct_test_include>
5920 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5921 { (eval echo configure
:5922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5922 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5923 if test -z "$ac_err"; then
5925 # We can compile using X headers with no special include directory.
5929 echo "configure: failed program was:" >&5
5930 cat conftest.
$ac_ext >&5
5932 # Look for the header file in a standard set of common directories.
5933 # Check X11 before X11Rn because it is often a symlink to the current release.
5936 /usr
/X11R
6/include \
5937 /usr
/X11R
5/include \
5938 /usr
/X11R
4/include \
5941 /usr
/include
/X11R6 \
5942 /usr
/include
/X11R5 \
5943 /usr
/include
/X11R4 \
5945 /usr
/local
/X11
/include \
5946 /usr
/local
/X11R
6/include \
5947 /usr
/local
/X11R
5/include \
5948 /usr
/local
/X11R
4/include \
5950 /usr
/local
/include
/X11 \
5951 /usr
/local
/include
/X11R6 \
5952 /usr
/local
/include
/X11R5 \
5953 /usr
/local
/include
/X11R4 \
5957 /usr
/XFree86
/include
/X11 \
5960 /usr
/local
/include \
5961 /usr
/unsupported
/include \
5962 /usr
/athena
/include \
5963 /usr
/local
/x11r
5/include \
5964 /usr
/lpp
/Xamples
/include \
5966 /usr
/openwin
/include \
5967 /usr
/openwin
/share
/include \
5970 if test -r "$ac_dir/$x_direct_test_include"; then
5971 ac_x_includes
=$ac_dir
5977 fi # $ac_x_includes = NO
5979 if test "$ac_x_libraries" = NO
; then
5980 # Check for the libraries.
5982 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
5983 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
5985 # See if we find them without any special options.
5986 # Don't add to $LIBS permanently.
5987 ac_save_LIBS
="$LIBS"
5988 LIBS
="-l$x_direct_test_library $LIBS"
5989 cat > conftest.
$ac_ext <<EOF
5990 #line 5991 "configure"
5991 #include "confdefs.h"
5994 ${x_direct_test_function}()
5997 if { (eval echo configure
:5998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5999 LIBS
="$ac_save_LIBS"
6000 # We can link X programs with no special library path.
6003 echo "configure: failed program was:" >&5
6004 cat conftest.
$ac_ext >&5
6006 LIBS
="$ac_save_LIBS"
6007 # First see if replacing the include by lib works.
6008 # Check X11 before X11Rn because it is often a symlink to the current release.
6009 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
6020 /usr
/local
/X11
/lib \
6021 /usr
/local
/X11R
6/lib \
6022 /usr
/local
/X11R
5/lib \
6023 /usr
/local
/X11R
4/lib \
6025 /usr
/local
/lib
/X11 \
6026 /usr
/local
/lib
/X11R6 \
6027 /usr
/local
/lib
/X11R5 \
6028 /usr
/local
/lib
/X11R4 \
6032 /usr
/XFree86
/lib
/X11 \
6036 /usr
/unsupported
/lib \
6038 /usr
/local
/x11r
5/lib \
6039 /usr
/lpp
/Xamples
/lib \
6043 /usr
/openwin
/share
/lib \
6046 for ac_extension
in a so sl
; do
6047 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
6048 ac_x_libraries
=$ac_dir
6055 fi # $ac_x_libraries = NO
6057 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
6058 # Didn't find X anywhere. Cache the known absence of X.
6059 ac_cv_have_x
="have_x=no"
6061 # Record where we found X for the cache.
6062 ac_cv_have_x
="have_x=yes \
6063 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6067 eval "$ac_cv_have_x"
6070 if test "$have_x" != yes; then
6071 echo "$ac_t""$have_x" 1>&6
6074 # If each of the values was on the command line, it overrides each guess.
6075 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
6076 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
6077 # Update the cache value to reflect the command line values.
6078 ac_cv_have_x
="have_x=yes \
6079 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6080 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
6083 if test "$no_x" = yes; then
6084 # Not all programs may use this symbol, but it does not hurt to define it.
6085 cat >> confdefs.h
<<\EOF
6086 #define X_DISPLAY_MISSING 1
6089 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
6091 if test -n "$x_includes"; then
6092 X_CFLAGS
="$X_CFLAGS -I$x_includes"
6095 # It would also be nice to do this for all -L options, not just this one.
6096 if test -n "$x_libraries"; then
6097 X_LIBS
="$X_LIBS -L$x_libraries"
6098 # For Solaris; some versions of Sun CC require a space after -R and
6099 # others require no space. Words are not sufficient . . . .
6100 case "`(uname -sr) 2>/dev/null`" in
6102 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
6103 echo "configure:6104: checking whether -R must be followed by a space" >&5
6104 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS -R$x_libraries"
6105 cat > conftest.
$ac_ext <<EOF
6106 #line 6107 "configure"
6107 #include "confdefs.h"
6113 if { (eval echo configure
:6114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6117 echo "configure: failed program was:" >&5
6118 cat conftest.
$ac_ext >&5
6123 if test $ac_R_nospace = yes; then
6124 echo "$ac_t""no" 1>&6
6125 X_LIBS
="$X_LIBS -R$x_libraries"
6127 LIBS
="$ac_xsave_LIBS -R $x_libraries"
6128 cat > conftest.
$ac_ext <<EOF
6129 #line 6130 "configure"
6130 #include "confdefs.h"
6136 if { (eval echo configure
:6137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6140 echo "configure: failed program was:" >&5
6141 cat conftest.
$ac_ext >&5
6146 if test $ac_R_space = yes; then
6147 echo "$ac_t""yes" 1>&6
6148 X_LIBS
="$X_LIBS -R $x_libraries"
6150 echo "$ac_t""neither works" 1>&6
6153 LIBS
="$ac_xsave_LIBS"
6157 # Check for system-dependent libraries X programs must link with.
6158 # Do this before checking for the system-independent R6 libraries
6159 # (-lICE), since we may need -lsocket or whatever for X linking.
6161 if test "$ISC" = yes; then
6162 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
6164 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
6165 # libraries were built with DECnet support. And karl@cs.umb.edu says
6166 # the Alpha needs dnet_stub (dnet does not exist).
6167 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
6168 echo "configure:6169: checking for dnet_ntoa in -ldnet" >&5
6169 ac_lib_var
=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6170 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6171 echo $ac_n "(cached) $ac_c" 1>&6
6173 ac_save_LIBS
="$LIBS"
6175 cat > conftest.
$ac_ext <<EOF
6176 #line 6177 "configure"
6177 #include "confdefs.h"
6178 /* Override any gcc2 internal prototype to avoid an error. */
6179 /* We use char because int might match the return type of a gcc2
6180 builtin and then its argument prototype would still apply. */
6187 if { (eval echo configure
:6188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6189 eval "ac_cv_lib_$ac_lib_var=yes"
6191 echo "configure: failed program was:" >&5
6192 cat conftest.
$ac_ext >&5
6194 eval "ac_cv_lib_$ac_lib_var=no"
6197 LIBS
="$ac_save_LIBS"
6200 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6201 echo "$ac_t""yes" 1>&6
6202 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
6204 echo "$ac_t""no" 1>&6
6207 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
6208 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
6209 echo "configure:6210: checking for dnet_ntoa in -ldnet_stub" >&5
6210 ac_lib_var
=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6211 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6212 echo $ac_n "(cached) $ac_c" 1>&6
6214 ac_save_LIBS
="$LIBS"
6215 LIBS
="-ldnet_stub $LIBS"
6216 cat > conftest.
$ac_ext <<EOF
6217 #line 6218 "configure"
6218 #include "confdefs.h"
6219 /* Override any gcc2 internal prototype to avoid an error. */
6220 /* We use char because int might match the return type of a gcc2
6221 builtin and then its argument prototype would still apply. */
6228 if { (eval echo configure
:6229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6230 eval "ac_cv_lib_$ac_lib_var=yes"
6232 echo "configure: failed program was:" >&5
6233 cat conftest.
$ac_ext >&5
6235 eval "ac_cv_lib_$ac_lib_var=no"
6238 LIBS
="$ac_save_LIBS"
6241 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6242 echo "$ac_t""yes" 1>&6
6243 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
6245 echo "$ac_t""no" 1>&6
6250 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6251 # to get the SysV transport functions.
6252 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
6254 # The nsl library prevents programs from opening the X display
6255 # on Irix 5.2, according to dickey@clark.net.
6256 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
6257 echo "configure:6258: checking for gethostbyname" >&5
6258 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
6259 echo $ac_n "(cached) $ac_c" 1>&6
6261 cat > conftest.
$ac_ext <<EOF
6262 #line 6263 "configure"
6263 #include "confdefs.h"
6264 /* System header to define __stub macros and hopefully few prototypes,
6265 which can conflict with char gethostbyname(); below. */
6267 /* Override any gcc2 internal prototype to avoid an error. */
6268 /* We use char because int might match the return type of a gcc2
6269 builtin and then its argument prototype would still apply. */
6270 char gethostbyname();
6274 /* The GNU C library defines this for functions which it implements
6275 to always fail with ENOSYS. Some functions are actually named
6276 something starting with __ and the normal name is an alias. */
6277 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6285 if { (eval echo configure
:6286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6287 eval "ac_cv_func_gethostbyname=yes"
6289 echo "configure: failed program was:" >&5
6290 cat conftest.
$ac_ext >&5
6292 eval "ac_cv_func_gethostbyname=no"
6297 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
6298 echo "$ac_t""yes" 1>&6
6301 echo "$ac_t""no" 1>&6
6304 if test $ac_cv_func_gethostbyname = no
; then
6305 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
6306 echo "configure:6307: checking for gethostbyname in -lnsl" >&5
6307 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
6308 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6309 echo $ac_n "(cached) $ac_c" 1>&6
6311 ac_save_LIBS
="$LIBS"
6313 cat > conftest.
$ac_ext <<EOF
6314 #line 6315 "configure"
6315 #include "confdefs.h"
6316 /* Override any gcc2 internal prototype to avoid an error. */
6317 /* We use char because int might match the return type of a gcc2
6318 builtin and then its argument prototype would still apply. */
6319 char gethostbyname();
6325 if { (eval echo configure
:6326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6327 eval "ac_cv_lib_$ac_lib_var=yes"
6329 echo "configure: failed program was:" >&5
6330 cat conftest.
$ac_ext >&5
6332 eval "ac_cv_lib_$ac_lib_var=no"
6335 LIBS
="$ac_save_LIBS"
6338 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6339 echo "$ac_t""yes" 1>&6
6340 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
6342 echo "$ac_t""no" 1>&6
6347 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6348 # socket/setsockopt and other routines are undefined under SCO ODT
6349 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6350 # on later versions), says simon@lia.di.epfl.ch: it contains
6351 # gethostby* variants that don't use the nameserver (or something).
6352 # -lsocket must be given before -lnsl if both are needed.
6353 # We assume that if connect needs -lnsl, so does gethostbyname.
6354 echo $ac_n "checking for connect""... $ac_c" 1>&6
6355 echo "configure:6356: checking for connect" >&5
6356 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
6357 echo $ac_n "(cached) $ac_c" 1>&6
6359 cat > conftest.
$ac_ext <<EOF
6360 #line 6361 "configure"
6361 #include "confdefs.h"
6362 /* System header to define __stub macros and hopefully few prototypes,
6363 which can conflict with char connect(); below. */
6365 /* Override any gcc2 internal prototype to avoid an error. */
6366 /* We use char because int might match the return type of a gcc2
6367 builtin and then its argument prototype would still apply. */
6372 /* The GNU C library defines this for functions which it implements
6373 to always fail with ENOSYS. Some functions are actually named
6374 something starting with __ and the normal name is an alias. */
6375 #if defined (__stub_connect) || defined (__stub___connect)
6383 if { (eval echo configure
:6384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6385 eval "ac_cv_func_connect=yes"
6387 echo "configure: failed program was:" >&5
6388 cat conftest.
$ac_ext >&5
6390 eval "ac_cv_func_connect=no"
6395 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
6396 echo "$ac_t""yes" 1>&6
6399 echo "$ac_t""no" 1>&6
6402 if test $ac_cv_func_connect = no
; then
6403 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
6404 echo "configure:6405: checking for connect in -lsocket" >&5
6405 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
6406 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6407 echo $ac_n "(cached) $ac_c" 1>&6
6409 ac_save_LIBS
="$LIBS"
6410 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
6411 cat > conftest.
$ac_ext <<EOF
6412 #line 6413 "configure"
6413 #include "confdefs.h"
6414 /* Override any gcc2 internal prototype to avoid an error. */
6415 /* We use char because int might match the return type of a gcc2
6416 builtin and then its argument prototype would still apply. */
6423 if { (eval echo configure
:6424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6425 eval "ac_cv_lib_$ac_lib_var=yes"
6427 echo "configure: failed program was:" >&5
6428 cat conftest.
$ac_ext >&5
6430 eval "ac_cv_lib_$ac_lib_var=no"
6433 LIBS
="$ac_save_LIBS"
6436 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6437 echo "$ac_t""yes" 1>&6
6438 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
6440 echo "$ac_t""no" 1>&6
6445 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
6446 echo $ac_n "checking for remove""... $ac_c" 1>&6
6447 echo "configure:6448: checking for remove" >&5
6448 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
6449 echo $ac_n "(cached) $ac_c" 1>&6
6451 cat > conftest.
$ac_ext <<EOF
6452 #line 6453 "configure"
6453 #include "confdefs.h"
6454 /* System header to define __stub macros and hopefully few prototypes,
6455 which can conflict with char remove(); below. */
6457 /* Override any gcc2 internal prototype to avoid an error. */
6458 /* We use char because int might match the return type of a gcc2
6459 builtin and then its argument prototype would still apply. */
6464 /* The GNU C library defines this for functions which it implements
6465 to always fail with ENOSYS. Some functions are actually named
6466 something starting with __ and the normal name is an alias. */
6467 #if defined (__stub_remove) || defined (__stub___remove)
6475 if { (eval echo configure
:6476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6477 eval "ac_cv_func_remove=yes"
6479 echo "configure: failed program was:" >&5
6480 cat conftest.
$ac_ext >&5
6482 eval "ac_cv_func_remove=no"
6487 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
6488 echo "$ac_t""yes" 1>&6
6491 echo "$ac_t""no" 1>&6
6494 if test $ac_cv_func_remove = no
; then
6495 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
6496 echo "configure:6497: checking for remove in -lposix" >&5
6497 ac_lib_var
=`echo posix'_'remove | sed 'y%./+-%__p_%'`
6498 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6499 echo $ac_n "(cached) $ac_c" 1>&6
6501 ac_save_LIBS
="$LIBS"
6502 LIBS
="-lposix $LIBS"
6503 cat > conftest.
$ac_ext <<EOF
6504 #line 6505 "configure"
6505 #include "confdefs.h"
6506 /* Override any gcc2 internal prototype to avoid an error. */
6507 /* We use char because int might match the return type of a gcc2
6508 builtin and then its argument prototype would still apply. */
6515 if { (eval echo configure
:6516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6517 eval "ac_cv_lib_$ac_lib_var=yes"
6519 echo "configure: failed program was:" >&5
6520 cat conftest.
$ac_ext >&5
6522 eval "ac_cv_lib_$ac_lib_var=no"
6525 LIBS
="$ac_save_LIBS"
6528 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6529 echo "$ac_t""yes" 1>&6
6530 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
6532 echo "$ac_t""no" 1>&6
6537 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6538 echo $ac_n "checking for shmat""... $ac_c" 1>&6
6539 echo "configure:6540: checking for shmat" >&5
6540 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
6541 echo $ac_n "(cached) $ac_c" 1>&6
6543 cat > conftest.
$ac_ext <<EOF
6544 #line 6545 "configure"
6545 #include "confdefs.h"
6546 /* System header to define __stub macros and hopefully few prototypes,
6547 which can conflict with char shmat(); below. */
6549 /* Override any gcc2 internal prototype to avoid an error. */
6550 /* We use char because int might match the return type of a gcc2
6551 builtin and then its argument prototype would still apply. */
6556 /* The GNU C library defines this for functions which it implements
6557 to always fail with ENOSYS. Some functions are actually named
6558 something starting with __ and the normal name is an alias. */
6559 #if defined (__stub_shmat) || defined (__stub___shmat)
6567 if { (eval echo configure
:6568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6569 eval "ac_cv_func_shmat=yes"
6571 echo "configure: failed program was:" >&5
6572 cat conftest.
$ac_ext >&5
6574 eval "ac_cv_func_shmat=no"
6579 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
6580 echo "$ac_t""yes" 1>&6
6583 echo "$ac_t""no" 1>&6
6586 if test $ac_cv_func_shmat = no
; then
6587 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
6588 echo "configure:6589: checking for shmat in -lipc" >&5
6589 ac_lib_var
=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
6590 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6591 echo $ac_n "(cached) $ac_c" 1>&6
6593 ac_save_LIBS
="$LIBS"
6595 cat > conftest.
$ac_ext <<EOF
6596 #line 6597 "configure"
6597 #include "confdefs.h"
6598 /* Override any gcc2 internal prototype to avoid an error. */
6599 /* We use char because int might match the return type of a gcc2
6600 builtin and then its argument prototype would still apply. */
6607 if { (eval echo configure
:6608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6609 eval "ac_cv_lib_$ac_lib_var=yes"
6611 echo "configure: failed program was:" >&5
6612 cat conftest.
$ac_ext >&5
6614 eval "ac_cv_lib_$ac_lib_var=no"
6617 LIBS
="$ac_save_LIBS"
6620 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6621 echo "$ac_t""yes" 1>&6
6622 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
6624 echo "$ac_t""no" 1>&6
6630 # Check for libraries that X11R6 Xt/Xaw programs need.
6631 ac_save_LDFLAGS
="$LDFLAGS"
6632 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
6633 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6634 # check for ICE first), but we must link in the order -lSM -lICE or
6635 # we get undefined symbols. So assume we have SM if we have ICE.
6636 # These have to be linked with before -lX11, unlike the other
6637 # libraries we check for below, so use a different variable.
6638 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
6639 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
6640 echo "configure:6641: checking for IceConnectionNumber in -lICE" >&5
6641 ac_lib_var
=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
6642 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6643 echo $ac_n "(cached) $ac_c" 1>&6
6645 ac_save_LIBS
="$LIBS"
6646 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
6647 cat > conftest.
$ac_ext <<EOF
6648 #line 6649 "configure"
6649 #include "confdefs.h"
6650 /* Override any gcc2 internal prototype to avoid an error. */
6651 /* We use char because int might match the return type of a gcc2
6652 builtin and then its argument prototype would still apply. */
6653 char IceConnectionNumber();
6656 IceConnectionNumber()
6659 if { (eval echo configure
:6660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6661 eval "ac_cv_lib_$ac_lib_var=yes"
6663 echo "configure: failed program was:" >&5
6664 cat conftest.
$ac_ext >&5
6666 eval "ac_cv_lib_$ac_lib_var=no"
6669 LIBS
="$ac_save_LIBS"
6672 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6673 echo "$ac_t""yes" 1>&6
6674 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
6676 echo "$ac_t""no" 1>&6
6679 LDFLAGS
="$ac_save_LDFLAGS"
6686 if test "$no_x" = yes; then
6699 cat > confcache
<<\EOF
6700 # This file is a shell script that caches the results of configure
6701 # tests run on this system so they can be shared between configure
6702 # scripts and configure runs. It is not useful on other systems.
6703 # If it contains results you don't want to keep, you may remove or edit it.
6705 # By default, configure uses ./config.cache as the cache file,
6706 # creating it if it does not exist already. You can give configure
6707 # the --cache-file=FILE option to use a different cache file; that is
6708 # what configure does when it calls configure scripts in
6709 # subdirectories, so they share the cache.
6710 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6711 # config.status only pays attention to the cache file if you give it the
6712 # --recheck option to rerun configure.
6715 # The following way of writing the cache mishandles newlines in values,
6716 # but we know of no workaround that is simple, portable, and efficient.
6717 # So, don't put newlines in cache variables' values.
6718 # Ultrix sh set writes to stderr and can't be redirected directly,
6719 # and sets the high bit in the cache file unless we assign to the vars.
6721 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6723 # `set' does not quote correctly, so add quotes (double-quote substitution
6724 # turns \\\\ into \\, and sed turns \\ into \).
6726 -e "s/'/'\\\\''/g" \
6727 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6730 # `set' quotes correctly as required by POSIX, so do not add quotes.
6731 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6734 if cmp -s $cache_file confcache
; then
6737 if test -w $cache_file; then
6738 echo "updating cache $cache_file"
6739 cat confcache
> $cache_file
6741 echo "not updating unwritable cache $cache_file"
6746 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6748 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6749 # Let make expand exec_prefix.
6750 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6752 # Any assignment to VPATH causes Sun make to only execute
6753 # the first set of double-colon rules, so remove it if not needed.
6754 # If there is a colon in the path, we need to keep it.
6755 if test "x$srcdir" = x.
; then
6756 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
6759 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6761 DEFS
=-DHAVE_CONFIG_H
6763 # Without the "./", some shells look in PATH for config.status.
6764 : ${CONFIG_STATUS=./config.status}
6766 echo creating
$CONFIG_STATUS
6767 rm -f $CONFIG_STATUS
6768 cat > $CONFIG_STATUS <<EOF
6770 # Generated automatically by configure.
6771 # Run this file to recreate the current configuration.
6772 # This directory was configured as follows,
6773 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6775 # $0 $ac_configure_args
6777 # Compiler output produced by configure, useful for debugging
6778 # configure, is in ./config.log if it exists.
6780 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6783 case "\$ac_option" in
6784 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6785 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6786 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6787 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6788 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6790 -help | --help | --hel | --he | --h)
6791 echo "\$ac_cs_usage"; exit 0 ;;
6792 *) echo "\$ac_cs_usage"; exit 1 ;;
6796 ac_given_srcdir=$srcdir
6797 ac_given_INSTALL="$INSTALL"
6799 trap 'rm -fr `echo "Makefile libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6801 cat >> $CONFIG_STATUS <<EOF
6803 # Protect against being on the right side of a sed subst in config.status.
6804 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6805 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6809 s%@CFLAGS@%$CFLAGS%g
6810 s%@CPPFLAGS@%$CPPFLAGS%g
6811 s%@CXXFLAGS@%$CXXFLAGS%g
6812 s%@FFLAGS@%$FFLAGS%g
6814 s%@LDFLAGS@%$LDFLAGS%g
6816 s%@exec_prefix@%$exec_prefix%g
6817 s%@prefix@%$prefix%g
6818 s%@program_transform_name@%$program_transform_name%g
6819 s%@bindir@%$bindir%g
6820 s%@sbindir@%$sbindir%g
6821 s%@libexecdir@%$libexecdir%g
6822 s%@datadir@%$datadir%g
6823 s%@sysconfdir@%$sysconfdir%g
6824 s%@sharedstatedir@%$sharedstatedir%g
6825 s%@localstatedir@%$localstatedir%g
6826 s%@libdir@%$libdir%g
6827 s%@includedir@%$includedir%g
6828 s%@oldincludedir@%$oldincludedir%g
6829 s%@infodir@%$infodir%g
6830 s%@mandir@%$mandir%g
6832 s%@host_alias@%$host_alias%g
6833 s%@host_cpu@%$host_cpu%g
6834 s%@host_vendor@%$host_vendor%g
6835 s%@host_os@%$host_os%g
6836 s%@target@%$target%g
6837 s%@target_alias@%$target_alias%g
6838 s%@target_cpu@%$target_cpu%g
6839 s%@target_vendor@%$target_vendor%g
6840 s%@target_os@%$target_os%g
6842 s%@build_alias@%$build_alias%g
6843 s%@build_cpu@%$build_cpu%g
6844 s%@build_vendor@%$build_vendor%g
6845 s%@build_os@%$build_os%g
6847 s%@libgcj_basedir@%$libgcj_basedir%g
6850 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6851 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6852 s%@INSTALL_DATA@%$INSTALL_DATA%g
6853 s%@PACKAGE@%$PACKAGE%g
6854 s%@VERSION@%$VERSION%g
6855 s%@ACLOCAL@%$ACLOCAL%g
6856 s%@AUTOCONF@%$AUTOCONF%g
6857 s%@AUTOMAKE@%$AUTOMAKE%g
6858 s%@AUTOHEADER@%$AUTOHEADER%g
6859 s%@MAKEINFO@%$MAKEINFO%g
6860 s%@SET_MAKE@%$SET_MAKE%g
6863 s%@RANLIB@%$RANLIB%g
6864 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
6865 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
6867 s%@EXEEXT@%$EXEEXT%g
6868 s%@LIBGCJ_CFLAGS@%$LIBGCJ_CFLAGS%g
6869 s%@LIBGCJ_CXXFLAGS@%$LIBGCJ_CXXFLAGS%g
6870 s%@LIBGCJ_JAVAFLAGS@%$LIBGCJ_JAVAFLAGS%g
6871 s%@INCLTDL@%$INCLTDL%g
6872 s%@LIBLTDL@%$LIBLTDL%g
6873 s%@DIRLTDL@%$DIRLTDL%g
6874 s%@OBJEXT@%$OBJEXT%g
6876 s%@LIBTOOL@%$LIBTOOL%g
6877 s%@CXXCPP@%$CXXCPP%g
6878 s%@subdirs@%$subdirs%g
6879 s%@COMPPATH@%$COMPPATH%g
6880 s%@TESTSUBDIR_TRUE@%$TESTSUBDIR_TRUE%g
6881 s%@TESTSUBDIR_FALSE@%$TESTSUBDIR_FALSE%g
6882 s%@LIBDATASTARTSPEC@%$LIBDATASTARTSPEC%g
6884 s%@SYSTEMSPEC@%$SYSTEMSPEC%g
6885 s%@LIBGCJTESTSPEC@%$LIBGCJTESTSPEC%g
6886 s%@ZLIBSPEC@%$ZLIBSPEC%g
6887 s%@ZLIBTESTSPEC@%$ZLIBTESTSPEC%g
6888 s%@GCLIBS@%$GCLIBS%g
6889 s%@GCINCS@%$GCINCS%g
6890 s%@GCDEPS@%$GCDEPS%g
6891 s%@GCOBJS@%$GCOBJS%g
6892 s%@GCSPEC@%$GCSPEC%g
6893 s%@JC1GCSPEC@%$JC1GCSPEC%g
6894 s%@GCTESTSPEC@%$GCTESTSPEC%g
6895 s%@THREADLIBS@%$THREADLIBS%g
6896 s%@THREADINCS@%$THREADINCS%g
6897 s%@THREADDEPS@%$THREADDEPS%g
6898 s%@THREADOBJS@%$THREADOBJS%g
6899 s%@THREADSPEC@%$THREADSPEC%g
6900 s%@USING_GCC_TRUE@%$USING_GCC_TRUE%g
6901 s%@USING_GCC_FALSE@%$USING_GCC_FALSE%g
6903 s%@GCJFLAGS@%$GCJFLAGS%g
6907 s%@DIVIDESPEC@%$DIVIDESPEC%g
6908 s%@EXCEPTIONSPEC@%$EXCEPTIONSPEC%g
6909 s%@FORCELIBGCCSPEC@%$FORCELIBGCCSPEC%g
6910 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
6911 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
6912 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
6913 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
6914 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
6915 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
6916 s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
6917 s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
6918 s%@NEEDS_DATA_START_TRUE@%$NEEDS_DATA_START_TRUE%g
6919 s%@NEEDS_DATA_START_FALSE@%$NEEDS_DATA_START_FALSE%g
6920 s%@EH_COMMON_INCLUDE@%$EH_COMMON_INCLUDE%g
6921 s%@AM_RUNTESTFLAGS@%$AM_RUNTESTFLAGS%g
6922 s%@ALLOCA@%$ALLOCA%g
6924 s%@SYSDEP_SOURCES@%$SYSDEP_SOURCES%g
6925 s%@X_CFLAGS@%$X_CFLAGS%g
6926 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
6927 s%@X_LIBS@%$X_LIBS%g
6928 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
6929 s%@NO_X_TRUE@%$NO_X_TRUE%g
6930 s%@NO_X_FALSE@%$NO_X_FALSE%g
6936 cat >> $CONFIG_STATUS <<\EOF
6938 # Split the substitutions into bite-sized pieces for seds with
6939 # small command number limits, like on Digital OSF/1 and HP-UX.
6940 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
6941 ac_file
=1 # Number of current file.
6942 ac_beg
=1 # First line for current file.
6943 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
6946 while $ac_more_lines; do
6947 if test $ac_beg -gt 1; then
6948 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
6950 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
6952 if test ! -s conftest.s
$ac_file; then
6954 rm -f conftest.s
$ac_file
6956 if test -z "$ac_sed_cmds"; then
6957 ac_sed_cmds
="sed -f conftest.s$ac_file"
6959 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
6961 ac_file
=`expr $ac_file + 1`
6963 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
6966 if test -z "$ac_sed_cmds"; then
6971 cat >> $CONFIG_STATUS <<EOF
6973 CONFIG_FILES=\${CONFIG_FILES-"Makefile libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile"}
6975 cat >> $CONFIG_STATUS <<\EOF
6976 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
6977 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6979 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6980 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6981 *) ac_file_in
="${ac_file}.in" ;;
6984 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6986 # Remove last slash and all that follows it. Not all systems have dirname.
6987 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6988 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
6989 # The file is in a subdirectory.
6990 test ! -d "$ac_dir" && mkdir
"$ac_dir"
6991 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
6992 # A "../" for each directory in $ac_dir_suffix.
6993 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6995 ac_dir_suffix
= ac_dots
=
6998 case "$ac_given_srcdir" in
7000 if test -z "$ac_dots"; then top_srcdir
=.
7001 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7002 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
7004 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7005 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
7008 case "$ac_given_INSTALL" in
7009 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
7010 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
7013 echo creating
"$ac_file"
7015 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7017 *Makefile
*) ac_comsub
="1i\\
7018 # $configure_input" ;;
7022 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7024 s%@configure_input@%$configure_input%g
7025 s%@srcdir@%$srcdir%g
7026 s%@top_srcdir@%$top_srcdir%g
7027 s%@INSTALL@%$INSTALL%g
7028 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
7032 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7033 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7035 # ac_d sets the value in "#define NAME VALUE" lines.
7036 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7037 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
7040 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7041 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7042 ac_uB
='\([ ]\)%\1#\2define\3'
7045 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7046 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7047 ac_eB
='$%\1#\2define\3'
7051 if test "${CONFIG_HEADERS+set}" != set; then
7053 cat >> $CONFIG_STATUS <<EOF
7054 CONFIG_HEADERS="include/config.h"
7056 cat >> $CONFIG_STATUS <<\EOF
7058 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
7059 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7061 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
7062 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
7063 *) ac_file_in
="${ac_file}.in" ;;
7066 echo creating
$ac_file
7068 rm -f conftest.frag conftest.
in conftest.out
7069 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7070 cat $ac_file_inputs > conftest.
in
7074 # Transform confdefs.h into a sed script conftest.vals that substitutes
7075 # the proper values into config.h.in to produce config.h. And first:
7076 # Protect against being on the right side of a sed subst in config.status.
7077 # Protect against being in an unquoted here document in config.status.
7079 cat > conftest.hdr
<<\EOF
7082 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7086 sed -n -f conftest.hdr confdefs.h > conftest.vals
7089 # This sed command replaces #undef with comments. This is necessary, for
7090 # example, in the case of _POSIX_SOURCE, which is predefined and required
7091 # on some systems where configure will not decide to define it.
7092 cat >> conftest.vals <<\EOF
7093 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7096 # Break up conftest.vals because some shells have a limit on
7097 # the size of here documents, and old seds have small limits too.
7102 ac_lines=`grep -c . conftest.vals
`
7103 # grep -c gives empty output for an empty file on some AIX systems.
7104 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7105 # Write a limited-size here document to conftest.frag.
7106 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7107 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7109 sed -f conftest.frag conftest.in > conftest.out
7111 mv conftest.out conftest.in
7113 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7115 mv conftest.tail conftest.vals
7119 cat >> $CONFIG_STATUS <<\EOF
7120 rm -f conftest.frag conftest.h
7121 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7122 cat conftest.in >> conftest.h
7124 if cmp -s $ac_file conftest.h 2>/dev/null; then
7125 echo "$ac_file is unchanged"
7128 # Remove last slash and all that follows it. Not all systems have dirname.
7129 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
7130 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7131 # The file is in a subdirectory.
7132 test ! -d "$ac_dir" && mkdir "$ac_dir"
7135 mv conftest.h $ac_file
7141 cat >> $CONFIG_STATUS <<EOF
7142 ac_sources="java/io/$FILE_DESCRIPTOR java/lang/${PROCESS}Process.java java/lang/nat${PROCESS}Process.cc include/$GCHDR include/$THREADH $SIGNAL_HANDLER"
7143 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"
7146 cat >> $CONFIG_STATUS <<\EOF
7147 srcdir=$ac_given_srcdir
7148 while test -n "$ac_sources"; do
7149 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
7150 set $ac_sources; ac_source=$1; shift; ac_sources=$*
7152 echo "linking $srcdir/$ac_source to $ac_dest"
7154 if test ! -r $srcdir/$ac_source; then
7155 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
7159 # Make relative symlinks.
7160 # Remove last slash and all that follows it. Not all systems have dirname.
7161 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
7162 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
7163 # The dest file is in a subdirectory.
7164 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
7165 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
7166 # A "../" for each directory in $ac_dest_dir_suffix.
7167 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
7169 ac_dest_dir_suffix= ac_dots=
7173 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
7174 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
7177 # Make a symlink if possible; otherwise try a hard link.
7178 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
7179 ln $srcdir/$ac_source $ac_dest; then :
7181 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
7185 cat >> $CONFIG_STATUS <<EOF
7190 with_multisubdir=${with_multisubdir}
7191 ac_configure_args="${multilib_arg} ${ac_configure_args}"
7192 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
7193 libgcj_basedir=${libgcj_basedir}
7198 cat >> $CONFIG_STATUS <<\EOF
7199 test -z "$CONFIG_HEADERS" || echo timestamp > include/stamp-h
7200 if test -n "$CONFIG_FILES"; then
7201 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
7204 # Make subdirectories and `.d
' files. Look in both srcdir and
7205 # builddir for the .java files.
7208 ( (cd $srcdir && find . -name '*.java
' -print) ;
7209 find . -name '*.java
' -print) | \
7210 fgrep -v testsuite | \
7211 sed -e 's
/\.java
/.d
/' | \
7213 echo "include $f" >> deps.mk
7216 d=`echo $f | sed -e 's
,/[^
/]*$
,,'`
7218 $srcdir/../mkinstalldirs $d
7225 chmod +x $CONFIG_STATUS
7226 rm -fr confdefs* $ac_clean_files
7227 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7229 if test "$no_recursion" != yes; then
7231 # Remove --cache-file and --srcdir arguments so they do not pile up.
7232 ac_sub_configure_args=
7234 for ac_arg in $ac_configure_args; do
7235 if test -n "$ac_prev"; then
7240 -cache-file | --cache-file | --cache-fil | --cache-fi \
7241 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
7242 ac_prev=cache_file ;;
7243 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
7244 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
7246 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
7248 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
7250 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
7254 for ac_config_dir in $DIRLTDL; do
7256 # Do not complain, so a configure script can configure whichever
7257 # parts of a large source tree are present.
7258 if test ! -d $srcdir/$ac_config_dir; then
7262 echo configuring in $ac_config_dir
7267 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
7269 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
7277 # A "../" for each directory in /$ac_config_dir.
7278 ac_dots=`echo $ac_config_dir|sed -e 's
%^\.
/%%' -e 's
%[^
/]$
%&/%' -e 's
%[^
/]*/%..
/%g
'`
7281 .) # No --srcdir option. We are building in place.
7282 ac_sub_srcdir=$srcdir ;;
7283 /*) # Absolute path.
7284 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
7286 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
7289 # Check for guested configure; otherwise get Cygnus style configure.
7290 if test -f $ac_sub_srcdir/configure; then
7291 ac_sub_configure=$ac_sub_srcdir/configure
7292 elif test -f $ac_sub_srcdir/configure.in; then
7293 ac_sub_configure=$ac_configure
7295 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
7299 # The recursion is here.
7300 if test -n "$ac_sub_configure"; then
7302 # Make the cache file name correct relative to the subdirectory.
7303 case "$cache_file" in
7304 /*) ac_sub_cache_file=$cache_file ;;
7306 ac_sub_cache_file="$ac_dots$cache_file" ;;
7308 case "$ac_given_INSTALL" in
7309 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7310 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7313 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
7314 # The eval makes quoting arguments work.
7315 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
7318 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }