3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --with-target-subdir=SUBDIR
16 configuring in a subdirectory"
18 --with-cross-host=HOST configuring with a cross compiler"
20 --enable-multilib build many library versions (default)"
22 --enable-maintainer-mode enable make rules and dependencies not useful
23 (and sometimes confusing) to the casual installer"
25 --enable-shared[=PKGS] build shared libraries [default=yes]"
27 --enable-static[=PKGS] build static libraries [default=yes]"
29 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
31 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
33 --disable-libtool-lock avoid locking (might break parallel builds)"
35 --with-pic try to use only PIC/non-PIC objects [default=use both]"
37 --enable-fast-character prefer speed over size for Character"
39 --disable-getenv-properties
40 don't set system properties from GCJ_PROPERTIES"
42 --enable-hash-synchronization
43 Use global hash table for monitor locks"
45 --enable-libgcj-debug enable runtime debugging code"
47 --enable-interpreter enable interpreter"
49 --enable-sjlj-exceptions force use of builtin_setjmp for exceptions"
51 --disable-java-net disable java.net"
53 --without-libffi don't use libffi"
55 --disable-jvmpi disable JVMPI support"
57 --with-ecos enable runtime eCos target support"
59 --with-system-zlib use installed libz"
61 --enable-java-gc=TYPE choose garbage collector [boehm]"
63 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
65 --with-x use the X Window System"
67 --enable-java-awt list of AWT peer implementations to be built"
69 # Initialize some variables set by options.
70 # The variables have the same names as the options, with
71 # dashes changed to underlines.
73 cache_file
=.
/config.cache
82 program_transform_name
=s
,x
,x
,
91 bindir
='${exec_prefix}/bin'
92 sbindir
='${exec_prefix}/sbin'
93 libexecdir
='${exec_prefix}/libexec'
94 datadir
='${prefix}/share'
95 sysconfdir
='${prefix}/etc'
96 sharedstatedir
='${prefix}/com'
97 localstatedir
='${prefix}/var'
98 libdir
='${exec_prefix}/lib'
99 includedir
='${prefix}/include'
100 oldincludedir
='/usr/include'
101 infodir
='${prefix}/info'
102 mandir
='${prefix}/man'
104 # Initialize some other variables.
107 SHELL
=${CONFIG_SHELL-/bin/sh}
108 # Maximum number of lines to put in a shell here document.
115 # If the previous option needs an argument, assign it.
116 if test -n "$ac_prev"; then
117 eval "$ac_prev=\$ac_option"
123 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
127 # Accept the important Cygnus configure options, so we can diagnose typos.
131 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
133 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
134 bindir
="$ac_optarg" ;;
136 -build |
--build |
--buil |
--bui |
--bu)
138 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
139 build
="$ac_optarg" ;;
141 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
142 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
143 ac_prev
=cache_file
;;
144 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
145 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
146 cache_file
="$ac_optarg" ;;
148 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
150 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
152 datadir
="$ac_optarg" ;;
154 -disable-* |
--disable-*)
155 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
156 # Reject names that are not valid shell variable names.
157 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
158 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
160 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
161 eval "enable_${ac_feature}=no" ;;
163 -enable-* |
--enable-*)
164 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
165 # Reject names that are not valid shell variable names.
166 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
167 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
169 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
174 eval "enable_${ac_feature}='$ac_optarg'" ;;
176 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
177 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
178 |
--exec |
--exe |
--ex)
179 ac_prev
=exec_prefix
;;
180 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
181 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
182 |
--exec=* |
--exe=* |
--ex=*)
183 exec_prefix
="$ac_optarg" ;;
185 -gas |
--gas |
--ga |
--g)
186 # Obsolete; use --with-gas.
189 -help |
--help |
--hel |
--he)
190 # Omit some internal or obsolete options to make the list less imposing.
191 # This message is too long to be a string in the A/UX 3.1 sh.
193 Usage: configure [options] [host]
194 Options: [defaults in brackets after descriptions]
196 --cache-file=FILE cache test results in FILE
197 --help print this message
198 --no-create do not create output files
199 --quiet, --silent do not print \`checking...' messages
200 --site-file=FILE use FILE as the site file
201 --version print the version of autoconf that created configure
202 Directory and file names:
203 --prefix=PREFIX install architecture-independent files in PREFIX
205 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
207 --bindir=DIR user executables in DIR [EPREFIX/bin]
208 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
209 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
210 --datadir=DIR read-only architecture-independent data in DIR
212 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
213 --sharedstatedir=DIR modifiable architecture-independent data in DIR
215 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
216 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
217 --includedir=DIR C header files in DIR [PREFIX/include]
218 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
219 --infodir=DIR info documentation in DIR [PREFIX/info]
220 --mandir=DIR man documentation in DIR [PREFIX/man]
221 --srcdir=DIR find the sources in DIR [configure dir or ..]
222 --program-prefix=PREFIX prepend PREFIX to installed program names
223 --program-suffix=SUFFIX append SUFFIX to installed program names
224 --program-transform-name=PROGRAM
225 run sed PROGRAM on installed program names
229 --build=BUILD configure for building on BUILD [BUILD=HOST]
230 --host=HOST configure for HOST [guessed]
231 --target=TARGET configure for TARGET [TARGET=HOST]
232 Features and packages:
233 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
234 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
235 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
236 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
237 --x-includes=DIR X include files are in DIR
238 --x-libraries=DIR X library files are in DIR
240 if test -n "$ac_help"; then
241 echo "--enable and --with options recognized:$ac_help"
245 -host |
--host |
--hos |
--ho)
247 -host=* |
--host=* |
--hos=* |
--ho=*)
250 -includedir |
--includedir |
--includedi |
--included |
--include \
251 |
--includ |
--inclu |
--incl |
--inc)
252 ac_prev
=includedir
;;
253 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
254 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
255 includedir
="$ac_optarg" ;;
257 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
259 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
260 infodir
="$ac_optarg" ;;
262 -libdir |
--libdir |
--libdi |
--libd)
264 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
265 libdir
="$ac_optarg" ;;
267 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
268 |
--libexe |
--libex |
--libe)
269 ac_prev
=libexecdir
;;
270 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
271 |
--libexe=* |
--libex=* |
--libe=*)
272 libexecdir
="$ac_optarg" ;;
274 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
275 |
--localstate |
--localstat |
--localsta |
--localst \
276 |
--locals |
--local |
--loca |
--loc |
--lo)
277 ac_prev
=localstatedir
;;
278 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
279 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
280 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
281 localstatedir
="$ac_optarg" ;;
283 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
285 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
286 mandir
="$ac_optarg" ;;
289 # Obsolete; use --without-fp.
292 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
296 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
297 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
300 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
301 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
302 |
--oldin |
--oldi |
--old |
--ol |
--o)
303 ac_prev
=oldincludedir
;;
304 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
305 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
306 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
307 oldincludedir
="$ac_optarg" ;;
309 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
311 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
312 prefix
="$ac_optarg" ;;
314 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
315 |
--program-pre |
--program-pr |
--program-p)
316 ac_prev
=program_prefix
;;
317 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
318 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
319 program_prefix
="$ac_optarg" ;;
321 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
322 |
--program-suf |
--program-su |
--program-s)
323 ac_prev
=program_suffix
;;
324 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
325 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
326 program_suffix
="$ac_optarg" ;;
328 -program-transform-name |
--program-transform-name \
329 |
--program-transform-nam |
--program-transform-na \
330 |
--program-transform-n |
--program-transform- \
331 |
--program-transform |
--program-transfor \
332 |
--program-transfo |
--program-transf \
333 |
--program-trans |
--program-tran \
334 |
--progr-tra |
--program-tr |
--program-t)
335 ac_prev
=program_transform_name
;;
336 -program-transform-name=* |
--program-transform-name=* \
337 |
--program-transform-nam=* |
--program-transform-na=* \
338 |
--program-transform-n=* |
--program-transform-=* \
339 |
--program-transform=* |
--program-transfor=* \
340 |
--program-transfo=* |
--program-transf=* \
341 |
--program-trans=* |
--program-tran=* \
342 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
343 program_transform_name
="$ac_optarg" ;;
345 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
346 |
-silent |
--silent |
--silen |
--sile |
--sil)
349 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
351 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
353 sbindir
="$ac_optarg" ;;
355 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
356 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
357 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
359 ac_prev
=sharedstatedir
;;
360 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
361 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
362 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
364 sharedstatedir
="$ac_optarg" ;;
366 -site |
--site |
--sit)
368 -site=* |
--site=* |
--sit=*)
371 -site-file |
--site-file |
--site-fil |
--site-fi |
--site-f)
373 -site-file=* |
--site-file=* |
--site-fil=* |
--site-fi=* |
--site-f=*)
374 sitefile
="$ac_optarg" ;;
376 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
378 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
379 srcdir
="$ac_optarg" ;;
381 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
382 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
383 ac_prev
=sysconfdir
;;
384 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
385 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
386 sysconfdir
="$ac_optarg" ;;
388 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
390 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
391 target
="$ac_optarg" ;;
393 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
396 -version |
--version |
--versio |
--versi |
--vers)
397 echo "configure generated by autoconf version 2.13"
401 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
402 # Reject names that are not valid shell variable names.
403 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
404 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
406 ac_package
=`echo $ac_package| sed 's/-/_/g'`
411 eval "with_${ac_package}='$ac_optarg'" ;;
413 -without-* |
--without-*)
414 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
415 # Reject names that are not valid shell variable names.
416 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
417 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
419 ac_package
=`echo $ac_package| sed 's/-/_/g'`
420 eval "with_${ac_package}=no" ;;
423 # Obsolete; use --with-x.
426 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
427 |
--x-incl |
--x-inc |
--x-in |
--x-i)
428 ac_prev
=x_includes
;;
429 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
430 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
431 x_includes
="$ac_optarg" ;;
433 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
434 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
435 ac_prev
=x_libraries
;;
436 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
437 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
438 x_libraries
="$ac_optarg" ;;
440 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
444 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
445 echo "configure: warning: $ac_option: invalid host type" 1>&2
447 if test "x$nonopt" != xNONE
; then
448 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
456 if test -n "$ac_prev"; then
457 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
460 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
462 # File descriptor usage:
465 # 2 errors and warnings
466 # 3 some systems may open it to /dev/tty
467 # 4 used on the Kubota Titan
468 # 6 checking for... messages and results
469 # 5 compiler messages saved in config.log
470 if test "$silent" = yes; then
478 This file contains any messages produced by compilers while
479 running configure, to aid debugging if configure makes a mistake.
482 # Strip out --no-create and --no-recursion so they do not pile up.
483 # Also quote any args containing shell metacharacters.
488 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
489 |
--no-cr |
--no-c) ;;
490 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
491 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
492 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
493 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
494 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
499 # Only set these to C if already set. These must not be set unconditionally
500 # because not all systems understand e.g. LANG=C (notably SCO).
501 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
502 # Non-C LC_CTYPE values break the ctype check.
503 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
504 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
505 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
506 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
508 # confdefs.h avoids OS command line length limits that DEFS can exceed.
509 rm -rf conftest
* confdefs.h
510 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
513 # A filename unique to this package, relative to the directory that
514 # configure is in, which we can look for to find out if srcdir is correct.
515 ac_unique_file
=java
/lang
/System.java
517 # Find the source files, if location was not specified.
518 if test -z "$srcdir"; then
519 ac_srcdir_defaulted
=yes
520 # Try the directory containing this script, then its parent.
522 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
523 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
525 if test ! -r $srcdir/$ac_unique_file; then
529 ac_srcdir_defaulted
=no
531 if test ! -r $srcdir/$ac_unique_file; then
532 if test "$ac_srcdir_defaulted" = yes; then
533 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
535 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
538 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
540 # Prefer explicitly selected file to automatically selected ones.
541 if test -z "$sitefile"; then
542 if test -z "$CONFIG_SITE"; then
543 if test "x$prefix" != xNONE
; then
544 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
546 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
550 CONFIG_SITE
="$sitefile"
552 for ac_site_file
in $CONFIG_SITE; do
553 if test -r "$ac_site_file"; then
554 echo "loading site script $ac_site_file"
559 if test -r "$cache_file"; then
560 echo "loading cache $cache_file"
563 echo "creating cache $cache_file"
568 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
569 ac_cpp
='$CPP $CPPFLAGS'
570 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
571 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
572 cross_compiling
=$ac_cv_prog_cc_cross
576 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
577 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
578 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
585 ac_n
= ac_c
='\c' ac_t
=
590 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
591 echo "configure:592: checking whether ln -s works" >&5
592 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
593 echo $ac_n "(cached) $ac_c" 1>&6
596 if ln -s X conftestdata
2>/dev
/null
599 ac_cv_prog_LN_S
="ln -s"
604 LN_S
="$ac_cv_prog_LN_S"
605 if test "$ac_cv_prog_LN_S" = "ln -s"; then
606 echo "$ac_t""yes" 1>&6
608 echo "$ac_t""no" 1>&6
612 # Check whether --with-target-subdir or --without-target-subdir was given.
613 if test "${with_target_subdir+set}" = set; then
614 withval
="$with_target_subdir"
618 # Check whether --with-cross-host or --without-cross-host was given.
619 if test "${with_cross_host+set}" = set; then
620 withval
="$with_cross_host"
625 # Find a good install program. We prefer a C program (faster),
626 # so one script is as good as another. But avoid the broken or
627 # incompatible versions:
628 # SysV /etc/install, /usr/sbin/install
629 # SunOS /usr/etc/install
632 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
633 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
634 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
635 # ./install, which can be erroneously created by make from ./install.sh.
636 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
637 echo "configure:638: checking for a BSD compatible install" >&5
638 if test -z "$INSTALL"; then
639 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
640 echo $ac_n "(cached) $ac_c" 1>&6
642 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
643 for ac_dir
in $PATH; do
644 # Account for people who put trailing slashes in PATH elements.
646 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
648 # OSF1 and SCO ODT 3.0 have their own names for install.
649 # Don't use installbsd from OSF since it installs stuff as root
651 for ac_prog
in ginstall scoinst
install; do
652 if test -f $ac_dir/$ac_prog; then
653 if test $ac_prog = install &&
654 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
655 # AIX install. It has an incompatible calling convention.
658 ac_cv_path_install
="$ac_dir/$ac_prog -c"
669 if test "${ac_cv_path_install+set}" = set; then
670 INSTALL
="$ac_cv_path_install"
672 # As a last resort, use the slow shell script. We don't cache a
673 # path for INSTALL within a source directory, because that will
674 # break other packages using the cache if that directory is
675 # removed, or if the path is relative.
676 INSTALL
="$ac_install_sh"
679 echo "$ac_t""$INSTALL" 1>&6
681 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
682 # It thinks the first close brace ends the variable substitution.
683 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
685 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
687 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
689 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
690 echo "configure:691: checking whether build environment is sane" >&5
693 echo timestamp
> conftestfile
694 # Do `set' in a subshell so we don't clobber the current shell's
695 # arguments. Must try -L first in case configure is actually a
696 # symlink; some systems play weird games with the mod time of symlinks
697 # (eg FreeBSD returns the mod time of the symlink's containing
700 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
701 if test "$*" = "X"; then
703 set X
`ls -t $srcdir/configure conftestfile`
705 if test "$*" != "X $srcdir/configure conftestfile" \
706 && test "$*" != "X conftestfile $srcdir/configure"; then
708 # If neither matched, then we have a broken ls. This can happen
709 # if, for instance, CONFIG_SHELL is bash and it inherits a
710 # broken ls alias from the environment. This has actually
711 # happened. Such a system could not be considered "sane".
712 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
713 alias in your environment" 1>&2; exit 1; }
716 test "$2" = conftestfile
722 { echo "configure: error: newly created file is older than distributed files!
723 Check your system clock" 1>&2; exit 1; }
726 echo "$ac_t""yes" 1>&6
727 if test "$program_transform_name" = s
,x
,x
,; then
728 program_transform_name
=
730 # Double any \ or $. echo might interpret backslashes.
731 cat <<\EOF_SED
> conftestsed
732 s
,\\,\\\\,g
; s
,\$
,$$
,g
734 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
737 test "$program_prefix" != NONE
&&
738 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
739 # Use a double $ so make ignores it.
740 test "$program_suffix" != NONE
&&
741 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
743 # sed with no file args requires a program.
744 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
746 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
747 echo "configure:748: checking whether ${MAKE-make} sets \${MAKE}" >&5
748 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
749 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
750 echo $ac_n "(cached) $ac_c" 1>&6
752 cat > conftestmake
<<\EOF
754 @
echo 'ac_maketemp="${MAKE}"'
756 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
757 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
758 if test -n "$ac_maketemp"; then
759 eval ac_cv_prog_make_
${ac_make}_set
=yes
761 eval ac_cv_prog_make_
${ac_make}_set
=no
765 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
766 echo "$ac_t""yes" 1>&6
769 echo "$ac_t""no" 1>&6
770 SET_MAKE
="MAKE=${MAKE-make}"
773 if test $host != $build; then
774 ac_tool_prefix
=${host_alias}-
779 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
780 echo "configure:781: checking for Cygwin environment" >&5
781 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
782 echo $ac_n "(cached) $ac_c" 1>&6
784 cat > conftest.
$ac_ext <<EOF
785 #line 786 "configure"
786 #include "confdefs.h"
791 #define __CYGWIN__ __CYGWIN32__
796 if { (eval echo configure
:797: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
800 echo "configure: failed program was:" >&5
801 cat conftest.
$ac_ext >&5
809 echo "$ac_t""$ac_cv_cygwin" 1>&6
811 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
812 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
813 echo "configure:814: checking for mingw32 environment" >&5
814 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
815 echo $ac_n "(cached) $ac_c" 1>&6
817 cat > conftest.
$ac_ext <<EOF
818 #line 819 "configure"
819 #include "confdefs.h"
825 if { (eval echo configure
:826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
829 echo "configure: failed program was:" >&5
830 cat conftest.
$ac_ext >&5
838 echo "$ac_t""$ac_cv_mingw32" 1>&6
840 test "$ac_cv_mingw32" = yes && MINGW32
=yes
842 # Check whether --enable-multilib or --disable-multilib was given.
843 if test "${enable_multilib+set}" = set; then
844 enableval
="$enable_multilib"
845 case "${enableval}" in
848 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
855 # When building with srcdir == objdir, links to the source files will
856 # be created in directories within the target_subdir. We have to
857 # adjust toplevel_srcdir accordingly, so that configure finds
858 # install-sh and other auxiliary files that live in the top-level
860 if test "${srcdir}" = "."; then
861 if test -z "${with_target_subdir}"; then
864 if test "${with_target_subdir}" != "."; then
865 toprel
="${with_multisrctop}../.."
867 toprel
="${with_multisrctop}.."
874 libgcj_basedir
=$srcdir/$toprel/.
/libjava
878 for ac_dir
in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
879 if test -f $ac_dir/install-sh
; then
881 ac_install_sh
="$ac_aux_dir/install-sh -c"
883 elif test -f $ac_dir/install.sh
; then
885 ac_install_sh
="$ac_aux_dir/install.sh -c"
889 if test -z "$ac_aux_dir"; then
890 { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
892 ac_config_guess=$ac_aux_dir/config.guess
893 ac_config_sub=$ac_aux_dir/config.sub
894 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
897 # This overrides the previous occurrence for automake, but not for
898 # autoconf, which is exactly what we want.
900 for ac_dir in .. $srcdir/..; do
901 if test -f $ac_dir/install-sh; then
903 ac_install_sh="$ac_aux_dir/install-sh
-c"
905 elif test -f $ac_dir/install.sh; then
907 ac_install_sh="$ac_aux_dir/install.sh
-c"
911 if test -z "$ac_aux_dir"; then
912 { echo "configure
: error
: can not
find install-sh or
install.sh
in ..
$srcdir/..
" 1>&2; exit 1; }
914 ac_config_guess=$ac_aux_dir/config.guess
915 ac_config_sub=$ac_aux_dir/config.sub
916 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
920 # This works around an automake problem.
921 mkinstalldirs="`cd $ac_aux_dir && pwd`/mkinstalldirs
"
925 # Do some error checking and defaulting for the host and target type.
927 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
930 # 1. You are not allowed to specify --host, --target, and nonopt at the
932 # 2. Host defaults to nonopt.
933 # 3. If nonopt is not specified, then host defaults to the current host,
934 # as determined by config.guess.
935 # 4. Target and build default to nonopt.
936 # 5. If nonopt is not specified, then target and build default to host.
938 # The aliases save the names the user supplied, while $host etc.
939 # will get canonicalized.
940 case $host---$target---$nonopt in
941 NONE---*---* | *---NONE---* | *---*---NONE) ;;
942 *) { echo "configure
: error
: can only configure
for one
host and one target
at a
time" 1>&2; exit 1; } ;;
946 # Make sure we can run config.sub.
947 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
948 else { echo "configure
: error
: can not run
$ac_config_sub" 1>&2; exit 1; }
951 echo $ac_n "checking
host system
type""...
$ac_c" 1>&6
952 echo "configure
:953: checking
host system
type" >&5
955 case "$host_alias" in
959 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
960 else { echo "configure
: error
: can not guess
host type; you must specify one
" 1>&2; exit 1; }
962 *) host_alias=$nonopt ;;
966 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
967 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
968 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
969 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
970 echo "$ac_t""$host" 1>&6
972 echo $ac_n "checking target system
type""...
$ac_c" 1>&6
973 echo "configure
:974: checking target system
type" >&5
976 case "$target_alias" in
979 NONE) target_alias=$host_alias ;;
980 *) target_alias=$nonopt ;;
984 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
985 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
986 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
987 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
988 echo "$ac_t""$target" 1>&6
990 echo $ac_n "checking build system
type""...
$ac_c" 1>&6
991 echo "configure
:992: checking build system
type" >&5
994 case "$build_alias" in
997 NONE) build_alias=$host_alias ;;
998 *) build_alias=$nonopt ;;
1002 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1003 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1004 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1005 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1006 echo "$ac_t""$build" 1>&6
1008 test "$host_alias" != "$target_alias" &&
1009 test "$program_prefix$program_suffix$program_transform_name" = \
1011 program_prefix=${target_alias}-
1017 # Extract the first word of "gcc
", so it can be a program name with args.
1018 set dummy gcc; ac_word=$2
1019 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1020 echo "configure
:1021: checking
for $ac_word" >&5
1021 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1022 echo $ac_n "(cached
) $ac_c" 1>&6
1024 if test -n "$CC"; then
1025 ac_cv_prog_CC="$CC" # Let the user override the test.
1027 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1029 for ac_dir in $ac_dummy; do
1030 test -z "$ac_dir" && ac_dir=.
1031 if test -f $ac_dir/$ac_word; then
1040 if test -n "$CC"; then
1041 echo "$ac_t""$CC" 1>&6
1043 echo "$ac_t""no
" 1>&6
1046 if test -z "$CC"; then
1047 # Extract the first word of "cc
", so it can be a program name with args.
1048 set dummy cc; ac_word=$2
1049 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1050 echo "configure
:1051: checking
for $ac_word" >&5
1051 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1052 echo $ac_n "(cached
) $ac_c" 1>&6
1054 if test -n "$CC"; then
1055 ac_cv_prog_CC="$CC" # Let the user override the test.
1057 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1060 for ac_dir in $ac_dummy; do
1061 test -z "$ac_dir" && ac_dir=.
1062 if test -f $ac_dir/$ac_word; then
1063 if test "$ac_dir/$ac_word" = "/usr
/ucb
/cc
"; then
1064 ac_prog_rejected=yes
1072 if test $ac_prog_rejected = yes; then
1073 # We found a bogon in the path, so make sure we never use it.
1074 set dummy $ac_cv_prog_CC
1076 if test $# -gt 0; then
1077 # We chose a different compiler from the bogus one.
1078 # However, it has the same basename, so the bogon will be chosen
1079 # first if we set CC to just the basename; use the full file name.
1081 set dummy "$ac_dir/$ac_word" "$@
"
1089 if test -n "$CC"; then
1090 echo "$ac_t""$CC" 1>&6
1092 echo "$ac_t""no
" 1>&6
1095 if test -z "$CC"; then
1096 case "`uname -s`" in
1098 # Extract the first word of "cl
", so it can be a program name with args.
1099 set dummy cl; ac_word=$2
1100 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1101 echo "configure
:1102: checking
for $ac_word" >&5
1102 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1103 echo $ac_n "(cached
) $ac_c" 1>&6
1105 if test -n "$CC"; then
1106 ac_cv_prog_CC="$CC" # Let the user override the test.
1108 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1110 for ac_dir in $ac_dummy; do
1111 test -z "$ac_dir" && ac_dir=.
1112 if test -f $ac_dir/$ac_word; then
1121 if test -n "$CC"; then
1122 echo "$ac_t""$CC" 1>&6
1124 echo "$ac_t""no
" 1>&6
1129 test -z "$CC" && { echo "configure
: error
: no acceptable cc found
in \
$PATH" 1>&2; exit 1; }
1133 echo $ac_n "checking whether we are using GNU C
""...
$ac_c" 1>&6
1134 echo "configure
:1135: checking whether we are using GNU C
" >&5
1135 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1136 echo $ac_n "(cached
) $ac_c" 1>&6
1138 cat > conftest.c <<EOF
1143 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1144: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1150 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1152 if test $ac_cv_prog_gcc = yes; then
1158 ac_test_CFLAGS="${CFLAGS+set}"
1159 ac_save_CFLAGS="$CFLAGS"
1161 echo $ac_n "checking whether
${CC-cc} accepts
-g""...
$ac_c" 1>&6
1162 echo "configure
:1163: checking whether
${CC-cc} accepts
-g" >&5
1163 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1164 echo $ac_n "(cached
) $ac_c" 1>&6
1166 echo 'void f(){}' > conftest.c
1167 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1176 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1177 if test "$ac_test_CFLAGS" = set; then
1178 CFLAGS="$ac_save_CFLAGS"
1179 elif test $ac_cv_prog_cc_g = yes; then
1180 if test "$GCC" = yes; then
1186 if test "$GCC" = yes; then
1193 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1195 # Extract the first word of "$ac_prog", so it can be a program name with args.
1196 set dummy $ac_prog; ac_word=$2
1197 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1198 echo "configure
:1199: checking
for $ac_word" >&5
1199 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1200 echo $ac_n "(cached
) $ac_c" 1>&6
1202 if test -n "$CXX"; then
1203 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1205 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1207 for ac_dir in $ac_dummy; do
1208 test -z "$ac_dir" && ac_dir=.
1209 if test -f $ac_dir/$ac_word; then
1210 ac_cv_prog_CXX="$ac_prog"
1217 CXX="$ac_cv_prog_CXX"
1218 if test -n "$CXX"; then
1219 echo "$ac_t""$CXX" 1>&6
1221 echo "$ac_t""no
" 1>&6
1224 test -n "$CXX" && break
1226 test -n "$CXX" || CXX="gcc
"
1230 echo $ac_n "checking whether we are using GNU C
++""...
$ac_c" 1>&6
1231 echo "configure
:1232: checking whether we are using GNU C
++" >&5
1232 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1233 echo $ac_n "(cached
) $ac_c" 1>&6
1235 cat > conftest.C <<EOF
1240 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1241: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1247 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1249 if test $ac_cv_prog_gxx = yes; then
1255 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1256 ac_save_CXXFLAGS="$CXXFLAGS"
1258 echo $ac_n "checking whether
${CXX-g++} accepts
-g""...
$ac_c" 1>&6
1259 echo "configure
:1260: checking whether
${CXX-g++} accepts
-g" >&5
1260 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1261 echo $ac_n "(cached
) $ac_c" 1>&6
1263 echo 'void f(){}' > conftest.cc
1264 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1265 ac_cv_prog_cxx_g=yes
1273 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1274 if test "$ac_test_CXXFLAGS" = set; then
1275 CXXFLAGS="$ac_save_CXXFLAGS"
1276 elif test $ac_cv_prog_cxx_g = yes; then
1277 if test "$GXX" = yes; then
1283 if test "$GXX" = yes; then
1297 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1298 { echo "configure
: error
: source directory already configured
; run
"make distclean" there first
" 1>&2; exit 1; }
1300 cat >> confdefs.h <<EOF
1301 #define PACKAGE "$PACKAGE"
1304 cat >> confdefs.h <<EOF
1305 #define VERSION "$VERSION"
1310 missing_dir=`cd $ac_aux_dir && pwd`
1311 echo $ac_n "checking
for working aclocal
""...
$ac_c" 1>&6
1312 echo "configure
:1313: checking
for working aclocal
" >&5
1313 # Run test in a subshell; some versions of sh will print an error if
1314 # an executable is not found, even if stderr is redirected.
1315 # Redirect stdin to placate older versions of autoconf. Sigh.
1316 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1318 echo "$ac_t""found
" 1>&6
1320 ACLOCAL="$missing_dir/missing aclocal
"
1321 echo "$ac_t""missing
" 1>&6
1324 echo $ac_n "checking
for working autoconf
""...
$ac_c" 1>&6
1325 echo "configure
:1326: checking
for working autoconf
" >&5
1326 # Run test in a subshell; some versions of sh will print an error if
1327 # an executable is not found, even if stderr is redirected.
1328 # Redirect stdin to placate older versions of autoconf. Sigh.
1329 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1331 echo "$ac_t""found
" 1>&6
1333 AUTOCONF="$missing_dir/missing autoconf
"
1334 echo "$ac_t""missing
" 1>&6
1337 echo $ac_n "checking
for working automake
""...
$ac_c" 1>&6
1338 echo "configure
:1339: checking
for working automake
" >&5
1339 # Run test in a subshell; some versions of sh will print an error if
1340 # an executable is not found, even if stderr is redirected.
1341 # Redirect stdin to placate older versions of autoconf. Sigh.
1342 if (automake --version) < /dev/null > /dev/null 2>&1; then
1344 echo "$ac_t""found
" 1>&6
1346 AUTOMAKE="$missing_dir/missing automake
"
1347 echo "$ac_t""missing
" 1>&6
1350 echo $ac_n "checking
for working autoheader
""...
$ac_c" 1>&6
1351 echo "configure
:1352: checking
for working autoheader
" >&5
1352 # Run test in a subshell; some versions of sh will print an error if
1353 # an executable is not found, even if stderr is redirected.
1354 # Redirect stdin to placate older versions of autoconf. Sigh.
1355 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1356 AUTOHEADER=autoheader
1357 echo "$ac_t""found
" 1>&6
1359 AUTOHEADER="$missing_dir/missing autoheader
"
1360 echo "$ac_t""missing
" 1>&6
1363 echo $ac_n "checking
for working makeinfo
""...
$ac_c" 1>&6
1364 echo "configure
:1365: checking
for working makeinfo
" >&5
1365 # Run test in a subshell; some versions of sh will print an error if
1366 # an executable is not found, even if stderr is redirected.
1367 # Redirect stdin to placate older versions of autoconf. Sigh.
1368 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1370 echo "$ac_t""found
" 1>&6
1372 MAKEINFO="$missing_dir/missing makeinfo
"
1373 echo "$ac_t""missing
" 1>&6
1378 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we don't
1379 # run it explicitly here, it will be run implicitly before
1380 # LIBGCJ_CONFIGURE, which doesn't work because that means that it will
1381 # be run before AC_CANONICAL_HOST.
1382 echo $ac_n "checking build system
type""...
$ac_c" 1>&6
1383 echo "configure
:1384: checking build system
type" >&5
1386 case "$build_alias" in
1389 NONE) build_alias=$host_alias ;;
1390 *) build_alias=$nonopt ;;
1394 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1395 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1396 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1397 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1398 echo "$ac_t""$build" 1>&6
1401 # Extract the first word of "${ac_tool_prefix}as
", so it can be a program name with args.
1402 set dummy ${ac_tool_prefix}as; ac_word=$2
1403 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1404 echo "configure
:1405: checking
for $ac_word" >&5
1405 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1406 echo $ac_n "(cached
) $ac_c" 1>&6
1408 if test -n "$AS"; then
1409 ac_cv_prog_AS="$AS" # Let the user override the test.
1411 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1413 for ac_dir in $ac_dummy; do
1414 test -z "$ac_dir" && ac_dir=.
1415 if test -f $ac_dir/$ac_word; then
1416 ac_cv_prog_AS="${ac_tool_prefix}as
"
1421 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as
"
1425 if test -n "$AS"; then
1426 echo "$ac_t""$AS" 1>&6
1428 echo "$ac_t""no
" 1>&6
1433 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1434 set dummy ${ac_tool_prefix}ar; ac_word=$2
1435 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1436 echo "configure
:1437: checking
for $ac_word" >&5
1437 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1438 echo $ac_n "(cached
) $ac_c" 1>&6
1440 if test -n "$AR"; then
1441 ac_cv_prog_AR="$AR" # Let the user override the test.
1443 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1445 for ac_dir in $ac_dummy; do
1446 test -z "$ac_dir" && ac_dir=.
1447 if test -f $ac_dir/$ac_word; then
1448 ac_cv_prog_AR="${ac_tool_prefix}ar"
1453 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1457 if test -n "$AR"; then
1458 echo "$ac_t""$AR" 1>&6
1460 echo "$ac_t""no
" 1>&6
1465 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
1466 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1467 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1468 echo "configure
:1469: checking
for $ac_word" >&5
1469 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1470 echo $ac_n "(cached
) $ac_c" 1>&6
1472 if test -n "$RANLIB"; then
1473 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1475 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1477 for ac_dir in $ac_dummy; do
1478 test -z "$ac_dir" && ac_dir=.
1479 if test -f $ac_dir/$ac_word; then
1480 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
1487 RANLIB="$ac_cv_prog_RANLIB"
1488 if test -n "$RANLIB"; then
1489 echo "$ac_t""$RANLIB" 1>&6
1491 echo "$ac_t""no
" 1>&6
1495 if test -z "$ac_cv_prog_RANLIB"; then
1496 if test -n "$ac_tool_prefix"; then
1497 # Extract the first word of "ranlib
", so it can be a program name with args.
1498 set dummy ranlib; ac_word=$2
1499 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1500 echo "configure
:1501: checking
for $ac_word" >&5
1501 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1502 echo $ac_n "(cached
) $ac_c" 1>&6
1504 if test -n "$RANLIB"; then
1505 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1507 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1509 for ac_dir in $ac_dummy; do
1510 test -z "$ac_dir" && ac_dir=.
1511 if test -f $ac_dir/$ac_word; then
1512 ac_cv_prog_RANLIB="ranlib
"
1517 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1520 RANLIB="$ac_cv_prog_RANLIB"
1521 if test -n "$RANLIB"; then
1522 echo "$ac_t""$RANLIB" 1>&6
1524 echo "$ac_t""no
" 1>&6
1533 # Find a good install program. We prefer a C program (faster),
1534 # so one script is as good as another. But avoid the broken or
1535 # incompatible versions:
1536 # SysV /etc/install, /usr/sbin/install
1537 # SunOS /usr/etc/install
1538 # IRIX /sbin/install
1540 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1541 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1542 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff
"
1543 # ./install, which can be erroneously created by make from ./install.sh.
1544 echo $ac_n "checking
for a BSD compatible
install""...
$ac_c" 1>&6
1545 echo "configure
:1546: checking
for a BSD compatible
install" >&5
1546 if test -z "$INSTALL"; then
1547 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1548 echo $ac_n "(cached
) $ac_c" 1>&6
1550 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1551 for ac_dir in $PATH; do
1552 # Account for people who put trailing slashes in PATH elements.
1554 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1556 # OSF1 and SCO ODT 3.0 have their own names for install.
1557 # Don't use installbsd from OSF since it installs stuff as root
1559 for ac_prog in ginstall scoinst install; do
1560 if test -f $ac_dir/$ac_prog; then
1561 if test $ac_prog = install &&
1562 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1563 # AIX install. It has an incompatible calling convention.
1566 ac_cv_path_install="$ac_dir/$ac_prog -c"
1577 if test "${ac_cv_path_install+set}" = set; then
1578 INSTALL="$ac_cv_path_install"
1580 # As a last resort, use the slow shell script. We don't cache a
1581 # path for INSTALL within a source directory, because that will
1582 # break other packages using the cache if that directory is
1583 # removed, or if the path is relative.
1584 INSTALL="$ac_install_sh"
1587 echo "$ac_t""$INSTALL" 1>&6
1589 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1590 # It thinks the first close brace ends the variable substitution.
1591 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1593 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1595 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1598 echo $ac_n "checking whether to
enable maintainer-specific portions of Makefiles
""...
$ac_c" 1>&6
1599 echo "configure
:1600: checking whether to
enable maintainer-specific portions of Makefiles
" >&5
1600 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1601 if test "${enable_maintainer_mode+set}" = set; then
1602 enableval="$enable_maintainer_mode"
1603 USE_MAINTAINER_MODE=$enableval
1605 USE_MAINTAINER_MODE=no
1608 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1611 if test $USE_MAINTAINER_MODE = yes; then
1612 MAINTAINER_MODE_TRUE=
1613 MAINTAINER_MODE_FALSE='#'
1615 MAINTAINER_MODE_TRUE='#'
1616 MAINTAINER_MODE_FALSE=
1618 MAINT=$MAINTAINER_MODE_TRUE
1622 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1623 # at least currently, we never actually build a program, so we never
1624 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1625 # fails, because we are probably configuring with a cross compiler
1626 # which cant create executables. So we include AC_EXEEXT to keep
1627 # automake happy, but we don't execute it, since we don't care about
1630 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1631 # to nothing, so nothing would remain between `then' and `fi' if it
1632 # were not for the `:' below.
1636 echo $ac_n "checking
for executable suffix
""...
$ac_c" 1>&6
1637 echo "configure
:1638: checking
for executable suffix
" >&5
1638 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1639 echo $ac_n "(cached
) $ac_c" 1>&6
1641 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1645 echo 'int main () { return 0; }' > conftest.$ac_ext
1647 if { (eval echo configure:1648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1648 for file in conftest.*; do
1650 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1651 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1655 { echo "configure
: error
: installation or configuration problem
: compiler cannot create executables.
" 1>&2; exit 1; }
1658 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1663 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1664 echo "$ac_t""${ac_cv_exeext}" 1>&6
1669 # configure.host sets the following important variables
1670 # libgcj_cflags - host specific C compiler flags
1671 # libgcj_cxxflags - host specific C++ compiler flags
1672 # libgcj_javaflags - host specific Java compiler flags
1678 . ${srcdir}/configure.host
1680 LIBGCJ_CFLAGS="${libgcj_cflags}"
1681 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
1682 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
1692 # Only use libltdl for native builds.
1693 if test -z "${with_cross_host}"; then
1694 case $enable_ltdl_convenience in
1695 no) { echo "configure
: error
: this package needs a convenience libltdl
" 1>&2; exit 1; } ;;
1696 "") enable_ltdl_convenience=yes
1697 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
1699 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
1700 INCLTDL='-I${top_srcdir}/''libltdl'
1704 cat >> confdefs.h <<\EOF
1708 # Sigh. Libtool's macro doesn't do the right thing.
1709 INCLTDL="-I\$
(top_srcdir
)/libltdl
$INCLTDL"
1710 # FIXME: this is a hack.
1711 sub_auxdir="`cd $ac_aux_dir && pwd`"
1712 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
1717 # Check whether --enable-shared or --disable-shared was given.
1718 if test "${enable_shared+set}" = set; then
1719 enableval="$enable_shared"
1720 p=${PACKAGE-default}
1722 yes) enable_shared=yes ;;
1723 no) enable_shared=no ;;
1726 # Look at the argument we got. We use all the common list separators.
1727 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1728 for pkg in $enableval; do
1729 if test "X
$pkg" = "X
$p"; then
1740 # Check whether --enable-static or --disable-static was given.
1741 if test "${enable_static+set}" = set; then
1742 enableval="$enable_static"
1743 p=${PACKAGE-default}
1745 yes) enable_static=yes ;;
1746 no) enable_static=no ;;
1749 # Look at the argument we got. We use all the common list separators.
1750 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1751 for pkg in $enableval; do
1752 if test "X
$pkg" = "X
$p"; then
1763 # Check whether --enable-fast-install or --disable-fast-install was given.
1764 if test "${enable_fast_install+set}" = set; then
1765 enableval="$enable_fast_install"
1766 p=${PACKAGE-default}
1768 yes) enable_fast_install=yes ;;
1769 no) enable_fast_install=no ;;
1771 enable_fast_install=no
1772 # Look at the argument we got. We use all the common list separators.
1773 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1774 for pkg in $enableval; do
1775 if test "X
$pkg" = "X
$p"; then
1776 enable_fast_install=yes
1783 enable_fast_install=yes
1786 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1787 if test "${with_gnu_ld+set}" = set; then
1788 withval="$with_gnu_ld"
1789 test "$withval" = no || with_gnu_ld=yes
1795 if test "$GCC" = yes; then
1796 # Check if gcc -print-prog-name=ld gives a path.
1797 echo $ac_n "checking
for ld used by GCC
""...
$ac_c" 1>&6
1798 echo "configure
:1799: checking
for ld used by GCC
" >&5
1801 # gcc leaves a trailing carriage return which upsets mingw
1802 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1804 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1807 # Accept absolute paths.
1808 [\\/]* | [A-Za-z]:[\\/]*)
1809 re_direlt='/[^/][^/]*/\.\./'
1810 # Canonicalize the path of ld
1811 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1812 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1813 ac_prog=`echo $ac_prog| sed "s
%$re_direlt%/%"`
1815 test -z "$LD" && LD="$ac_prog"
1818 # If it fails, then pretend we aren't using GCC.
1822 # If it is relative, then search for the first ld in PATH.
1826 elif test "$with_gnu_ld" = yes; then
1827 echo $ac_n "checking
for GNU ld
""...
$ac_c" 1>&6
1828 echo "configure
:1829: checking
for GNU ld
" >&5
1830 echo $ac_n "checking
for non-GNU ld
""...
$ac_c" 1>&6
1831 echo "configure
:1832: checking
for non-GNU ld
" >&5
1833 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1834 echo $ac_n "(cached
) $ac_c" 1>&6
1836 if test -z "$LD"; then
1837 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1838 for ac_dir in $PATH; do
1839 test -z "$ac_dir" && ac_dir=.
1840 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1841 lt_cv_path_LD="$ac_dir/$ac_prog"
1842 # Check to see if the program is GNU ld. I'd rather use --version,
1843 # but apparently some GNU ld's only accept -v.
1844 # Break only if it was the GNU/non-GNU ld that we prefer.
1845 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1846 test "$with_gnu_ld" != no && break
1848 test "$with_gnu_ld" != yes && break
1854 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1859 if test -n "$LD"; then
1860 echo "$ac_t""$LD" 1>&6
1862 echo "$ac_t""no
" 1>&6
1864 test -z "$LD" && { echo "configure
: error
: no acceptable ld found
in \
$PATH" 1>&2; exit 1; }
1865 echo $ac_n "checking
if the linker
($LD) is GNU ld
""...
$ac_c" 1>&6
1866 echo "configure
:1867: checking
if the linker
($LD) is GNU ld
" >&5
1867 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1868 echo $ac_n "(cached
) $ac_c" 1>&6
1870 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1871 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1872 lt_cv_prog_gnu_ld=yes
1874 lt_cv_prog_gnu_ld=no
1878 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1879 with_gnu_ld=$lt_cv_prog_gnu_ld
1882 echo $ac_n "checking
for $LD option to reload object files
""...
$ac_c" 1>&6
1883 echo "configure
:1884: checking
for $LD option to reload object files
" >&5
1884 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1885 echo $ac_n "(cached
) $ac_c" 1>&6
1887 lt_cv_ld_reload_flag='-r'
1890 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1891 reload_flag=$lt_cv_ld_reload_flag
1892 test -n "$reload_flag" && reload_flag=" $reload_flag"
1894 echo $ac_n "checking
for BSD-compatible nm
""...
$ac_c" 1>&6
1895 echo "configure
:1896: checking
for BSD-compatible nm
" >&5
1896 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1897 echo $ac_n "(cached
) $ac_c" 1>&6
1899 if test -n "$NM"; then
1900 # Let the user override the test.
1903 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1904 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1905 test -z "$ac_dir" && ac_dir=.
1906 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1907 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1908 # Check to see if the nm accepts a BSD-compat flag.
1909 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1910 # nm: unknown option "B
" ignored
1911 # Tru64's nm complains that /dev/null is an invalid object file
1912 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1913 lt_cv_path_NM="$tmp_nm -B"
1915 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1916 lt_cv_path_NM="$tmp_nm -p"
1919 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1920 continue # so that we can try to find one that supports BSD flags
1925 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1930 echo "$ac_t""$NM" 1>&6
1932 echo $ac_n "checking how to recognise dependant libraries
""...
$ac_c" 1>&6
1933 echo "configure
:1934: checking how to recognise dependant libraries
" >&5
1934 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1935 echo $ac_n "(cached
) $ac_c" 1>&6
1937 lt_cv_file_magic_cmd='$MAGIC_CMD'
1938 lt_cv_file_magic_test_file=
1939 lt_cv_deplibs_check_method='unknown'
1940 # Need to set the preceding variable on all platforms that support
1941 # interlibrary dependencies.
1942 # 'none' -- dependencies not supported.
1943 # `unknown' -- same as none, but documents that we really don't know.
1944 # 'pass_all' -- all dependencies passed with no checks.
1945 # 'test_compile' -- check by making test program.
1946 # 'file_magic [regex]' -- check by looking for files in library path
1947 # which responds to the $file_magic_cmd with a given egrep regex.
1948 # If you have `file' or equivalent on your system and you're not sure
1949 # whether `pass_all' will *always* work, you probably want this one.
1953 lt_cv_deplibs_check_method=pass_all
1957 lt_cv_deplibs_check_method=pass_all
1961 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1962 lt_cv_file_magic_cmd='/usr/bin/file -L'
1963 lt_cv_file_magic_test_file=/shlib/libc.so
1966 cygwin* | mingw* |pw32*)
1967 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1968 lt_cv_file_magic_cmd='$OBJDUMP -f'
1971 darwin* | rhapsody*)
1972 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1973 lt_cv_file_magic_cmd='/usr/bin/file -L'
1975 rhapsody* | darwin1.012)
1976 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1979 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1985 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1988 # Not sure whether the presence of OpenBSD here was a mistake.
1989 # Let's accept both of them until this is cleared up.
1990 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1991 lt_cv_file_magic_cmd=/usr/bin/file
1992 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1996 lt_cv_deplibs_check_method=pass_all
2001 lt_cv_deplibs_check_method=pass_all
2005 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2006 lt_cv_file_magic_cmd=/usr/bin/file
2007 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2013 # this will be overridden with pass_all, but let us keep it just in case
2014 lt_cv_deplibs_check_method="file_magic ELF
32-bit MSB dynamic lib MIPS
- version
1"
2018 *-32|*"-32 ") libmagic=32-bit;;
2019 *-n32|*"-n32 ") libmagic=N32;;
2020 *-64|*"-64 ") libmagic=64-bit;;
2021 *) libmagic=never-match;;
2023 # this will be overridden with pass_all, but let us keep it just in case
2024 lt_cv_deplibs_check_method="file_magic ELF
${libmagic} MSB mips-
[1234] dynamic lib MIPS
- version
1"
2027 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2028 lt_cv_deplibs_check_method=pass_all
2031 # This must be Linux ELF.
2034 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2035 lt_cv_deplibs_check_method=pass_all ;;
2037 # glibc up to 2.1.1 does not perform some relocations on ARM
2038 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2040 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2044 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2045 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2047 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2052 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2053 lt_cv_file_magic_cmd=/usr/bin/file
2054 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2057 osf3* | osf4* | osf5*)
2058 # this will be overridden with pass_all, but let us keep it just in case
2059 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2060 lt_cv_file_magic_test_file=/shlib/libc.so
2061 lt_cv_deplibs_check_method=pass_all
2065 lt_cv_deplibs_check_method=pass_all
2069 lt_cv_deplibs_check_method=pass_all
2070 lt_cv_file_magic_test_file=/lib/libc.so
2073 sysv5uw[78]* | sysv4*uw2*)
2074 lt_cv_deplibs_check_method=pass_all
2077 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2078 case $host_vendor in
2080 lt_cv_deplibs_check_method=pass_all
2083 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]'
2084 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2092 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2093 file_magic_cmd=$lt_cv_file_magic_cmd
2094 deplibs_check_method=$lt_cv_deplibs_check_method
2096 echo $ac_n "checking
for object suffix
""...
$ac_c" 1>&6
2097 echo "configure
:2098: checking
for object suffix
" >&5
2098 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2099 echo $ac_n "(cached
) $ac_c" 1>&6
2102 echo 'int i = 1;' > conftest.$ac_ext
2103 if { (eval echo configure:2104: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2104 for ac_file in conftest.*; do
2107 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2111 { echo "configure
: error
: installation or configuration problem
; compiler does not work
" 1>&2; exit 1; }
2116 echo "$ac_t""$ac_cv_objext" 1>&6
2117 OBJEXT=$ac_cv_objext
2118 ac_objext=$ac_cv_objext
2120 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2122 # Only perform the check for file, if the check method requires it
2123 case $deplibs_check_method in
2125 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2126 echo $ac_n "checking
for ${ac_tool_prefix}file""...
$ac_c" 1>&6
2127 echo "configure
:2128: checking
for ${ac_tool_prefix}file" >&5
2128 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2129 echo $ac_n "(cached
) $ac_c" 1>&6
2133 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2136 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2139 ac_save_MAGIC_CMD="$MAGIC_CMD"
2140 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2141 ac_dummy="/usr
/bin
:$PATH"
2142 for ac_dir in $ac_dummy; do
2143 test -z "$ac_dir" && ac_dir=.
2144 if test -f $ac_dir/${ac_tool_prefix}file; then
2145 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2146 if test -n "$file_magic_test_file"; then
2147 case $deplibs_check_method in
2149 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2150 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2151 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2152 egrep "$file_magic_regex" > /dev/null; then
2157 *** Warning: the command libtool uses to detect shared libraries,
2158 *** $file_magic_cmd, produces output that libtool cannot recognize.
2159 *** The result is that libtool may fail to recognize shared libraries
2160 *** as such. This will affect the creation of libtool libraries that
2161 *** depend on shared libraries, but programs linked with such libtool
2162 *** libraries will work regardless of this problem. Nevertheless, you
2163 *** may want to report the problem to your system manager and/or to
2164 *** bug-libtool@gnu.org
2174 MAGIC_CMD="$ac_save_MAGIC_CMD"
2179 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2180 if test -n "$MAGIC_CMD"; then
2181 echo "$ac_t""$MAGIC_CMD" 1>&6
2183 echo "$ac_t""no
" 1>&6
2186 if test -z "$lt_cv_path_MAGIC_CMD"; then
2187 if test -n "$ac_tool_prefix"; then
2188 echo $ac_n "checking
for file""...
$ac_c" 1>&6
2189 echo "configure
:2190: checking
for file" >&5
2190 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2191 echo $ac_n "(cached
) $ac_c" 1>&6
2195 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2198 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2201 ac_save_MAGIC_CMD="$MAGIC_CMD"
2202 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2203 ac_dummy="/usr
/bin
:$PATH"
2204 for ac_dir in $ac_dummy; do
2205 test -z "$ac_dir" && ac_dir=.
2206 if test -f $ac_dir/file; then
2207 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2208 if test -n "$file_magic_test_file"; then
2209 case $deplibs_check_method in
2211 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2212 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2213 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2214 egrep "$file_magic_regex" > /dev/null; then
2219 *** Warning: the command libtool uses to detect shared libraries,
2220 *** $file_magic_cmd, produces output that libtool cannot recognize.
2221 *** The result is that libtool may fail to recognize shared libraries
2222 *** as such. This will affect the creation of libtool libraries that
2223 *** depend on shared libraries, but programs linked with such libtool
2224 *** libraries will work regardless of this problem. Nevertheless, you
2225 *** may want to report the problem to your system manager and/or to
2226 *** bug-libtool@gnu.org
2236 MAGIC_CMD="$ac_save_MAGIC_CMD"
2241 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2242 if test -n "$MAGIC_CMD"; then
2243 echo "$ac_t""$MAGIC_CMD" 1>&6
2245 echo "$ac_t""no
" 1>&6
2257 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
2258 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2259 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2260 echo "configure
:2261: checking
for $ac_word" >&5
2261 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2262 echo $ac_n "(cached
) $ac_c" 1>&6
2264 if test -n "$RANLIB"; then
2265 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2267 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2269 for ac_dir in $ac_dummy; do
2270 test -z "$ac_dir" && ac_dir=.
2271 if test -f $ac_dir/$ac_word; then
2272 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
2279 RANLIB="$ac_cv_prog_RANLIB"
2280 if test -n "$RANLIB"; then
2281 echo "$ac_t""$RANLIB" 1>&6
2283 echo "$ac_t""no
" 1>&6
2287 if test -z "$ac_cv_prog_RANLIB"; then
2288 if test -n "$ac_tool_prefix"; then
2289 # Extract the first word of "ranlib
", so it can be a program name with args.
2290 set dummy ranlib; ac_word=$2
2291 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2292 echo "configure
:2293: checking
for $ac_word" >&5
2293 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2294 echo $ac_n "(cached
) $ac_c" 1>&6
2296 if test -n "$RANLIB"; then
2297 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2299 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2301 for ac_dir in $ac_dummy; do
2302 test -z "$ac_dir" && ac_dir=.
2303 if test -f $ac_dir/$ac_word; then
2304 ac_cv_prog_RANLIB="ranlib
"
2309 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2312 RANLIB="$ac_cv_prog_RANLIB"
2313 if test -n "$RANLIB"; then
2314 echo "$ac_t""$RANLIB" 1>&6
2316 echo "$ac_t""no
" 1>&6
2324 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
2325 set dummy ${ac_tool_prefix}strip; ac_word=$2
2326 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2327 echo "configure
:2328: checking
for $ac_word" >&5
2328 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2329 echo $ac_n "(cached
) $ac_c" 1>&6
2331 if test -n "$STRIP"; then
2332 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2334 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2336 for ac_dir in $ac_dummy; do
2337 test -z "$ac_dir" && ac_dir=.
2338 if test -f $ac_dir/$ac_word; then
2339 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
2346 STRIP="$ac_cv_prog_STRIP"
2347 if test -n "$STRIP"; then
2348 echo "$ac_t""$STRIP" 1>&6
2350 echo "$ac_t""no
" 1>&6
2354 if test -z "$ac_cv_prog_STRIP"; then
2355 if test -n "$ac_tool_prefix"; then
2356 # Extract the first word of "strip
", so it can be a program name with args.
2357 set dummy strip; ac_word=$2
2358 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2359 echo "configure
:2360: checking
for $ac_word" >&5
2360 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2361 echo $ac_n "(cached
) $ac_c" 1>&6
2363 if test -n "$STRIP"; then
2364 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2366 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2368 for ac_dir in $ac_dummy; do
2369 test -z "$ac_dir" && ac_dir=.
2370 if test -f $ac_dir/$ac_word; then
2371 ac_cv_prog_STRIP="strip
"
2376 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2379 STRIP="$ac_cv_prog_STRIP"
2380 if test -n "$STRIP"; then
2381 echo "$ac_t""$STRIP" 1>&6
2383 echo "$ac_t""no
" 1>&6
2392 # Check for any special flags to pass to ltconfig.
2393 libtool_flags="--cache-file=$cache_file"
2394 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2395 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2396 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2397 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2398 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2399 libtool_flags="$libtool_flags --enable-dlopen"
2401 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2402 if test "${enable_libtool_lock+set}" = set; then
2403 enableval="$enable_libtool_lock"
2407 test "x
$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2408 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2410 # Check whether --with-pic or --without-pic was given.
2411 if test "${with_pic+set}" = set; then
2418 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2419 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2421 # Some flags need to be propagated to the compiler or linker for good
2425 # Find out which ABI we are using.
2426 echo '#line 2427 "configure
"' > conftest.$ac_ext
2427 if { (eval echo configure:2428: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2428 case `/usr/bin/file conftest.$ac_objext` in
2444 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2445 SAVE_CFLAGS="$CFLAGS"
2446 CFLAGS="$CFLAGS -belf"
2447 echo $ac_n "checking whether the C compiler needs
-belf""...
$ac_c" 1>&6
2448 echo "configure
:2449: checking whether the C compiler needs
-belf" >&5
2449 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2450 echo $ac_n "(cached
) $ac_c" 1>&6
2454 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2455 ac_cpp='$CPP $CPPFLAGS'
2456 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2457 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2458 cross_compiling=$ac_cv_prog_cc_cross
2460 cat > conftest.$ac_ext <<EOF
2461 #line 2462 "configure
"
2462 #include "confdefs.h
"
2468 if { (eval echo configure:2469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2470 lt_cv_cc_needs_belf=yes
2472 echo "configure
: failed program was
:" >&5
2473 cat conftest.$ac_ext >&5
2475 lt_cv_cc_needs_belf=no
2479 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2480 ac_cpp='$CPP $CPPFLAGS'
2481 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2482 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2483 cross_compiling=$ac_cv_prog_cc_cross
2487 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2488 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2489 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2490 CFLAGS="$SAVE_CFLAGS"
2497 echo $ac_n "checking how to run the C
++ preprocessor
""...
$ac_c" 1>&6
2498 echo "configure
:2499: checking how to run the C
++ preprocessor
" >&5
2499 if test -z "$CXXCPP"; then
2500 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2501 echo $ac_n "(cached
) $ac_c" 1>&6
2504 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2505 ac_cpp='$CXXCPP $CPPFLAGS'
2506 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2507 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2508 cross_compiling=$ac_cv_prog_cxx_cross
2509 CXXCPP="${CXX-g++} -E"
2510 cat > conftest.$ac_ext <<EOF
2511 #line 2512 "configure
"
2512 #include "confdefs.h
"
2515 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
2516 { (eval echo configure:2517: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2517 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
2518 if test -z "$ac_err"; then
2522 echo "configure
: failed program was
:" >&5
2523 cat conftest.$ac_ext >&5
2528 ac_cv_prog_CXXCPP="$CXXCPP"
2530 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2531 ac_cpp='$CPP $CPPFLAGS'
2532 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2533 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2534 cross_compiling=$ac_cv_prog_cc_cross
2537 CXXCPP="$ac_cv_prog_CXXCPP"
2538 echo "$ac_t""$CXXCPP" 1>&6
2541 # Save cache, so that ltconfig can load it
2542 cat > confcache <<\EOF
2543 # This file is a shell script that caches the results of configure
2544 # tests run on this system so they can be shared between configure
2545 # scripts and configure runs. It is not useful on other systems.
2546 # If it contains results you don't want to keep, you may remove or edit it.
2548 # By default, configure uses ./config.cache as the cache file,
2549 # creating it if it does not exist already. You can give configure
2550 # the --cache-file=FILE option to use a different cache file; that is
2551 # what configure does when it calls configure scripts in
2552 # subdirectories, so they share the cache.
2553 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2554 # config.status only pays attention to the cache file if you give it the
2555 # --recheck option to rerun configure.
2558 # The following way of writing the cache mishandles newlines in values,
2559 # but we know of no workaround that is simple, portable, and efficient.
2560 # So, don't put newlines in cache variables' values.
2561 # Ultrix sh set writes to stderr and can't be redirected directly,
2562 # and sets the high bit in the cache file unless we assign to the vars.
2564 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2566 # `set' does not quote correctly, so add quotes (double-quote substitution
2567 # turns \\\\ into \\, and sed turns \\ into \).
2569 -e "s
/'/'\\\\''/g
" \
2570 -e "s
/^
\\([a-zA-Z0-9_
]*_cv_
[a-zA-Z0-9_
]*\\)=\\(.
*\\)/\\1=\
${\\1='\\2'}/p
"
2573 # `set' quotes correctly as required by POSIX, so do not add quotes.
2574 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2577 if cmp -s $cache_file confcache; then
2580 if test -w $cache_file; then
2581 echo "updating cache
$cache_file"
2582 cat confcache > $cache_file
2584 echo "not updating unwritable cache
$cache_file"
2590 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2591 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2592 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2593 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2594 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2595 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2596 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2597 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2598 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2599 || { echo "configure
: error
: libtool configure failed
" 1>&2; exit 1; }
2601 # Reload cache, that may have been modified by ltconfig
2602 if test -r "$cache_file"; then
2603 echo "loading cache
$cache_file"
2606 echo "creating cache
$cache_file"
2611 # This can be used to rebuild libtool when needed
2612 LIBTOOL_DEPS="$ac_aux_dir/ltconfig
$ac_aux_dir/ltmain.sh
$ac_aux_dir/ltcf-c.sh
"
2614 # Always use our own libtool.
2615 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2617 # Redirect the config.log output again, so that the ltconfig log is not
2618 # clobbered by the next message.
2619 exec 5>>./config.log
2623 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh
"
2625 lt_save_CFLAGS="$CFLAGS"
2626 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2627 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2628 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2629 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2630 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2631 deplibs_check_method="$deplibs_check_method" \
2632 file_magic_cmd="$file_magic_cmd" \
2633 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2634 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2635 || { echo "configure
: error
: libtool tag configuration failed
" 1>&2; exit 1; }
2637 CFLAGS="$lt_save_CFLAGS"
2639 # Redirect the config.log output again, so that the ltconfig log is not
2640 # clobbered by the next message.
2641 exec 5>>./config.log
2651 if test -z "$with_target_subdir" || test "$with_target_subdir" = ".
"; then
2660 if test -d $srcdir/testsuite; then
2662 TESTSUBDIR_FALSE='#'
2668 # Check whether --enable-fast-character or --disable-fast-character was given.
2669 if test "${enable_fast_character+set}" = set; then
2670 enableval="$enable_fast_character"
2674 cat >> confdefs.h <<\EOF
2675 #define COMPACT_CHARACTER 1
2681 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
2682 if test "${enable_getenv_properties+set}" = set; then
2683 enableval="$enable_getenv_properties"
2688 if test -z "$enable_getenv_properties"; then
2689 enable_getenv_properties=${enable_getenv_properties_default-yes}
2691 if test "$enable_getenv_properties" = no; then
2692 cat >> confdefs.h <<\EOF
2693 #define DISABLE_GETENV_PROPERTIES 1
2699 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
2700 if test "${enable_hash_synchronization+set}" = set; then
2701 enableval="$enable_hash_synchronization"
2706 if test -z "$enable_hash_synchronization"; then
2707 enable_hash_synchronization=$enable_hash_synchronization_default
2713 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
2714 if test "${enable_libgcj_debug+set}" = set; then
2715 enableval="$enable_libgcj_debug"
2716 if test "$enable_libgcj_debug" = yes; then
2717 cat >> confdefs.h <<\EOF
2726 # Check whether --enable-interpreter or --disable-interpreter was given.
2727 if test "${enable_interpreter+set}" = set; then
2728 enableval="$enable_interpreter"
2729 if test "$enable_interpreter" = yes; then
2730 # This can also be set in configure.host.
2731 libgcj_interpreter=yes
2732 elif test "$enable_interpreter" = no; then
2733 libgcj_interpreter=no
2738 if test "$libgcj_interpreter" = yes; then
2739 cat >> confdefs.h <<\EOF
2740 #define INTERPRETER 1
2745 echo $ac_n "checking
for exception model to use
""...
$ac_c" 1>&6
2746 echo "configure
:2747: checking
for exception model to use
" >&5
2749 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2750 ac_cpp='$CXXCPP $CPPFLAGS'
2751 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2752 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2753 cross_compiling=$ac_cv_prog_cxx_cross
2755 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
2756 if test "${enable_sjlj_exceptions+set}" = set; then
2757 enableval="$enable_sjlj_exceptions"
2760 cat > conftest.$ac_ext << EOF
2761 #line 2762 "configure
"
2770 old_CXXFLAGS="$CXXFLAGS"
2772 if { (eval echo configure:2773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2773 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
2774 enable_sjlj_exceptions=yes
2775 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
2776 enable_sjlj_exceptions=no
2779 CXXFLAGS="$old_CXXFLAGS"
2783 if test x$enable_sjlj_exceptions = xyes; then
2784 cat >> confdefs.h <<\EOF
2785 #define SJLJ_EXCEPTIONS 1
2788 ac_exception_model_name=sjlj
2789 elif test x$enable_sjlj_exceptions = xno; then
2790 ac_exception_model_name="call frame
"
2792 { echo "configure
: error
: unable to detect exception model
" 1>&2; exit 1; }
2795 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2796 ac_cpp='$CPP $CPPFLAGS'
2797 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2798 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2799 cross_compiling=$ac_cv_prog_cc_cross
2801 echo "$ac_t""$ac_exception_model_name" 1>&6
2803 # Check whether --enable-java-net or --disable-java-net was given.
2804 if test "${enable_java_net+set}" = set; then
2805 enableval="$enable_java_net"
2810 if test -z "$enable_java_net"; then
2811 enable_java_net=${enable_java_net_default-yes}
2813 if test "$enable_java_net" = no; then
2814 cat >> confdefs.h <<\EOF
2815 #define DISABLE_JAVA_NET 1
2820 # Check whether --with-libffi or --without-libffi was given.
2821 if test "${with_libffi+set}" = set; then
2822 withval="$with_libffi"
2825 with_libffi=${with_libffi_default-yes}
2831 if test "$with_libffi" != no; then
2832 cat >> confdefs.h <<\EOF
2833 #define USE_LIBFFI 1
2836 LIBFFI=../libffi/libfficonvenience.la
2837 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I$(MULTIBUILDTOP)../libffi/include'
2842 # Check whether --enable-jvmpi or --disable-jvmpi was given.
2843 if test "${enable_jvmpi+set}" = set; then
2844 enableval="$enable_jvmpi"
2849 if test "$enable_jvmpi" != no; then
2850 cat >> confdefs.h <<\EOF
2851 #define ENABLE_JVMPI 1
2857 # Check whether --with-ecos or --without-ecos was given.
2858 if test "${with_ecos+set}" = set; then
2859 withval="$with_ecos"
2860 TARGET_ECOS="$with_ecos"
2865 case "$TARGET_ECOS" in
2867 FILE_DESCRIPTOR=natFileDescriptorPosix.cc
2868 PROCESS=${PROCESS-Posix}
2871 FILE_DESCRIPTOR=natFileDescriptorEcos.cc
2873 cat >> confdefs.h <<\EOF
2880 echo $ac_n "checking how to run the C preprocessor
""...
$ac_c" 1>&6
2881 echo "configure
:2882: checking how to run the C preprocessor
" >&5
2882 # On Suns, sometimes $CPP names a directory.
2883 if test -n "$CPP" && test -d "$CPP"; then
2886 if test -z "$CPP"; then
2887 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2888 echo $ac_n "(cached
) $ac_c" 1>&6
2890 # This must be in double quotes, not single quotes, because CPP may get
2891 # substituted into the Makefile and "${CC-cc}" will confuse make.
2893 # On the NeXT, cc -E runs the code through the compiler's parser,
2894 # not just through cpp.
2895 cat > conftest.$ac_ext <<EOF
2896 #line 2897 "configure
"
2897 #include "confdefs.h
"
2901 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
2902 { (eval echo configure:2903: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2903 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
2904 if test -z "$ac_err"; then
2908 echo "configure
: failed program was
:" >&5
2909 cat conftest.$ac_ext >&5
2911 CPP="${CC-cc} -E -traditional-cpp"
2912 cat > conftest.$ac_ext <<EOF
2913 #line 2914 "configure
"
2914 #include "confdefs.h
"
2918 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
2919 { (eval echo configure:2920: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2920 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
2921 if test -z "$ac_err"; then
2925 echo "configure
: failed program was
:" >&5
2926 cat conftest.$ac_ext >&5
2928 CPP="${CC-cc} -nologo -E"
2929 cat > conftest.$ac_ext <<EOF
2930 #line 2931 "configure
"
2931 #include "confdefs.h
"
2935 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
2936 { (eval echo configure:2937: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2937 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
2938 if test -z "$ac_err"; then
2942 echo "configure
: failed program was
:" >&5
2943 cat conftest.$ac_ext >&5
2952 ac_cv_prog_CPP="$CPP"
2954 CPP="$ac_cv_prog_CPP"
2956 ac_cv_prog_CPP="$CPP"
2958 echo "$ac_t""$CPP" 1>&6
2960 cat > conftest.$ac_ext <<EOF
2961 #line 2962 "configure
"
2962 #include "confdefs.h
"
2965 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
2966 egrep "uint32_t
" >/dev/null 2>&1; then
2968 cat >> confdefs.h <<\EOF
2969 #define HAVE_INT32_DEFINED 1
2975 cat > conftest.$ac_ext <<EOF
2976 #line 2977 "configure
"
2977 #include "confdefs.h
"
2978 #include <inttypes.h>
2980 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
2981 egrep "uint32_t
" >/dev/null 2>&1; then
2983 cat >> confdefs.h <<\EOF
2984 #define HAVE_INT32_DEFINED 1
2990 cat > conftest.$ac_ext <<EOF
2991 #line 2992 "configure
"
2992 #include "confdefs.h
"
2993 #include <sys/types.h>
2995 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
2996 egrep "u_int32_t
" >/dev/null 2>&1; then
2998 cat >> confdefs.h <<\EOF
2999 #define HAVE_BSD_INT32_DEFINED 1
3005 cat > conftest.$ac_ext <<EOF
3006 #line 3007 "configure
"
3007 #include "confdefs.h
"
3008 #include <sys/config.h>
3010 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3011 egrep "u_int32_t
" >/dev/null 2>&1; then
3013 cat >> confdefs.h <<\EOF
3014 #define HAVE_BSD_INT32_DEFINED 1
3022 cat > conftest.$ac_ext <<EOF
3023 #line 3024 "configure
"
3024 #include "confdefs.h
"
3027 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3028 egrep "mktime
" >/dev/null 2>&1; then
3030 cat >> confdefs.h <<\EOF
3031 #define HAVE_MKTIME 1
3037 cat > conftest.$ac_ext <<EOF
3038 #line 3039 "configure
"
3039 #include "confdefs.h
"
3042 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3043 egrep "localtime
" >/dev/null 2>&1; then
3045 cat >> confdefs.h <<\EOF
3046 #define HAVE_LOCALTIME 1
3053 test -d java || mkdir java
3054 test -d java/io || mkdir java/io
3055 test -d gnu || mkdir gnu
3058 test -d java/lang || mkdir java/lang
3065 LIBGCJTESTSPEC="-L`pwd`/.libs
-rpath `pwd`/.libs
"
3068 # Check whether --with-system-zlib or --without-system-zlib was given.
3069 if test "${with_system_zlib+set}" = set; then
3070 withval="$with_system_zlib"
3081 echo $ac_n "checking
for garbage collector to use
""...
$ac_c" 1>&6
3082 echo "configure
:3083: checking
for garbage collector to use
" >&5
3083 # Check whether --enable-java-gc or --disable-java-gc was given.
3084 if test "${enable_java_gc+set}" = set; then
3085 enableval="$enable_java_gc"
3101 echo "$ac_t""boehm
" 1>&6
3102 GCDEPS='$(top_builddir)/../boehm-gc/libgcjgc.la'
3103 # We include the path to the boehm-gc build directory.
3104 # See Makefile.am to understand why.
3105 GCLIBS="$GCDEPS -L\$
(here
)/..
/boehm-gc
/$libsubdir"
3106 GCINCS='-I$(top_srcdir)/../boehm-gc/include'
3108 JC1GCSPEC='-fuse-boehm-gc'
3109 GCTESTSPEC="-L`pwd`/..
/boehm-gc
/.libs
-rpath `pwd`/..
/boehm-gc
/.libs
"
3110 GCINCS="$GCINCS `cat ../boehm-gc/boehm-cflags`"
3113 cat >> confdefs.h <<\EOF
3114 #define HAVE_BOEHM_GC 1
3119 echo "$ac_t""none
" 1>&6
3124 { echo "configure
: error
: unrecognized collector
\"$GC\"" 1>&2; exit 1; }
3137 echo $ac_n "checking
for thread model used by GCC
""...
$ac_c" 1>&6
3138 echo "configure
:3139: checking
for thread model used by GCC
" >&5
3139 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3140 echo "$ac_t""$THREADS" 1>&6
3150 cat >> confdefs.h <<\EOF
3151 #define LINUX_THREADS 1
3157 decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks)
3158 { echo "configure
: error
: thread package
$THREADS not yet supported
" 1>&2; exit 1; }
3161 { echo "configure
: error
: $THREADS is an unknown thread package
" 1>&2; exit 1; }
3175 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
3180 # Before FreeBSD 5, it didn't have -lpthread (or any library which
3181 # merely adds pthread_* functions) but it does have a -pthread switch
3182 # which is required at link-time to select -lc_r *instead* of -lc.
3184 # Don't set THREADSPEC here as might be expected since -pthread is
3185 # not processed when found within a spec file, it must come from
3186 # the command line. For now, the user must provide the -pthread
3187 # switch to link code compiled with gcj. In future, consider adding
3188 # support for weak references to pthread_* functions ala gthr.h API.
3189 THREADSPEC='%{!pthread: %eUnder this configuration, the user must provide -pthread when linking.}'
3192 # FreeBSD 5 implements a model much closer to other modern UNIX
3193 # which support threads. However, it still does not support
3199 THREADLIBS=-lpthread
3200 THREADSPEC=-lpthread
3203 THREADOBJS=posix-threads.lo
3204 THREADH=posix-threads.h
3205 # MIT pthreads doesn't seem to have the mutexattr functions.
3206 # But for now we don't check for it. We just assume you aren't
3207 # using MIT pthreads.
3208 cat >> confdefs.h <<\EOF
3209 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
3213 # If we're using the Boehm GC, then we happen to know that it
3214 # defines _REENTRANT, so we don't bother. Eww.
3215 if test "$GC" != boehm; then
3216 cat >> confdefs.h <<\EOF
3217 #define _REENTRANT 1
3221 cat >> confdefs.h <<\EOF
3222 #define _POSIX_PTHREAD_SEMANTICS 1
3228 THREADOBJS=no-threads.lo
3229 THREADH=no-threads.h
3240 # Hash synchronization is only useful with posix threads right now.
3241 if test "$enable_hash_synchronization" = yes && test "$THREADS" = "posix
"; then
3242 HASH_SYNC_SPEC=-fhash-synchronization
3243 cat >> confdefs.h <<\EOF
3244 #define JV_HASH_SYNCHRONIZATION 1
3253 if test "$GCC" = yes; then
3265 # We're in the tree with gcc, and need to include some of its headers.
3266 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
3268 if test -n "${with_cross_host}"; then
3269 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
3270 # may not work correctly, because the compiler may not be able to
3273 # We assume newlib. This lets us hard-code the functions we know
3275 cat >> confdefs.h <<\EOF
3276 #define HAVE_MEMMOVE 1
3279 cat >> confdefs.h <<\EOF
3280 #define HAVE_MEMCPY 1
3283 cat >> confdefs.h <<\EOF
3284 #define HAVE_STRERROR 1
3287 cat >> confdefs.h <<\EOF
3288 #define HAVE_GMTIME_R 1
3291 cat >> confdefs.h <<\EOF
3292 #define HAVE_LOCALTIME_R 1
3295 cat >> confdefs.h <<\EOF
3296 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
3299 cat >> confdefs.h <<\EOF
3300 #define HAVE_ALLOCA 1
3304 cat >> confdefs.h <<\EOF
3310 ZLIBTESTSPEC="-L`pwd`/..
/zlib
/.libs
-rpath `pwd`/..
/zlib
/.libs
"
3312 # If Canadian cross, then don't pick up tools from the build
3314 if test x"$build" != x"$with_cross_host" && x"$build" != x"$target"; then
3317 GCJ="${target_alias}-gcj"
3321 for ac_func in strerror ioctl select fstat open fsync sleep
3323 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
3324 echo "configure
:3325: checking
for $ac_func" >&5
3325 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3326 echo $ac_n "(cached
) $ac_c" 1>&6
3328 cat > conftest.$ac_ext <<EOF
3329 #line 3330 "configure
"
3330 #include "confdefs.h
"
3331 /* System header to define __stub macros and hopefully few prototypes,
3332 which can conflict with char $ac_func(); below. */
3334 /* Override any gcc2 internal prototype to avoid an error. */
3335 /* We use char because int might match the return type of a gcc2
3336 builtin and then its argument prototype would still apply. */
3341 /* The GNU C library defines this for functions which it implements
3342 to always fail with ENOSYS. Some functions are actually named
3343 something starting with __ and the normal name is an alias. */
3344 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3352 if { (eval echo configure:3353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3354 eval "ac_cv_func_
$ac_func=yes"
3356 echo "configure
: failed program was
:" >&5
3357 cat conftest.$ac_ext >&5
3359 eval "ac_cv_func_
$ac_func=no
"
3364 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3365 echo "$ac_t""yes" 1>&6
3366 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3367 cat >> confdefs.h <<EOF
3368 #define $ac_tr_func 1
3372 echo "$ac_t""no
" 1>&6
3376 for ac_func in gmtime_r localtime_r readdir_r getpwuid_r getcwd
3378 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
3379 echo "configure
:3380: checking
for $ac_func" >&5
3380 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3381 echo $ac_n "(cached
) $ac_c" 1>&6
3383 cat > conftest.$ac_ext <<EOF
3384 #line 3385 "configure
"
3385 #include "confdefs.h
"
3386 /* System header to define __stub macros and hopefully few prototypes,
3387 which can conflict with char $ac_func(); below. */
3389 /* Override any gcc2 internal prototype to avoid an error. */
3390 /* We use char because int might match the return type of a gcc2
3391 builtin and then its argument prototype would still apply. */
3396 /* The GNU C library defines this for functions which it implements
3397 to always fail with ENOSYS. Some functions are actually named
3398 something starting with __ and the normal name is an alias. */
3399 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3407 if { (eval echo configure:3408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3409 eval "ac_cv_func_
$ac_func=yes"
3411 echo "configure
: failed program was
:" >&5
3412 cat conftest.$ac_ext >&5
3414 eval "ac_cv_func_
$ac_func=no
"
3419 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3420 echo "$ac_t""yes" 1>&6
3421 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3422 cat >> confdefs.h <<EOF
3423 #define $ac_tr_func 1
3427 echo "$ac_t""no
" 1>&6
3431 for ac_func in access stat mkdir rename rmdir unlink realpath utime chmod
3433 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
3434 echo "configure
:3435: checking
for $ac_func" >&5
3435 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3436 echo $ac_n "(cached
) $ac_c" 1>&6
3438 cat > conftest.$ac_ext <<EOF
3439 #line 3440 "configure
"
3440 #include "confdefs.h
"
3441 /* System header to define __stub macros and hopefully few prototypes,
3442 which can conflict with char $ac_func(); below. */
3444 /* Override any gcc2 internal prototype to avoid an error. */
3445 /* We use char because int might match the return type of a gcc2
3446 builtin and then its argument prototype would still apply. */
3451 /* The GNU C library defines this for functions which it implements
3452 to always fail with ENOSYS. Some functions are actually named
3453 something starting with __ and the normal name is an alias. */
3454 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3462 if { (eval echo configure:3463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3464 eval "ac_cv_func_
$ac_func=yes"
3466 echo "configure
: failed program was
:" >&5
3467 cat conftest.$ac_ext >&5
3469 eval "ac_cv_func_
$ac_func=no
"
3474 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3475 echo "$ac_t""yes" 1>&6
3476 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3477 cat >> confdefs.h <<EOF
3478 #define $ac_tr_func 1
3482 echo "$ac_t""no
" 1>&6
3486 for ac_func in nl_langinfo setlocale
3488 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
3489 echo "configure
:3490: checking
for $ac_func" >&5
3490 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3491 echo $ac_n "(cached
) $ac_c" 1>&6
3493 cat > conftest.$ac_ext <<EOF
3494 #line 3495 "configure
"
3495 #include "confdefs.h
"
3496 /* System header to define __stub macros and hopefully few prototypes,
3497 which can conflict with char $ac_func(); below. */
3499 /* Override any gcc2 internal prototype to avoid an error. */
3500 /* We use char because int might match the return type of a gcc2
3501 builtin and then its argument prototype would still apply. */
3506 /* The GNU C library defines this for functions which it implements
3507 to always fail with ENOSYS. Some functions are actually named
3508 something starting with __ and the normal name is an alias. */
3509 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3517 if { (eval echo configure:3518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3519 eval "ac_cv_func_
$ac_func=yes"
3521 echo "configure
: failed program was
:" >&5
3522 cat conftest.$ac_ext >&5
3524 eval "ac_cv_func_
$ac_func=no
"
3529 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3530 echo "$ac_t""yes" 1>&6
3531 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3532 cat >> confdefs.h <<EOF
3533 #define $ac_tr_func 1
3537 echo "$ac_t""no
" 1>&6
3541 for ac_func in inet_aton inet_addr
3543 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
3544 echo "configure
:3545: checking
for $ac_func" >&5
3545 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3546 echo $ac_n "(cached
) $ac_c" 1>&6
3548 cat > conftest.$ac_ext <<EOF
3549 #line 3550 "configure
"
3550 #include "confdefs.h
"
3551 /* System header to define __stub macros and hopefully few prototypes,
3552 which can conflict with char $ac_func(); below. */
3554 /* Override any gcc2 internal prototype to avoid an error. */
3555 /* We use char because int might match the return type of a gcc2
3556 builtin and then its argument prototype would still apply. */
3561 /* The GNU C library defines this for functions which it implements
3562 to always fail with ENOSYS. Some functions are actually named
3563 something starting with __ and the normal name is an alias. */
3564 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3572 if { (eval echo configure:3573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3574 eval "ac_cv_func_
$ac_func=yes"
3576 echo "configure
: failed program was
:" >&5
3577 cat conftest.$ac_ext >&5
3579 eval "ac_cv_func_
$ac_func=no
"
3584 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3585 echo "$ac_t""yes" 1>&6
3586 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3587 cat >> confdefs.h <<EOF
3588 #define $ac_tr_func 1
3592 echo "$ac_t""no
" 1>&6
3596 for ac_func in inet_pton uname inet_ntoa
3598 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
3599 echo "configure
:3600: checking
for $ac_func" >&5
3600 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3601 echo $ac_n "(cached
) $ac_c" 1>&6
3603 cat > conftest.$ac_ext <<EOF
3604 #line 3605 "configure
"
3605 #include "confdefs.h
"
3606 /* System header to define __stub macros and hopefully few prototypes,
3607 which can conflict with char $ac_func(); below. */
3609 /* Override any gcc2 internal prototype to avoid an error. */
3610 /* We use char because int might match the return type of a gcc2
3611 builtin and then its argument prototype would still apply. */
3616 /* The GNU C library defines this for functions which it implements
3617 to always fail with ENOSYS. Some functions are actually named
3618 something starting with __ and the normal name is an alias. */
3619 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3627 if { (eval echo configure:3628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3629 eval "ac_cv_func_
$ac_func=yes"
3631 echo "configure
: failed program was
:" >&5
3632 cat conftest.$ac_ext >&5
3634 eval "ac_cv_func_
$ac_func=no
"
3639 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3640 echo "$ac_t""yes" 1>&6
3641 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3642 cat >> confdefs.h <<EOF
3643 #define $ac_tr_func 1
3647 echo "$ac_t""no
" 1>&6
3651 for ac_func in backtrace fork execvp pipe sigaction
3653 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
3654 echo "configure
:3655: checking
for $ac_func" >&5
3655 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3656 echo $ac_n "(cached
) $ac_c" 1>&6
3658 cat > conftest.$ac_ext <<EOF
3659 #line 3660 "configure
"
3660 #include "confdefs.h
"
3661 /* System header to define __stub macros and hopefully few prototypes,
3662 which can conflict with char $ac_func(); below. */
3664 /* Override any gcc2 internal prototype to avoid an error. */
3665 /* We use char because int might match the return type of a gcc2
3666 builtin and then its argument prototype would still apply. */
3671 /* The GNU C library defines this for functions which it implements
3672 to always fail with ENOSYS. Some functions are actually named
3673 something starting with __ and the normal name is an alias. */
3674 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3682 if { (eval echo configure:3683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3684 eval "ac_cv_func_
$ac_func=yes"
3686 echo "configure
: failed program was
:" >&5
3687 cat conftest.$ac_ext >&5
3689 eval "ac_cv_func_
$ac_func=no
"
3694 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3695 echo "$ac_t""yes" 1>&6
3696 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3697 cat >> confdefs.h <<EOF
3698 #define $ac_tr_func 1
3702 echo "$ac_t""no
" 1>&6
3706 for ac_hdr in execinfo.h unistd.h dlfcn.h
3708 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3709 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
3710 echo "configure
:3711: checking
for $ac_hdr" >&5
3711 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3712 echo $ac_n "(cached
) $ac_c" 1>&6
3714 cat > conftest.$ac_ext <<EOF
3715 #line 3716 "configure
"
3716 #include "confdefs.h
"
3719 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
3720 { (eval echo configure:3721: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3721 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
3722 if test -z "$ac_err"; then
3724 eval "ac_cv_header_
$ac_safe=yes"
3727 echo "configure
: failed program was
:" >&5
3728 cat conftest.$ac_ext >&5
3730 eval "ac_cv_header_
$ac_safe=no
"
3734 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3735 echo "$ac_t""yes" 1>&6
3736 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3737 cat >> confdefs.h <<EOF
3738 #define $ac_tr_hdr 1
3742 echo "$ac_t""no
" 1>&6
3746 echo $ac_n "checking
for dladdr
in -ldl""...
$ac_c" 1>&6
3747 echo "configure
:3748: checking
for dladdr
in -ldl" >&5
3748 ac_lib_var=`echo dl'_'dladdr | sed 'y%./+-%__p_%'`
3749 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3750 echo $ac_n "(cached
) $ac_c" 1>&6
3752 ac_save_LIBS="$LIBS"
3754 cat > conftest.$ac_ext <<EOF
3755 #line 3756 "configure
"
3756 #include "confdefs.h
"
3757 /* Override any gcc2 internal prototype to avoid an error. */
3758 /* We use char because int might match the return type of a gcc2
3759 builtin and then its argument prototype would still apply. */
3766 if { (eval echo configure:3767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3768 eval "ac_cv_lib_
$ac_lib_var=yes"
3770 echo "configure
: failed program was
:" >&5
3771 cat conftest.$ac_ext >&5
3773 eval "ac_cv_lib_
$ac_lib_var=no
"
3776 LIBS="$ac_save_LIBS"
3779 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3780 echo "$ac_t""yes" 1>&6
3782 cat >> confdefs.h <<\EOF
3783 #define HAVE_DLADDR 1
3787 echo "$ac_t""no
" 1>&6
3790 for ac_file in /proc/self/exe
3793 ac_safe=`echo "$ac_file" | sed 'y%./+-%__p_%'`
3794 echo $ac_n "checking
for $ac_file""...
$ac_c" 1>&6
3795 echo "configure
:3796: checking
for $ac_file" >&5
3796 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
3797 echo $ac_n "(cached
) $ac_c" 1>&6
3799 if test "$cross_compiling" = yes; then
3800 { echo "configure
: error
: Cannot check
for file existence when cross compiling
" 1>&2; exit 1; }
3802 if test -r $ac_file; then
3803 eval "ac_cv_file_
$ac_safe=yes"
3805 eval "ac_cv_file_
$ac_safe=no
"
3809 if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
3810 echo "$ac_t""yes" 1>&6
3811 ac_tr_file=HAVE_`echo $ac_file | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3812 cat >> confdefs.h <<EOF
3813 #define $ac_tr_file 1
3816 cat >> confdefs.h <<\EOF
3817 #define HAVE_PROC_SELF_EXE 1
3821 echo "$ac_t""no
" 1>&6
3829 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
3830 if test "${with_libiconv_prefix+set}" = set; then
3831 withval="$with_libiconv_prefix"
3833 for dir in `echo "$withval" | tr : ' '`; do
3834 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include
"; fi
3835 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib
"; fi
3841 echo $ac_n "checking
for iconv""...
$ac_c" 1>&6
3842 echo "configure
:3843: checking
for iconv" >&5
3843 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
3844 echo $ac_n "(cached
) $ac_c" 1>&6
3847 am_cv_func_iconv="no
, consider installing GNU libiconv
"
3849 cat > conftest.$ac_ext <<EOF
3850 #line 3851 "configure
"
3851 #include "confdefs.h
"
3855 iconv_t cd = iconv_open("","");
3856 iconv(cd,NULL,NULL,NULL,NULL);
3860 if { (eval echo configure:3861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3862 am_cv_func_iconv=yes
3864 echo "configure
: failed program was
:" >&5
3865 cat conftest.$ac_ext >&5
3868 if test "$am_cv_func_iconv" != yes; then
3869 am_save_LIBS="$LIBS"
3870 LIBS="$LIBS -liconv"
3871 cat > conftest.$ac_ext <<EOF
3872 #line 3873 "configure
"
3873 #include "confdefs.h
"
3877 iconv_t cd = iconv_open("","");
3878 iconv(cd,NULL,NULL,NULL,NULL);
3882 if { (eval echo configure:3883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3885 am_cv_func_iconv=yes
3887 echo "configure
: failed program was
:" >&5
3888 cat conftest.$ac_ext >&5
3891 LIBS="$am_save_LIBS"
3896 echo "$ac_t""$am_cv_func_iconv" 1>&6
3897 if test "$am_cv_func_iconv" = yes; then
3898 cat >> confdefs.h <<\EOF
3899 #define HAVE_ICONV 1
3902 echo $ac_n "checking
for iconv declaration
""...
$ac_c" 1>&6
3903 echo "configure
:3904: checking
for iconv declaration
" >&5
3904 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
3905 echo $ac_n "(cached
) $ac_c" 1>&6
3908 cat > conftest.$ac_ext <<EOF
3909 #line 3910 "configure
"
3910 #include "confdefs.h
"
3918 #if defined(__STDC__) || defined(__cplusplus)
3919 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
3928 if { (eval echo configure:3929: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3930 am_cv_proto_iconv_arg1=""
3932 echo "configure
: failed program was
:" >&5
3933 cat conftest.$ac_ext >&5
3935 am_cv_proto_iconv_arg1="const
"
3938 am_cv_proto_iconv="extern size_t
iconv (iconv_t
cd, $am_cv_proto_iconv_arg1 char
* *inbuf
, size_t
*inbytesleft
, char
* *outbuf
, size_t
*outbytesleft
);"
3941 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
3942 echo "$ac_t""$
{ac_t
:-
3943 }$am_cv_proto_iconv" 1>&6
3944 cat >> confdefs.h <<EOF
3945 #define ICONV_CONST $am_cv_proto_iconv_arg1
3950 if test "$am_cv_lib_iconv" = yes; then
3955 echo $ac_n "checking whether struct tm is
in sys
/time.h or
time.h
""...
$ac_c" 1>&6
3956 echo "configure
:3957: checking whether struct tm is
in sys
/time.h or
time.h
" >&5
3957 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
3958 echo $ac_n "(cached
) $ac_c" 1>&6
3960 cat > conftest.$ac_ext <<EOF
3961 #line 3962 "configure
"
3962 #include "confdefs.h
"
3963 #include <sys/types.h>
3966 struct tm *tp; tp->tm_sec;
3969 if { (eval echo configure:3970: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3971 ac_cv_struct_tm=time.h
3973 echo "configure
: failed program was
:" >&5
3974 cat conftest.$ac_ext >&5
3976 ac_cv_struct_tm=sys/time.h
3981 echo "$ac_t""$ac_cv_struct_tm" 1>&6
3982 if test $ac_cv_struct_tm = sys/time.h; then
3983 cat >> confdefs.h <<\EOF
3984 #define TM_IN_SYS_TIME 1
3989 echo $ac_n "checking
for tm_zone
in struct tm
""...
$ac_c" 1>&6
3990 echo "configure
:3991: checking
for tm_zone
in struct tm
" >&5
3991 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
3992 echo $ac_n "(cached
) $ac_c" 1>&6
3994 cat > conftest.$ac_ext <<EOF
3995 #line 3996 "configure
"
3996 #include "confdefs.h
"
3997 #include <sys/types.h>
3998 #include <$ac_cv_struct_tm>
4000 struct tm tm; tm.tm_zone;
4003 if { (eval echo configure:4004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4005 ac_cv_struct_tm_zone=yes
4007 echo "configure
: failed program was
:" >&5
4008 cat conftest.$ac_ext >&5
4010 ac_cv_struct_tm_zone=no
4015 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
4016 if test "$ac_cv_struct_tm_zone" = yes; then
4017 cat >> confdefs.h <<\EOF
4018 #define HAVE_TM_ZONE 1
4022 echo $ac_n "checking
for tzname
""...
$ac_c" 1>&6
4023 echo "configure
:4024: checking
for tzname
" >&5
4024 if eval "test \"`echo '$''{'ac_cv_var_tzname'+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
"
4031 #ifndef tzname /* For SGI. */
4032 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4038 if { (eval echo configure:4039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4040 ac_cv_var_tzname=yes
4042 echo "configure
: failed program was
:" >&5
4043 cat conftest.$ac_ext >&5
4050 echo "$ac_t""$ac_cv_var_tzname" 1>&6
4051 if test $ac_cv_var_tzname = yes; then
4052 cat >> confdefs.h <<\EOF
4053 #define HAVE_TZNAME 1
4060 for ac_func in gethostbyname_r
4062 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4063 echo "configure
:4064: checking
for $ac_func" >&5
4064 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4065 echo $ac_n "(cached
) $ac_c" 1>&6
4067 cat > conftest.$ac_ext <<EOF
4068 #line 4069 "configure
"
4069 #include "confdefs.h
"
4070 /* System header to define __stub macros and hopefully few prototypes,
4071 which can conflict with char $ac_func(); below. */
4073 /* Override any gcc2 internal prototype to avoid an error. */
4074 /* We use char because int might match the return type of a gcc2
4075 builtin and then its argument prototype would still apply. */
4080 /* The GNU C library defines this for functions which it implements
4081 to always fail with ENOSYS. Some functions are actually named
4082 something starting with __ and the normal name is an alias. */
4083 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4091 if { (eval echo configure:4092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4093 eval "ac_cv_func_
$ac_func=yes"
4095 echo "configure
: failed program was
:" >&5
4096 cat conftest.$ac_ext >&5
4098 eval "ac_cv_func_
$ac_func=no
"
4103 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4104 echo "$ac_t""yes" 1>&6
4105 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4106 cat >> confdefs.h <<EOF
4107 #define $ac_tr_func 1
4110 cat >> confdefs.h <<\EOF
4111 #define HAVE_GETHOSTBYNAME_R 1
4114 # There are two different kinds of gethostbyname_r.
4115 # We look for the one that returns `int'.
4116 # Hopefully this check is robust enough.
4117 cat > conftest.$ac_ext <<EOF
4118 #line 4119 "configure
"
4119 #include "confdefs.h
"
4122 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
4123 egrep "int.
*gethostbyname_r
" >/dev/null 2>&1; then
4126 cat >> confdefs.h <<\EOF
4127 #define GETHOSTBYNAME_R_RETURNS_INT 1
4135 *" -D_REENTRANT "*) ;;
4137 echo $ac_n "checking whether gethostbyname_r declaration requires
-D_REENTRANT""...
$ac_c" 1>&6
4138 echo "configure
:4139: checking whether gethostbyname_r declaration requires
-D_REENTRANT" >&5
4139 if eval "test \"`echo '$''{'libjava_cv_gethostbyname_r_needs_reentrant'+set}'`\" = set"; then
4140 echo $ac_n "(cached
) $ac_c" 1>&6
4144 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4145 ac_cpp='$CXXCPP $CPPFLAGS'
4146 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4147 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4148 cross_compiling=$ac_cv_prog_cxx_cross
4150 cat > conftest.$ac_ext <<EOF
4151 #line 4152 "configure
"
4152 #include "confdefs.h
"
4155 gethostbyname_r("", 0, 0);
4158 if { (eval echo configure:4159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4160 libjava_cv_gethostbyname_r_needs_reentrant=no
4162 echo "configure
: failed program was
:" >&5
4163 cat conftest.$ac_ext >&5
4165 CPPFLAGS_SAVE="$CPPFLAGS"
4166 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
4167 cat > conftest.$ac_ext <<EOF
4168 #line 4169 "configure
"
4169 #include "confdefs.h
"
4172 gethostbyname_r("", 0, 0);
4175 if { (eval echo configure:4176: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4177 libjava_cv_gethostbyname_r_needs_reentrant=yes
4179 echo "configure
: failed program was
:" >&5
4180 cat conftest.$ac_ext >&5
4182 libjava_cv_gethostbyname_r_needs_reentrant=fail
4185 CPPFLAGS="$CPPFLAGS_SAVE"
4190 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4191 ac_cpp='$CPP $CPPFLAGS'
4192 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4193 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4194 cross_compiling=$ac_cv_prog_cc_cross
4199 echo "$ac_t""$libjava_cv_gethostbyname_r_needs_reentrant" 1>&6
4200 if test "x
$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
4201 cat >> confdefs.h <<\EOF
4202 #define _REENTRANT 1
4209 echo $ac_n "checking
for struct hostent_data
""...
$ac_c" 1>&6
4210 echo "configure
:4211: checking
for struct hostent_data
" >&5
4211 if eval "test \"`echo '$''{'libjava_cv_struct_hostent_data'+set}'`\" = set"; then
4212 echo $ac_n "(cached
) $ac_c" 1>&6
4214 cat > conftest.$ac_ext <<EOF
4215 #line 4216 "configure
"
4216 #include "confdefs.h
"
4218 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
4219 # define _REENTRANT 1
4223 struct hostent_data data;
4226 if { (eval echo configure:4227: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4228 libjava_cv_struct_hostent_data=yes
4230 echo "configure
: failed program was
:" >&5
4231 cat conftest.$ac_ext >&5
4233 libjava_cv_struct_hostent_data=no
4238 echo "$ac_t""$libjava_cv_struct_hostent_data" 1>&6
4239 if test "x
$libjava_cv_struct_hostent_data" = xyes; then
4240 cat >> confdefs.h <<\EOF
4241 #define HAVE_STRUCT_HOSTENT_DATA 1
4247 echo "$ac_t""no
" 1>&6
4252 # FIXME: libjava source code expects to find a prototype for
4253 # gethostbyaddr_r in netdb.h. The outer check ensures that
4254 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
4255 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
4256 # linkage check is enough, yet C++ code requires proper prototypes.)
4257 cat > conftest.$ac_ext <<EOF
4258 #line 4259 "configure
"
4259 #include "confdefs.h
"
4262 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
4263 egrep "gethostbyaddr_r
" >/dev/null 2>&1; then
4266 for ac_func in gethostbyaddr_r
4268 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4269 echo "configure
:4270: checking
for $ac_func" >&5
4270 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4271 echo $ac_n "(cached
) $ac_c" 1>&6
4273 cat > conftest.$ac_ext <<EOF
4274 #line 4275 "configure
"
4275 #include "confdefs.h
"
4276 /* System header to define __stub macros and hopefully few prototypes,
4277 which can conflict with char $ac_func(); below. */
4279 /* Override any gcc2 internal prototype to avoid an error. */
4280 /* We use char because int might match the return type of a gcc2
4281 builtin and then its argument prototype would still apply. */
4286 /* The GNU C library defines this for functions which it implements
4287 to always fail with ENOSYS. Some functions are actually named
4288 something starting with __ and the normal name is an alias. */
4289 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4297 if { (eval echo configure:4298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4299 eval "ac_cv_func_
$ac_func=yes"
4301 echo "configure
: failed program was
:" >&5
4302 cat conftest.$ac_ext >&5
4304 eval "ac_cv_func_
$ac_func=no
"
4309 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4310 echo "$ac_t""yes" 1>&6
4311 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4312 cat >> confdefs.h <<EOF
4313 #define $ac_tr_func 1
4316 cat >> confdefs.h <<\EOF
4317 #define HAVE_GETHOSTBYADDR_R 1
4320 # There are two different kinds of gethostbyaddr_r.
4321 # We look for the one that returns `int'.
4322 # Hopefully this check is robust enough.
4323 cat > conftest.$ac_ext <<EOF
4324 #line 4325 "configure
"
4325 #include "confdefs.h
"
4328 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
4329 egrep "int.
*gethostbyaddr_r
" >/dev/null 2>&1; then
4332 cat >> confdefs.h <<\EOF
4333 #define GETHOSTBYADDR_R_RETURNS_INT 1
4340 echo "$ac_t""no
" 1>&6
4348 for ac_func in gethostname
4350 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4351 echo "configure
:4352: checking
for $ac_func" >&5
4352 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4353 echo $ac_n "(cached
) $ac_c" 1>&6
4355 cat > conftest.$ac_ext <<EOF
4356 #line 4357 "configure
"
4357 #include "confdefs.h
"
4358 /* System header to define __stub macros and hopefully few prototypes,
4359 which can conflict with char $ac_func(); below. */
4361 /* Override any gcc2 internal prototype to avoid an error. */
4362 /* We use char because int might match the return type of a gcc2
4363 builtin and then its argument prototype would still apply. */
4368 /* The GNU C library defines this for functions which it implements
4369 to always fail with ENOSYS. Some functions are actually named
4370 something starting with __ and the normal name is an alias. */
4371 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4379 if { (eval echo configure:4380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4381 eval "ac_cv_func_
$ac_func=yes"
4383 echo "configure
: failed program was
:" >&5
4384 cat conftest.$ac_ext >&5
4386 eval "ac_cv_func_
$ac_func=no
"
4391 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4392 echo "$ac_t""yes" 1>&6
4393 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4394 cat >> confdefs.h <<EOF
4395 #define $ac_tr_func 1
4398 cat >> confdefs.h <<\EOF
4399 #define HAVE_GETHOSTNAME 1
4402 cat > conftest.$ac_ext <<EOF
4403 #line 4404 "configure
"
4404 #include "confdefs.h
"
4407 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
4408 egrep "gethostname
" >/dev/null 2>&1; then
4411 cat >> confdefs.h <<\EOF
4412 #define HAVE_GETHOSTNAME_DECL 1
4419 echo "$ac_t""no
" 1>&6
4424 # Look for these functions in the thread library, but only bother
4425 # if using POSIX threads.
4426 if test "$THREADS" = posix; then
4428 LIBS="$LIBS $THREADLIBS"
4429 # Some POSIX thread systems don't have pthread_mutexattr_settype.
4431 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
4433 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4434 echo "configure
:4435: checking
for $ac_func" >&5
4435 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4436 echo $ac_n "(cached
) $ac_c" 1>&6
4438 cat > conftest.$ac_ext <<EOF
4439 #line 4440 "configure
"
4440 #include "confdefs.h
"
4441 /* System header to define __stub macros and hopefully few prototypes,
4442 which can conflict with char $ac_func(); below. */
4444 /* Override any gcc2 internal prototype to avoid an error. */
4445 /* We use char because int might match the return type of a gcc2
4446 builtin and then its argument prototype would still apply. */
4451 /* The GNU C library defines this for functions which it implements
4452 to always fail with ENOSYS. Some functions are actually named
4453 something starting with __ and the normal name is an alias. */
4454 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4462 if { (eval echo configure:4463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4464 eval "ac_cv_func_
$ac_func=yes"
4466 echo "configure
: failed program was
:" >&5
4467 cat conftest.$ac_ext >&5
4469 eval "ac_cv_func_
$ac_func=no
"
4474 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4475 echo "$ac_t""yes" 1>&6
4476 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4477 cat >> confdefs.h <<EOF
4478 #define $ac_tr_func 1
4482 echo "$ac_t""no
" 1>&6
4487 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
4488 # Solaris 7 the name librt is preferred.
4489 for ac_func in sched_yield
4491 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4492 echo "configure
:4493: checking
for $ac_func" >&5
4493 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4494 echo $ac_n "(cached
) $ac_c" 1>&6
4496 cat > conftest.$ac_ext <<EOF
4497 #line 4498 "configure
"
4498 #include "confdefs.h
"
4499 /* System header to define __stub macros and hopefully few prototypes,
4500 which can conflict with char $ac_func(); below. */
4502 /* Override any gcc2 internal prototype to avoid an error. */
4503 /* We use char because int might match the return type of a gcc2
4504 builtin and then its argument prototype would still apply. */
4509 /* The GNU C library defines this for functions which it implements
4510 to always fail with ENOSYS. Some functions are actually named
4511 something starting with __ and the normal name is an alias. */
4512 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4520 if { (eval echo configure:4521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4522 eval "ac_cv_func_
$ac_func=yes"
4524 echo "configure
: failed program was
:" >&5
4525 cat conftest.$ac_ext >&5
4527 eval "ac_cv_func_
$ac_func=no
"
4532 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4533 echo "$ac_t""yes" 1>&6
4534 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4535 cat >> confdefs.h <<EOF
4536 #define $ac_tr_func 1
4540 echo "$ac_t""no
" 1>&6
4541 echo $ac_n "checking
for sched_yield
in -lrt""...
$ac_c" 1>&6
4542 echo "configure
:4543: checking
for sched_yield
in -lrt" >&5
4543 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
4544 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4545 echo $ac_n "(cached
) $ac_c" 1>&6
4547 ac_save_LIBS="$LIBS"
4549 cat > conftest.$ac_ext <<EOF
4550 #line 4551 "configure
"
4551 #include "confdefs.h
"
4552 /* Override any gcc2 internal prototype to avoid an error. */
4553 /* We use char because int might match the return type of a gcc2
4554 builtin and then its argument prototype would still apply. */
4561 if { (eval echo configure:4562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4563 eval "ac_cv_lib_
$ac_lib_var=yes"
4565 echo "configure
: failed program was
:" >&5
4566 cat conftest.$ac_ext >&5
4568 eval "ac_cv_lib_
$ac_lib_var=no
"
4571 LIBS="$ac_save_LIBS"
4574 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4575 echo "$ac_t""yes" 1>&6
4577 cat >> confdefs.h <<\EOF
4578 #define HAVE_SCHED_YIELD 1
4581 THREADLIBS="$THREADLIBS -lrt"
4582 THREADSPEC="$THREADSPEC -lrt"
4584 echo "$ac_t""no
" 1>&6
4586 echo $ac_n "checking
for sched_yield
in -lposix4""...
$ac_c" 1>&6
4587 echo "configure
:4588: checking
for sched_yield
in -lposix4" >&5
4588 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
4589 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4590 echo $ac_n "(cached
) $ac_c" 1>&6
4592 ac_save_LIBS="$LIBS"
4593 LIBS="-lposix4 $LIBS"
4594 cat > conftest.$ac_ext <<EOF
4595 #line 4596 "configure
"
4596 #include "confdefs.h
"
4597 /* Override any gcc2 internal prototype to avoid an error. */
4598 /* We use char because int might match the return type of a gcc2
4599 builtin and then its argument prototype would still apply. */
4606 if { (eval echo configure:4607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4608 eval "ac_cv_lib_
$ac_lib_var=yes"
4610 echo "configure
: failed program was
:" >&5
4611 cat conftest.$ac_ext >&5
4613 eval "ac_cv_lib_
$ac_lib_var=no
"
4616 LIBS="$ac_save_LIBS"
4619 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4620 echo "$ac_t""yes" 1>&6
4622 cat >> confdefs.h <<\EOF
4623 #define HAVE_SCHED_YIELD 1
4626 THREADLIBS="$THREADLIBS -lposix4"
4627 THREADSPEC="$THREADSPEC -lposix4"
4629 echo "$ac_t""no
" 1>&6
4639 # We can save a little space at runtime if the mutex has m_count
4640 # or __m_count. This is a nice hack for Linux.
4641 cat > conftest.$ac_ext <<EOF
4642 #line 4643 "configure
"
4643 #include "confdefs.h
"
4644 #include <pthread.h>
4647 extern pthread_mutex_t *mutex; int q = mutex->m_count;
4651 if { (eval echo configure:4652: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4653 cat >> confdefs.h <<\EOF
4654 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
4658 echo "configure
: failed program was
:" >&5
4659 cat conftest.$ac_ext >&5
4662 cat > conftest.$ac_ext <<EOF
4663 #line 4664 "configure
"
4664 #include "confdefs.h
"
4665 #include <pthread.h>
4668 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
4672 if { (eval echo configure:4673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4674 cat >> confdefs.h <<\EOF
4675 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
4679 echo "configure
: failed program was
:" >&5
4680 cat conftest.$ac_ext >&5
4687 # We require a way to get the time.
4689 for ac_func in gettimeofday time ftime
4691 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4692 echo "configure
:4693: checking
for $ac_func" >&5
4693 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4694 echo $ac_n "(cached
) $ac_c" 1>&6
4696 cat > conftest.$ac_ext <<EOF
4697 #line 4698 "configure
"
4698 #include "confdefs.h
"
4699 /* System header to define __stub macros and hopefully few prototypes,
4700 which can conflict with char $ac_func(); below. */
4702 /* Override any gcc2 internal prototype to avoid an error. */
4703 /* We use char because int might match the return type of a gcc2
4704 builtin and then its argument prototype would still apply. */
4709 /* The GNU C library defines this for functions which it implements
4710 to always fail with ENOSYS. Some functions are actually named
4711 something starting with __ and the normal name is an alias. */
4712 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4720 if { (eval echo configure:4721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4722 eval "ac_cv_func_
$ac_func=yes"
4724 echo "configure
: failed program was
:" >&5
4725 cat conftest.$ac_ext >&5
4727 eval "ac_cv_func_
$ac_func=no
"
4732 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4733 echo "$ac_t""yes" 1>&6
4734 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4735 cat >> confdefs.h <<EOF
4736 #define $ac_tr_func 1
4740 echo "$ac_t""no
" 1>&6
4744 if test "$time_found" = no; then
4745 { echo "configure
: error
: no
function found to get the
time" 1>&2; exit 1; }
4748 for ac_func in memmove
4750 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4751 echo "configure
:4752: checking
for $ac_func" >&5
4752 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4753 echo $ac_n "(cached
) $ac_c" 1>&6
4755 cat > conftest.$ac_ext <<EOF
4756 #line 4757 "configure
"
4757 #include "confdefs.h
"
4758 /* System header to define __stub macros and hopefully few prototypes,
4759 which can conflict with char $ac_func(); below. */
4761 /* Override any gcc2 internal prototype to avoid an error. */
4762 /* We use char because int might match the return type of a gcc2
4763 builtin and then its argument prototype would still apply. */
4768 /* The GNU C library defines this for functions which it implements
4769 to always fail with ENOSYS. Some functions are actually named
4770 something starting with __ and the normal name is an alias. */
4771 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4779 if { (eval echo configure:4780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4781 eval "ac_cv_func_
$ac_func=yes"
4783 echo "configure
: failed program was
:" >&5
4784 cat conftest.$ac_ext >&5
4786 eval "ac_cv_func_
$ac_func=no
"
4791 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4792 echo "$ac_t""yes" 1>&6
4793 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4794 cat >> confdefs.h <<EOF
4795 #define $ac_tr_func 1
4799 echo "$ac_t""no
" 1>&6
4804 # We require memcpy.
4806 for ac_func in memcpy
4808 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4809 echo "configure
:4810: checking
for $ac_func" >&5
4810 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4811 echo $ac_n "(cached
) $ac_c" 1>&6
4813 cat > conftest.$ac_ext <<EOF
4814 #line 4815 "configure
"
4815 #include "confdefs.h
"
4816 /* System header to define __stub macros and hopefully few prototypes,
4817 which can conflict with char $ac_func(); below. */
4819 /* Override any gcc2 internal prototype to avoid an error. */
4820 /* We use char because int might match the return type of a gcc2
4821 builtin and then its argument prototype would still apply. */
4826 /* The GNU C library defines this for functions which it implements
4827 to always fail with ENOSYS. Some functions are actually named
4828 something starting with __ and the normal name is an alias. */
4829 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4837 if { (eval echo configure:4838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4839 eval "ac_cv_func_
$ac_func=yes"
4841 echo "configure
: failed program was
:" >&5
4842 cat conftest.$ac_ext >&5
4844 eval "ac_cv_func_
$ac_func=no
"
4849 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4850 echo "$ac_t""yes" 1>&6
4851 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4852 cat >> confdefs.h <<EOF
4853 #define $ac_tr_func 1
4857 echo "$ac_t""no
" 1>&6
4861 if test "$memcpy_found" = no; then
4862 { echo "configure
: error
: memcpy is required
" 1>&2; exit 1; }
4865 echo $ac_n "checking
for dlopen
in -ldl""...
$ac_c" 1>&6
4866 echo "configure
:4867: checking
for dlopen
in -ldl" >&5
4867 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4868 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4869 echo $ac_n "(cached
) $ac_c" 1>&6
4871 ac_save_LIBS="$LIBS"
4873 cat > conftest.$ac_ext <<EOF
4874 #line 4875 "configure
"
4875 #include "confdefs.h
"
4876 /* Override any gcc2 internal prototype to avoid an error. */
4877 /* We use char because int might match the return type of a gcc2
4878 builtin and then its argument prototype would still apply. */
4885 if { (eval echo configure:4886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4887 eval "ac_cv_lib_
$ac_lib_var=yes"
4889 echo "configure
: failed program was
:" >&5
4890 cat conftest.$ac_ext >&5
4892 eval "ac_cv_lib_
$ac_lib_var=no
"
4895 LIBS="$ac_save_LIBS"
4898 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4899 echo "$ac_t""yes" 1>&6
4901 cat >> confdefs.h <<\EOF
4902 #define HAVE_DLOPEN 1
4906 echo "$ac_t""no
" 1>&6
4910 # Some library-finding code we stole from Tcl.
4911 #--------------------------------------------------------------------
4912 # Check for the existence of the -lsocket and -lnsl libraries.
4913 # The order here is important, so that they end up in the right
4914 # order in the command line generated by make. Here are some
4915 # special considerations:
4916 # 1. Use "connect
" and "accept
" to check for -lsocket, and
4917 # "gethostbyname
" to check for -lnsl.
4918 # 2. Use each function name only once: can't redo a check because
4919 # autoconf caches the results of the last check and won't redo it.
4920 # 3. Use -lnsl and -lsocket only if they supply procedures that
4921 # aren't already present in the normal libraries. This is because
4922 # IRIX 5.2 has libraries, but they aren't needed and they're
4923 # bogus: they goof up name resolution if used.
4924 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
4925 # To get around this problem, check for both libraries together
4926 # if -lsocket doesn't work by itself.
4927 #--------------------------------------------------------------------
4929 echo $ac_n "checking
for socket libraries
""...
$ac_c" 1>&6
4930 echo "configure
:4931: checking
for socket libraries
" >&5
4931 if eval "test \"`echo '$''{'gcj_cv_lib_sockets'+set}'`\" = set"; then
4932 echo $ac_n "(cached
) $ac_c" 1>&6
4936 unset ac_cv_func_connect
4937 echo $ac_n "checking
for connect
""...
$ac_c" 1>&6
4938 echo "configure
:4939: checking
for connect
" >&5
4939 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
4940 echo $ac_n "(cached
) $ac_c" 1>&6
4942 cat > conftest.$ac_ext <<EOF
4943 #line 4944 "configure
"
4944 #include "confdefs.h
"
4945 /* System header to define __stub macros and hopefully few prototypes,
4946 which can conflict with char connect(); below. */
4948 /* Override any gcc2 internal prototype to avoid an error. */
4949 /* We use char because int might match the return type of a gcc2
4950 builtin and then its argument prototype would still apply. */
4955 /* The GNU C library defines this for functions which it implements
4956 to always fail with ENOSYS. Some functions are actually named
4957 something starting with __ and the normal name is an alias. */
4958 #if defined (__stub_connect) || defined (__stub___connect)
4966 if { (eval echo configure:4967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4968 eval "ac_cv_func_connect
=yes"
4970 echo "configure
: failed program was
:" >&5
4971 cat conftest.$ac_ext >&5
4973 eval "ac_cv_func_connect
=no
"
4978 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
4979 echo "$ac_t""yes" 1>&6
4982 echo "$ac_t""no
" 1>&6
4986 if test "$gcj_checkSocket" = 1; then
4987 unset ac_cv_func_connect
4988 echo $ac_n "checking
for main
in -lsocket""...
$ac_c" 1>&6
4989 echo "configure
:4990: checking
for main
in -lsocket" >&5
4990 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
4991 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4992 echo $ac_n "(cached
) $ac_c" 1>&6
4994 ac_save_LIBS="$LIBS"
4995 LIBS="-lsocket $LIBS"
4996 cat > conftest.$ac_ext <<EOF
4997 #line 4998 "configure
"
4998 #include "confdefs.h
"
5004 if { (eval echo configure:5005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5006 eval "ac_cv_lib_
$ac_lib_var=yes"
5008 echo "configure
: failed program was
:" >&5
5009 cat conftest.$ac_ext >&5
5011 eval "ac_cv_lib_
$ac_lib_var=no
"
5014 LIBS="$ac_save_LIBS"
5017 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5018 echo "$ac_t""yes" 1>&6
5019 gcj_cv_lib_sockets="-lsocket"
5021 echo "$ac_t""no
" 1>&6
5026 if test "$gcj_checkBoth" = 1; then
5028 LIBS="$LIBS -lsocket -lnsl"
5029 unset ac_cv_func_accept
5030 echo $ac_n "checking
for accept
""...
$ac_c" 1>&6
5031 echo "configure
:5032: checking
for accept
" >&5
5032 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
5033 echo $ac_n "(cached
) $ac_c" 1>&6
5035 cat > conftest.$ac_ext <<EOF
5036 #line 5037 "configure
"
5037 #include "confdefs.h
"
5038 /* System header to define __stub macros and hopefully few prototypes,
5039 which can conflict with char accept(); below. */
5041 /* Override any gcc2 internal prototype to avoid an error. */
5042 /* We use char because int might match the return type of a gcc2
5043 builtin and then its argument prototype would still apply. */
5048 /* The GNU C library defines this for functions which it implements
5049 to always fail with ENOSYS. Some functions are actually named
5050 something starting with __ and the normal name is an alias. */
5051 #if defined (__stub_accept) || defined (__stub___accept)
5059 if { (eval echo configure:5060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5061 eval "ac_cv_func_accept
=yes"
5063 echo "configure
: failed program was
:" >&5
5064 cat conftest.$ac_ext >&5
5066 eval "ac_cv_func_accept
=no
"
5071 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
5072 echo "$ac_t""yes" 1>&6
5074 gcj_cv_lib_sockets="-lsocket -lnsl"
5076 echo "$ac_t""no
" 1>&6
5079 unset ac_cv_func_accept
5082 unset ac_cv_func_gethostbyname
5084 LIBS="$LIBS $gcj_cv_lib_sockets"
5085 echo $ac_n "checking
for gethostbyname
""...
$ac_c" 1>&6
5086 echo "configure
:5087: checking
for gethostbyname
" >&5
5087 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
5088 echo $ac_n "(cached
) $ac_c" 1>&6
5090 cat > conftest.$ac_ext <<EOF
5091 #line 5092 "configure
"
5092 #include "confdefs.h
"
5093 /* System header to define __stub macros and hopefully few prototypes,
5094 which can conflict with char gethostbyname(); below. */
5096 /* Override any gcc2 internal prototype to avoid an error. */
5097 /* We use char because int might match the return type of a gcc2
5098 builtin and then its argument prototype would still apply. */
5099 char gethostbyname();
5103 /* The GNU C library defines this for functions which it implements
5104 to always fail with ENOSYS. Some functions are actually named
5105 something starting with __ and the normal name is an alias. */
5106 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5114 if { (eval echo configure:5115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5116 eval "ac_cv_func_gethostbyname
=yes"
5118 echo "configure
: failed program was
:" >&5
5119 cat conftest.$ac_ext >&5
5121 eval "ac_cv_func_gethostbyname
=no
"
5126 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
5127 echo "$ac_t""yes" 1>&6
5130 echo "$ac_t""no
" 1>&6
5131 echo $ac_n "checking
for main
in -lnsl""...
$ac_c" 1>&6
5132 echo "configure
:5133: checking
for main
in -lnsl" >&5
5133 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
5134 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5135 echo $ac_n "(cached
) $ac_c" 1>&6
5137 ac_save_LIBS="$LIBS"
5139 cat > conftest.$ac_ext <<EOF
5140 #line 5141 "configure
"
5141 #include "confdefs.h
"
5147 if { (eval echo configure:5148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5149 eval "ac_cv_lib_
$ac_lib_var=yes"
5151 echo "configure
: failed program was
:" >&5
5152 cat conftest.$ac_ext >&5
5154 eval "ac_cv_lib_
$ac_lib_var=no
"
5157 LIBS="$ac_save_LIBS"
5160 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5161 echo "$ac_t""yes" 1>&6
5162 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
5164 echo "$ac_t""no
" 1>&6
5169 unset ac_cv_func_gethostbyname
5174 echo "$ac_t""$gcj_cv_lib_sockets" 1>&6
5175 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
5177 if test "$with_system_zlib" = yes; then
5178 echo $ac_n "checking
for deflate
in -lz""...
$ac_c" 1>&6
5179 echo "configure
:5180: checking
for deflate
in -lz" >&5
5180 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
5181 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5182 echo $ac_n "(cached
) $ac_c" 1>&6
5184 ac_save_LIBS="$LIBS"
5186 cat > conftest.$ac_ext <<EOF
5187 #line 5188 "configure
"
5188 #include "confdefs.h
"
5189 /* Override any gcc2 internal prototype to avoid an error. */
5190 /* We use char because int might match the return type of a gcc2
5191 builtin and then its argument prototype would still apply. */
5198 if { (eval echo configure:5199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5200 eval "ac_cv_lib_
$ac_lib_var=yes"
5202 echo "configure
: failed program was
:" >&5
5203 cat conftest.$ac_ext >&5
5205 eval "ac_cv_lib_
$ac_lib_var=no
"
5208 LIBS="$ac_save_LIBS"
5211 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5212 echo "$ac_t""yes" 1>&6
5215 echo "$ac_t""no
" 1>&6
5221 ZLIBTESTSPEC="-L`pwd`/..
/zlib
/.libs
-rpath `pwd`/..
/zlib
/.libs
"
5224 # On Solaris, and maybe other architectures, the Boehm collector
5226 if test "$GC" = boehm; then
5227 echo $ac_n "checking
for main
in -ldl""...
$ac_c" 1>&6
5228 echo "configure
:5229: checking
for main
in -ldl" >&5
5229 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
5230 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5231 echo $ac_n "(cached
) $ac_c" 1>&6
5233 ac_save_LIBS="$LIBS"
5235 cat > conftest.$ac_ext <<EOF
5236 #line 5237 "configure
"
5237 #include "confdefs.h
"
5243 if { (eval echo configure:5244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5245 eval "ac_cv_lib_
$ac_lib_var=yes"
5247 echo "configure
: failed program was
:" >&5
5248 cat conftest.$ac_ext >&5
5250 eval "ac_cv_lib_
$ac_lib_var=no
"
5253 LIBS="$ac_save_LIBS"
5256 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5257 echo "$ac_t""yes" 1>&6
5258 SYSTEMSPEC="$SYSTEMSPEC -ldl"
5260 echo "$ac_t""no
" 1>&6
5265 if test -z "${with_multisubdir}"; then
5269 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
5272 if test -x "${builddotdot}/..
/..
/gcc
/gcj
"; then
5273 dir="`cd ${builddotdot}/../../gcc && pwd`"
5274 GCJ="$dir/gcj
-B`pwd`/ -B$dir/"
5282 # Create it, so that compile/link tests don't fail
5283 test -f libgcj.spec || touch libgcj.spec
5285 # We must search the source tree for java.lang, since we still don't
5286 # have libgcj.jar nor java/lang/*.class
5287 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
5288 CPPFLAGS="$CPPFLAGS -I`pwd` -I`cd $srcdir && pwd`"
5290 # Since some classes depend on this one, we need its source available
5291 # before we can do any GCJ compilation test :-(
5292 if test ! -f gnu/classpath/Configuration.java; then
5293 test -d gnu || mkdir gnu
5294 test -d gnu/classpath || mkdir gnu/classpath
5295 sed 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
5296 < $srcdir/gnu/classpath/Configuration.java.in \
5297 > gnu/classpath/Configuration.java
5298 # We do not want to redirect the output of the grep below to /dev/null,
5299 # but we add /dev/null to the input list so that grep will print the
5300 # filename of Configuration.java in case it finds any matches.
5301 if grep @ gnu/classpath/Configuration.java /dev/null; then
5302 { echo "configure
: error
: configure.
in is missing the substitutions above
" 1>&2; exit 1; }
5306 # Extract the first word of "${ac_tool_prefix}gcj
", so it can be a program name with args.
5307 set dummy ${ac_tool_prefix}gcj; ac_word=$2
5308 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
5309 echo "configure
:5310: checking
for $ac_word" >&5
5310 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
5311 echo $ac_n "(cached
) $ac_c" 1>&6
5313 if test -n "$GCJ"; then
5314 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5316 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5318 for ac_dir in $ac_dummy; do
5319 test -z "$ac_dir" && ac_dir=.
5320 if test -f $ac_dir/$ac_word; then
5321 ac_cv_prog_GCJ="${ac_tool_prefix}gcj
"
5328 GCJ="$ac_cv_prog_GCJ"
5329 if test -n "$GCJ"; then
5330 echo "$ac_t""$GCJ" 1>&6
5332 echo "$ac_t""no
" 1>&6
5336 if test -z "$ac_cv_prog_GCJ"; then
5337 if test -n "$ac_tool_prefix"; then
5338 # Extract the first word of "gcj
", so it can be a program name with args.
5339 set dummy gcj; ac_word=$2
5340 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
5341 echo "configure
:5342: checking
for $ac_word" >&5
5342 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
5343 echo $ac_n "(cached
) $ac_c" 1>&6
5345 if test -n "$GCJ"; then
5346 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5348 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5350 for ac_dir in $ac_dummy; do
5351 test -z "$ac_dir" && ac_dir=.
5352 if test -f $ac_dir/$ac_word; then
5353 ac_cv_prog_GCJ="gcj
"
5358 test -z "$ac_cv_prog_GCJ" && ac_cv_prog_GCJ="no
"
5361 GCJ="$ac_cv_prog_GCJ"
5362 if test -n "$GCJ"; then
5363 echo "$ac_t""$GCJ" 1>&6
5365 echo "$ac_t""no
" 1>&6
5373 test "x
${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
5377 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh
"
5379 lt_save_CFLAGS="$CFLAGS"
5380 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
5381 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5382 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5383 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5384 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5385 deplibs_check_method="$deplibs_check_method" \
5386 file_magic_cmd="$file_magic_cmd" \
5387 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5388 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
5389 || { echo "configure
: error
: libtool tag configuration failed
" 1>&2; exit 1; }
5391 CFLAGS="$lt_save_CFLAGS"
5393 # Redirect the config.log output again, so that the ltconfig log is not
5394 # clobbered by the next message.
5395 exec 5>>./config.log
5400 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
5402 echo $ac_n "checking size of void
*""...
$ac_c" 1>&6
5403 echo "configure
:5404: checking size of void
*" >&5
5404 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
5405 echo $ac_n "(cached
) $ac_c" 1>&6
5407 if test "$cross_compiling" = yes; then
5408 { echo "configure
: error
: can not run
test program
while cross compiling
" 1>&2; exit 1; }
5410 cat > conftest.$ac_ext <<EOF
5411 #line 5412 "configure
"
5412 #include "confdefs.h
"
5416 FILE *f=fopen("conftestval
", "w
");
5418 fprintf(f, "%d
\n", sizeof(void *));
5422 if { (eval echo configure:5423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5424 ac_cv_sizeof_void_p=`cat conftestval`
5426 echo "configure
: failed program was
:" >&5
5427 cat conftest.$ac_ext >&5
5429 ac_cv_sizeof_void_p=0
5435 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
5436 cat >> confdefs.h <<EOF
5437 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5445 if test "x
$ZLIBSPEC" = "x-lzgcj
"; then
5446 # We include the path to the zlib build directory.
5447 # See Makefile.am to understand why.
5448 ZDEPS='$(top_builddir)/../zlib/libzgcj.la'
5449 ZLIBS="$ZDEPS -L\$
(here
)/..
/zlib
/$libsubdir"
5450 ZINCS='-I$(top_srcdir)/../zlib'
5462 if test "$CANADIAN" = yes; then
5471 if test "$NULL_TARGET" = yes; then
5473 NULL_TARGET_FALSE='#'
5475 NULL_TARGET_TRUE='#'
5480 if test "$NATIVE" = yes || test "$NULL_TARGET" = yes; then
5489 if test -z "$with_cross_host"; then
5491 USE_LIBDIR_FALSE='#'
5498 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
5499 NEEDS_DATA_START_TRUE=
5500 NEEDS_DATA_START_FALSE='#'
5502 NEEDS_DATA_START_TRUE='#'
5503 NEEDS_DATA_START_FALSE=
5507 # Determine gcj version number.
5509 gcjvers="`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`"
5511 cat >> confdefs.h <<EOF
5512 #define GCJVERSION "$gcjvers"
5519 echo $ac_n "checking
for g
++ -ffloat-store bug
""...
$ac_c" 1>&6
5520 echo "configure
:5521: checking
for g
++ -ffloat-store bug
" >&5
5521 save_CFLAGS="$CFLAGS"
5522 CFLAGS="-x c
++ -O2 -ffloat-store"
5523 cat > conftest.$ac_ext <<EOF
5524 #line 5525 "configure
"
5525 #include "confdefs.h
"
5531 if { (eval echo configure:5532: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5533 echo "$ac_t""no
" 1>&6
5535 echo "configure
: failed program was
:" >&5
5536 cat conftest.$ac_ext >&5
5538 cat >> confdefs.h <<\EOF
5539 #define __NO_MATH_INLINES 1
5542 echo "$ac_t""yes" 1>&6
5545 CFLAGS="$save_CFLAGS"
5547 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 stdint.h langinfo.h locale.h
5549 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5550 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
5551 echo "configure
:5552: checking
for $ac_hdr" >&5
5552 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5553 echo $ac_n "(cached
) $ac_c" 1>&6
5555 cat > conftest.$ac_ext <<EOF
5556 #line 5557 "configure
"
5557 #include "confdefs.h
"
5560 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
5561 { (eval echo configure:5562: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5562 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
5563 if test -z "$ac_err"; then
5565 eval "ac_cv_header_
$ac_safe=yes"
5568 echo "configure
: failed program was
:" >&5
5569 cat conftest.$ac_ext >&5
5571 eval "ac_cv_header_
$ac_safe=no
"
5575 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5576 echo "$ac_t""yes" 1>&6
5577 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5578 cat >> confdefs.h <<EOF
5579 #define $ac_tr_hdr 1
5583 echo "$ac_t""no
" 1>&6
5587 for ac_hdr in dirent.h
5589 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5590 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
5591 echo "configure
:5592: checking
for $ac_hdr" >&5
5592 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5593 echo $ac_n "(cached
) $ac_c" 1>&6
5595 cat > conftest.$ac_ext <<EOF
5596 #line 5597 "configure
"
5597 #include "confdefs.h
"
5600 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
5601 { (eval echo configure:5602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5602 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
5603 if test -z "$ac_err"; then
5605 eval "ac_cv_header_
$ac_safe=yes"
5608 echo "configure
: failed program was
:" >&5
5609 cat conftest.$ac_ext >&5
5611 eval "ac_cv_header_
$ac_safe=no
"
5615 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5616 echo "$ac_t""yes" 1>&6
5617 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5618 cat >> confdefs.h <<EOF
5619 #define $ac_tr_hdr 1
5623 echo "$ac_t""no
" 1>&6
5627 for ac_hdr in inttypes.h
5629 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5630 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
5631 echo "configure
:5632: checking
for $ac_hdr" >&5
5632 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5633 echo $ac_n "(cached
) $ac_c" 1>&6
5635 cat > conftest.$ac_ext <<EOF
5636 #line 5637 "configure
"
5637 #include "confdefs.h
"
5640 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
5641 { (eval echo configure:5642: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5642 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
5643 if test -z "$ac_err"; then
5645 eval "ac_cv_header_
$ac_safe=yes"
5648 echo "configure
: failed program was
:" >&5
5649 cat conftest.$ac_ext >&5
5651 eval "ac_cv_header_
$ac_safe=no
"
5655 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5656 echo "$ac_t""yes" 1>&6
5657 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5658 cat >> confdefs.h <<EOF
5659 #define $ac_tr_hdr 1
5662 cat >> confdefs.h <<\EOF
5663 #define HAVE_INTTYPES_H 1
5666 cat >> confdefs.h <<\EOF
5667 #define JV_HAVE_INTTYPES_H 1
5672 echo "$ac_t""no
" 1>&6
5677 echo $ac_n "checking
for ANSI C header files
""...
$ac_c" 1>&6
5678 echo "configure
:5679: checking
for ANSI C header files
" >&5
5679 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5680 echo $ac_n "(cached
) $ac_c" 1>&6
5682 cat > conftest.$ac_ext <<EOF
5683 #line 5684 "configure
"
5684 #include "confdefs.h
"
5690 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
5691 { (eval echo configure:5692: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5692 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
5693 if test -z "$ac_err"; then
5695 ac_cv_header_stdc=yes
5698 echo "configure
: failed program was
:" >&5
5699 cat conftest.$ac_ext >&5
5701 ac_cv_header_stdc=no
5705 if test $ac_cv_header_stdc = yes; then
5706 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5707 cat > conftest.$ac_ext <<EOF
5708 #line 5709 "configure
"
5709 #include "confdefs.h
"
5712 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
5713 egrep "memchr
" >/dev/null 2>&1; then
5717 ac_cv_header_stdc=no
5723 if test $ac_cv_header_stdc = yes; then
5724 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5725 cat > conftest.$ac_ext <<EOF
5726 #line 5727 "configure
"
5727 #include "confdefs.h
"
5730 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
5731 egrep "free
" >/dev/null 2>&1; then
5735 ac_cv_header_stdc=no
5741 if test $ac_cv_header_stdc = yes; then
5742 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5743 if test "$cross_compiling" = yes; then
5746 cat > conftest.$ac_ext <<EOF
5747 #line 5748 "configure
"
5748 #include "confdefs.h
"
5750 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5751 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5752 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5753 int main () { int i; for (i = 0; i < 256; i++)
5754 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
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
5762 echo "configure
: failed program was
:" >&5
5763 cat conftest.$ac_ext >&5
5765 ac_cv_header_stdc=no
5773 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5774 if test $ac_cv_header_stdc = yes; then
5775 cat >> confdefs.h <<\EOF
5776 #define STDC_HEADERS 1
5781 echo $ac_n "checking
for ssize_t
""...
$ac_c" 1>&6
5782 echo "configure
:5783: checking
for ssize_t
" >&5
5783 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
5784 echo $ac_n "(cached
) $ac_c" 1>&6
5786 cat > conftest.$ac_ext <<EOF
5787 #line 5788 "configure
"
5788 #include "confdefs.h
"
5789 #include <sys/types.h>
5795 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
5796 egrep "(^|
[^a-zA-Z_0-9
])ssize_t
[^a-zA-Z_0-9
]" >/dev/null 2>&1; then
5798 ac_cv_type_ssize_t=yes
5801 ac_cv_type_ssize_t=no
5806 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
5807 if test $ac_cv_type_ssize_t = no; then
5808 cat >> confdefs.h <<\EOF
5815 echo $ac_n "checking
for in_addr_t
""...
$ac_c" 1>&6
5816 echo "configure
:5817: checking
for in_addr_t
" >&5
5817 cat > conftest.$ac_ext <<EOF
5818 #line 5819 "configure
"
5819 #include "confdefs.h
"
5820 #include <sys/types.h>
5825 #if HAVE_NETINET_IN_H
5826 #include <netinet/in.h>
5832 if { (eval echo configure:5833: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5834 cat >> confdefs.h <<\EOF
5835 #define HAVE_IN_ADDR_T 1
5838 echo "$ac_t""yes" 1>&6
5840 echo "configure
: failed program was
:" >&5
5841 cat conftest.$ac_ext >&5
5843 echo "$ac_t""no
" 1>&6
5847 echo $ac_n "checking whether struct ip_mreq is
in netinet
/in.h
""...
$ac_c" 1>&6
5848 echo "configure
:5849: checking whether struct ip_mreq is
in netinet
/in.h
" >&5
5849 cat > conftest.$ac_ext <<EOF
5850 #line 5851 "configure
"
5851 #include "confdefs.h
"
5852 #include <netinet/in.h>
5854 struct ip_mreq mreq;
5857 if { (eval echo configure:5858: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5859 cat >> confdefs.h <<\EOF
5860 #define HAVE_STRUCT_IP_MREQ 1
5863 echo "$ac_t""yes" 1>&6
5865 echo "configure
: failed program was
:" >&5
5866 cat conftest.$ac_ext >&5
5868 echo "$ac_t""no
" 1>&6
5872 echo $ac_n "checking whether struct ipv6_mreq is
in netinet
/in.h
""...
$ac_c" 1>&6
5873 echo "configure
:5874: checking whether struct ipv6_mreq is
in netinet
/in.h
" >&5
5874 cat > conftest.$ac_ext <<EOF
5875 #line 5876 "configure
"
5876 #include "confdefs.h
"
5877 #include <netinet/in.h>
5879 struct ipv6_mreq mreq6;
5882 if { (eval echo configure:5883: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5884 cat >> confdefs.h <<\EOF
5885 #define HAVE_STRUCT_IPV6_MREQ 1
5888 echo "$ac_t""yes" 1>&6
5890 echo "configure
: failed program was
:" >&5
5891 cat conftest.$ac_ext >&5
5893 echo "$ac_t""no
" 1>&6
5897 echo $ac_n "checking whether struct sockaddr_in6 is
in netinet
/in.h
""...
$ac_c" 1>&6
5898 echo "configure
:5899: checking whether struct sockaddr_in6 is
in netinet
/in.h
" >&5
5899 cat > conftest.$ac_ext <<EOF
5900 #line 5901 "configure
"
5901 #include "confdefs.h
"
5902 #include <netinet/in.h>
5904 struct sockaddr_in6 addr6;
5907 if { (eval echo configure:5908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5909 cat >> confdefs.h <<\EOF
5910 #define HAVE_INET6 1
5913 echo "$ac_t""yes" 1>&6
5915 echo "configure
: failed program was
:" >&5
5916 cat conftest.$ac_ext >&5
5918 echo "$ac_t""no
" 1>&6
5922 echo $ac_n "checking
for socklen_t
in sys
/socket.h
""...
$ac_c" 1>&6
5923 echo "configure
:5924: checking
for socklen_t
in sys
/socket.h
" >&5
5924 cat > conftest.$ac_ext <<EOF
5925 #line 5926 "configure
"
5926 #include "confdefs.h
"
5927 #define _POSIX_PII_SOCKET
5928 #include <sys/types.h>
5929 #include <sys/socket.h>
5934 if { (eval echo configure:5935: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5936 cat >> confdefs.h <<\EOF
5937 #define HAVE_SOCKLEN_T 1
5940 echo "$ac_t""yes" 1>&6
5942 echo "configure
: failed program was
:" >&5
5943 cat conftest.$ac_ext >&5
5945 echo "$ac_t""no
" 1>&6
5949 echo $ac_n "checking
for tm_gmtoff
in struct tm
""...
$ac_c" 1>&6
5950 echo "configure
:5951: checking
for tm_gmtoff
in struct tm
" >&5
5951 cat > conftest.$ac_ext <<EOF
5952 #line 5953 "configure
"
5953 #include "confdefs.h
"
5956 struct tm tim; tim.tm_gmtoff = 0;
5959 if { (eval echo configure:5960: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5961 cat >> confdefs.h <<\EOF
5962 #define STRUCT_TM_HAS_GMTOFF 1
5965 echo "$ac_t""yes" 1>&6
5967 echo "configure
: failed program was
:" >&5
5968 cat conftest.$ac_ext >&5
5970 echo "$ac_t""no
" 1>&6
5971 echo $ac_n "checking
for global timezone variable
""...
$ac_c" 1>&6
5972 echo "configure
:5973: checking
for global timezone variable
" >&5
5973 cat > conftest.$ac_ext <<EOF
5974 #line 5975 "configure
"
5975 #include "confdefs.h
"
5981 if { (eval echo configure:5982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5983 cat >> confdefs.h <<\EOF
5984 #define HAVE_TIMEZONE 1
5987 echo "$ac_t""yes" 1>&6
5989 echo "configure
: failed program was
:" >&5
5990 cat conftest.$ac_ext >&5
5992 echo "$ac_t""no
" 1>&6
5998 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5999 # for constant arguments. Useless!
6000 echo $ac_n "checking
for working alloca.h
""...
$ac_c" 1>&6
6001 echo "configure
:6002: checking
for working alloca.h
" >&5
6002 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
6003 echo $ac_n "(cached
) $ac_c" 1>&6
6005 cat > conftest.$ac_ext <<EOF
6006 #line 6007 "configure
"
6007 #include "confdefs.h
"
6010 char *p = alloca(2 * sizeof(int));
6013 if { (eval echo configure:6014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6015 ac_cv_header_alloca_h=yes
6017 echo "configure
: failed program was
:" >&5
6018 cat conftest.$ac_ext >&5
6020 ac_cv_header_alloca_h=no
6025 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
6026 if test $ac_cv_header_alloca_h = yes; then
6027 cat >> confdefs.h <<\EOF
6028 #define HAVE_ALLOCA_H 1
6033 echo $ac_n "checking
for alloca
""...
$ac_c" 1>&6
6034 echo "configure
:6035: checking
for alloca
" >&5
6035 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
6036 echo $ac_n "(cached
) $ac_c" 1>&6
6038 cat > conftest.$ac_ext <<EOF
6039 #line 6040 "configure
"
6040 #include "confdefs.h
"
6043 # define alloca __builtin_alloca
6046 # include <malloc.h>
6047 # define alloca _alloca
6050 # include <alloca.h>
6055 # ifndef alloca /* predefined by HP cc +Olibcalls */
6064 char *p = (char *) alloca(1);
6067 if { (eval echo configure:6068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6069 ac_cv_func_alloca_works=yes
6071 echo "configure
: failed program was
:" >&5
6072 cat conftest.$ac_ext >&5
6074 ac_cv_func_alloca_works=no
6079 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
6080 if test $ac_cv_func_alloca_works = yes; then
6081 cat >> confdefs.h <<\EOF
6082 #define HAVE_ALLOCA 1
6087 if test $ac_cv_func_alloca_works = no; then
6088 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6089 # that cause trouble. Some versions do not even contain alloca or
6090 # contain a buggy version. If you still want to use their alloca,
6091 # use ar to extract alloca.o from them instead of compiling alloca.c.
6092 ALLOCA=alloca.${ac_objext}
6093 cat >> confdefs.h <<\EOF
6098 echo $ac_n "checking whether alloca needs Cray hooks
""...
$ac_c" 1>&6
6099 echo "configure
:6100: checking whether alloca needs Cray hooks
" >&5
6100 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
6101 echo $ac_n "(cached
) $ac_c" 1>&6
6103 cat > conftest.$ac_ext <<EOF
6104 #line 6105 "configure
"
6105 #include "confdefs.h
"
6106 #if defined(CRAY) && ! defined(CRAY2)
6113 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
6114 egrep "webecray
" >/dev/null 2>&1; then
6125 echo "$ac_t""$ac_cv_os_cray" 1>&6
6126 if test $ac_cv_os_cray = yes; then
6127 for ac_func in _getb67 GETB67 getb67; do
6128 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
6129 echo "configure
:6130: checking
for $ac_func" >&5
6130 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6131 echo $ac_n "(cached
) $ac_c" 1>&6
6133 cat > conftest.$ac_ext <<EOF
6134 #line 6135 "configure
"
6135 #include "confdefs.h
"
6136 /* System header to define __stub macros and hopefully few prototypes,
6137 which can conflict with char $ac_func(); below. */
6139 /* Override any gcc2 internal prototype to avoid an error. */
6140 /* We use char because int might match the return type of a gcc2
6141 builtin and then its argument prototype would still apply. */
6146 /* The GNU C library defines this for functions which it implements
6147 to always fail with ENOSYS. Some functions are actually named
6148 something starting with __ and the normal name is an alias. */
6149 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6157 if { (eval echo configure:6158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6159 eval "ac_cv_func_
$ac_func=yes"
6161 echo "configure
: failed program was
:" >&5
6162 cat conftest.$ac_ext >&5
6164 eval "ac_cv_func_
$ac_func=no
"
6169 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6170 echo "$ac_t""yes" 1>&6
6171 cat >> confdefs.h <<EOF
6172 #define CRAY_STACKSEG_END $ac_func
6177 echo "$ac_t""no
" 1>&6
6183 echo $ac_n "checking stack direction
for C alloca
""...
$ac_c" 1>&6
6184 echo "configure
:6185: checking stack direction
for C alloca
" >&5
6185 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
6186 echo $ac_n "(cached
) $ac_c" 1>&6
6188 if test "$cross_compiling" = yes; then
6189 ac_cv_c_stack_direction=0
6191 cat > conftest.$ac_ext <<EOF
6192 #line 6193 "configure
"
6193 #include "confdefs.h
"
6194 find_stack_direction ()
6196 static char *addr = 0;
6201 return find_stack_direction ();
6204 return (&dummy > addr) ? 1 : -1;
6208 exit (find_stack_direction() < 0);
6211 if { (eval echo configure:6212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6213 ac_cv_c_stack_direction=1
6215 echo "configure
: failed program was
:" >&5
6216 cat conftest.$ac_ext >&5
6218 ac_cv_c_stack_direction=-1
6225 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
6226 cat >> confdefs.h <<EOF
6227 #define STACK_DIRECTION $ac_cv_c_stack_direction
6235 # Extract the first word of "$ac_prog", so it can be a program name with args.
6236 set dummy $ac_prog; ac_word=$2
6237 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
6238 echo "configure
:6239: checking
for $ac_word" >&5
6239 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
6240 echo $ac_n "(cached
) $ac_c" 1>&6
6242 if test -n "$PERL"; then
6243 ac_cv_prog_PERL="$PERL" # Let the user override the test.
6245 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6247 for ac_dir in $ac_dummy; do
6248 test -z "$ac_dir" && ac_dir=.
6249 if test -f $ac_dir/$ac_word; then
6250 ac_cv_prog_PERL="$ac_prog"
6257 PERL="$ac_cv_prog_PERL"
6258 if test -n "$PERL"; then
6259 echo "$ac_t""$PERL" 1>&6
6261 echo "$ac_t""no
" 1>&6
6264 test -n "$PERL" && break
6266 test -n "$PERL" || PERL="false
"
6273 SIGNAL_HANDLER=include/i386-signal.h
6276 SIGNAL_HANDLER=include/sparc-signal.h
6279 # SYSDEP_SOURCES=sysdep/ia64.c
6280 # test -d sysdep || mkdir sysdep
6283 SIGNAL_HANDLER=include/dwarf2-signal.h
6286 SIGNAL_HANDLER=include/dwarf2-signal.h
6289 SIGNAL_HANDLER=include/default-signal.h
6293 # If we're using sjlj exceptions, forget what we just learned.
6294 if test "$enable_sjlj_exceptions" = yes; then
6295 SIGNAL_HANDLER=include/default-signal.h
6302 if test "${multilib}" = "yes"; then
6303 multilib_arg="--enable-multilib"
6308 # If we find X, set shell vars x_includes and x_libraries to the
6309 # paths, otherwise set no_x=yes.
6310 # Uses ac_ vars as temps to allow command line to override cache and checks.
6311 # --without-x overrides everything else, but does not touch the cache.
6312 echo $ac_n "checking
for X
""...
$ac_c" 1>&6
6313 echo "configure
:6314: checking
for X
" >&5
6315 # Check whether --with-x or --without-x was given.
6316 if test "${with_x+set}" = set; then
6321 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6322 if test "x
$with_x" = xno; then
6323 # The user explicitly disabled X.
6326 if test "x
$x_includes" != xNONE && test "x
$x_libraries" != xNONE; then
6327 # Both variables are already set.
6330 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
6331 echo $ac_n "(cached
) $ac_c" 1>&6
6333 # One or both of the vars are not set, and there is no cached value.
6334 ac_x_includes=NO ac_x_libraries=NO
6336 if mkdir conftestdir; then
6338 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6339 cat > Imakefile <<'EOF'
6341 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6343 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6344 # GNU make sometimes prints "make[1]: Entering...
", which would confuse us.
6345 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6346 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6347 for ac_extension in a so sl; do
6348 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6349 test -f $ac_im_libdir/libX11.$ac_extension; then
6350 ac_im_usrlibdir=$ac_im_libdir; break
6353 # Screen out bogus values from the imake configuration. They are
6354 # bogus both because they are the default anyway, and because
6355 # using them would break gcc on systems where it needs fixed includes.
6356 case "$ac_im_incroot" in
6358 *) test -f "$ac_im_incroot/X11
/Xos.h
" && ac_x_includes="$ac_im_incroot" ;;
6360 case "$ac_im_usrlibdir" in
6362 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
6369 if test "$ac_x_includes" = NO; then
6370 # Guess where to find include files, by looking for this one X11 .h file.
6371 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
6373 # First, try using that file with no special directory specified.
6374 cat > conftest.$ac_ext <<EOF
6375 #line 6376 "configure
"
6376 #include "confdefs.h
"
6377 #include <$x_direct_test_include>
6379 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
6380 { (eval echo configure:6381: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6381 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
6382 if test -z "$ac_err"; then
6384 # We can compile using X headers with no special include directory.
6388 echo "configure
: failed program was
:" >&5
6389 cat conftest.$ac_ext >&5
6391 # Look for the header file in a standard set of common directories.
6392 # Check X11 before X11Rn because it is often a symlink to the current release.
6395 /usr/X11R6/include \
6396 /usr/X11R5/include \
6397 /usr/X11R4/include \
6400 /usr/include/X11R6 \
6401 /usr/include/X11R5 \
6402 /usr/include/X11R4 \
6404 /usr/local/X11/include \
6405 /usr/local/X11R6/include \
6406 /usr/local/X11R5/include \
6407 /usr/local/X11R4/include \
6409 /usr/local/include/X11 \
6410 /usr/local/include/X11R6 \
6411 /usr/local/include/X11R5 \
6412 /usr/local/include/X11R4 \
6416 /usr/XFree86/include/X11 \
6419 /usr/local/include \
6420 /usr/unsupported/include \
6421 /usr/athena/include \
6422 /usr/local/x11r5/include \
6423 /usr/lpp/Xamples/include \
6425 /usr/openwin/include \
6426 /usr/openwin/share/include \
6429 if test -r "$ac_dir/$x_direct_test_include"; then
6430 ac_x_includes=$ac_dir
6436 fi # $ac_x_includes = NO
6438 if test "$ac_x_libraries" = NO; then
6439 # Check for the libraries.
6441 test -z "$x_direct_test_library" && x_direct_test_library=Xt
6442 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
6444 # See if we find them without any special options.
6445 # Don't add to $LIBS permanently.
6446 ac_save_LIBS="$LIBS"
6447 LIBS="-l$x_direct_test_library $LIBS"
6448 cat > conftest.$ac_ext <<EOF
6449 #line 6450 "configure
"
6450 #include "confdefs.h
"
6453 ${x_direct_test_function}()
6456 if { (eval echo configure:6457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6458 LIBS="$ac_save_LIBS"
6459 # We can link X programs with no special library path.
6462 echo "configure
: failed program was
:" >&5
6463 cat conftest.$ac_ext >&5
6465 LIBS="$ac_save_LIBS"
6466 # First see if replacing the include by lib works.
6467 # Check X11 before X11Rn because it is often a symlink to the current release.
6468 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
6479 /usr/local/X11/lib \
6480 /usr/local/X11R6/lib \
6481 /usr/local/X11R5/lib \
6482 /usr/local/X11R4/lib \
6484 /usr/local/lib/X11 \
6485 /usr/local/lib/X11R6 \
6486 /usr/local/lib/X11R5 \
6487 /usr/local/lib/X11R4 \
6491 /usr/XFree86/lib/X11 \
6495 /usr/unsupported/lib \
6497 /usr/local/x11r5/lib \
6498 /usr/lpp/Xamples/lib \
6502 /usr/openwin/share/lib \
6505 for ac_extension in a so sl; do
6506 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
6507 ac_x_libraries=$ac_dir
6514 fi # $ac_x_libraries = NO
6516 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
6517 # Didn't find X anywhere. Cache the known absence of X.
6518 ac_cv_have_x="have_x
=no
"
6520 # Record where we found X for the cache.
6521 ac_cv_have_x="have_x
=yes \
6522 ac_x_includes
=$ac_x_includes ac_x_libraries
=$ac_x_libraries"
6526 eval "$ac_cv_have_x"
6529 if test "$have_x" != yes; then
6530 echo "$ac_t""$have_x" 1>&6
6533 # If each of the values was on the command line, it overrides each guess.
6534 test "x
$x_includes" = xNONE && x_includes=$ac_x_includes
6535 test "x
$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6536 # Update the cache value to reflect the command line values.
6537 ac_cv_have_x="have_x
=yes \
6538 ac_x_includes
=$x_includes ac_x_libraries
=$x_libraries"
6539 echo "$ac_t""libraries
$x_libraries, headers
$x_includes" 1>&6
6542 if test "$no_x" = yes; then
6543 # Not all programs may use this symbol, but it does not hurt to define it.
6544 cat >> confdefs.h <<\EOF
6545 #define X_DISPLAY_MISSING 1
6548 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6550 if test -n "$x_includes"; then
6551 X_CFLAGS="$X_CFLAGS -I$x_includes"
6554 # It would also be nice to do this for all -L options, not just this one.
6555 if test -n "$x_libraries"; then
6556 X_LIBS="$X_LIBS -L$x_libraries"
6557 # For Solaris; some versions of Sun CC require a space after -R and
6558 # others require no space. Words are not sufficient . . . .
6559 case "`(uname -sr) 2>/dev/null`" in
6561 echo $ac_n "checking whether
-R must be followed by a space
""...
$ac_c" 1>&6
6562 echo "configure
:6563: checking whether
-R must be followed by a space
" >&5
6563 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
6564 cat > conftest.$ac_ext <<EOF
6565 #line 6566 "configure
"
6566 #include "confdefs.h
"
6572 if { (eval echo configure:6573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6576 echo "configure
: failed program was
:" >&5
6577 cat conftest.$ac_ext >&5
6582 if test $ac_R_nospace = yes; then
6583 echo "$ac_t""no
" 1>&6
6584 X_LIBS="$X_LIBS -R$x_libraries"
6586 LIBS="$ac_xsave_LIBS -R $x_libraries"
6587 cat > conftest.$ac_ext <<EOF
6588 #line 6589 "configure
"
6589 #include "confdefs.h
"
6595 if { (eval echo configure:6596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6599 echo "configure
: failed program was
:" >&5
6600 cat conftest.$ac_ext >&5
6605 if test $ac_R_space = yes; then
6606 echo "$ac_t""yes" 1>&6
6607 X_LIBS="$X_LIBS -R $x_libraries"
6609 echo "$ac_t""neither works
" 1>&6
6612 LIBS="$ac_xsave_LIBS"
6616 # Check for system-dependent libraries X programs must link with.
6617 # Do this before checking for the system-independent R6 libraries
6618 # (-lICE), since we may need -lsocket or whatever for X linking.
6620 if test "$ISC" = yes; then
6621 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6623 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
6624 # libraries were built with DECnet support. And karl@cs.umb.edu says
6625 # the Alpha needs dnet_stub (dnet does not exist).
6626 echo $ac_n "checking
for dnet_ntoa
in -ldnet""...
$ac_c" 1>&6
6627 echo "configure
:6628: checking
for dnet_ntoa
in -ldnet" >&5
6628 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6629 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6630 echo $ac_n "(cached
) $ac_c" 1>&6
6632 ac_save_LIBS="$LIBS"
6634 cat > conftest.$ac_ext <<EOF
6635 #line 6636 "configure
"
6636 #include "confdefs.h
"
6637 /* Override any gcc2 internal prototype to avoid an error. */
6638 /* We use char because int might match the return type of a gcc2
6639 builtin and then its argument prototype would still apply. */
6646 if { (eval echo configure:6647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6648 eval "ac_cv_lib_
$ac_lib_var=yes"
6650 echo "configure
: failed program was
:" >&5
6651 cat conftest.$ac_ext >&5
6653 eval "ac_cv_lib_
$ac_lib_var=no
"
6656 LIBS="$ac_save_LIBS"
6659 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6660 echo "$ac_t""yes" 1>&6
6661 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6663 echo "$ac_t""no
" 1>&6
6666 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6667 echo $ac_n "checking
for dnet_ntoa
in -ldnet_stub""...
$ac_c" 1>&6
6668 echo "configure
:6669: checking
for dnet_ntoa
in -ldnet_stub" >&5
6669 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6670 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6671 echo $ac_n "(cached
) $ac_c" 1>&6
6673 ac_save_LIBS="$LIBS"
6674 LIBS="-ldnet_stub $LIBS"
6675 cat > conftest.$ac_ext <<EOF
6676 #line 6677 "configure
"
6677 #include "confdefs.h
"
6678 /* Override any gcc2 internal prototype to avoid an error. */
6679 /* We use char because int might match the return type of a gcc2
6680 builtin and then its argument prototype would still apply. */
6687 if { (eval echo configure:6688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6689 eval "ac_cv_lib_
$ac_lib_var=yes"
6691 echo "configure
: failed program was
:" >&5
6692 cat conftest.$ac_ext >&5
6694 eval "ac_cv_lib_
$ac_lib_var=no
"
6697 LIBS="$ac_save_LIBS"
6700 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6701 echo "$ac_t""yes" 1>&6
6702 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6704 echo "$ac_t""no
" 1>&6
6709 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6710 # to get the SysV transport functions.
6711 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
6713 # The nsl library prevents programs from opening the X display
6714 # on Irix 5.2, according to dickey@clark.net.
6715 echo $ac_n "checking
for gethostbyname
""...
$ac_c" 1>&6
6716 echo "configure
:6717: checking
for gethostbyname
" >&5
6717 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
6718 echo $ac_n "(cached
) $ac_c" 1>&6
6720 cat > conftest.$ac_ext <<EOF
6721 #line 6722 "configure
"
6722 #include "confdefs.h
"
6723 /* System header to define __stub macros and hopefully few prototypes,
6724 which can conflict with char gethostbyname(); below. */
6726 /* Override any gcc2 internal prototype to avoid an error. */
6727 /* We use char because int might match the return type of a gcc2
6728 builtin and then its argument prototype would still apply. */
6729 char gethostbyname();
6733 /* The GNU C library defines this for functions which it implements
6734 to always fail with ENOSYS. Some functions are actually named
6735 something starting with __ and the normal name is an alias. */
6736 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6744 if { (eval echo configure:6745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6746 eval "ac_cv_func_gethostbyname
=yes"
6748 echo "configure
: failed program was
:" >&5
6749 cat conftest.$ac_ext >&5
6751 eval "ac_cv_func_gethostbyname
=no
"
6756 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
6757 echo "$ac_t""yes" 1>&6
6760 echo "$ac_t""no
" 1>&6
6763 if test $ac_cv_func_gethostbyname = no; then
6764 echo $ac_n "checking
for gethostbyname
in -lnsl""...
$ac_c" 1>&6
6765 echo "configure
:6766: checking
for gethostbyname
in -lnsl" >&5
6766 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
6767 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6768 echo $ac_n "(cached
) $ac_c" 1>&6
6770 ac_save_LIBS="$LIBS"
6772 cat > conftest.$ac_ext <<EOF
6773 #line 6774 "configure
"
6774 #include "confdefs.h
"
6775 /* Override any gcc2 internal prototype to avoid an error. */
6776 /* We use char because int might match the return type of a gcc2
6777 builtin and then its argument prototype would still apply. */
6778 char gethostbyname();
6784 if { (eval echo configure:6785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6786 eval "ac_cv_lib_
$ac_lib_var=yes"
6788 echo "configure
: failed program was
:" >&5
6789 cat conftest.$ac_ext >&5
6791 eval "ac_cv_lib_
$ac_lib_var=no
"
6794 LIBS="$ac_save_LIBS"
6797 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6798 echo "$ac_t""yes" 1>&6
6799 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6801 echo "$ac_t""no
" 1>&6
6806 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6807 # socket/setsockopt and other routines are undefined under SCO ODT
6808 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6809 # on later versions), says simon@lia.di.epfl.ch: it contains
6810 # gethostby* variants that don't use the nameserver (or something).
6811 # -lsocket must be given before -lnsl if both are needed.
6812 # We assume that if connect needs -lnsl, so does gethostbyname.
6813 echo $ac_n "checking
for connect
""...
$ac_c" 1>&6
6814 echo "configure
:6815: checking
for connect
" >&5
6815 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
6816 echo $ac_n "(cached
) $ac_c" 1>&6
6818 cat > conftest.$ac_ext <<EOF
6819 #line 6820 "configure
"
6820 #include "confdefs.h
"
6821 /* System header to define __stub macros and hopefully few prototypes,
6822 which can conflict with char connect(); below. */
6824 /* Override any gcc2 internal prototype to avoid an error. */
6825 /* We use char because int might match the return type of a gcc2
6826 builtin and then its argument prototype would still apply. */
6831 /* The GNU C library defines this for functions which it implements
6832 to always fail with ENOSYS. Some functions are actually named
6833 something starting with __ and the normal name is an alias. */
6834 #if defined (__stub_connect) || defined (__stub___connect)
6842 if { (eval echo configure:6843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6844 eval "ac_cv_func_connect
=yes"
6846 echo "configure
: failed program was
:" >&5
6847 cat conftest.$ac_ext >&5
6849 eval "ac_cv_func_connect
=no
"
6854 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
6855 echo "$ac_t""yes" 1>&6
6858 echo "$ac_t""no
" 1>&6
6861 if test $ac_cv_func_connect = no; then
6862 echo $ac_n "checking
for connect
in -lsocket""...
$ac_c" 1>&6
6863 echo "configure
:6864: checking
for connect
in -lsocket" >&5
6864 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
6865 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6866 echo $ac_n "(cached
) $ac_c" 1>&6
6868 ac_save_LIBS="$LIBS"
6869 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6870 cat > conftest.$ac_ext <<EOF
6871 #line 6872 "configure
"
6872 #include "confdefs.h
"
6873 /* Override any gcc2 internal prototype to avoid an error. */
6874 /* We use char because int might match the return type of a gcc2
6875 builtin and then its argument prototype would still apply. */
6882 if { (eval echo configure:6883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6884 eval "ac_cv_lib_
$ac_lib_var=yes"
6886 echo "configure
: failed program was
:" >&5
6887 cat conftest.$ac_ext >&5
6889 eval "ac_cv_lib_
$ac_lib_var=no
"
6892 LIBS="$ac_save_LIBS"
6895 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6896 echo "$ac_t""yes" 1>&6
6897 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6899 echo "$ac_t""no
" 1>&6
6904 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
6905 echo $ac_n "checking
for remove
""...
$ac_c" 1>&6
6906 echo "configure
:6907: checking
for remove
" >&5
6907 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
6908 echo $ac_n "(cached
) $ac_c" 1>&6
6910 cat > conftest.$ac_ext <<EOF
6911 #line 6912 "configure
"
6912 #include "confdefs.h
"
6913 /* System header to define __stub macros and hopefully few prototypes,
6914 which can conflict with char remove(); below. */
6916 /* Override any gcc2 internal prototype to avoid an error. */
6917 /* We use char because int might match the return type of a gcc2
6918 builtin and then its argument prototype would still apply. */
6923 /* The GNU C library defines this for functions which it implements
6924 to always fail with ENOSYS. Some functions are actually named
6925 something starting with __ and the normal name is an alias. */
6926 #if defined (__stub_remove) || defined (__stub___remove)
6934 if { (eval echo configure:6935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6936 eval "ac_cv_func_remove
=yes"
6938 echo "configure
: failed program was
:" >&5
6939 cat conftest.$ac_ext >&5
6941 eval "ac_cv_func_remove
=no
"
6946 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
6947 echo "$ac_t""yes" 1>&6
6950 echo "$ac_t""no
" 1>&6
6953 if test $ac_cv_func_remove = no; then
6954 echo $ac_n "checking
for remove
in -lposix""...
$ac_c" 1>&6
6955 echo "configure
:6956: checking
for remove
in -lposix" >&5
6956 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
6957 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6958 echo $ac_n "(cached
) $ac_c" 1>&6
6960 ac_save_LIBS="$LIBS"
6961 LIBS="-lposix $LIBS"
6962 cat > conftest.$ac_ext <<EOF
6963 #line 6964 "configure
"
6964 #include "confdefs.h
"
6965 /* Override any gcc2 internal prototype to avoid an error. */
6966 /* We use char because int might match the return type of a gcc2
6967 builtin and then its argument prototype would still apply. */
6974 if { (eval echo configure:6975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6976 eval "ac_cv_lib_
$ac_lib_var=yes"
6978 echo "configure
: failed program was
:" >&5
6979 cat conftest.$ac_ext >&5
6981 eval "ac_cv_lib_
$ac_lib_var=no
"
6984 LIBS="$ac_save_LIBS"
6987 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6988 echo "$ac_t""yes" 1>&6
6989 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6991 echo "$ac_t""no
" 1>&6
6996 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6997 echo $ac_n "checking
for shmat
""...
$ac_c" 1>&6
6998 echo "configure
:6999: checking
for shmat
" >&5
6999 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
7000 echo $ac_n "(cached
) $ac_c" 1>&6
7002 cat > conftest.$ac_ext <<EOF
7003 #line 7004 "configure
"
7004 #include "confdefs.h
"
7005 /* System header to define __stub macros and hopefully few prototypes,
7006 which can conflict with char shmat(); below. */
7008 /* Override any gcc2 internal prototype to avoid an error. */
7009 /* We use char because int might match the return type of a gcc2
7010 builtin and then its argument prototype would still apply. */
7015 /* The GNU C library defines this for functions which it implements
7016 to always fail with ENOSYS. Some functions are actually named
7017 something starting with __ and the normal name is an alias. */
7018 #if defined (__stub_shmat) || defined (__stub___shmat)
7026 if { (eval echo configure:7027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7028 eval "ac_cv_func_shmat
=yes"
7030 echo "configure
: failed program was
:" >&5
7031 cat conftest.$ac_ext >&5
7033 eval "ac_cv_func_shmat
=no
"
7038 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
7039 echo "$ac_t""yes" 1>&6
7042 echo "$ac_t""no
" 1>&6
7045 if test $ac_cv_func_shmat = no; then
7046 echo $ac_n "checking
for shmat
in -lipc""...
$ac_c" 1>&6
7047 echo "configure
:7048: checking
for shmat
in -lipc" >&5
7048 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
7049 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7050 echo $ac_n "(cached
) $ac_c" 1>&6
7052 ac_save_LIBS="$LIBS"
7054 cat > conftest.$ac_ext <<EOF
7055 #line 7056 "configure
"
7056 #include "confdefs.h
"
7057 /* Override any gcc2 internal prototype to avoid an error. */
7058 /* We use char because int might match the return type of a gcc2
7059 builtin and then its argument prototype would still apply. */
7066 if { (eval echo configure:7067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7068 eval "ac_cv_lib_
$ac_lib_var=yes"
7070 echo "configure
: failed program was
:" >&5
7071 cat conftest.$ac_ext >&5
7073 eval "ac_cv_lib_
$ac_lib_var=no
"
7076 LIBS="$ac_save_LIBS"
7079 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7080 echo "$ac_t""yes" 1>&6
7081 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7083 echo "$ac_t""no
" 1>&6
7089 # Check for libraries that X11R6 Xt/Xaw programs need.
7090 ac_save_LDFLAGS="$LDFLAGS"
7091 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7092 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7093 # check for ICE first), but we must link in the order -lSM -lICE or
7094 # we get undefined symbols. So assume we have SM if we have ICE.
7095 # These have to be linked with before -lX11, unlike the other
7096 # libraries we check for below, so use a different variable.
7097 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
7098 echo $ac_n "checking
for IceConnectionNumber
in -lICE""...
$ac_c" 1>&6
7099 echo "configure
:7100: checking
for IceConnectionNumber
in -lICE" >&5
7100 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
7101 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7102 echo $ac_n "(cached
) $ac_c" 1>&6
7104 ac_save_LIBS="$LIBS"
7105 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7106 cat > conftest.$ac_ext <<EOF
7107 #line 7108 "configure
"
7108 #include "confdefs.h
"
7109 /* Override any gcc2 internal prototype to avoid an error. */
7110 /* We use char because int might match the return type of a gcc2
7111 builtin and then its argument prototype would still apply. */
7112 char IceConnectionNumber();
7115 IceConnectionNumber()
7118 if { (eval echo configure:7119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7120 eval "ac_cv_lib_
$ac_lib_var=yes"
7122 echo "configure
: failed program was
:" >&5
7123 cat conftest.$ac_ext >&5
7125 eval "ac_cv_lib_
$ac_lib_var=no
"
7128 LIBS="$ac_save_LIBS"
7131 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7132 echo "$ac_t""yes" 1>&6
7133 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7135 echo "$ac_t""no
" 1>&6
7138 LDFLAGS="$ac_save_LDFLAGS"
7143 # Check whether --enable-java-awt or --disable-java-awt was given.
7144 if test "${enable_java_awt+set}" = set; then
7145 enableval="$enable_java_awt"
7150 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
7154 for peer in $peerlibs ; do
7157 if test "$no_x" = yes; then
7158 echo "*** xlib peers requested but no X library available
" 1>&2
7173 echo "*** unrecognised argument
\"${peer}\" for --enable-java-awt" 1>&2
7180 if test "$use_xlib_awt" = yes; then
7189 if test "$use_gtk_awt" = yes; then
7201 # We get this from the environment.
7205 cat > confcache <<\EOF
7206 # This file is a shell script that caches the results of configure
7207 # tests run on this system so they can be shared between configure
7208 # scripts and configure runs. It is not useful on other systems.
7209 # If it contains results you don't want to keep, you may remove or edit it.
7211 # By default, configure uses ./config.cache as the cache file,
7212 # creating it if it does not exist already. You can give configure
7213 # the --cache-file=FILE option to use a different cache file; that is
7214 # what configure does when it calls configure scripts in
7215 # subdirectories, so they share the cache.
7216 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7217 # config.status only pays attention to the cache file if you give it the
7218 # --recheck option to rerun configure.
7221 # The following way of writing the cache mishandles newlines in values,
7222 # but we know of no workaround that is simple, portable, and efficient.
7223 # So, don't put newlines in cache variables' values.
7224 # Ultrix sh set writes to stderr and can't be redirected directly,
7225 # and sets the high bit in the cache file unless we assign to the vars.
7227 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7229 # `set' does not quote correctly, so add quotes (double-quote substitution
7230 # turns \\\\ into \\, and sed turns \\ into \).
7232 -e "s
/'/'\\\\''/g
" \
7233 -e "s
/^
\\([a-zA-Z0-9_
]*_cv_
[a-zA-Z0-9_
]*\\)=\\(.
*\\)/\\1=\
${\\1='\\2'}/p
"
7236 # `set' quotes correctly as required by POSIX, so do not add quotes.
7237 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7240 if cmp -s $cache_file confcache; then
7243 if test -w $cache_file; then
7244 echo "updating cache
$cache_file"
7245 cat confcache > $cache_file
7247 echo "not updating unwritable cache
$cache_file"
7252 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7254 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
7255 # Let make expand exec_prefix.
7256 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
7258 # Any assignment to VPATH causes Sun make to only execute
7259 # the first set of double-colon rules, so remove it if not needed.
7260 # If there is a colon in the path, we need to keep it.
7261 if test "x
$srcdir" = x.; then
7262 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7265 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7267 DEFS=-DHAVE_CONFIG_H
7269 # Without the ".
/", some shells look in PATH for config.status.
7270 : ${CONFIG_STATUS=./config.status}
7272 echo creating $CONFIG_STATUS
7273 rm -f $CONFIG_STATUS
7274 cat > $CONFIG_STATUS <<EOF
7276 # Generated automatically by configure.
7277 # Run this file to recreate the current configuration.
7278 # This directory was configured as follows,
7279 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7281 # $0 $ac_configure_args
7283 # Compiler output produced by configure, useful for debugging
7284 # configure, is in ./config.log if it exists.
7286 ac_cs_usage="Usage
: $CONFIG_STATUS [--recheck] [--version] [--help]"
7289 case "\
$ac_option" in
7290 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7291 echo "running \
${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7292 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7293 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7294 echo "$CONFIG_STATUS generated by autoconf version
2.13"
7296 -help | --help | --hel | --he | --h)
7297 echo "\
$ac_cs_usage"; exit 0 ;;
7298 *) echo "\
$ac_cs_usage"; exit 1 ;;
7302 ac_given_srcdir=$srcdir
7303 ac_given_INSTALL="$INSTALL"
7305 trap 'rm -fr `echo "Makefile libgcj.spec libgcj-test.spec gnu
/classpath
/Configuration.java gcj
/Makefile include
/Makefile testsuite
/Makefile include
/config.h gcj
/libgcj-config.h
" | sed "s
/:[^
]*//g
"` conftest*; exit 1' 1 2 15
7307 cat >> $CONFIG_STATUS <<EOF
7309 # Protect against being on the right side of a sed subst in config.status.
7310 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7311 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7315 s%@CFLAGS@%$CFLAGS%g
7316 s%@CPPFLAGS@%$CPPFLAGS%g
7317 s%@CXXFLAGS@%$CXXFLAGS%g
7318 s%@FFLAGS@%$FFLAGS%g
7320 s%@LDFLAGS@%$LDFLAGS%g
7322 s%@exec_prefix@%$exec_prefix%g
7323 s%@prefix@%$prefix%g
7324 s%@program_transform_name@%$program_transform_name%g
7325 s%@bindir@%$bindir%g
7326 s%@sbindir@%$sbindir%g
7327 s%@libexecdir@%$libexecdir%g
7328 s%@datadir@%$datadir%g
7329 s%@sysconfdir@%$sysconfdir%g
7330 s%@sharedstatedir@%$sharedstatedir%g
7331 s%@localstatedir@%$localstatedir%g
7332 s%@libdir@%$libdir%g
7333 s%@includedir@%$includedir%g
7334 s%@oldincludedir@%$oldincludedir%g
7335 s%@infodir@%$infodir%g
7336 s%@mandir@%$mandir%g
7338 s%@libgcj_basedir@%$libgcj_basedir%g
7339 s%@mkinstalldirs@%$mkinstalldirs%g
7341 s%@host_alias@%$host_alias%g
7342 s%@host_cpu@%$host_cpu%g
7343 s%@host_vendor@%$host_vendor%g
7344 s%@host_os@%$host_os%g
7345 s%@target@%$target%g
7346 s%@target_alias@%$target_alias%g
7347 s%@target_cpu@%$target_cpu%g
7348 s%@target_vendor@%$target_vendor%g
7349 s%@target_os@%$target_os%g
7351 s%@build_alias@%$build_alias%g
7352 s%@build_cpu@%$build_cpu%g
7353 s%@build_vendor@%$build_vendor%g
7354 s%@build_os@%$build_os%g
7357 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7358 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7359 s%@INSTALL_DATA@%$INSTALL_DATA%g
7360 s%@PACKAGE@%$PACKAGE%g
7361 s%@VERSION@%$VERSION%g
7362 s%@ACLOCAL@%$ACLOCAL%g
7363 s%@AUTOCONF@%$AUTOCONF%g
7364 s%@AUTOMAKE@%$AUTOMAKE%g
7365 s%@AUTOHEADER@%$AUTOHEADER%g
7366 s%@MAKEINFO@%$MAKEINFO%g
7367 s%@SET_MAKE@%$SET_MAKE%g
7370 s%@RANLIB@%$RANLIB%g
7371 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
7372 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
7374 s%@EXEEXT@%$EXEEXT%g
7375 s%@LIBGCJ_CFLAGS@%$LIBGCJ_CFLAGS%g
7376 s%@LIBGCJ_CXXFLAGS@%$LIBGCJ_CXXFLAGS%g
7377 s%@LIBGCJ_JAVAFLAGS@%$LIBGCJ_JAVAFLAGS%g
7378 s%@INCLTDL@%$INCLTDL%g
7379 s%@LIBLTDL@%$LIBLTDL%g
7380 s%@DIRLTDL@%$DIRLTDL%g
7381 s%@OBJEXT@%$OBJEXT%g
7383 s%@LIBTOOL@%$LIBTOOL%g
7384 s%@CXXCPP@%$CXXCPP%g
7385 s%@subdirs@%$subdirs%g
7386 s%@COMPPATH@%$COMPPATH%g
7387 s%@TESTSUBDIR_TRUE@%$TESTSUBDIR_TRUE%g
7388 s%@TESTSUBDIR_FALSE@%$TESTSUBDIR_FALSE%g
7389 s%@LIBGCJDEBUG@%$LIBGCJDEBUG%g
7390 s%@LIBFFI@%$LIBFFI%g
7391 s%@LIBFFIINCS@%$LIBFFIINCS%g
7393 s%@SYSTEMSPEC@%$SYSTEMSPEC%g
7394 s%@LIBGCJTESTSPEC@%$LIBGCJTESTSPEC%g
7395 s%@ZLIBSPEC@%$ZLIBSPEC%g
7396 s%@ZLIBTESTSPEC@%$ZLIBTESTSPEC%g
7397 s%@GCLIBS@%$GCLIBS%g
7398 s%@GCINCS@%$GCINCS%g
7399 s%@GCDEPS@%$GCDEPS%g
7400 s%@GCOBJS@%$GCOBJS%g
7401 s%@GCSPEC@%$GCSPEC%g
7402 s%@JC1GCSPEC@%$JC1GCSPEC%g
7403 s%@GCTESTSPEC@%$GCTESTSPEC%g
7404 s%@THREADLIBS@%$THREADLIBS%g
7405 s%@THREADINCS@%$THREADINCS%g
7406 s%@THREADDEPS@%$THREADDEPS%g
7407 s%@THREADOBJS@%$THREADOBJS%g
7408 s%@THREADSPEC@%$THREADSPEC%g
7409 s%@HASH_SYNC_SPEC@%$HASH_SYNC_SPEC%g
7410 s%@USING_GCC_TRUE@%$USING_GCC_TRUE%g
7411 s%@USING_GCC_FALSE@%$USING_GCC_FALSE%g
7412 s%@LIBICONV@%$LIBICONV%g
7414 s%@GCJFLAGS@%$GCJFLAGS%g
7418 s%@DIVIDESPEC@%$DIVIDESPEC%g
7419 s%@EXCEPTIONSPEC@%$EXCEPTIONSPEC%g
7420 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
7421 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
7422 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
7423 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
7424 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
7425 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
7426 s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
7427 s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
7428 s%@NEEDS_DATA_START_TRUE@%$NEEDS_DATA_START_TRUE%g
7429 s%@NEEDS_DATA_START_FALSE@%$NEEDS_DATA_START_FALSE%g
7430 s%@GCC_UNWIND_INCLUDE@%$GCC_UNWIND_INCLUDE%g
7431 s%@GCJVERSION@%$GCJVERSION%g
7432 s%@AM_RUNTESTFLAGS@%$AM_RUNTESTFLAGS%g
7433 s%@ALLOCA@%$ALLOCA%g
7435 s%@SYSDEP_SOURCES@%$SYSDEP_SOURCES%g
7436 s%@X_CFLAGS@%$X_CFLAGS%g
7437 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
7438 s%@X_LIBS@%$X_LIBS%g
7439 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
7440 s%@XLIB_AWT_TRUE@%$XLIB_AWT_TRUE%g
7441 s%@XLIB_AWT_FALSE@%$XLIB_AWT_FALSE%g
7442 s%@GTK_AWT_TRUE@%$GTK_AWT_TRUE%g
7443 s%@GTK_AWT_FALSE@%$GTK_AWT_FALSE%g
7449 cat >> $CONFIG_STATUS <<\EOF
7451 # Split the substitutions into bite-sized pieces for seds with
7452 # small command number limits, like on Digital OSF/1 and HP-UX.
7453 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7454 ac_file=1 # Number of current file.
7455 ac_beg=1 # First line for current file.
7456 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7459 while $ac_more_lines; do
7460 if test $ac_beg -gt 1; then
7461 sed "1,${ac_beg}d
; ${ac_end}q
" conftest.subs > conftest.s$ac_file
7463 sed "${ac_end}q
" conftest.subs > conftest.s$ac_file
7465 if test ! -s conftest.s$ac_file; then
7467 rm -f conftest.s$ac_file
7469 if test -z "$ac_sed_cmds"; then
7470 ac_sed_cmds="sed -f conftest.s
$ac_file"
7472 ac_sed_cmds="$ac_sed_cmds |
sed -f conftest.s
$ac_file"
7474 ac_file=`expr $ac_file + 1`
7476 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7479 if test -z "$ac_sed_cmds"; then
7484 cat >> $CONFIG_STATUS <<EOF
7486 CONFIG_FILES=\${CONFIG_FILES-"Makefile libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile"}
7488 cat >> $CONFIG_STATUS <<\EOF
7489 for ac_file in .. $CONFIG_FILES; do if test "x
$ac_file" != x..; then
7490 # Support "outfile
[:infile
[:infile...
]]", defaulting infile="outfile.
in".
7492 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7493 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7494 *) ac_file_in="${ac_file}.
in" ;;
7497 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7499 # Remove last slash and all that follows it. Not all systems have dirname.
7500 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7501 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7502 # The file is in a subdirectory.
7503 test ! -d "$ac_dir" && mkdir "$ac_dir"
7504 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7505 # A "..
/" for each directory in $ac_dir_suffix.
7506 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7508 ac_dir_suffix= ac_dots=
7511 case "$ac_given_srcdir" in
7513 if test -z "$ac_dots"; then top_srcdir=.
7514 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7515 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7517 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7518 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7521 case "$ac_given_INSTALL" in
7522 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7523 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7526 echo creating "$ac_file"
7528 configure_input="Generated automatically from
`echo $ac_file_in|sed 's%.*/%%'` by configure.
"
7530 *Makefile*) ac_comsub="1i
\\
7531 # $configure_input" ;;
7535 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7537 s%@configure_input@%$configure_input%g
7538 s%@srcdir@%$srcdir%g
7539 s%@top_srcdir@%$top_srcdir%g
7540 s%@INSTALL@%$INSTALL%g
7541 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
7545 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7546 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7548 # ac_d sets the value in "#define NAME VALUE" lines.
7549 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7550 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
7553 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7554 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7555 ac_uB
='\([ ]\)%\1#\2define\3'
7558 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7559 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7560 ac_eB
='$%\1#\2define\3'
7564 if test "${CONFIG_HEADERS+set}" != set; then
7566 cat >> $CONFIG_STATUS <<EOF
7567 CONFIG_HEADERS="include/config.h gcj/libgcj-config.h"
7569 cat >> $CONFIG_STATUS <<\EOF
7571 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
7572 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7574 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
7575 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
7576 *) ac_file_in
="${ac_file}.in" ;;
7579 echo creating
$ac_file
7581 rm -f conftest.frag conftest.
in conftest.out
7582 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7583 cat $ac_file_inputs > conftest.
in
7587 # Transform confdefs.h into a sed script conftest.vals that substitutes
7588 # the proper values into config.h.in to produce config.h. And first:
7589 # Protect against being on the right side of a sed subst in config.status.
7590 # Protect against being in an unquoted here document in config.status.
7592 cat > conftest.hdr
<<\EOF
7595 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7599 sed -n -f conftest.hdr confdefs.h > conftest.vals
7602 # This sed command replaces #undef with comments. This is necessary, for
7603 # example, in the case of _POSIX_SOURCE, which is predefined and required
7604 # on some systems where configure will not decide to define it.
7605 cat >> conftest.vals <<\EOF
7606 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7609 # Break up conftest.vals because some shells have a limit on
7610 # the size of here documents, and old seds have small limits too.
7615 ac_lines=`grep -c . conftest.vals
`
7616 # grep -c gives empty output for an empty file on some AIX systems.
7617 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7618 # Write a limited-size here document to conftest.frag.
7619 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7620 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7622 sed -f conftest.frag conftest.in > conftest.out
7624 mv conftest.out conftest.in
7626 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7628 mv conftest.tail conftest.vals
7632 cat >> $CONFIG_STATUS <<\EOF
7633 rm -f conftest.frag conftest.h
7634 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7635 cat conftest.in >> conftest.h
7637 if cmp -s $ac_file conftest.h 2>/dev/null; then
7638 echo "$ac_file is unchanged"
7641 # Remove last slash and all that follows it. Not all systems have dirname.
7642 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
7643 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7644 # The file is in a subdirectory.
7645 test ! -d "$ac_dir" && mkdir "$ac_dir"
7648 mv conftest.h $ac_file
7654 cat >> $CONFIG_STATUS <<EOF
7655 ac_sources="java/io/$FILE_DESCRIPTOR java/lang/${PROCESS}Process.java java/lang/nat${PROCESS}Process.cc include/$GCHDR include/$THREADH $SIGNAL_HANDLER"
7656 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"
7659 cat >> $CONFIG_STATUS <<\EOF
7660 srcdir=$ac_given_srcdir
7661 while test -n "$ac_sources"; do
7662 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
7663 set $ac_sources; ac_source=$1; shift; ac_sources=$*
7665 echo "linking $srcdir/$ac_source to $ac_dest"
7667 if test ! -r $srcdir/$ac_source; then
7668 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
7672 # Make relative symlinks.
7673 # Remove last slash and all that follows it. Not all systems have dirname.
7674 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
7675 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
7676 # The dest file is in a subdirectory.
7677 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
7678 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
7679 # A "../" for each directory in $ac_dest_dir_suffix.
7680 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
7682 ac_dest_dir_suffix= ac_dots=
7686 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
7687 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
7690 # Make a symlink if possible; otherwise try a hard link.
7691 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
7692 ln $srcdir/$ac_source $ac_dest; then :
7694 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
7698 cat >> $CONFIG_STATUS <<EOF
7703 with_multisubdir=${with_multisubdir}
7704 ac_configure_args="${multilib_arg} ${ac_configure_args}"
7705 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
7706 libgcj_basedir=${libgcj_basedir}
7711 cat >> $CONFIG_STATUS <<\EOF
7713 for am_file in include/config.h gcj/libgcj-config.h; do
7714 case " $CONFIG_HEADERS " in
7716 echo timestamp > `echo $am_file |
sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
7719 am_indx=`expr "$am_indx" + 1`
7721 # Only add multilib support code if we just rebuilt top-level Makefile.
7722 case " $CONFIG_FILES " in
7724 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
7728 # Make subdirectories and `.d
' files. Look in both srcdir and
7729 # builddir for the .java files.
7732 ( (cd $srcdir && find . \( -name '*.java
' -o -name '*.cc
' \) -print) ;
7733 find . \( -name '*.java
' -o -name '*.cc
' \) -print) | \
7734 fgrep -v testsuite | \
7735 sed -e 's
/\.java
/.d
/'\;'s
/\.cc
/.d
/' | \
7737 echo "include $f" >> deps.mk
7740 d=`echo $f | sed -e 's
,/[^
/]*$
,,'`
7742 if test ! -d $d; then
7743 $libgcj_basedir/../mkinstalldirs $d
7751 chmod +x $CONFIG_STATUS
7752 rm -fr confdefs* $ac_clean_files
7753 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7755 if test "$no_recursion" != yes; then
7757 # Remove --cache-file and --srcdir arguments so they do not pile up.
7758 ac_sub_configure_args=
7760 for ac_arg in $ac_configure_args; do
7761 if test -n "$ac_prev"; then
7766 -cache-file | --cache-file | --cache-fil | --cache-fi \
7767 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
7768 ac_prev=cache_file ;;
7769 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
7770 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
7772 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
7774 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
7776 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
7780 for ac_config_dir in $DIRLTDL; do
7782 # Do not complain, so a configure script can configure whichever
7783 # parts of a large source tree are present.
7784 if test ! -d $srcdir/$ac_config_dir; then
7788 echo configuring in $ac_config_dir
7793 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
7795 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
7803 # A "../" for each directory in /$ac_config_dir.
7804 ac_dots=`echo $ac_config_dir|sed -e 's
%^\.
/%%' -e 's
%[^
/]$
%&/%' -e 's
%[^
/]*/%..
/%g
'`
7807 .) # No --srcdir option. We are building in place.
7808 ac_sub_srcdir=$srcdir ;;
7809 /*) # Absolute path.
7810 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
7812 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
7815 # Check for guested configure; otherwise get Cygnus style configure.
7816 if test -f $ac_sub_srcdir/configure; then
7817 ac_sub_configure=$ac_sub_srcdir/configure
7818 elif test -f $ac_sub_srcdir/configure.in; then
7819 ac_sub_configure=$ac_configure
7821 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
7825 # The recursion is here.
7826 if test -n "$ac_sub_configure"; then
7828 # Make the cache file name correct relative to the subdirectory.
7829 case "$cache_file" in
7830 /*) ac_sub_cache_file=$cache_file ;;
7832 ac_sub_cache_file="$ac_dots$cache_file" ;;
7834 case "$ac_given_INSTALL" in
7835 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7836 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7839 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
7840 # The eval makes quoting arguments work.
7841 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
7844 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }