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 --with-newlib Configuring with newlib"
22 --enable-multilib build many library versions (default)"
24 --enable-maintainer-mode enable make rules and dependencies not useful
25 (and sometimes confusing) to the casual installer"
27 --enable-shared[=PKGS] build shared libraries [default=yes]"
29 --enable-static[=PKGS] build static libraries [default=yes]"
31 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
33 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
35 --disable-libtool-lock avoid locking (might break parallel builds)"
37 --with-pic try to use only PIC/non-PIC objects [default=use both]"
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-multifile
46 allow compilation of several files at once"
48 --with-win32-nlsapi=ansi, unicows or unicode
49 native MinGW libgcj Win32 OS API [ansi]"
51 --enable-libgcj-debug enable runtime debugging code"
53 --enable-interpreter enable interpreter"
55 --enable-sjlj-exceptions force use of builtin_setjmp for exceptions"
57 --disable-java-net disable java.net"
59 --without-libffi don't use libffi"
61 --disable-jvmpi disable JVMPI support"
63 --with-ecos enable runtime eCos target support"
65 --with-system-zlib use installed libz"
67 --with-x use the X Window System"
69 --enable-java-awt list of AWT peer implementations to be built"
71 --enable-gtk-cairo build the cairo Graphics2D implementation on GTK"
73 --enable-java-gc=TYPE choose garbage collector [boehm]"
75 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
77 # Initialize some variables set by options.
78 # The variables have the same names as the options, with
79 # dashes changed to underlines.
81 cache_file
=.
/config.cache
90 program_transform_name
=s
,x
,x
,
98 bindir
='${exec_prefix}/bin'
99 sbindir
='${exec_prefix}/sbin'
100 libexecdir
='${exec_prefix}/libexec'
101 datadir
='${prefix}/share'
102 sysconfdir
='${prefix}/etc'
103 sharedstatedir
='${prefix}/com'
104 localstatedir
='${prefix}/var'
105 libdir
='${exec_prefix}/lib'
106 includedir
='${prefix}/include'
107 oldincludedir
='/usr/include'
108 infodir
='${prefix}/info'
109 mandir
='${prefix}/man'
111 # Initialize some other variables.
114 SHELL
=${CONFIG_SHELL-/bin/sh}
115 # Maximum number of lines to put in a shell here document.
122 # If the previous option needs an argument, assign it.
123 if test -n "$ac_prev"; then
124 eval "$ac_prev=\$ac_option"
130 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
134 # Accept the important Cygnus configure options, so we can diagnose typos.
138 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
140 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
141 bindir
="$ac_optarg" ;;
143 -build |
--build |
--buil |
--bui |
--bu)
145 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
146 build
="$ac_optarg" ;;
148 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
149 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
150 ac_prev
=cache_file
;;
151 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
152 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
153 cache_file
="$ac_optarg" ;;
155 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
157 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
159 datadir
="$ac_optarg" ;;
161 -disable-* |
--disable-*)
162 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
163 # Reject names that are not valid shell variable names.
164 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
165 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
167 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
168 eval "enable_${ac_feature}=no" ;;
170 -enable-* |
--enable-*)
171 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
172 # Reject names that are not valid shell variable names.
173 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
174 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
176 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
181 eval "enable_${ac_feature}='$ac_optarg'" ;;
183 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
184 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
185 |
--exec |
--exe |
--ex)
186 ac_prev
=exec_prefix
;;
187 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
188 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
189 |
--exec=* |
--exe=* |
--ex=*)
190 exec_prefix
="$ac_optarg" ;;
192 -gas |
--gas |
--ga |
--g)
193 # Obsolete; use --with-gas.
196 -help |
--help |
--hel |
--he)
197 # Omit some internal or obsolete options to make the list less imposing.
198 # This message is too long to be a string in the A/UX 3.1 sh.
200 Usage: configure [options] [host]
201 Options: [defaults in brackets after descriptions]
203 --cache-file=FILE cache test results in FILE
204 --help print this message
205 --no-create do not create output files
206 --quiet, --silent do not print \`checking...' messages
207 --version print the version of autoconf that created configure
208 Directory and file names:
209 --prefix=PREFIX install architecture-independent files in PREFIX
211 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
213 --bindir=DIR user executables in DIR [EPREFIX/bin]
214 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
215 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
216 --datadir=DIR read-only architecture-independent data in DIR
218 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
219 --sharedstatedir=DIR modifiable architecture-independent data in DIR
221 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
222 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
223 --includedir=DIR C header files in DIR [PREFIX/include]
224 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
225 --infodir=DIR info documentation in DIR [PREFIX/info]
226 --mandir=DIR man documentation in DIR [PREFIX/man]
227 --srcdir=DIR find the sources in DIR [configure dir or ..]
228 --program-prefix=PREFIX prepend PREFIX to installed program names
229 --program-suffix=SUFFIX append SUFFIX to installed program names
230 --program-transform-name=PROGRAM
231 run sed PROGRAM on installed program names
235 --build=BUILD configure for building on BUILD [BUILD=HOST]
236 --host=HOST configure for HOST [guessed]
237 --target=TARGET configure for TARGET [TARGET=HOST]
238 Features and packages:
239 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
240 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
241 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
242 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
243 --x-includes=DIR X include files are in DIR
244 --x-libraries=DIR X library files are in DIR
246 if test -n "$ac_help"; then
247 echo "--enable and --with options recognized:$ac_help"
251 -host |
--host |
--hos |
--ho)
253 -host=* |
--host=* |
--hos=* |
--ho=*)
256 -includedir |
--includedir |
--includedi |
--included |
--include \
257 |
--includ |
--inclu |
--incl |
--inc)
258 ac_prev
=includedir
;;
259 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
260 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
261 includedir
="$ac_optarg" ;;
263 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
265 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
266 infodir
="$ac_optarg" ;;
268 -libdir |
--libdir |
--libdi |
--libd)
270 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
271 libdir
="$ac_optarg" ;;
273 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
274 |
--libexe |
--libex |
--libe)
275 ac_prev
=libexecdir
;;
276 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
277 |
--libexe=* |
--libex=* |
--libe=*)
278 libexecdir
="$ac_optarg" ;;
280 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
281 |
--localstate |
--localstat |
--localsta |
--localst \
282 |
--locals |
--local |
--loca |
--loc |
--lo)
283 ac_prev
=localstatedir
;;
284 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
285 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
286 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
287 localstatedir
="$ac_optarg" ;;
289 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
291 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
292 mandir
="$ac_optarg" ;;
295 # Obsolete; use --without-fp.
298 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
302 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
303 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
306 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
307 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
308 |
--oldin |
--oldi |
--old |
--ol |
--o)
309 ac_prev
=oldincludedir
;;
310 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
311 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
312 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
313 oldincludedir
="$ac_optarg" ;;
315 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
317 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
318 prefix
="$ac_optarg" ;;
320 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
321 |
--program-pre |
--program-pr |
--program-p)
322 ac_prev
=program_prefix
;;
323 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
324 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
325 program_prefix
="$ac_optarg" ;;
327 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
328 |
--program-suf |
--program-su |
--program-s)
329 ac_prev
=program_suffix
;;
330 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
331 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
332 program_suffix
="$ac_optarg" ;;
334 -program-transform-name |
--program-transform-name \
335 |
--program-transform-nam |
--program-transform-na \
336 |
--program-transform-n |
--program-transform- \
337 |
--program-transform |
--program-transfor \
338 |
--program-transfo |
--program-transf \
339 |
--program-trans |
--program-tran \
340 |
--progr-tra |
--program-tr |
--program-t)
341 ac_prev
=program_transform_name
;;
342 -program-transform-name=* |
--program-transform-name=* \
343 |
--program-transform-nam=* |
--program-transform-na=* \
344 |
--program-transform-n=* |
--program-transform-=* \
345 |
--program-transform=* |
--program-transfor=* \
346 |
--program-transfo=* |
--program-transf=* \
347 |
--program-trans=* |
--program-tran=* \
348 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
349 program_transform_name
="$ac_optarg" ;;
351 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
352 |
-silent |
--silent |
--silen |
--sile |
--sil)
355 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
357 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
359 sbindir
="$ac_optarg" ;;
361 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
362 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
363 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
365 ac_prev
=sharedstatedir
;;
366 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
367 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
368 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
370 sharedstatedir
="$ac_optarg" ;;
372 -site |
--site |
--sit)
374 -site=* |
--site=* |
--sit=*)
377 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
379 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
380 srcdir
="$ac_optarg" ;;
382 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
383 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
384 ac_prev
=sysconfdir
;;
385 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
386 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
387 sysconfdir
="$ac_optarg" ;;
389 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
391 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
392 target
="$ac_optarg" ;;
394 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
397 -version |
--version |
--versio |
--versi |
--vers)
398 echo "configure generated by autoconf version 2.13"
402 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
403 # Reject names that are not valid shell variable names.
404 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
405 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
407 ac_package
=`echo $ac_package| sed 's/-/_/g'`
412 eval "with_${ac_package}='$ac_optarg'" ;;
414 -without-* |
--without-*)
415 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
416 # Reject names that are not valid shell variable names.
417 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
418 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
420 ac_package
=`echo $ac_package| sed 's/-/_/g'`
421 eval "with_${ac_package}=no" ;;
424 # Obsolete; use --with-x.
427 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
428 |
--x-incl |
--x-inc |
--x-in |
--x-i)
429 ac_prev
=x_includes
;;
430 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
431 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
432 x_includes
="$ac_optarg" ;;
434 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
435 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
436 ac_prev
=x_libraries
;;
437 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
438 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
439 x_libraries
="$ac_optarg" ;;
441 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
445 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
446 echo "configure: warning: $ac_option: invalid host type" 1>&2
448 if test "x$nonopt" != xNONE
; then
449 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
457 if test -n "$ac_prev"; then
458 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
461 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
463 # File descriptor usage:
466 # 2 errors and warnings
467 # 3 some systems may open it to /dev/tty
468 # 4 used on the Kubota Titan
469 # 6 checking for... messages and results
470 # 5 compiler messages saved in config.log
471 if test "$silent" = yes; then
479 This file contains any messages produced by compilers while
480 running configure, to aid debugging if configure makes a mistake.
483 # Strip out --no-create and --no-recursion so they do not pile up.
484 # Also quote any args containing shell metacharacters.
489 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
490 |
--no-cr |
--no-c) ;;
491 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
492 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
493 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
494 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
495 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
500 # Only set these to C if already set. These must not be set unconditionally
501 # because not all systems understand e.g. LANG=C (notably SCO).
502 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
503 # Non-C LC_CTYPE values break the ctype check.
504 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
505 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
506 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
507 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
509 # confdefs.h avoids OS command line length limits that DEFS can exceed.
510 rm -rf conftest
* confdefs.h
511 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
514 # A filename unique to this package, relative to the directory that
515 # configure is in, which we can look for to find out if srcdir is correct.
516 ac_unique_file
=java
/lang
/System.java
518 # Find the source files, if location was not specified.
519 if test -z "$srcdir"; then
520 ac_srcdir_defaulted
=yes
521 # Try the directory containing this script, then its parent.
523 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
524 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
526 if test ! -r $srcdir/$ac_unique_file; then
530 ac_srcdir_defaulted
=no
532 if test ! -r $srcdir/$ac_unique_file; then
533 if test "$ac_srcdir_defaulted" = yes; then
534 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
536 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
539 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
541 # Prefer explicitly selected file to automatically selected ones.
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"
549 for ac_site_file
in $CONFIG_SITE; do
550 if test -r "$ac_site_file"; then
551 echo "loading site script $ac_site_file"
556 if test -r "$cache_file"; then
557 echo "loading cache $cache_file"
560 echo "creating cache $cache_file"
565 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
566 ac_cpp
='$CPP $CPPFLAGS'
567 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
568 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
569 cross_compiling
=$ac_cv_prog_cc_cross
573 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
574 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
575 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
582 ac_n
= ac_c
='\c' ac_t
=
587 # This works around the fact that libtool configuration may change LD
588 # for this particular configuration, but some shells, instead of
589 # keeping the changes in LD private, export them just because LD is
591 ORIGINAL_LD_FOR_MULTILIBS
=$LD
593 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
594 echo "configure:595: checking whether ln -s works" >&5
595 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
596 echo $ac_n "(cached) $ac_c" 1>&6
599 if ln -s X conftestdata
2>/dev
/null
602 ac_cv_prog_LN_S
="ln -s"
607 LN_S
="$ac_cv_prog_LN_S"
608 if test "$ac_cv_prog_LN_S" = "ln -s"; then
609 echo "$ac_t""yes" 1>&6
611 echo "$ac_t""no" 1>&6
615 # Check whether --with-target-subdir or --without-target-subdir was given.
616 if test "${with_target_subdir+set}" = set; then
617 withval
="$with_target_subdir"
621 # Check whether --with-cross-host or --without-cross-host was given.
622 if test "${with_cross_host+set}" = set; then
623 withval
="$with_cross_host"
628 # Check whether --with-newlib or --without-newlib was given.
629 if test "${with_newlib+set}" = set; then
630 withval
="$with_newlib"
635 am__api_version
="1.4"
636 # Find a good install program. We prefer a C program (faster),
637 # so one script is as good as another. But avoid the broken or
638 # incompatible versions:
639 # SysV /etc/install, /usr/sbin/install
640 # SunOS /usr/etc/install
643 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
644 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
645 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
646 # ./install, which can be erroneously created by make from ./install.sh.
647 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
648 echo "configure:649: checking for a BSD compatible install" >&5
649 if test -z "$INSTALL"; then
650 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
651 echo $ac_n "(cached) $ac_c" 1>&6
653 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
654 for ac_dir
in $PATH; do
655 # Account for people who put trailing slashes in PATH elements.
657 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
659 # OSF1 and SCO ODT 3.0 have their own names for install.
660 # Don't use installbsd from OSF since it installs stuff as root
662 for ac_prog
in ginstall scoinst
install; do
663 if test -f $ac_dir/$ac_prog; then
664 if test $ac_prog = install &&
665 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
666 # AIX install. It has an incompatible calling convention.
669 ac_cv_path_install
="$ac_dir/$ac_prog -c"
680 if test "${ac_cv_path_install+set}" = set; then
681 INSTALL
="$ac_cv_path_install"
683 # As a last resort, use the slow shell script. We don't cache a
684 # path for INSTALL within a source directory, because that will
685 # break other packages using the cache if that directory is
686 # removed, or if the path is relative.
687 INSTALL
="$ac_install_sh"
690 echo "$ac_t""$INSTALL" 1>&6
692 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
693 # It thinks the first close brace ends the variable substitution.
694 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
696 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
698 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
700 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
701 echo "configure:702: checking whether build environment is sane" >&5
704 echo timestamp
> conftestfile
705 # Do `set' in a subshell so we don't clobber the current shell's
706 # arguments. Must try -L first in case configure is actually a
707 # symlink; some systems play weird games with the mod time of symlinks
708 # (eg FreeBSD returns the mod time of the symlink's containing
711 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
712 if test "$*" = "X"; then
714 set X
`ls -t $srcdir/configure conftestfile`
716 if test "$*" != "X $srcdir/configure conftestfile" \
717 && test "$*" != "X conftestfile $srcdir/configure"; then
719 # If neither matched, then we have a broken ls. This can happen
720 # if, for instance, CONFIG_SHELL is bash and it inherits a
721 # broken ls alias from the environment. This has actually
722 # happened. Such a system could not be considered "sane".
723 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
724 alias in your environment" 1>&2; exit 1; }
727 test "$2" = conftestfile
733 { echo "configure: error: newly created file is older than distributed files!
734 Check your system clock" 1>&2; exit 1; }
737 echo "$ac_t""yes" 1>&6
738 if test "$program_transform_name" = s
,x
,x
,; then
739 program_transform_name
=
741 # Double any \ or $. echo might interpret backslashes.
742 cat <<\EOF_SED
> conftestsed
743 s
,\\,\\\\,g
; s
,\$
,$$
,g
745 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
748 test "$program_prefix" != NONE
&&
749 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
750 # Use a double $ so make ignores it.
751 test "$program_suffix" != NONE
&&
752 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
754 # sed with no file args requires a program.
755 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
757 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
758 echo "configure:759: checking whether ${MAKE-make} sets \${MAKE}" >&5
759 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
760 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
761 echo $ac_n "(cached) $ac_c" 1>&6
763 cat > conftestmake
<<\EOF
765 @
echo 'ac_maketemp="${MAKE}"'
767 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
768 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
769 if test -n "$ac_maketemp"; then
770 eval ac_cv_prog_make_
${ac_make}_set
=yes
772 eval ac_cv_prog_make_
${ac_make}_set
=no
776 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
777 echo "$ac_t""yes" 1>&6
780 echo "$ac_t""no" 1>&6
781 SET_MAKE
="MAKE=${MAKE-make}"
784 if test $host != $build; then
785 ac_tool_prefix
=${host_alias}-
790 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
791 echo "configure:792: checking for Cygwin environment" >&5
792 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
793 echo $ac_n "(cached) $ac_c" 1>&6
795 cat > conftest.
$ac_ext <<EOF
796 #line 797 "configure"
797 #include "confdefs.h"
802 #define __CYGWIN__ __CYGWIN32__
807 if { (eval echo configure
:808: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
811 echo "configure: failed program was:" >&5
812 cat conftest.
$ac_ext >&5
820 echo "$ac_t""$ac_cv_cygwin" 1>&6
822 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
823 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
824 echo "configure:825: checking for mingw32 environment" >&5
825 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
826 echo $ac_n "(cached) $ac_c" 1>&6
828 cat > conftest.
$ac_ext <<EOF
829 #line 830 "configure"
830 #include "confdefs.h"
836 if { (eval echo configure
:837: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
840 echo "configure: failed program was:" >&5
841 cat conftest.
$ac_ext >&5
849 echo "$ac_t""$ac_cv_mingw32" 1>&6
851 test "$ac_cv_mingw32" = yes && MINGW32
=yes
853 # Check whether --enable-multilib or --disable-multilib was given.
854 if test "${enable_multilib+set}" = set; then
855 enableval
="$enable_multilib"
856 case "${enableval}" in
859 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
866 # When building with srcdir == objdir, links to the source files will
867 # be created in directories within the target_subdir. We have to
868 # adjust toplevel_srcdir accordingly, so that configure finds
869 # install-sh and other auxiliary files that live in the top-level
871 if test "${srcdir}" = "."; then
872 if test -z "${with_target_subdir}"; then
875 if test "${with_target_subdir}" != "."; then
876 toprel
="${with_multisrctop}../.."
878 toprel
="${with_multisrctop}.."
885 libgcj_basedir
=$srcdir/$toprel/.
/libjava
889 for ac_dir
in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
890 if test -f $ac_dir/install-sh
; then
892 ac_install_sh
="$ac_aux_dir/install-sh -c"
894 elif test -f $ac_dir/install.sh
; then
896 ac_install_sh
="$ac_aux_dir/install.sh -c"
900 if test -z "$ac_aux_dir"; then
901 { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
903 ac_config_guess=$ac_aux_dir/config.guess
904 ac_config_sub=$ac_aux_dir/config.sub
905 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
908 # This overrides the previous occurrence for automake, but not for
909 # autoconf, which is exactly what we want.
911 for ac_dir in .. $srcdir/..; do
912 if test -f $ac_dir/install-sh; then
914 ac_install_sh="$ac_aux_dir/install-sh
-c"
916 elif test -f $ac_dir/install.sh; then
918 ac_install_sh="$ac_aux_dir/install.sh
-c"
922 if test -z "$ac_aux_dir"; then
923 { echo "configure
: error
: can not
find install-sh or
install.sh
in ..
$srcdir/..
" 1>&2; exit 1; }
925 ac_config_guess=$ac_aux_dir/config.guess
926 ac_config_sub=$ac_aux_dir/config.sub
927 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
931 # This works around an automake problem.
932 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs
"
936 # Do some error checking and defaulting for the host and target type.
938 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
941 # 1. You are not allowed to specify --host, --target, and nonopt at the
943 # 2. Host defaults to nonopt.
944 # 3. If nonopt is not specified, then host defaults to the current host,
945 # as determined by config.guess.
946 # 4. Target and build default to nonopt.
947 # 5. If nonopt is not specified, then target and build default to host.
949 # The aliases save the names the user supplied, while $host etc.
950 # will get canonicalized.
951 case $host---$target---$nonopt in
952 NONE---*---* | *---NONE---* | *---*---NONE) ;;
953 *) { echo "configure
: error
: can only configure
for one
host and one target
at a
time" 1>&2; exit 1; } ;;
957 # Make sure we can run config.sub.
958 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
959 else { echo "configure
: error
: can not run
$ac_config_sub" 1>&2; exit 1; }
962 echo $ac_n "checking
host system
type""...
$ac_c" 1>&6
963 echo "configure
:964: checking
host system
type" >&5
966 case "$host_alias" in
970 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
971 else { echo "configure
: error
: can not guess
host type; you must specify one
" 1>&2; exit 1; }
973 *) host_alias=$nonopt ;;
977 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
978 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
979 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
980 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
981 echo "$ac_t""$host" 1>&6
983 echo $ac_n "checking target system
type""...
$ac_c" 1>&6
984 echo "configure
:985: checking target system
type" >&5
987 case "$target_alias" in
990 NONE) target_alias=$host_alias ;;
991 *) target_alias=$nonopt ;;
995 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
996 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
997 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
998 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
999 echo "$ac_t""$target" 1>&6
1001 echo $ac_n "checking build system
type""...
$ac_c" 1>&6
1002 echo "configure
:1003: checking build system
type" >&5
1005 case "$build_alias" in
1008 NONE) build_alias=$host_alias ;;
1009 *) build_alias=$nonopt ;;
1013 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1014 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1015 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1016 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1017 echo "$ac_t""$build" 1>&6
1019 test "$host_alias" != "$target_alias" &&
1020 test "$program_prefix$program_suffix$program_transform_name" = \
1022 program_prefix=${target_alias}-
1028 # Extract the first word of "gcc
", so it can be a program name with args.
1029 set dummy gcc; ac_word=$2
1030 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1031 echo "configure
:1032: checking
for $ac_word" >&5
1032 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1033 echo $ac_n "(cached
) $ac_c" 1>&6
1035 if test -n "$CC"; then
1036 ac_cv_prog_CC="$CC" # Let the user override the test.
1038 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1040 for ac_dir in $ac_dummy; do
1041 test -z "$ac_dir" && ac_dir=.
1042 if test -f $ac_dir/$ac_word; then
1051 if test -n "$CC"; then
1052 echo "$ac_t""$CC" 1>&6
1054 echo "$ac_t""no
" 1>&6
1057 if test -z "$CC"; then
1058 # Extract the first word of "cc
", so it can be a program name with args.
1059 set dummy cc; ac_word=$2
1060 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1061 echo "configure
:1062: checking
for $ac_word" >&5
1062 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1063 echo $ac_n "(cached
) $ac_c" 1>&6
1065 if test -n "$CC"; then
1066 ac_cv_prog_CC="$CC" # Let the user override the test.
1068 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1071 for ac_dir in $ac_dummy; do
1072 test -z "$ac_dir" && ac_dir=.
1073 if test -f $ac_dir/$ac_word; then
1074 if test "$ac_dir/$ac_word" = "/usr
/ucb
/cc
"; then
1075 ac_prog_rejected=yes
1083 if test $ac_prog_rejected = yes; then
1084 # We found a bogon in the path, so make sure we never use it.
1085 set dummy $ac_cv_prog_CC
1087 if test $# -gt 0; then
1088 # We chose a different compiler from the bogus one.
1089 # However, it has the same basename, so the bogon will be chosen
1090 # first if we set CC to just the basename; use the full file name.
1092 set dummy "$ac_dir/$ac_word" "$@
"
1100 if test -n "$CC"; then
1101 echo "$ac_t""$CC" 1>&6
1103 echo "$ac_t""no
" 1>&6
1106 if test -z "$CC"; then
1107 case "`uname -s`" in
1109 # Extract the first word of "cl
", so it can be a program name with args.
1110 set dummy cl; ac_word=$2
1111 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1112 echo "configure
:1113: checking
for $ac_word" >&5
1113 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1114 echo $ac_n "(cached
) $ac_c" 1>&6
1116 if test -n "$CC"; then
1117 ac_cv_prog_CC="$CC" # Let the user override the test.
1119 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1121 for ac_dir in $ac_dummy; do
1122 test -z "$ac_dir" && ac_dir=.
1123 if test -f $ac_dir/$ac_word; then
1132 if test -n "$CC"; then
1133 echo "$ac_t""$CC" 1>&6
1135 echo "$ac_t""no
" 1>&6
1140 test -z "$CC" && { echo "configure
: error
: no acceptable cc found
in \
$PATH" 1>&2; exit 1; }
1144 echo $ac_n "checking whether we are using GNU C
""...
$ac_c" 1>&6
1145 echo "configure
:1146: checking whether we are using GNU C
" >&5
1146 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1147 echo $ac_n "(cached
) $ac_c" 1>&6
1149 cat > conftest.c <<EOF
1154 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1155: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1161 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1163 if test $ac_cv_prog_gcc = yes; then
1169 ac_test_CFLAGS="${CFLAGS+set}"
1170 ac_save_CFLAGS="$CFLAGS"
1172 echo $ac_n "checking whether
${CC-cc} accepts
-g""...
$ac_c" 1>&6
1173 echo "configure
:1174: checking whether
${CC-cc} accepts
-g" >&5
1174 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1175 echo $ac_n "(cached
) $ac_c" 1>&6
1177 echo 'void f(){}' > conftest.c
1178 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1187 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1188 if test "$ac_test_CFLAGS" = set; then
1189 CFLAGS="$ac_save_CFLAGS"
1190 elif test $ac_cv_prog_cc_g = yes; then
1191 if test "$GCC" = yes; then
1197 if test "$GCC" = yes; then
1205 # We use the libstdc++-v3 version of LIB_AC_PROG_CXX, but use
1206 # glibjava_CXX instead of glibcpp_CXX. That's because we're passed a
1207 # different definition of CXX than other directories, since we don't
1208 # depend on libstdc++-v3 having already been built.
1212 # Use glibjava_CXX so that we do not cause CXX to be cached with the
1213 # flags that come in CXX while configuring libjava. They're different
1214 # from those used for all other target libraries. If CXX is set in
1215 # the environment, respect that here.
1217 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1219 # Extract the first word of "$ac_prog", so it can be a program name with args.
1220 set dummy $ac_prog; ac_word=$2
1221 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1222 echo "configure
:1223: checking
for $ac_word" >&5
1223 if eval "test \"`echo '$''{'ac_cv_prog_glibjava_CXX'+set}'`\" = set"; then
1224 echo $ac_n "(cached
) $ac_c" 1>&6
1226 if test -n "$glibjava_CXX"; then
1227 ac_cv_prog_glibjava_CXX="$glibjava_CXX" # Let the user override the test.
1229 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1231 for ac_dir in $ac_dummy; do
1232 test -z "$ac_dir" && ac_dir=.
1233 if test -f $ac_dir/$ac_word; then
1234 ac_cv_prog_glibjava_CXX="$ac_prog"
1241 glibjava_CXX="$ac_cv_prog_glibjava_CXX"
1242 if test -n "$glibjava_CXX"; then
1243 echo "$ac_t""$glibjava_CXX" 1>&6
1245 echo "$ac_t""no
" 1>&6
1248 test -n "$glibjava_CXX" && break
1250 test -n "$glibjava_CXX" || glibjava_CXX="gcc
"
1254 test -z "$glibjava_CXX" && { echo "configure
: error
: no acceptable c
++ found
in \
$PATH" 1>&2; exit 1; }
1256 echo $ac_n "checking whether we are using GNU C
++""...
$ac_c" 1>&6
1257 echo "configure
:1258: checking whether we are using GNU C
++" >&5
1258 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1259 echo $ac_n "(cached
) $ac_c" 1>&6
1261 cat > conftest.C <<EOF
1266 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1267: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1273 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1275 if test $ac_cv_prog_gxx = yes; then
1277 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1278 ac_save_CXXFLAGS="$CXXFLAGS"
1280 echo $ac_n "checking whether
${CXX-g++} accepts
-g""...
$ac_c" 1>&6
1281 echo "configure
:1282: checking whether
${CXX-g++} accepts
-g" >&5
1282 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1283 echo $ac_n "(cached
) $ac_c" 1>&6
1285 echo 'void f(){}' > conftest.cc
1286 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1287 ac_cv_prog_cxx_g=yes
1295 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1296 if test "$ac_test_CXXFLAGS" = set; then
1297 CXXFLAGS="$ac_save_CXXFLAGS"
1298 elif test $ac_cv_prog_cxx_g = yes; then
1305 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1315 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1316 { echo "configure
: error
: source directory already configured
; run
"make distclean" there first
" 1>&2; exit 1; }
1318 cat >> confdefs.h <<EOF
1319 #define PACKAGE "$PACKAGE"
1322 cat >> confdefs.h <<EOF
1323 #define VERSION "$VERSION"
1328 missing_dir=`cd $ac_aux_dir && pwd`
1329 echo $ac_n "checking
for working aclocal-
${am__api_version}""...
$ac_c" 1>&6
1330 echo "configure
:1331: checking
for working aclocal-
${am__api_version}" >&5
1331 # Run test in a subshell; some versions of sh will print an error if
1332 # an executable is not found, even if stderr is redirected.
1333 # Redirect stdin to placate older versions of autoconf. Sigh.
1334 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1335 ACLOCAL=aclocal-${am__api_version}
1336 echo "$ac_t""found
" 1>&6
1338 ACLOCAL="$missing_dir/missing aclocal-
${am__api_version}"
1339 echo "$ac_t""missing
" 1>&6
1342 echo $ac_n "checking
for working autoconf
""...
$ac_c" 1>&6
1343 echo "configure
:1344: checking
for working autoconf
" >&5
1344 # Run test in a subshell; some versions of sh will print an error if
1345 # an executable is not found, even if stderr is redirected.
1346 # Redirect stdin to placate older versions of autoconf. Sigh.
1347 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1349 echo "$ac_t""found
" 1>&6
1351 AUTOCONF="$missing_dir/missing autoconf
"
1352 echo "$ac_t""missing
" 1>&6
1355 echo $ac_n "checking
for working automake-
${am__api_version}""...
$ac_c" 1>&6
1356 echo "configure
:1357: checking
for working automake-
${am__api_version}" >&5
1357 # Run test in a subshell; some versions of sh will print an error if
1358 # an executable is not found, even if stderr is redirected.
1359 # Redirect stdin to placate older versions of autoconf. Sigh.
1360 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1361 AUTOMAKE=automake-${am__api_version}
1362 echo "$ac_t""found
" 1>&6
1364 AUTOMAKE="$missing_dir/missing automake-
${am__api_version}"
1365 echo "$ac_t""missing
" 1>&6
1368 echo $ac_n "checking
for working autoheader
""...
$ac_c" 1>&6
1369 echo "configure
:1370: checking
for working autoheader
" >&5
1370 # Run test in a subshell; some versions of sh will print an error if
1371 # an executable is not found, even if stderr is redirected.
1372 # Redirect stdin to placate older versions of autoconf. Sigh.
1373 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1374 AUTOHEADER=autoheader
1375 echo "$ac_t""found
" 1>&6
1377 AUTOHEADER="$missing_dir/missing autoheader
"
1378 echo "$ac_t""missing
" 1>&6
1381 echo $ac_n "checking
for working makeinfo
""...
$ac_c" 1>&6
1382 echo "configure
:1383: checking
for working makeinfo
" >&5
1383 # Run test in a subshell; some versions of sh will print an error if
1384 # an executable is not found, even if stderr is redirected.
1385 # Redirect stdin to placate older versions of autoconf. Sigh.
1386 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1388 echo "$ac_t""found
" 1>&6
1390 MAKEINFO="$missing_dir/missing makeinfo
"
1391 echo "$ac_t""missing
" 1>&6
1396 # Extract the first word of "${ac_tool_prefix}as
", so it can be a program name with args.
1397 set dummy ${ac_tool_prefix}as; ac_word=$2
1398 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1399 echo "configure
:1400: checking
for $ac_word" >&5
1400 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1401 echo $ac_n "(cached
) $ac_c" 1>&6
1403 if test -n "$AS"; then
1404 ac_cv_prog_AS="$AS" # Let the user override the test.
1406 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1408 for ac_dir in $ac_dummy; do
1409 test -z "$ac_dir" && ac_dir=.
1410 if test -f $ac_dir/$ac_word; then
1411 ac_cv_prog_AS="${ac_tool_prefix}as
"
1416 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as
"
1420 if test -n "$AS"; then
1421 echo "$ac_t""$AS" 1>&6
1423 echo "$ac_t""no
" 1>&6
1428 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1429 set dummy ${ac_tool_prefix}ar; ac_word=$2
1430 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1431 echo "configure
:1432: checking
for $ac_word" >&5
1432 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1433 echo $ac_n "(cached
) $ac_c" 1>&6
1435 if test -n "$AR"; then
1436 ac_cv_prog_AR="$AR" # Let the user override the test.
1438 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1440 for ac_dir in $ac_dummy; do
1441 test -z "$ac_dir" && ac_dir=.
1442 if test -f $ac_dir/$ac_word; then
1443 ac_cv_prog_AR="${ac_tool_prefix}ar"
1448 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1452 if test -n "$AR"; then
1453 echo "$ac_t""$AR" 1>&6
1455 echo "$ac_t""no
" 1>&6
1460 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
1461 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1462 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1463 echo "configure
:1464: checking
for $ac_word" >&5
1464 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1465 echo $ac_n "(cached
) $ac_c" 1>&6
1467 if test -n "$RANLIB"; then
1468 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1470 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1472 for ac_dir in $ac_dummy; do
1473 test -z "$ac_dir" && ac_dir=.
1474 if test -f $ac_dir/$ac_word; then
1475 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
1482 RANLIB="$ac_cv_prog_RANLIB"
1483 if test -n "$RANLIB"; then
1484 echo "$ac_t""$RANLIB" 1>&6
1486 echo "$ac_t""no
" 1>&6
1490 if test -z "$ac_cv_prog_RANLIB"; then
1491 if test -n "$ac_tool_prefix"; then
1492 # Extract the first word of "ranlib
", so it can be a program name with args.
1493 set dummy ranlib; ac_word=$2
1494 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1495 echo "configure
:1496: checking
for $ac_word" >&5
1496 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1497 echo $ac_n "(cached
) $ac_c" 1>&6
1499 if test -n "$RANLIB"; then
1500 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1502 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1504 for ac_dir in $ac_dummy; do
1505 test -z "$ac_dir" && ac_dir=.
1506 if test -f $ac_dir/$ac_word; then
1507 ac_cv_prog_RANLIB="ranlib
"
1512 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1515 RANLIB="$ac_cv_prog_RANLIB"
1516 if test -n "$RANLIB"; then
1517 echo "$ac_t""$RANLIB" 1>&6
1519 echo "$ac_t""no
" 1>&6
1528 # Find a good install program. We prefer a C program (faster),
1529 # so one script is as good as another. But avoid the broken or
1530 # incompatible versions:
1531 # SysV /etc/install, /usr/sbin/install
1532 # SunOS /usr/etc/install
1533 # IRIX /sbin/install
1535 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1536 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1537 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff
"
1538 # ./install, which can be erroneously created by make from ./install.sh.
1539 echo $ac_n "checking
for a BSD compatible
install""...
$ac_c" 1>&6
1540 echo "configure
:1541: checking
for a BSD compatible
install" >&5
1541 if test -z "$INSTALL"; then
1542 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1543 echo $ac_n "(cached
) $ac_c" 1>&6
1545 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1546 for ac_dir in $PATH; do
1547 # Account for people who put trailing slashes in PATH elements.
1549 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1551 # OSF1 and SCO ODT 3.0 have their own names for install.
1552 # Don't use installbsd from OSF since it installs stuff as root
1554 for ac_prog in ginstall scoinst install; do
1555 if test -f $ac_dir/$ac_prog; then
1556 if test $ac_prog = install &&
1557 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1558 # AIX install. It has an incompatible calling convention.
1561 ac_cv_path_install="$ac_dir/$ac_prog -c"
1572 if test "${ac_cv_path_install+set}" = set; then
1573 INSTALL="$ac_cv_path_install"
1575 # As a last resort, use the slow shell script. We don't cache a
1576 # path for INSTALL within a source directory, because that will
1577 # break other packages using the cache if that directory is
1578 # removed, or if the path is relative.
1579 INSTALL="$ac_install_sh"
1582 echo "$ac_t""$INSTALL" 1>&6
1584 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1585 # It thinks the first close brace ends the variable substitution.
1586 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1588 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1590 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1593 echo $ac_n "checking whether to
enable maintainer-specific portions of Makefiles
""...
$ac_c" 1>&6
1594 echo "configure
:1595: checking whether to
enable maintainer-specific portions of Makefiles
" >&5
1595 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1596 if test "${enable_maintainer_mode+set}" = set; then
1597 enableval="$enable_maintainer_mode"
1598 USE_MAINTAINER_MODE=$enableval
1600 USE_MAINTAINER_MODE=no
1603 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1606 if test $USE_MAINTAINER_MODE = yes; then
1607 MAINTAINER_MODE_TRUE=
1608 MAINTAINER_MODE_FALSE='#'
1610 MAINTAINER_MODE_TRUE='#'
1611 MAINTAINER_MODE_FALSE=
1613 MAINT=$MAINTAINER_MODE_TRUE
1619 echo $ac_n "checking
for executable suffix
""...
$ac_c" 1>&6
1620 echo "configure
:1621: checking
for executable suffix
" >&5
1621 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1622 echo $ac_n "(cached
) $ac_c" 1>&6
1624 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1628 echo 'int main () { return 0; }' > conftest.$ac_ext
1630 if { (eval echo configure:1631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1631 for file in conftest.*; do
1633 *.c | *.o | *.obj) ;;
1634 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1638 { echo "configure
: error
: installation or configuration problem
: compiler cannot create executables.
" 1>&2; exit 1; }
1641 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1646 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1647 echo "$ac_t""${ac_cv_exeext}" 1>&6
1651 # configure.host sets the following important variables
1652 # libgcj_cflags - host specific C compiler flags
1653 # libgcj_cxxflags - host specific C++ compiler flags
1654 # libgcj_javaflags - host specific Java compiler flags
1660 . ${srcdir}/configure.host
1662 LIBGCJ_CFLAGS="${libgcj_cflags}"
1663 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
1664 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
1674 # Only use libltdl for non-newlib builds.
1675 if test "x
${with_newlib}" = "x
" || test "x
${with_newlib}" = "xno
"; then
1676 case $enable_ltdl_convenience in
1677 no) { echo "configure
: error
: this package needs a convenience libltdl
" 1>&2; exit 1; } ;;
1678 "") enable_ltdl_convenience=yes
1679 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
1681 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
1682 INCLTDL='-I${top_srcdir}/''libltdl'
1686 cat >> confdefs.h <<\EOF
1690 # Sigh. Libtool's macro doesn't do the right thing.
1691 INCLTDL="-I\$
(top_srcdir
)/libltdl
$INCLTDL"
1692 # FIXME: this is a hack.
1693 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
1694 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
1699 # Check whether --enable-shared or --disable-shared was given.
1700 if test "${enable_shared+set}" = set; then
1701 enableval="$enable_shared"
1702 p=${PACKAGE-default}
1704 yes) enable_shared=yes ;;
1705 no) enable_shared=no ;;
1708 # Look at the argument we got. We use all the common list separators.
1709 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1710 for pkg in $enableval; do
1711 if test "X
$pkg" = "X
$p"; then
1722 # Check whether --enable-static or --disable-static was given.
1723 if test "${enable_static+set}" = set; then
1724 enableval="$enable_static"
1725 p=${PACKAGE-default}
1727 yes) enable_static=yes ;;
1728 no) enable_static=no ;;
1731 # Look at the argument we got. We use all the common list separators.
1732 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1733 for pkg in $enableval; do
1734 if test "X
$pkg" = "X
$p"; then
1745 # Check whether --enable-fast-install or --disable-fast-install was given.
1746 if test "${enable_fast_install+set}" = set; then
1747 enableval="$enable_fast_install"
1748 p=${PACKAGE-default}
1750 yes) enable_fast_install=yes ;;
1751 no) enable_fast_install=no ;;
1753 enable_fast_install=no
1754 # Look at the argument we got. We use all the common list separators.
1755 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1756 for pkg in $enableval; do
1757 if test "X
$pkg" = "X
$p"; then
1758 enable_fast_install=yes
1765 enable_fast_install=yes
1768 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1769 if test "${with_gnu_ld+set}" = set; then
1770 withval="$with_gnu_ld"
1771 test "$withval" = no || with_gnu_ld=yes
1777 if test "$GCC" = yes; then
1778 # Check if gcc -print-prog-name=ld gives a path.
1779 echo $ac_n "checking
for ld used by GCC
""...
$ac_c" 1>&6
1780 echo "configure
:1781: checking
for ld used by GCC
" >&5
1783 # gcc leaves a trailing carriage return which upsets mingw
1784 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1786 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1789 # Accept absolute paths.
1790 [\\/]* | [A-Za-z]:[\\/]*)
1791 re_direlt='/[^/][^/]*/\.\./'
1792 # Canonicalize the path of ld
1793 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1794 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1795 ac_prog=`echo $ac_prog| sed "s
%$re_direlt%/%"`
1797 test -z "$LD" && LD="$ac_prog"
1800 # If it fails, then pretend we aren't using GCC.
1804 # If it is relative, then search for the first ld in PATH.
1808 elif test "$with_gnu_ld" = yes; then
1809 echo $ac_n "checking
for GNU ld
""...
$ac_c" 1>&6
1810 echo "configure
:1811: checking
for GNU ld
" >&5
1812 echo $ac_n "checking
for non-GNU ld
""...
$ac_c" 1>&6
1813 echo "configure
:1814: checking
for non-GNU ld
" >&5
1815 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1816 echo $ac_n "(cached
) $ac_c" 1>&6
1818 if test -z "$LD"; then
1819 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1820 for ac_dir in $PATH; do
1821 test -z "$ac_dir" && ac_dir=.
1822 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1823 lt_cv_path_LD="$ac_dir/$ac_prog"
1824 # Check to see if the program is GNU ld. I'd rather use --version,
1825 # but apparently some GNU ld's only accept -v.
1826 # Break only if it was the GNU/non-GNU ld that we prefer.
1827 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1828 test "$with_gnu_ld" != no && break
1830 test "$with_gnu_ld" != yes && break
1836 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1841 if test -n "$LD"; then
1842 echo "$ac_t""$LD" 1>&6
1844 echo "$ac_t""no
" 1>&6
1846 test -z "$LD" && { echo "configure
: error
: no acceptable ld found
in \
$PATH" 1>&2; exit 1; }
1847 echo $ac_n "checking
if the linker
($LD) is GNU ld
""...
$ac_c" 1>&6
1848 echo "configure
:1849: checking
if the linker
($LD) is GNU ld
" >&5
1849 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1850 echo $ac_n "(cached
) $ac_c" 1>&6
1852 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1853 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1854 lt_cv_prog_gnu_ld=yes
1856 lt_cv_prog_gnu_ld=no
1860 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1861 with_gnu_ld=$lt_cv_prog_gnu_ld
1864 echo $ac_n "checking
for $LD option to reload object files
""...
$ac_c" 1>&6
1865 echo "configure
:1866: checking
for $LD option to reload object files
" >&5
1866 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1867 echo $ac_n "(cached
) $ac_c" 1>&6
1869 lt_cv_ld_reload_flag='-r'
1872 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1873 reload_flag=$lt_cv_ld_reload_flag
1874 test -n "$reload_flag" && reload_flag=" $reload_flag"
1876 echo $ac_n "checking
for BSD-compatible nm
""...
$ac_c" 1>&6
1877 echo "configure
:1878: checking
for BSD-compatible nm
" >&5
1878 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1879 echo $ac_n "(cached
) $ac_c" 1>&6
1881 if test -n "$NM"; then
1882 # Let the user override the test.
1885 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1886 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1887 test -z "$ac_dir" && ac_dir=.
1888 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1889 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1890 # Check to see if the nm accepts a BSD-compat flag.
1891 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1892 # nm: unknown option "B
" ignored
1893 # Tru64's nm complains that /dev/null is an invalid object file
1894 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1895 lt_cv_path_NM="$tmp_nm -B"
1897 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1898 lt_cv_path_NM="$tmp_nm -p"
1901 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1902 continue # so that we can try to find one that supports BSD flags
1907 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1912 echo "$ac_t""$NM" 1>&6
1914 echo $ac_n "checking how to recognise dependant libraries
""...
$ac_c" 1>&6
1915 echo "configure
:1916: checking how to recognise dependant libraries
" >&5
1916 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1917 echo $ac_n "(cached
) $ac_c" 1>&6
1919 lt_cv_file_magic_cmd='$MAGIC_CMD'
1920 lt_cv_file_magic_test_file=
1921 lt_cv_deplibs_check_method='unknown'
1922 # Need to set the preceding variable on all platforms that support
1923 # interlibrary dependencies.
1924 # 'none' -- dependencies not supported.
1925 # `unknown' -- same as none, but documents that we really don't know.
1926 # 'pass_all' -- all dependencies passed with no checks.
1927 # 'test_compile' -- check by making test program.
1928 # 'file_magic [regex]' -- check by looking for files in library path
1929 # which responds to the $file_magic_cmd with a given egrep regex.
1930 # If you have `file' or equivalent on your system and you're not sure
1931 # whether `pass_all' will *always* work, you probably want this one.
1935 lt_cv_deplibs_check_method=pass_all
1939 lt_cv_deplibs_check_method=pass_all
1943 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1944 lt_cv_file_magic_cmd='/usr/bin/file -L'
1945 lt_cv_file_magic_test_file=/shlib/libc.so
1948 cygwin* | mingw* |pw32*)
1949 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1950 lt_cv_file_magic_cmd='$OBJDUMP -f'
1953 darwin* | rhapsody*)
1954 # this will be overwritten by pass_all, but leave it in just in case
1955 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1956 lt_cv_file_magic_cmd='/usr/bin/file -L'
1958 rhapsody* | darwin1.012)
1959 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1962 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1965 lt_cv_deplibs_check_method=pass_all
1969 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1972 # Not sure whether the presence of OpenBSD here was a mistake.
1973 # Let's accept both of them until this is cleared up.
1974 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1975 lt_cv_file_magic_cmd=/usr/bin/file
1976 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1980 lt_cv_deplibs_check_method=pass_all
1985 lt_cv_deplibs_check_method=pass_all
1991 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1992 lt_cv_file_magic_cmd=/usr/bin/file
1993 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1996 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1997 lt_cv_file_magic_cmd=/usr/bin/file
1998 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2006 # this will be overridden with pass_all, but let us keep it just in case
2007 lt_cv_deplibs_check_method="file_magic ELF
32-bit MSB dynamic lib MIPS
- version
1"
2011 *-32|*"-32 ") libmagic=32-bit;;
2012 *-n32|*"-n32 ") libmagic=N32;;
2013 *-64|*"-64 ") libmagic=64-bit;;
2014 *) libmagic=never-match;;
2016 # this will be overridden with pass_all, but let us keep it just in case
2017 lt_cv_deplibs_check_method="file_magic ELF
${libmagic} MSB mips-
[1234] dynamic lib MIPS
- version
1"
2020 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2021 lt_cv_deplibs_check_method=pass_all
2024 # This must be Linux ELF.
2027 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2028 lt_cv_deplibs_check_method=pass_all ;;
2030 # glibc up to 2.1.1 does not perform some relocations on ARM
2031 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2033 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2037 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2038 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2040 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2045 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2046 lt_cv_file_magic_cmd=/usr/bin/file
2047 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2050 osf3* | osf4* | osf5*)
2051 # this will be overridden with pass_all, but let us keep it just in case
2052 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2053 lt_cv_file_magic_test_file=/shlib/libc.so
2054 lt_cv_deplibs_check_method=pass_all
2058 lt_cv_deplibs_check_method=pass_all
2062 lt_cv_deplibs_check_method=pass_all
2063 lt_cv_file_magic_test_file=/lib/libc.so
2066 sysv5uw[78]* | sysv4*uw2*)
2067 lt_cv_deplibs_check_method=pass_all
2070 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2071 case $host_vendor in
2073 lt_cv_deplibs_check_method=pass_all
2076 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]'
2077 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2085 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2086 file_magic_cmd=$lt_cv_file_magic_cmd
2087 deplibs_check_method=$lt_cv_deplibs_check_method
2089 echo $ac_n "checking
for object suffix
""...
$ac_c" 1>&6
2090 echo "configure
:2091: checking
for object suffix
" >&5
2091 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2092 echo $ac_n "(cached
) $ac_c" 1>&6
2095 echo 'int i = 1;' > conftest.$ac_ext
2096 if { (eval echo configure:2097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2097 for ac_file in conftest.*; do
2100 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2104 { echo "configure
: error
: installation or configuration problem
; compiler does not work
" 1>&2; exit 1; }
2109 echo "$ac_t""$ac_cv_objext" 1>&6
2110 OBJEXT=$ac_cv_objext
2111 ac_objext=$ac_cv_objext
2113 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2115 # Only perform the check for file, if the check method requires it
2116 case $deplibs_check_method in
2118 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2119 echo $ac_n "checking
for ${ac_tool_prefix}file""...
$ac_c" 1>&6
2120 echo "configure
:2121: checking
for ${ac_tool_prefix}file" >&5
2121 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2122 echo $ac_n "(cached
) $ac_c" 1>&6
2126 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2129 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2132 ac_save_MAGIC_CMD="$MAGIC_CMD"
2133 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2134 ac_dummy="/usr
/bin
:$PATH"
2135 for ac_dir in $ac_dummy; do
2136 test -z "$ac_dir" && ac_dir=.
2137 if test -f $ac_dir/${ac_tool_prefix}file; then
2138 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2139 if test -n "$file_magic_test_file"; then
2140 case $deplibs_check_method in
2142 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2143 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2144 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2145 egrep "$file_magic_regex" > /dev/null; then
2150 *** Warning: the command libtool uses to detect shared libraries,
2151 *** $file_magic_cmd, produces output that libtool cannot recognize.
2152 *** The result is that libtool may fail to recognize shared libraries
2153 *** as such. This will affect the creation of libtool libraries that
2154 *** depend on shared libraries, but programs linked with such libtool
2155 *** libraries will work regardless of this problem. Nevertheless, you
2156 *** may want to report the problem to your system manager and/or to
2157 *** bug-libtool@gnu.org
2167 MAGIC_CMD="$ac_save_MAGIC_CMD"
2172 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2173 if test -n "$MAGIC_CMD"; then
2174 echo "$ac_t""$MAGIC_CMD" 1>&6
2176 echo "$ac_t""no
" 1>&6
2179 if test -z "$lt_cv_path_MAGIC_CMD"; then
2180 if test -n "$ac_tool_prefix"; then
2181 echo $ac_n "checking
for file""...
$ac_c" 1>&6
2182 echo "configure
:2183: checking
for file" >&5
2183 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2184 echo $ac_n "(cached
) $ac_c" 1>&6
2188 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2191 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2194 ac_save_MAGIC_CMD="$MAGIC_CMD"
2195 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2196 ac_dummy="/usr
/bin
:$PATH"
2197 for ac_dir in $ac_dummy; do
2198 test -z "$ac_dir" && ac_dir=.
2199 if test -f $ac_dir/file; then
2200 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2201 if test -n "$file_magic_test_file"; then
2202 case $deplibs_check_method in
2204 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2205 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2206 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2207 egrep "$file_magic_regex" > /dev/null; then
2212 *** Warning: the command libtool uses to detect shared libraries,
2213 *** $file_magic_cmd, produces output that libtool cannot recognize.
2214 *** The result is that libtool may fail to recognize shared libraries
2215 *** as such. This will affect the creation of libtool libraries that
2216 *** depend on shared libraries, but programs linked with such libtool
2217 *** libraries will work regardless of this problem. Nevertheless, you
2218 *** may want to report the problem to your system manager and/or to
2219 *** bug-libtool@gnu.org
2229 MAGIC_CMD="$ac_save_MAGIC_CMD"
2234 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2235 if test -n "$MAGIC_CMD"; then
2236 echo "$ac_t""$MAGIC_CMD" 1>&6
2238 echo "$ac_t""no
" 1>&6
2250 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
2251 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2252 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2253 echo "configure
:2254: checking
for $ac_word" >&5
2254 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2255 echo $ac_n "(cached
) $ac_c" 1>&6
2257 if test -n "$RANLIB"; then
2258 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2260 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2262 for ac_dir in $ac_dummy; do
2263 test -z "$ac_dir" && ac_dir=.
2264 if test -f $ac_dir/$ac_word; then
2265 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
2272 RANLIB="$ac_cv_prog_RANLIB"
2273 if test -n "$RANLIB"; then
2274 echo "$ac_t""$RANLIB" 1>&6
2276 echo "$ac_t""no
" 1>&6
2280 if test -z "$ac_cv_prog_RANLIB"; then
2281 if test -n "$ac_tool_prefix"; then
2282 # Extract the first word of "ranlib
", so it can be a program name with args.
2283 set dummy ranlib; ac_word=$2
2284 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2285 echo "configure
:2286: checking
for $ac_word" >&5
2286 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2287 echo $ac_n "(cached
) $ac_c" 1>&6
2289 if test -n "$RANLIB"; then
2290 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2292 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2294 for ac_dir in $ac_dummy; do
2295 test -z "$ac_dir" && ac_dir=.
2296 if test -f $ac_dir/$ac_word; then
2297 ac_cv_prog_RANLIB="ranlib
"
2302 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2305 RANLIB="$ac_cv_prog_RANLIB"
2306 if test -n "$RANLIB"; then
2307 echo "$ac_t""$RANLIB" 1>&6
2309 echo "$ac_t""no
" 1>&6
2317 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
2318 set dummy ${ac_tool_prefix}strip; ac_word=$2
2319 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2320 echo "configure
:2321: checking
for $ac_word" >&5
2321 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2322 echo $ac_n "(cached
) $ac_c" 1>&6
2324 if test -n "$STRIP"; then
2325 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2327 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2329 for ac_dir in $ac_dummy; do
2330 test -z "$ac_dir" && ac_dir=.
2331 if test -f $ac_dir/$ac_word; then
2332 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
2339 STRIP="$ac_cv_prog_STRIP"
2340 if test -n "$STRIP"; then
2341 echo "$ac_t""$STRIP" 1>&6
2343 echo "$ac_t""no
" 1>&6
2347 if test -z "$ac_cv_prog_STRIP"; then
2348 if test -n "$ac_tool_prefix"; then
2349 # Extract the first word of "strip
", so it can be a program name with args.
2350 set dummy strip; ac_word=$2
2351 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2352 echo "configure
:2353: checking
for $ac_word" >&5
2353 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2354 echo $ac_n "(cached
) $ac_c" 1>&6
2356 if test -n "$STRIP"; then
2357 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2359 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2361 for ac_dir in $ac_dummy; do
2362 test -z "$ac_dir" && ac_dir=.
2363 if test -f $ac_dir/$ac_word; then
2364 ac_cv_prog_STRIP="strip
"
2369 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2372 STRIP="$ac_cv_prog_STRIP"
2373 if test -n "$STRIP"; then
2374 echo "$ac_t""$STRIP" 1>&6
2376 echo "$ac_t""no
" 1>&6
2385 # Check for any special flags to pass to ltconfig.
2386 libtool_flags="--cache-file=$cache_file"
2387 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2388 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2389 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2390 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2391 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2392 libtool_flags="$libtool_flags --enable-dlopen"
2394 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2395 if test "${enable_libtool_lock+set}" = set; then
2396 enableval="$enable_libtool_lock"
2400 test "x
$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2401 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2403 # Check whether --with-pic or --without-pic was given.
2404 if test "${with_pic+set}" = set; then
2411 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2412 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2414 # Some flags need to be propagated to the compiler or linker for good
2418 # Find out which ABI we are using.
2419 echo '#line 2420 "configure
"' > conftest.$ac_ext
2420 if { (eval echo configure:2421: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2421 if test "$lt_cv_prog_gnu_ld" = yes; then
2422 case `/usr/bin/file conftest.$ac_objext` in
2424 LD="${LD-ld} -melf32bsmip"
2427 LD="${LD-ld} -melf32bmipn32"
2430 LD="${LD-ld} -melf64bmip"
2434 case `/usr/bin/file conftest.$ac_objext` in
2451 # Find out which ABI we are using.
2452 echo 'int i;' > conftest.$ac_ext
2453 if { (eval echo configure:2454: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2454 case "`/usr/bin/file conftest.o`" in
2466 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
2467 # Find out which ABI we are using.
2468 echo 'int i;' > conftest.$ac_ext
2469 if { (eval echo configure:2470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2470 case "`/usr/bin/file conftest.o`" in
2474 LD="${LD-ld} -m elf_i386
"
2476 ppc64-*linux*|powerpc64-*linux*)
2477 LD="${LD-ld} -m elf32ppclinux
"
2480 LD="${LD-ld} -m elf_s390
"
2483 LD="${LD-ld} -m elf32_sparc
"
2490 LD="${LD-ld} -m elf_x86_64
"
2492 ppc*-*linux*|powerpc*-*linux*)
2493 LD="${LD-ld} -m elf64ppc
"
2496 LD="${LD-ld} -m elf64_s390
"
2499 LD="${LD-ld} -m elf64_sparc
"
2509 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2510 SAVE_CFLAGS="$CFLAGS"
2511 CFLAGS="$CFLAGS -belf"
2512 echo $ac_n "checking whether the C compiler needs
-belf""...
$ac_c" 1>&6
2513 echo "configure
:2514: checking whether the C compiler needs
-belf" >&5
2514 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2515 echo $ac_n "(cached
) $ac_c" 1>&6
2519 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2520 ac_cpp='$CPP $CPPFLAGS'
2521 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2522 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2523 cross_compiling=$ac_cv_prog_cc_cross
2525 cat > conftest.$ac_ext <<EOF
2526 #line 2527 "configure
"
2527 #include "confdefs.h
"
2533 if { (eval echo configure:2534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2535 lt_cv_cc_needs_belf=yes
2537 echo "configure
: failed program was
:" >&5
2538 cat conftest.$ac_ext >&5
2540 lt_cv_cc_needs_belf=no
2544 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2545 ac_cpp='$CPP $CPPFLAGS'
2546 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2547 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2548 cross_compiling=$ac_cv_prog_cc_cross
2552 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2553 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2554 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2555 CFLAGS="$SAVE_CFLAGS"
2562 echo $ac_n "checking how to run the C
++ preprocessor
""...
$ac_c" 1>&6
2563 echo "configure
:2564: checking how to run the C
++ preprocessor
" >&5
2564 if test -z "$CXXCPP"; then
2565 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2566 echo $ac_n "(cached
) $ac_c" 1>&6
2569 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2570 ac_cpp='$CXXCPP $CPPFLAGS'
2571 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2572 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2573 cross_compiling=$ac_cv_prog_cxx_cross
2574 CXXCPP="${CXX-g++} -E"
2575 cat > conftest.$ac_ext <<EOF
2576 #line 2577 "configure
"
2577 #include "confdefs.h
"
2580 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
2581 { (eval echo configure:2582: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2582 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
2583 if test -z "$ac_err"; then
2587 echo "configure
: failed program was
:" >&5
2588 cat conftest.$ac_ext >&5
2593 ac_cv_prog_CXXCPP="$CXXCPP"
2595 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2596 ac_cpp='$CPP $CPPFLAGS'
2597 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2598 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2599 cross_compiling=$ac_cv_prog_cc_cross
2602 CXXCPP="$ac_cv_prog_CXXCPP"
2603 echo "$ac_t""$CXXCPP" 1>&6
2606 # Save cache, so that ltconfig can load it
2607 cat > confcache <<\EOF
2608 # This file is a shell script that caches the results of configure
2609 # tests run on this system so they can be shared between configure
2610 # scripts and configure runs. It is not useful on other systems.
2611 # If it contains results you don't want to keep, you may remove or edit it.
2613 # By default, configure uses ./config.cache as the cache file,
2614 # creating it if it does not exist already. You can give configure
2615 # the --cache-file=FILE option to use a different cache file; that is
2616 # what configure does when it calls configure scripts in
2617 # subdirectories, so they share the cache.
2618 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2619 # config.status only pays attention to the cache file if you give it the
2620 # --recheck option to rerun configure.
2623 # The following way of writing the cache mishandles newlines in values,
2624 # but we know of no workaround that is simple, portable, and efficient.
2625 # So, don't put newlines in cache variables' values.
2626 # Ultrix sh set writes to stderr and can't be redirected directly,
2627 # and sets the high bit in the cache file unless we assign to the vars.
2629 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2631 # `set' does not quote correctly, so add quotes (double-quote substitution
2632 # turns \\\\ into \\, and sed turns \\ into \).
2634 -e "s
/'/'\\\\''/g
" \
2635 -e "s
/^
\\([a-zA-Z0-9_
]*_cv_
[a-zA-Z0-9_
]*\\)=\\(.
*\\)/\\1=\
${\\1='\\2'}/p
"
2638 # `set' quotes correctly as required by POSIX, so do not add quotes.
2639 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2642 if cmp -s $cache_file confcache; then
2645 if test -w $cache_file; then
2646 echo "updating cache
$cache_file"
2647 cat confcache > $cache_file
2649 echo "not updating unwritable cache
$cache_file"
2655 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2656 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2657 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2658 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2659 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2660 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2661 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2662 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2663 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2664 || { echo "configure
: error
: libtool configure failed
" 1>&2; exit 1; }
2666 # Reload cache, that may have been modified by ltconfig
2667 if test -r "$cache_file"; then
2668 echo "loading cache
$cache_file"
2671 echo "creating cache
$cache_file"
2676 # This can be used to rebuild libtool when needed
2677 LIBTOOL_DEPS="$ac_aux_dir/ltconfig
$ac_aux_dir/ltmain.sh
$ac_aux_dir/ltcf-c.sh
"
2679 # Always use our own libtool.
2680 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2682 # Redirect the config.log output again, so that the ltconfig log is not
2683 # clobbered by the next message.
2684 exec 5>>./config.log
2688 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh
"
2690 lt_save_CFLAGS="$CFLAGS"
2691 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2692 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2693 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2694 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2695 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2696 deplibs_check_method="$deplibs_check_method" \
2697 file_magic_cmd="$file_magic_cmd" \
2698 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2699 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2700 || { echo "configure
: error
: libtool tag configuration failed
" 1>&2; exit 1; }
2702 CFLAGS="$lt_save_CFLAGS"
2704 # Redirect the config.log output again, so that the ltconfig log is not
2705 # clobbered by the next message.
2706 exec 5>>./config.log
2716 if test -z "$with_target_subdir" || test "$with_target_subdir" = ".
"; then
2725 if test -d $srcdir/testsuite; then
2727 TESTSUBDIR_FALSE='#'
2733 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
2734 if test "${enable_getenv_properties+set}" = set; then
2735 enableval="$enable_getenv_properties"
2740 if test -z "$enable_getenv_properties"; then
2741 enable_getenv_properties=${enable_getenv_properties_default-yes}
2743 if test "$enable_getenv_properties" = no; then
2744 cat >> confdefs.h <<\EOF
2745 #define DISABLE_GETENV_PROPERTIES 1
2750 if test -z "$enable_main_args"; then
2751 enable_main_args=${enable_main_args_default-yes}
2753 if test "$enable_main_args" = no; then
2754 cat >> confdefs.h <<\EOF
2755 #define DISABLE_MAIN_ARGS 1
2761 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
2762 if test "${enable_hash_synchronization+set}" = set; then
2763 enableval="$enable_hash_synchronization"
2768 if test -z "$enable_hash_synchronization"; then
2769 enable_hash_synchronization=$enable_hash_synchronization_default
2772 # Do we allow intermodule optimizations (i.e. compiling many files at once)?
2773 # Check whether --enable-libgcj-multifile or --disable-libgcj-multifile was given.
2774 if test "${enable_libgcj_multifile+set}" = set; then
2775 enableval="$enable_libgcj_multifile"
2776 case "${enableval}" in
2777 yes) enable_libgcj_multifile=yes ;;
2778 no) enable_libgcj_multifile=no ;;
2779 *) { echo "configure
: error
: bad value
${enableval} for --enable-libgcj-multifile" 1>&2; exit 1; } ;;
2782 enable_libgcj_multifile=no
2787 if test "$enable_libgcj_multifile" = yes; then
2795 # What is the native OS API for MinGW?
2796 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
2797 if test "${with_win32_nlsapi+set}" = set; then
2798 withval="$with_win32_nlsapi"
2800 case "${withval}" in
2801 ansi) with_win32_nlsapi=ansi ;;
2802 unicows) with_win32_nlsapi=unicows ;;
2803 unicode) with_win32_nlsapi=unicode ;;
2804 *) { echo "configure
: error
: Bad value
${withval} for --with-win32-nlsapi.
" 1>&2; exit 1; } ;;
2807 with_win32_nlsapi=ansi
2811 case "${with_win32_nlsapi}" in
2813 cat >> confdefs.h <<\EOF
2814 #define MINGW_LIBGCJ_UNICODE 1
2820 if test "${slow_pthread_self}" = "yes"; then
2821 cat >> confdefs.h <<\EOF
2822 #define SLOW_PTHREAD_SELF 1
2830 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
2831 if test "${enable_libgcj_debug+set}" = set; then
2832 enableval="$enable_libgcj_debug"
2833 if test "$enable_libgcj_debug" = yes; then
2834 cat >> confdefs.h <<\EOF
2843 # Check whether --enable-interpreter or --disable-interpreter was given.
2844 if test "${enable_interpreter+set}" = set; then
2845 enableval="$enable_interpreter"
2846 if test "$enable_interpreter" = yes; then
2847 # This can also be set in configure.host.
2848 libgcj_interpreter=yes
2849 elif test "$enable_interpreter" = no; then
2850 libgcj_interpreter=no
2855 if test "$libgcj_interpreter" = yes; then
2856 cat >> confdefs.h <<\EOF
2857 #define INTERPRETER 1
2861 INTERPRETER="$libgcj_interpreter"
2864 echo $ac_n "checking
for exception model to use
""...
$ac_c" 1>&6
2865 echo "configure
:2866: checking
for exception model to use
" >&5
2868 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2869 ac_cpp='$CXXCPP $CPPFLAGS'
2870 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2871 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2872 cross_compiling=$ac_cv_prog_cxx_cross
2874 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
2875 if test "${enable_sjlj_exceptions+set}" = set; then
2876 enableval="$enable_sjlj_exceptions"
2879 cat > conftest.$ac_ext << EOF
2880 #line 2881 "configure
"
2889 old_CXXFLAGS="$CXXFLAGS"
2891 if { (eval echo configure:2892: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2892 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
2893 enable_sjlj_exceptions=yes
2894 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
2895 enable_sjlj_exceptions=no
2898 CXXFLAGS="$old_CXXFLAGS"
2902 if test x$enable_sjlj_exceptions = xyes; then
2903 cat >> confdefs.h <<\EOF
2904 #define SJLJ_EXCEPTIONS 1
2907 ac_exception_model_name=sjlj
2908 elif test x$enable_sjlj_exceptions = xno; then
2909 ac_exception_model_name="call frame
"
2911 { echo "configure
: error
: unable to detect exception model
" 1>&2; exit 1; }
2914 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2915 ac_cpp='$CPP $CPPFLAGS'
2916 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2917 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2918 cross_compiling=$ac_cv_prog_cc_cross
2920 echo "$ac_t""$ac_exception_model_name" 1>&6
2922 # If we are non using SJLJ exceptions, and this host does not have support
2923 # for unwinding from a signal handler, enable checked dereferences and divides.
2924 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
2925 CHECKREFSPEC=-fcheck-references
2926 DIVIDESPEC=-fuse-divide-subroutine
2930 # Check whether --enable-java-net or --disable-java-net was given.
2931 if test "${enable_java_net+set}" = set; then
2932 enableval="$enable_java_net"
2937 if test -z "$enable_java_net"; then
2938 enable_java_net=${enable_java_net_default-yes}
2940 if test "$enable_java_net" = no; then
2941 cat >> confdefs.h <<\EOF
2942 #define DISABLE_JAVA_NET 1
2947 # Check whether --with-libffi or --without-libffi was given.
2948 if test "${with_libffi+set}" = set; then
2949 withval="$with_libffi"
2952 with_libffi=${with_libffi_default-yes}
2958 if test "$with_libffi" != no; then
2959 cat >> confdefs.h <<\EOF
2960 #define USE_LIBFFI 1
2963 LIBFFI=../libffi/libffi_convenience.la
2964 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
2969 # Check whether --enable-jvmpi or --disable-jvmpi was given.
2970 if test "${enable_jvmpi+set}" = set; then
2971 enableval="$enable_jvmpi"
2976 if test "$enable_jvmpi" != no; then
2977 cat >> confdefs.h <<\EOF
2978 #define ENABLE_JVMPI 1
2983 TARGET_ECOS=${PROCESS-"no"}
2984 # Check whether --with-ecos or --without-ecos was given.
2985 if test "${with_ecos+set}" = set; then
2986 withval="$with_ecos"
2987 TARGET_ECOS="$with_ecos"
2996 case "$TARGET_ECOS" in
3001 PLATFORMOBJS=win32.lo
3004 echo $ac_n "checking whether
'ld' is
at least
2.13""...
$ac_c" 1>&6
3005 echo "configure
:3006: checking whether
'ld' is
at least
2.13" >&5
3006 LD_PROG=`$CC --print-prog-name=ld`
3007 LD_VERSION=`$LD_PROG --version`
3008 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
3009 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
3010 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
3013 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
3017 if test "x
$LD_OK" != x; then
3018 echo "$ac_t""yes; major
=$LD_VERSION_MAJOR, minor
=$LD_VERSION_MINOR" 1>&6
3020 echo "$ac_t""no
; major
=$LD_VERSION_MAJOR, minor
=$LD_VERSION_MINOR" 1>&6
3021 echo "configure
: warning
: ld
<2.13 detected
; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack...
" 1>&2
3022 cat >> confdefs.h <<\EOF
3023 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
3031 PLATFORMOBJS=posix.lo
3039 cat >> confdefs.h <<\EOF
3043 PLATFORMOBJS=posix.lo
3050 echo $ac_n "checking how to run the C preprocessor
""...
$ac_c" 1>&6
3051 echo "configure
:3052: checking how to run the C preprocessor
" >&5
3052 # On Suns, sometimes $CPP names a directory.
3053 if test -n "$CPP" && test -d "$CPP"; then
3056 if test -z "$CPP"; then
3057 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
3058 echo $ac_n "(cached
) $ac_c" 1>&6
3060 # This must be in double quotes, not single quotes, because CPP may get
3061 # substituted into the Makefile and "${CC-cc}" will confuse make.
3063 # On the NeXT, cc -E runs the code through the compiler's parser,
3064 # not just through cpp.
3065 cat > conftest.$ac_ext <<EOF
3066 #line 3067 "configure
"
3067 #include "confdefs.h
"
3071 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
3072 { (eval echo configure:3073: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3073 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
3074 if test -z "$ac_err"; then
3078 echo "configure
: failed program was
:" >&5
3079 cat conftest.$ac_ext >&5
3081 CPP="${CC-cc} -E -traditional-cpp"
3082 cat > conftest.$ac_ext <<EOF
3083 #line 3084 "configure
"
3084 #include "confdefs.h
"
3088 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
3089 { (eval echo configure:3090: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3090 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
3091 if test -z "$ac_err"; then
3095 echo "configure
: failed program was
:" >&5
3096 cat conftest.$ac_ext >&5
3098 CPP="${CC-cc} -nologo -E"
3099 cat > conftest.$ac_ext <<EOF
3100 #line 3101 "configure
"
3101 #include "confdefs.h
"
3105 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
3106 { (eval echo configure:3107: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3107 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
3108 if test -z "$ac_err"; then
3112 echo "configure
: failed program was
:" >&5
3113 cat conftest.$ac_ext >&5
3122 ac_cv_prog_CPP="$CPP"
3124 CPP="$ac_cv_prog_CPP"
3126 ac_cv_prog_CPP="$CPP"
3128 echo "$ac_t""$CPP" 1>&6
3130 cat > conftest.$ac_ext <<EOF
3131 #line 3132 "configure
"
3132 #include "confdefs.h
"
3135 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3136 egrep "uint32_t
" >/dev/null 2>&1; then
3138 cat >> confdefs.h <<\EOF
3139 #define HAVE_INT32_DEFINED 1
3145 cat > conftest.$ac_ext <<EOF
3146 #line 3147 "configure
"
3147 #include "confdefs.h
"
3148 #include <inttypes.h>
3150 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3151 egrep "uint32_t
" >/dev/null 2>&1; then
3153 cat >> confdefs.h <<\EOF
3154 #define HAVE_INT32_DEFINED 1
3160 cat > conftest.$ac_ext <<EOF
3161 #line 3162 "configure
"
3162 #include "confdefs.h
"
3163 #include <sys/types.h>
3165 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3166 egrep "u_int32_t
" >/dev/null 2>&1; then
3168 cat >> confdefs.h <<\EOF
3169 #define HAVE_BSD_INT32_DEFINED 1
3175 cat > conftest.$ac_ext <<EOF
3176 #line 3177 "configure
"
3177 #include "confdefs.h
"
3178 #include <sys/config.h>
3180 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3181 egrep "u_int32_t
" >/dev/null 2>&1; then
3183 cat >> confdefs.h <<\EOF
3184 #define HAVE_BSD_INT32_DEFINED 1
3192 cat > conftest.$ac_ext <<EOF
3193 #line 3194 "configure
"
3194 #include "confdefs.h
"
3197 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3198 egrep "mktime
" >/dev/null 2>&1; then
3200 cat >> confdefs.h <<\EOF
3201 #define HAVE_MKTIME 1
3207 cat > conftest.$ac_ext <<EOF
3208 #line 3209 "configure
"
3209 #include "confdefs.h
"
3212 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3213 egrep "localtime
" >/dev/null 2>&1; then
3215 cat >> confdefs.h <<\EOF
3216 #define HAVE_LOCALTIME 1
3223 test -d java || mkdir java
3224 test -d java/io || mkdir java/io
3225 test -d gnu || mkdir gnu
3229 test -d java/lang || mkdir java/lang
3233 test -d java/net || mkdir java/net
3237 test -d gnu/java || mkdir gnu/java
3238 test -d gnu/java/net || mkdir gnu/java/net
3242 test -d gnu/java/nio || mkdir gnu/java/nio
3248 SYSTEMSPEC="-lgdi32 -lwsock32 -lws2_32"
3249 if test "${with_win32_nlsapi}" = "unicows
"; then
3250 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
3259 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs
-rpath `${PWDCMD-pwd}`/.libs
"
3262 # Check whether --with-system-zlib or --without-system-zlib was given.
3263 if test "${with_system_zlib+set}" = set; then
3264 withval="$with_system_zlib"
3273 # If we find X, set shell vars x_includes and x_libraries to the
3274 # paths, otherwise set no_x=yes.
3275 # Uses ac_ vars as temps to allow command line to override cache and checks.
3276 # --without-x overrides everything else, but does not touch the cache.
3277 echo $ac_n "checking
for X
""...
$ac_c" 1>&6
3278 echo "configure
:3279: checking
for X
" >&5
3280 # Check whether --with-x or --without-x was given.
3281 if test "${with_x+set}" = set; then
3286 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3287 if test "x
$with_x" = xno; then
3288 # The user explicitly disabled X.
3291 if test "x
$x_includes" != xNONE && test "x
$x_libraries" != xNONE; then
3292 # Both variables are already set.
3295 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
3296 echo $ac_n "(cached
) $ac_c" 1>&6
3298 # One or both of the vars are not set, and there is no cached value.
3299 ac_x_includes=NO ac_x_libraries=NO
3301 if mkdir conftestdir; then
3303 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3304 cat > Imakefile <<'EOF'
3306 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3308 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3309 # GNU make sometimes prints "make[1]: Entering...
", which would confuse us.
3310 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3311 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3312 for ac_extension in a so sl; do
3313 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3314 test -f $ac_im_libdir/libX11.$ac_extension; then
3315 ac_im_usrlibdir=$ac_im_libdir; break
3318 # Screen out bogus values from the imake configuration. They are
3319 # bogus both because they are the default anyway, and because
3320 # using them would break gcc on systems where it needs fixed includes.
3321 case "$ac_im_incroot" in
3323 *) test -f "$ac_im_incroot/X11
/Xos.h
" && ac_x_includes="$ac_im_incroot" ;;
3325 case "$ac_im_usrlibdir" in
3327 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
3334 if test "$ac_x_includes" = NO; then
3335 # Guess where to find include files, by looking for this one X11 .h file.
3336 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
3338 # First, try using that file with no special directory specified.
3339 cat > conftest.$ac_ext <<EOF
3340 #line 3341 "configure
"
3341 #include "confdefs.h
"
3342 #include <$x_direct_test_include>
3344 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
3345 { (eval echo configure:3346: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3346 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
3347 if test -z "$ac_err"; then
3349 # We can compile using X headers with no special include directory.
3353 echo "configure
: failed program was
:" >&5
3354 cat conftest.$ac_ext >&5
3356 # Look for the header file in a standard set of common directories.
3357 # Check X11 before X11Rn because it is often a symlink to the current release.
3360 /usr/X11R6/include \
3361 /usr/X11R5/include \
3362 /usr/X11R4/include \
3365 /usr/include/X11R6 \
3366 /usr/include/X11R5 \
3367 /usr/include/X11R4 \
3369 /usr/local/X11/include \
3370 /usr/local/X11R6/include \
3371 /usr/local/X11R5/include \
3372 /usr/local/X11R4/include \
3374 /usr/local/include/X11 \
3375 /usr/local/include/X11R6 \
3376 /usr/local/include/X11R5 \
3377 /usr/local/include/X11R4 \
3381 /usr/XFree86/include/X11 \
3384 /usr/local/include \
3385 /usr/unsupported/include \
3386 /usr/athena/include \
3387 /usr/local/x11r5/include \
3388 /usr/lpp/Xamples/include \
3390 /usr/openwin/include \
3391 /usr/openwin/share/include \
3394 if test -r "$ac_dir/$x_direct_test_include"; then
3395 ac_x_includes=$ac_dir
3401 fi # $ac_x_includes = NO
3403 if test "$ac_x_libraries" = NO; then
3404 # Check for the libraries.
3406 test -z "$x_direct_test_library" && x_direct_test_library=Xt
3407 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
3409 # See if we find them without any special options.
3410 # Don't add to $LIBS permanently.
3411 ac_save_LIBS="$LIBS"
3412 LIBS="-l$x_direct_test_library $LIBS"
3413 cat > conftest.$ac_ext <<EOF
3414 #line 3415 "configure
"
3415 #include "confdefs.h
"
3418 ${x_direct_test_function}()
3421 if { (eval echo configure:3422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3423 LIBS="$ac_save_LIBS"
3424 # We can link X programs with no special library path.
3427 echo "configure
: failed program was
:" >&5
3428 cat conftest.$ac_ext >&5
3430 LIBS="$ac_save_LIBS"
3431 # First see if replacing the include by lib works.
3432 # Check X11 before X11Rn because it is often a symlink to the current release.
3433 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
3444 /usr/local/X11/lib \
3445 /usr/local/X11R6/lib \
3446 /usr/local/X11R5/lib \
3447 /usr/local/X11R4/lib \
3449 /usr/local/lib/X11 \
3450 /usr/local/lib/X11R6 \
3451 /usr/local/lib/X11R5 \
3452 /usr/local/lib/X11R4 \
3456 /usr/XFree86/lib/X11 \
3460 /usr/unsupported/lib \
3462 /usr/local/x11r5/lib \
3463 /usr/lpp/Xamples/lib \
3467 /usr/openwin/share/lib \
3470 for ac_extension in a so sl; do
3471 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
3472 ac_x_libraries=$ac_dir
3479 fi # $ac_x_libraries = NO
3481 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
3482 # Didn't find X anywhere. Cache the known absence of X.
3483 ac_cv_have_x="have_x
=no
"
3485 # Record where we found X for the cache.
3486 ac_cv_have_x="have_x
=yes \
3487 ac_x_includes
=$ac_x_includes ac_x_libraries
=$ac_x_libraries"
3491 eval "$ac_cv_have_x"
3494 if test "$have_x" != yes; then
3495 echo "$ac_t""$have_x" 1>&6
3498 # If each of the values was on the command line, it overrides each guess.
3499 test "x
$x_includes" = xNONE && x_includes=$ac_x_includes
3500 test "x
$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3501 # Update the cache value to reflect the command line values.
3502 ac_cv_have_x="have_x
=yes \
3503 ac_x_includes
=$x_includes ac_x_libraries
=$x_libraries"
3504 echo "$ac_t""libraries
$x_libraries, headers
$x_includes" 1>&6
3507 if test "$no_x" = yes; then
3508 # Not all programs may use this symbol, but it does not hurt to define it.
3509 cat >> confdefs.h <<\EOF
3510 #define X_DISPLAY_MISSING 1
3513 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3515 if test -n "$x_includes"; then
3516 X_CFLAGS="$X_CFLAGS -I$x_includes"
3519 # It would also be nice to do this for all -L options, not just this one.
3520 if test -n "$x_libraries"; then
3521 X_LIBS="$X_LIBS -L$x_libraries"
3522 # For Solaris; some versions of Sun CC require a space after -R and
3523 # others require no space. Words are not sufficient . . . .
3524 case "`(uname -sr) 2>/dev/null`" in
3526 echo $ac_n "checking whether
-R must be followed by a space
""...
$ac_c" 1>&6
3527 echo "configure
:3528: checking whether
-R must be followed by a space
" >&5
3528 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
3529 cat > conftest.$ac_ext <<EOF
3530 #line 3531 "configure
"
3531 #include "confdefs.h
"
3537 if { (eval echo configure:3538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3541 echo "configure
: failed program was
:" >&5
3542 cat conftest.$ac_ext >&5
3547 if test $ac_R_nospace = yes; then
3548 echo "$ac_t""no
" 1>&6
3549 X_LIBS="$X_LIBS -R$x_libraries"
3551 LIBS="$ac_xsave_LIBS -R $x_libraries"
3552 cat > conftest.$ac_ext <<EOF
3553 #line 3554 "configure
"
3554 #include "confdefs.h
"
3560 if { (eval echo configure:3561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3564 echo "configure
: failed program was
:" >&5
3565 cat conftest.$ac_ext >&5
3570 if test $ac_R_space = yes; then
3571 echo "$ac_t""yes" 1>&6
3572 X_LIBS="$X_LIBS -R $x_libraries"
3574 echo "$ac_t""neither works
" 1>&6
3577 LIBS="$ac_xsave_LIBS"
3581 # Check for system-dependent libraries X programs must link with.
3582 # Do this before checking for the system-independent R6 libraries
3583 # (-lICE), since we may need -lsocket or whatever for X linking.
3585 if test "$ISC" = yes; then
3586 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3588 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
3589 # libraries were built with DECnet support. And karl@cs.umb.edu says
3590 # the Alpha needs dnet_stub (dnet does not exist).
3591 echo $ac_n "checking
for dnet_ntoa
in -ldnet""...
$ac_c" 1>&6
3592 echo "configure
:3593: checking
for dnet_ntoa
in -ldnet" >&5
3593 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3594 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3595 echo $ac_n "(cached
) $ac_c" 1>&6
3597 ac_save_LIBS="$LIBS"
3599 cat > conftest.$ac_ext <<EOF
3600 #line 3601 "configure
"
3601 #include "confdefs.h
"
3602 /* Override any gcc2 internal prototype to avoid an error. */
3603 /* We use char because int might match the return type of a gcc2
3604 builtin and then its argument prototype would still apply. */
3611 if { (eval echo configure:3612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3613 eval "ac_cv_lib_
$ac_lib_var=yes"
3615 echo "configure
: failed program was
:" >&5
3616 cat conftest.$ac_ext >&5
3618 eval "ac_cv_lib_
$ac_lib_var=no
"
3621 LIBS="$ac_save_LIBS"
3624 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3625 echo "$ac_t""yes" 1>&6
3626 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3628 echo "$ac_t""no
" 1>&6
3631 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3632 echo $ac_n "checking
for dnet_ntoa
in -ldnet_stub""...
$ac_c" 1>&6
3633 echo "configure
:3634: checking
for dnet_ntoa
in -ldnet_stub" >&5
3634 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3635 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3636 echo $ac_n "(cached
) $ac_c" 1>&6
3638 ac_save_LIBS="$LIBS"
3639 LIBS="-ldnet_stub $LIBS"
3640 cat > conftest.$ac_ext <<EOF
3641 #line 3642 "configure
"
3642 #include "confdefs.h
"
3643 /* Override any gcc2 internal prototype to avoid an error. */
3644 /* We use char because int might match the return type of a gcc2
3645 builtin and then its argument prototype would still apply. */
3652 if { (eval echo configure:3653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3654 eval "ac_cv_lib_
$ac_lib_var=yes"
3656 echo "configure
: failed program was
:" >&5
3657 cat conftest.$ac_ext >&5
3659 eval "ac_cv_lib_
$ac_lib_var=no
"
3662 LIBS="$ac_save_LIBS"
3665 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3666 echo "$ac_t""yes" 1>&6
3667 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3669 echo "$ac_t""no
" 1>&6
3674 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3675 # to get the SysV transport functions.
3676 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
3678 # The nsl library prevents programs from opening the X display
3679 # on Irix 5.2, according to dickey@clark.net.
3680 echo $ac_n "checking
for gethostbyname
""...
$ac_c" 1>&6
3681 echo "configure
:3682: checking
for gethostbyname
" >&5
3682 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3683 echo $ac_n "(cached
) $ac_c" 1>&6
3685 cat > conftest.$ac_ext <<EOF
3686 #line 3687 "configure
"
3687 #include "confdefs.h
"
3688 /* System header to define __stub macros and hopefully few prototypes,
3689 which can conflict with char gethostbyname(); below. */
3691 /* Override any gcc2 internal prototype to avoid an error. */
3692 /* We use char because int might match the return type of a gcc2
3693 builtin and then its argument prototype would still apply. */
3694 char gethostbyname();
3698 /* The GNU C library defines this for functions which it implements
3699 to always fail with ENOSYS. Some functions are actually named
3700 something starting with __ and the normal name is an alias. */
3701 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3709 if { (eval echo configure:3710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3711 eval "ac_cv_func_gethostbyname
=yes"
3713 echo "configure
: failed program was
:" >&5
3714 cat conftest.$ac_ext >&5
3716 eval "ac_cv_func_gethostbyname
=no
"
3721 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3722 echo "$ac_t""yes" 1>&6
3725 echo "$ac_t""no
" 1>&6
3728 if test $ac_cv_func_gethostbyname = no; then
3729 echo $ac_n "checking
for gethostbyname
in -lnsl""...
$ac_c" 1>&6
3730 echo "configure
:3731: checking
for gethostbyname
in -lnsl" >&5
3731 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3732 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3733 echo $ac_n "(cached
) $ac_c" 1>&6
3735 ac_save_LIBS="$LIBS"
3737 cat > conftest.$ac_ext <<EOF
3738 #line 3739 "configure
"
3739 #include "confdefs.h
"
3740 /* Override any gcc2 internal prototype to avoid an error. */
3741 /* We use char because int might match the return type of a gcc2
3742 builtin and then its argument prototype would still apply. */
3743 char gethostbyname();
3749 if { (eval echo configure:3750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3751 eval "ac_cv_lib_
$ac_lib_var=yes"
3753 echo "configure
: failed program was
:" >&5
3754 cat conftest.$ac_ext >&5
3756 eval "ac_cv_lib_
$ac_lib_var=no
"
3759 LIBS="$ac_save_LIBS"
3762 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3763 echo "$ac_t""yes" 1>&6
3764 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3766 echo "$ac_t""no
" 1>&6
3771 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3772 # socket/setsockopt and other routines are undefined under SCO ODT
3773 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3774 # on later versions), says simon@lia.di.epfl.ch: it contains
3775 # gethostby* variants that don't use the nameserver (or something).
3776 # -lsocket must be given before -lnsl if both are needed.
3777 # We assume that if connect needs -lnsl, so does gethostbyname.
3778 echo $ac_n "checking
for connect
""...
$ac_c" 1>&6
3779 echo "configure
:3780: checking
for connect
" >&5
3780 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3781 echo $ac_n "(cached
) $ac_c" 1>&6
3783 cat > conftest.$ac_ext <<EOF
3784 #line 3785 "configure
"
3785 #include "confdefs.h
"
3786 /* System header to define __stub macros and hopefully few prototypes,
3787 which can conflict with char connect(); below. */
3789 /* Override any gcc2 internal prototype to avoid an error. */
3790 /* We use char because int might match the return type of a gcc2
3791 builtin and then its argument prototype would still apply. */
3796 /* The GNU C library defines this for functions which it implements
3797 to always fail with ENOSYS. Some functions are actually named
3798 something starting with __ and the normal name is an alias. */
3799 #if defined (__stub_connect) || defined (__stub___connect)
3807 if { (eval echo configure:3808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3809 eval "ac_cv_func_connect
=yes"
3811 echo "configure
: failed program was
:" >&5
3812 cat conftest.$ac_ext >&5
3814 eval "ac_cv_func_connect
=no
"
3819 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3820 echo "$ac_t""yes" 1>&6
3823 echo "$ac_t""no
" 1>&6
3826 if test $ac_cv_func_connect = no; then
3827 echo $ac_n "checking
for connect
in -lsocket""...
$ac_c" 1>&6
3828 echo "configure
:3829: checking
for connect
in -lsocket" >&5
3829 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3830 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3831 echo $ac_n "(cached
) $ac_c" 1>&6
3833 ac_save_LIBS="$LIBS"
3834 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3835 cat > conftest.$ac_ext <<EOF
3836 #line 3837 "configure
"
3837 #include "confdefs.h
"
3838 /* Override any gcc2 internal prototype to avoid an error. */
3839 /* We use char because int might match the return type of a gcc2
3840 builtin and then its argument prototype would still apply. */
3847 if { (eval echo configure:3848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3849 eval "ac_cv_lib_
$ac_lib_var=yes"
3851 echo "configure
: failed program was
:" >&5
3852 cat conftest.$ac_ext >&5
3854 eval "ac_cv_lib_
$ac_lib_var=no
"
3857 LIBS="$ac_save_LIBS"
3860 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3861 echo "$ac_t""yes" 1>&6
3862 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3864 echo "$ac_t""no
" 1>&6
3869 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
3870 echo $ac_n "checking
for remove
""...
$ac_c" 1>&6
3871 echo "configure
:3872: checking
for remove
" >&5
3872 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
3873 echo $ac_n "(cached
) $ac_c" 1>&6
3875 cat > conftest.$ac_ext <<EOF
3876 #line 3877 "configure
"
3877 #include "confdefs.h
"
3878 /* System header to define __stub macros and hopefully few prototypes,
3879 which can conflict with char remove(); below. */
3881 /* Override any gcc2 internal prototype to avoid an error. */
3882 /* We use char because int might match the return type of a gcc2
3883 builtin and then its argument prototype would still apply. */
3888 /* The GNU C library defines this for functions which it implements
3889 to always fail with ENOSYS. Some functions are actually named
3890 something starting with __ and the normal name is an alias. */
3891 #if defined (__stub_remove) || defined (__stub___remove)
3899 if { (eval echo configure:3900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3901 eval "ac_cv_func_remove
=yes"
3903 echo "configure
: failed program was
:" >&5
3904 cat conftest.$ac_ext >&5
3906 eval "ac_cv_func_remove
=no
"
3911 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
3912 echo "$ac_t""yes" 1>&6
3915 echo "$ac_t""no
" 1>&6
3918 if test $ac_cv_func_remove = no; then
3919 echo $ac_n "checking
for remove
in -lposix""...
$ac_c" 1>&6
3920 echo "configure
:3921: checking
for remove
in -lposix" >&5
3921 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
3922 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3923 echo $ac_n "(cached
) $ac_c" 1>&6
3925 ac_save_LIBS="$LIBS"
3926 LIBS="-lposix $LIBS"
3927 cat > conftest.$ac_ext <<EOF
3928 #line 3929 "configure
"
3929 #include "confdefs.h
"
3930 /* Override any gcc2 internal prototype to avoid an error. */
3931 /* We use char because int might match the return type of a gcc2
3932 builtin and then its argument prototype would still apply. */
3939 if { (eval echo configure:3940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3941 eval "ac_cv_lib_
$ac_lib_var=yes"
3943 echo "configure
: failed program was
:" >&5
3944 cat conftest.$ac_ext >&5
3946 eval "ac_cv_lib_
$ac_lib_var=no
"
3949 LIBS="$ac_save_LIBS"
3952 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3953 echo "$ac_t""yes" 1>&6
3954 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3956 echo "$ac_t""no
" 1>&6
3961 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3962 echo $ac_n "checking
for shmat
""...
$ac_c" 1>&6
3963 echo "configure
:3964: checking
for shmat
" >&5
3964 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
3965 echo $ac_n "(cached
) $ac_c" 1>&6
3967 cat > conftest.$ac_ext <<EOF
3968 #line 3969 "configure
"
3969 #include "confdefs.h
"
3970 /* System header to define __stub macros and hopefully few prototypes,
3971 which can conflict with char shmat(); below. */
3973 /* Override any gcc2 internal prototype to avoid an error. */
3974 /* We use char because int might match the return type of a gcc2
3975 builtin and then its argument prototype would still apply. */
3980 /* The GNU C library defines this for functions which it implements
3981 to always fail with ENOSYS. Some functions are actually named
3982 something starting with __ and the normal name is an alias. */
3983 #if defined (__stub_shmat) || defined (__stub___shmat)
3991 if { (eval echo configure:3992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3993 eval "ac_cv_func_shmat
=yes"
3995 echo "configure
: failed program was
:" >&5
3996 cat conftest.$ac_ext >&5
3998 eval "ac_cv_func_shmat
=no
"
4003 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
4004 echo "$ac_t""yes" 1>&6
4007 echo "$ac_t""no
" 1>&6
4010 if test $ac_cv_func_shmat = no; then
4011 echo $ac_n "checking
for shmat
in -lipc""...
$ac_c" 1>&6
4012 echo "configure
:4013: checking
for shmat
in -lipc" >&5
4013 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
4014 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4015 echo $ac_n "(cached
) $ac_c" 1>&6
4017 ac_save_LIBS="$LIBS"
4019 cat > conftest.$ac_ext <<EOF
4020 #line 4021 "configure
"
4021 #include "confdefs.h
"
4022 /* Override any gcc2 internal prototype to avoid an error. */
4023 /* We use char because int might match the return type of a gcc2
4024 builtin and then its argument prototype would still apply. */
4031 if { (eval echo configure:4032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4033 eval "ac_cv_lib_
$ac_lib_var=yes"
4035 echo "configure
: failed program was
:" >&5
4036 cat conftest.$ac_ext >&5
4038 eval "ac_cv_lib_
$ac_lib_var=no
"
4041 LIBS="$ac_save_LIBS"
4044 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4045 echo "$ac_t""yes" 1>&6
4046 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4048 echo "$ac_t""no
" 1>&6
4054 # Check for libraries that X11R6 Xt/Xaw programs need.
4055 ac_save_LDFLAGS="$LDFLAGS"
4056 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4057 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4058 # check for ICE first), but we must link in the order -lSM -lICE or
4059 # we get undefined symbols. So assume we have SM if we have ICE.
4060 # These have to be linked with before -lX11, unlike the other
4061 # libraries we check for below, so use a different variable.
4062 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
4063 echo $ac_n "checking
for IceConnectionNumber
in -lICE""...
$ac_c" 1>&6
4064 echo "configure
:4065: checking
for IceConnectionNumber
in -lICE" >&5
4065 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
4066 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4067 echo $ac_n "(cached
) $ac_c" 1>&6
4069 ac_save_LIBS="$LIBS"
4070 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4071 cat > conftest.$ac_ext <<EOF
4072 #line 4073 "configure
"
4073 #include "confdefs.h
"
4074 /* Override any gcc2 internal prototype to avoid an error. */
4075 /* We use char because int might match the return type of a gcc2
4076 builtin and then its argument prototype would still apply. */
4077 char IceConnectionNumber();
4080 IceConnectionNumber()
4083 if { (eval echo configure:4084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4085 eval "ac_cv_lib_
$ac_lib_var=yes"
4087 echo "configure
: failed program was
:" >&5
4088 cat conftest.$ac_ext >&5
4090 eval "ac_cv_lib_
$ac_lib_var=no
"
4093 LIBS="$ac_save_LIBS"
4096 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4097 echo "$ac_t""yes" 1>&6
4098 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4100 echo "$ac_t""no
" 1>&6
4103 LDFLAGS="$ac_save_LDFLAGS"
4108 # Check whether --enable-java-awt or --disable-java-awt was given.
4109 if test "${enable_java_awt+set}" = set; then
4110 enableval="$enable_java_awt"
4115 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
4118 # The default toolkit to use is the first one specified.
4122 for peer in $peerlibs ; do
4125 if test "$no_x" = yes; then
4126 echo "*** xlib peers requested but no X library available
" 1>&2
4130 if test -z "$TOOLKIT"; then
4131 TOOLKIT=gnu.awt.xlib.XToolkit
4136 if test "$no_x" = yes; then
4137 echo "*** xlib peers requested but no X library available
" 1>&2
4141 if test -z "$TOOLKIT"; then
4142 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
4144 test -d jniinclude || mkdir jniinclude
4153 echo "*** unrecognised argument
\"${peer}\" for --enable-java-awt" 1>&2
4160 if test "$use_xlib_awt" = yes; then
4169 if test "$use_gtk_awt" = yes; then
4177 # Check whether --enable-gtk-cairo or --disable-gtk-cairo was given.
4178 if test "${enable_gtk_cairo+set}" = set; then
4179 enableval="$enable_gtk_cairo"
4185 if test "x
${enable_gtk_cairo}" = xyes; then
4192 if test "x
${enable_gtk_cairo}" = xyes
4197 if test -z "$PKG_CONFIG"; then
4198 # Extract the first word of "pkg-config
", so it can be a program name with args.
4199 set dummy pkg-config; ac_word=$2
4200 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4201 echo "configure
:4202: checking
for $ac_word" >&5
4202 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
4203 echo $ac_n "(cached
) $ac_c" 1>&6
4205 case "$PKG_CONFIG" in
4207 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4210 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
4213 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4215 for ac_dir in $ac_dummy; do
4216 test -z "$ac_dir" && ac_dir=.
4217 if test -f $ac_dir/$ac_word; then
4218 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
4223 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
4227 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4228 if test -n "$PKG_CONFIG"; then
4229 echo "$ac_t""$PKG_CONFIG" 1>&6
4231 echo "$ac_t""no
" 1>&6
4236 if test "$PKG_CONFIG" = "no
" ; then
4237 echo "*** The pkg-config
script could not be found. Make sure it is
"
4238 echo "*** in your path
, or
set the PKG_CONFIG environment variable
"
4239 echo "*** to the full path to pkg-config.
"
4240 echo "*** Or see http
://www.freedesktop.org
/software
/pkgconfig to get pkg-config.
"
4242 PKG_CONFIG_MIN_VERSION=0.9.0
4243 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
4244 echo $ac_n "checking
for cairo
""...
$ac_c" 1>&6
4245 echo "configure
:4246: checking
for cairo
" >&5
4247 if $PKG_CONFIG --exists "cairo
" ; then
4248 echo "$ac_t""yes" 1>&6
4251 echo $ac_n "checking CAIRO_CFLAGS
""...
$ac_c" 1>&6
4252 echo "configure
:4253: checking CAIRO_CFLAGS
" >&5
4253 CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo
"`
4254 echo "$ac_t""$CAIRO_CFLAGS" 1>&6
4256 echo $ac_n "checking CAIRO_LIBS
""...
$ac_c" 1>&6
4257 echo "configure
:4258: checking CAIRO_LIBS
" >&5
4258 CAIRO_LIBS=`$PKG_CONFIG --libs "cairo
"`
4259 echo "$ac_t""$CAIRO_LIBS" 1>&6
4263 ## If we have a custom action on failure, don't print errors, but
4264 ## do set a variable so people can do so.
4265 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo
"`
4266 echo $CAIRO_PKG_ERRORS
4272 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
4273 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
4277 if test $succeeded = yes; then
4280 { echo "configure
: error
: Library requirements
(cairo
) not met
; consider adjusting the PKG_CONFIG_PATH environment variable
if your libraries are
in a nonstandard prefix so pkg-config can
find them.
" 1>&2; exit 1; }
4286 if test -z "$PKG_CONFIG"; then
4287 # Extract the first word of "pkg-config
", so it can be a program name with args.
4288 set dummy pkg-config; ac_word=$2
4289 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4290 echo "configure
:4291: checking
for $ac_word" >&5
4291 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
4292 echo $ac_n "(cached
) $ac_c" 1>&6
4294 case "$PKG_CONFIG" in
4296 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4299 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
4302 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4304 for ac_dir in $ac_dummy; do
4305 test -z "$ac_dir" && ac_dir=.
4306 if test -f $ac_dir/$ac_word; then
4307 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
4312 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
4316 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4317 if test -n "$PKG_CONFIG"; then
4318 echo "$ac_t""$PKG_CONFIG" 1>&6
4320 echo "$ac_t""no
" 1>&6
4325 if test "$PKG_CONFIG" = "no
" ; then
4326 echo "*** The pkg-config
script could not be found. Make sure it is
"
4327 echo "*** in your path
, or
set the PKG_CONFIG environment variable
"
4328 echo "*** to the full path to pkg-config.
"
4329 echo "*** Or see http
://www.freedesktop.org
/software
/pkgconfig to get pkg-config.
"
4331 PKG_CONFIG_MIN_VERSION=0.9.0
4332 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
4333 echo $ac_n "checking
for pangoft2
""...
$ac_c" 1>&6
4334 echo "configure
:4335: checking
for pangoft2
" >&5
4336 if $PKG_CONFIG --exists "pangoft2
" ; then
4337 echo "$ac_t""yes" 1>&6
4340 echo $ac_n "checking PANGOFT2_CFLAGS
""...
$ac_c" 1>&6
4341 echo "configure
:4342: checking PANGOFT2_CFLAGS
" >&5
4342 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2
"`
4343 echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
4345 echo $ac_n "checking PANGOFT2_LIBS
""...
$ac_c" 1>&6
4346 echo "configure
:4347: checking PANGOFT2_LIBS
" >&5
4347 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2
"`
4348 echo "$ac_t""$PANGOFT2_LIBS" 1>&6
4352 ## If we have a custom action on failure, don't print errors, but
4353 ## do set a variable so people can do so.
4354 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2
"`
4355 echo $PANGOFT2_PKG_ERRORS
4361 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
4362 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
4366 if test $succeeded = yes; then
4369 { echo "configure
: error
: Library requirements
(pangoft2
) not met
; consider adjusting the PKG_CONFIG_PATH environment variable
if your libraries are
in a nonstandard prefix so pkg-config can
find them.
" 1>&2; exit 1; }
4380 echo $ac_n "checking
for garbage collector to use
""...
$ac_c" 1>&6
4381 echo "configure
:4382: checking
for garbage collector to use
" >&5
4382 # Check whether --enable-java-gc or --disable-java-gc was given.
4383 if test "${enable_java_gc+set}" = set; then
4384 enableval="$enable_java_gc"
4400 echo "$ac_t""boehm
" 1>&6
4401 GCLIBS=../boehm-gc/libgcjgc_convenience.la
4402 JC1GCSPEC='-fuse-boehm-gc'
4403 GCTESTSPEC="-L`${PWDCMD-pwd}`/..
/boehm-gc
/.libs
-rpath `${PWDCMD-pwd}`/..
/boehm-gc
/.libs
"
4405 GCINCS="`cat ../boehm-gc/boehm-cflags`"
4408 cat >> confdefs.h <<\EOF
4409 #define HAVE_BOEHM_GC 1
4414 echo "$ac_t""none
" 1>&6
4419 { echo "configure
: error
: unrecognized collector
\"$GC\"" 1>&2; exit 1; }
4432 echo $ac_n "checking
for thread model used by GCC
""...
$ac_c" 1>&6
4433 echo "configure
:4434: checking
for thread model used by GCC
" >&5
4434 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
4435 echo "$ac_t""$THREADS" 1>&6
4445 cat >> confdefs.h <<\EOF
4446 #define LINUX_THREADS 1
4454 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
4455 { echo "configure
: error
: thread package
$THREADS not yet supported
" 1>&2; exit 1; }
4458 { echo "configure
: error
: $THREADS is an unknown thread package
" 1>&2; exit 1; }
4474 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
4479 # Before FreeBSD 5, it didn't have -lpthread (or any library which
4480 # merely adds pthread_* functions) but it does have a -pthread switch
4481 # which is required at link-time to select -lc_r *instead* of -lc.
4482 THREADLDFLAGS=-pthread
4483 # Don't set THREADSPEC here as might be expected since -pthread is
4484 # not processed when found within a spec file, it must come from
4485 # the command line. For now, the user must provide the -pthread
4486 # switch to link code compiled with gcj. In future, consider adding
4487 # support for weak references to pthread_* functions ala gthr.h API.
4488 THREADSPEC='%{!pthread: %eUnder this configuration, the user must provide -pthread when linking.}'
4491 # FreeBSD 5 implements a model much closer to other modern UNIX
4492 # which support threads. However, it still does not support
4494 THREADLDFLAGS=-pthread
4498 THREADCXXFLAGS=-pthread
4499 # boehm-gc needs some functions from librt, so link that too.
4500 THREADLIBS='-lpthread -lrt'
4501 THREADSPEC='-lpthread -lrt'
4504 THREADLIBS=-lpthread
4505 THREADSPEC=-lpthread
4508 THREADOBJS=posix-threads.lo
4509 THREADH=posix-threads.h
4510 # MIT pthreads doesn't seem to have the mutexattr functions.
4511 # But for now we don't check for it. We just assume you aren't
4512 # using MIT pthreads.
4513 cat >> confdefs.h <<\EOF
4514 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
4518 # If we're using the Boehm GC, then we happen to know that it
4519 # defines _REENTRANT, so we don't bother. Eww.
4520 if test "$GC" != boehm; then
4521 cat >> confdefs.h <<\EOF
4522 #define _REENTRANT 1
4526 cat >> confdefs.h <<\EOF
4527 #define _POSIX_PTHREAD_SEMANTICS 1
4533 THREADOBJS=win32-threads.lo
4534 THREADH=win32-threads.h
4538 THREADOBJS=no-threads.lo
4539 THREADH=no-threads.h
4551 if test -d sysdep; then true; else mkdir sysdep; fi
4555 # Hash synchronization is only useful with posix threads right now.
4556 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none
"; then
4557 HASH_SYNC_SPEC=-fhash-synchronization
4558 cat >> confdefs.h <<\EOF
4559 #define JV_HASH_SYNCHRONIZATION 1
4568 if test "$GCC" = yes; then
4580 # We're in the tree with gcc, and need to include some of its headers.
4581 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
4583 # Figure out where generated headers like libgcj-config.h get installed.
4584 gcc_version_trigger=${libgcj_basedir}/../gcc/version.c
4585 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
4586 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
4587 tool_include_dir='$(libdir)/gcc/$(target_alias)/'${gcc_version}/include
4591 if test "x
${with_newlib}" = "xyes
"; then
4592 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
4593 # may not work correctly, because the compiler may not be able to
4596 # We assume newlib. This lets us hard-code the functions we know
4598 cat >> confdefs.h <<\EOF
4599 #define HAVE_MEMMOVE 1
4602 cat >> confdefs.h <<\EOF
4603 #define HAVE_MEMCPY 1
4606 cat >> confdefs.h <<\EOF
4607 #define HAVE_STRERROR 1
4610 cat >> confdefs.h <<\EOF
4614 cat >> confdefs.h <<\EOF
4615 #define HAVE_GMTIME_R 1
4618 cat >> confdefs.h <<\EOF
4619 #define HAVE_LOCALTIME_R 1
4622 cat >> confdefs.h <<\EOF
4623 #define HAVE_USLEEP_DECL 1
4626 cat >> confdefs.h <<\EOF
4627 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
4630 cat >> confdefs.h <<\EOF
4631 #define HAVE_ALLOCA 1
4635 cat >> confdefs.h <<\EOF
4641 for ac_func in strerror ioctl select fstat open fsync sleep opendir
4643 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4644 echo "configure
:4645: checking
for $ac_func" >&5
4645 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4646 echo $ac_n "(cached
) $ac_c" 1>&6
4648 cat > conftest.$ac_ext <<EOF
4649 #line 4650 "configure
"
4650 #include "confdefs.h
"
4651 /* System header to define __stub macros and hopefully few prototypes,
4652 which can conflict with char $ac_func(); below. */
4654 /* Override any gcc2 internal prototype to avoid an error. */
4655 /* We use char because int might match the return type of a gcc2
4656 builtin and then its argument prototype would still apply. */
4661 /* The GNU C library defines this for functions which it implements
4662 to always fail with ENOSYS. Some functions are actually named
4663 something starting with __ and the normal name is an alias. */
4664 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4672 if { (eval echo configure:4673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4674 eval "ac_cv_func_
$ac_func=yes"
4676 echo "configure
: failed program was
:" >&5
4677 cat conftest.$ac_ext >&5
4679 eval "ac_cv_func_
$ac_func=no
"
4684 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4685 echo "$ac_t""yes" 1>&6
4686 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4687 cat >> confdefs.h <<EOF
4688 #define $ac_tr_func 1
4692 echo "$ac_t""no
" 1>&6
4696 for ac_func in gmtime_r localtime_r readdir_r getpwuid_r getcwd
4698 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4699 echo "configure
:4700: checking
for $ac_func" >&5
4700 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4701 echo $ac_n "(cached
) $ac_c" 1>&6
4703 cat > conftest.$ac_ext <<EOF
4704 #line 4705 "configure
"
4705 #include "confdefs.h
"
4706 /* System header to define __stub macros and hopefully few prototypes,
4707 which can conflict with char $ac_func(); below. */
4709 /* Override any gcc2 internal prototype to avoid an error. */
4710 /* We use char because int might match the return type of a gcc2
4711 builtin and then its argument prototype would still apply. */
4716 /* The GNU C library defines this for functions which it implements
4717 to always fail with ENOSYS. Some functions are actually named
4718 something starting with __ and the normal name is an alias. */
4719 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4727 if { (eval echo configure:4728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4729 eval "ac_cv_func_
$ac_func=yes"
4731 echo "configure
: failed program was
:" >&5
4732 cat conftest.$ac_ext >&5
4734 eval "ac_cv_func_
$ac_func=no
"
4739 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4740 echo "$ac_t""yes" 1>&6
4741 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4742 cat >> confdefs.h <<EOF
4743 #define $ac_tr_func 1
4747 echo "$ac_t""no
" 1>&6
4751 for ac_func in access stat mkdir rename rmdir unlink realpath utime chmod
4753 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4754 echo "configure
:4755: checking
for $ac_func" >&5
4755 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4756 echo $ac_n "(cached
) $ac_c" 1>&6
4758 cat > conftest.$ac_ext <<EOF
4759 #line 4760 "configure
"
4760 #include "confdefs.h
"
4761 /* System header to define __stub macros and hopefully few prototypes,
4762 which can conflict with char $ac_func(); below. */
4764 /* Override any gcc2 internal prototype to avoid an error. */
4765 /* We use char because int might match the return type of a gcc2
4766 builtin and then its argument prototype would still apply. */
4771 /* The GNU C library defines this for functions which it implements
4772 to always fail with ENOSYS. Some functions are actually named
4773 something starting with __ and the normal name is an alias. */
4774 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4782 if { (eval echo configure:4783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4784 eval "ac_cv_func_
$ac_func=yes"
4786 echo "configure
: failed program was
:" >&5
4787 cat conftest.$ac_ext >&5
4789 eval "ac_cv_func_
$ac_func=no
"
4794 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4795 echo "$ac_t""yes" 1>&6
4796 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4797 cat >> confdefs.h <<EOF
4798 #define $ac_tr_func 1
4802 echo "$ac_t""no
" 1>&6
4806 for ac_func in nl_langinfo setlocale
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 for ac_func in inet_aton inet_addr
4863 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4864 echo "configure
:4865: checking
for $ac_func" >&5
4865 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4866 echo $ac_n "(cached
) $ac_c" 1>&6
4868 cat > conftest.$ac_ext <<EOF
4869 #line 4870 "configure
"
4870 #include "confdefs.h
"
4871 /* System header to define __stub macros and hopefully few prototypes,
4872 which can conflict with char $ac_func(); below. */
4874 /* Override any gcc2 internal prototype to avoid an error. */
4875 /* We use char because int might match the return type of a gcc2
4876 builtin and then its argument prototype would still apply. */
4881 /* The GNU C library defines this for functions which it implements
4882 to always fail with ENOSYS. Some functions are actually named
4883 something starting with __ and the normal name is an alias. */
4884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4892 if { (eval echo configure:4893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4894 eval "ac_cv_func_
$ac_func=yes"
4896 echo "configure
: failed program was
:" >&5
4897 cat conftest.$ac_ext >&5
4899 eval "ac_cv_func_
$ac_func=no
"
4904 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4905 echo "$ac_t""yes" 1>&6
4906 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4907 cat >> confdefs.h <<EOF
4908 #define $ac_tr_func 1
4912 echo "$ac_t""no
" 1>&6
4916 for ac_func in inet_pton uname inet_ntoa
4918 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4919 echo "configure
:4920: checking
for $ac_func" >&5
4920 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4921 echo $ac_n "(cached
) $ac_c" 1>&6
4923 cat > conftest.$ac_ext <<EOF
4924 #line 4925 "configure
"
4925 #include "confdefs.h
"
4926 /* System header to define __stub macros and hopefully few prototypes,
4927 which can conflict with char $ac_func(); below. */
4929 /* Override any gcc2 internal prototype to avoid an error. */
4930 /* We use char because int might match the return type of a gcc2
4931 builtin and then its argument prototype would still apply. */
4936 /* The GNU C library defines this for functions which it implements
4937 to always fail with ENOSYS. Some functions are actually named
4938 something starting with __ and the normal name is an alias. */
4939 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4947 if { (eval echo configure:4948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4949 eval "ac_cv_func_
$ac_func=yes"
4951 echo "configure
: failed program was
:" >&5
4952 cat conftest.$ac_ext >&5
4954 eval "ac_cv_func_
$ac_func=no
"
4959 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4960 echo "$ac_t""yes" 1>&6
4961 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4962 cat >> confdefs.h <<EOF
4963 #define $ac_tr_func 1
4967 echo "$ac_t""no
" 1>&6
4971 for ac_func in fork execvp pipe sigaction ftruncate
4973 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4974 echo "configure
:4975: checking
for $ac_func" >&5
4975 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4976 echo $ac_n "(cached
) $ac_c" 1>&6
4978 cat > conftest.$ac_ext <<EOF
4979 #line 4980 "configure
"
4980 #include "confdefs.h
"
4981 /* System header to define __stub macros and hopefully few prototypes,
4982 which can conflict with char $ac_func(); below. */
4984 /* Override any gcc2 internal prototype to avoid an error. */
4985 /* We use char because int might match the return type of a gcc2
4986 builtin and then its argument prototype would still apply. */
4991 /* The GNU C library defines this for functions which it implements
4992 to always fail with ENOSYS. Some functions are actually named
4993 something starting with __ and the normal name is an alias. */
4994 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5002 if { (eval echo configure:5003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5004 eval "ac_cv_func_
$ac_func=yes"
5006 echo "configure
: failed program was
:" >&5
5007 cat conftest.$ac_ext >&5
5009 eval "ac_cv_func_
$ac_func=no
"
5014 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5015 echo "$ac_t""yes" 1>&6
5016 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5017 cat >> confdefs.h <<EOF
5018 #define $ac_tr_func 1
5022 echo "$ac_t""no
" 1>&6
5026 for ac_hdr in execinfo.h unistd.h dlfcn.h
5028 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5029 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
5030 echo "configure
:5031: checking
for $ac_hdr" >&5
5031 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5032 echo $ac_n "(cached
) $ac_c" 1>&6
5034 cat > conftest.$ac_ext <<EOF
5035 #line 5036 "configure
"
5036 #include "confdefs.h
"
5039 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
5040 { (eval echo configure:5041: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5041 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
5042 if test -z "$ac_err"; then
5044 eval "ac_cv_header_
$ac_safe=yes"
5047 echo "configure
: failed program was
:" >&5
5048 cat conftest.$ac_ext >&5
5050 eval "ac_cv_header_
$ac_safe=no
"
5054 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5055 echo "$ac_t""yes" 1>&6
5056 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5057 cat >> confdefs.h <<EOF
5058 #define $ac_tr_hdr 1
5062 echo "$ac_t""no
" 1>&6
5066 echo $ac_n "checking
for backtrace
""...
$ac_c" 1>&6
5067 echo "configure
:5068: checking
for backtrace
" >&5
5068 if eval "test \"`echo '$''{'ac_cv_func_backtrace'+set}'`\" = set"; then
5069 echo $ac_n "(cached
) $ac_c" 1>&6
5071 cat > conftest.$ac_ext <<EOF
5072 #line 5073 "configure
"
5073 #include "confdefs.h
"
5074 /* System header to define __stub macros and hopefully few prototypes,
5075 which can conflict with char backtrace(); below. */
5077 /* Override any gcc2 internal prototype to avoid an error. */
5078 /* We use char because int might match the return type of a gcc2
5079 builtin and then its argument prototype would still apply. */
5084 /* The GNU C library defines this for functions which it implements
5085 to always fail with ENOSYS. Some functions are actually named
5086 something starting with __ and the normal name is an alias. */
5087 #if defined (__stub_backtrace) || defined (__stub___backtrace)
5095 if { (eval echo configure:5096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5097 eval "ac_cv_func_backtrace
=yes"
5099 echo "configure
: failed program was
:" >&5
5100 cat conftest.$ac_ext >&5
5102 eval "ac_cv_func_backtrace
=no
"
5107 if eval "test \"`echo '$ac_cv_func_'backtrace`\" = yes"; then
5108 echo "$ac_t""yes" 1>&6
5112 # Has broken backtrace()
5115 # Has broken backtrace(), but we supply our own.
5116 if test -d sysdep; then true; else mkdir -p sysdep; fi
5117 EXTRA_CC_FILES="${EXTRA_CC_FILES} sysdep
/dwarf2-backtrace.cc
"
5118 cat >> confdefs.h <<\EOF
5119 #define HAVE_BACKTRACE 1
5124 cat >> confdefs.h <<\EOF
5125 #define HAVE_BACKTRACE 1
5132 echo "$ac_t""no
" 1>&6
5136 # Has backtrace() defined in libgcj itself
5137 cat >> confdefs.h <<\EOF
5138 #define HAVE_BACKTRACE 1
5147 echo $ac_n "checking
for dladdr
in -ldl""...
$ac_c" 1>&6
5148 echo "configure
:5149: checking
for dladdr
in -ldl" >&5
5149 ac_lib_var=`echo dl'_'dladdr | sed 'y%./+-%__p_%'`
5150 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5151 echo $ac_n "(cached
) $ac_c" 1>&6
5153 ac_save_LIBS="$LIBS"
5155 cat > conftest.$ac_ext <<EOF
5156 #line 5157 "configure
"
5157 #include "confdefs.h
"
5158 /* Override any gcc2 internal prototype to avoid an error. */
5159 /* We use char because int might match the return type of a gcc2
5160 builtin and then its argument prototype would still apply. */
5167 if { (eval echo configure:5168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5169 eval "ac_cv_lib_
$ac_lib_var=yes"
5171 echo "configure
: failed program was
:" >&5
5172 cat conftest.$ac_ext >&5
5174 eval "ac_cv_lib_
$ac_lib_var=no
"
5177 LIBS="$ac_save_LIBS"
5180 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5181 echo "$ac_t""yes" 1>&6
5183 if test "x
${disable_dladdr}" = "xyes
"; then
5187 cat >> confdefs.h <<\EOF
5188 #define HAVE_DLADDR 1
5194 echo "$ac_t""no
" 1>&6
5197 if test x"$build" = x"$host"; then
5198 for ac_file in /proc/self/exe
5201 ac_safe=`echo "$ac_file" | sed 'y%./+-%__p_%'`
5202 echo $ac_n "checking
for $ac_file""...
$ac_c" 1>&6
5203 echo "configure
:5204: checking
for $ac_file" >&5
5204 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
5205 echo $ac_n "(cached
) $ac_c" 1>&6
5207 if test "$cross_compiling" = yes; then
5208 { echo "configure
: error
: Cannot check
for file existence when cross compiling
" 1>&2; exit 1; }
5210 if test -r $ac_file; then
5211 eval "ac_cv_file_
$ac_safe=yes"
5213 eval "ac_cv_file_
$ac_safe=no
"
5217 if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
5218 echo "$ac_t""yes" 1>&6
5219 ac_tr_file=HAVE_`echo $ac_file | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5220 cat >> confdefs.h <<EOF
5221 #define $ac_tr_file 1
5224 cat >> confdefs.h <<\EOF
5225 #define HAVE_PROC_SELF_EXE 1
5229 echo "$ac_t""no
" 1>&6
5237 cat >> confdefs.h <<\EOF
5238 #define HAVE_PROC_SELF_EXE 1
5247 am_cv_lib_iconv_ldpath=
5248 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5249 if test "${with_libiconv_prefix+set}" = set; then
5250 withval="$with_libiconv_prefix"
5252 for dir in `echo "$withval" | tr : ' '`; do
5253 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include
"; fi
5254 if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib
"; fi
5260 echo $ac_n "checking
for iconv""...
$ac_c" 1>&6
5261 echo "configure
:5262: checking
for iconv" >&5
5262 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
5263 echo $ac_n "(cached
) $ac_c" 1>&6
5266 am_cv_func_iconv="no
, consider installing GNU libiconv
"
5268 cat > conftest.$ac_ext <<EOF
5269 #line 5270 "configure
"
5270 #include "confdefs.h
"
5274 iconv_t cd = iconv_open("","");
5275 iconv(cd,NULL,NULL,NULL,NULL);
5279 if { (eval echo configure:5280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5281 am_cv_func_iconv=yes
5283 echo "configure
: failed program was
:" >&5
5284 cat conftest.$ac_ext >&5
5287 if test "$am_cv_func_iconv" != yes; then
5288 am_save_LIBS="$LIBS"
5289 LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
5290 cat > conftest.$ac_ext <<EOF
5291 #line 5292 "configure
"
5292 #include "confdefs.h
"
5296 iconv_t cd = iconv_open("","");
5297 iconv(cd,NULL,NULL,NULL,NULL);
5301 if { (eval echo configure:5302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5304 am_cv_func_iconv=yes
5306 echo "configure
: failed program was
:" >&5
5307 cat conftest.$ac_ext >&5
5310 LIBS="$am_save_LIBS"
5315 echo "$ac_t""$am_cv_func_iconv" 1>&6
5316 if test "$am_cv_func_iconv" = yes; then
5317 cat >> confdefs.h <<\EOF
5318 #define HAVE_ICONV 1
5321 echo $ac_n "checking
for iconv declaration
""...
$ac_c" 1>&6
5322 echo "configure
:5323: checking
for iconv declaration
" >&5
5323 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
5324 echo $ac_n "(cached
) $ac_c" 1>&6
5327 cat > conftest.$ac_ext <<EOF
5328 #line 5329 "configure
"
5329 #include "confdefs.h
"
5337 #if defined(__STDC__) || defined(__cplusplus)
5338 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
5347 if { (eval echo configure:5348: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5349 am_cv_proto_iconv_arg1=""
5351 echo "configure
: failed program was
:" >&5
5352 cat conftest.$ac_ext >&5
5354 am_cv_proto_iconv_arg1="const
"
5357 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
);"
5360 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
5361 echo "$ac_t""$
{ac_t
:-
5362 }$am_cv_proto_iconv" 1>&6
5363 cat >> confdefs.h <<EOF
5364 #define ICONV_CONST $am_cv_proto_iconv_arg1
5369 if test "$am_cv_lib_iconv" = yes; then
5370 LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
5374 for ac_hdr in locale.h
5376 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5377 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
5378 echo "configure
:5379: checking
for $ac_hdr" >&5
5379 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5380 echo $ac_n "(cached
) $ac_c" 1>&6
5382 cat > conftest.$ac_ext <<EOF
5383 #line 5384 "configure
"
5384 #include "confdefs.h
"
5387 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
5388 { (eval echo configure:5389: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5389 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
5390 if test -z "$ac_err"; then
5392 eval "ac_cv_header_
$ac_safe=yes"
5395 echo "configure
: failed program was
:" >&5
5396 cat conftest.$ac_ext >&5
5398 eval "ac_cv_header_
$ac_safe=no
"
5402 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5403 echo "$ac_t""yes" 1>&6
5404 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5405 cat >> confdefs.h <<EOF
5406 #define $ac_tr_hdr 1
5410 echo "$ac_t""no
" 1>&6
5414 if test $ac_cv_header_locale_h = yes; then
5415 echo $ac_n "checking
for LC_MESSAGES
""...
$ac_c" 1>&6
5416 echo "configure
:5417: checking
for LC_MESSAGES
" >&5
5417 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
5418 echo $ac_n "(cached
) $ac_c" 1>&6
5420 cat > conftest.$ac_ext <<EOF
5421 #line 5422 "configure
"
5422 #include "confdefs.h
"
5428 if { (eval echo configure:5429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5430 am_cv_val_LC_MESSAGES=yes
5432 echo "configure
: failed program was
:" >&5
5433 cat conftest.$ac_ext >&5
5435 am_cv_val_LC_MESSAGES=no
5440 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
5441 if test $am_cv_val_LC_MESSAGES = yes; then
5442 cat >> confdefs.h <<\EOF
5443 #define HAVE_LC_MESSAGES 1
5448 echo $ac_n "checking whether struct tm is
in sys
/time.h or
time.h
""...
$ac_c" 1>&6
5449 echo "configure
:5450: checking whether struct tm is
in sys
/time.h or
time.h
" >&5
5450 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
5451 echo $ac_n "(cached
) $ac_c" 1>&6
5453 cat > conftest.$ac_ext <<EOF
5454 #line 5455 "configure
"
5455 #include "confdefs.h
"
5456 #include <sys/types.h>
5459 struct tm *tp; tp->tm_sec;
5462 if { (eval echo configure:5463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5464 ac_cv_struct_tm=time.h
5466 echo "configure
: failed program was
:" >&5
5467 cat conftest.$ac_ext >&5
5469 ac_cv_struct_tm=sys/time.h
5474 echo "$ac_t""$ac_cv_struct_tm" 1>&6
5475 if test $ac_cv_struct_tm = sys/time.h; then
5476 cat >> confdefs.h <<\EOF
5477 #define TM_IN_SYS_TIME 1
5482 echo $ac_n "checking
for tm_zone
in struct tm
""...
$ac_c" 1>&6
5483 echo "configure
:5484: checking
for tm_zone
in struct tm
" >&5
5484 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
5485 echo $ac_n "(cached
) $ac_c" 1>&6
5487 cat > conftest.$ac_ext <<EOF
5488 #line 5489 "configure
"
5489 #include "confdefs.h
"
5490 #include <sys/types.h>
5491 #include <$ac_cv_struct_tm>
5493 struct tm tm; tm.tm_zone;
5496 if { (eval echo configure:5497: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5498 ac_cv_struct_tm_zone=yes
5500 echo "configure
: failed program was
:" >&5
5501 cat conftest.$ac_ext >&5
5503 ac_cv_struct_tm_zone=no
5508 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
5509 if test "$ac_cv_struct_tm_zone" = yes; then
5510 cat >> confdefs.h <<\EOF
5511 #define HAVE_TM_ZONE 1
5515 echo $ac_n "checking
for tzname
""...
$ac_c" 1>&6
5516 echo "configure
:5517: checking
for tzname
" >&5
5517 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
5518 echo $ac_n "(cached
) $ac_c" 1>&6
5520 cat > conftest.$ac_ext <<EOF
5521 #line 5522 "configure
"
5522 #include "confdefs.h
"
5524 #ifndef tzname /* For SGI. */
5525 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5531 if { (eval echo configure:5532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5533 ac_cv_var_tzname=yes
5535 echo "configure
: failed program was
:" >&5
5536 cat conftest.$ac_ext >&5
5543 echo "$ac_t""$ac_cv_var_tzname" 1>&6
5544 if test $ac_cv_var_tzname = yes; then
5545 cat >> confdefs.h <<\EOF
5546 #define HAVE_TZNAME 1
5553 for ac_func in gethostbyname_r
5555 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
5556 echo "configure
:5557: checking
for $ac_func" >&5
5557 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5558 echo $ac_n "(cached
) $ac_c" 1>&6
5560 cat > conftest.$ac_ext <<EOF
5561 #line 5562 "configure
"
5562 #include "confdefs.h
"
5563 /* System header to define __stub macros and hopefully few prototypes,
5564 which can conflict with char $ac_func(); below. */
5566 /* Override any gcc2 internal prototype to avoid an error. */
5567 /* We use char because int might match the return type of a gcc2
5568 builtin and then its argument prototype would still apply. */
5573 /* The GNU C library defines this for functions which it implements
5574 to always fail with ENOSYS. Some functions are actually named
5575 something starting with __ and the normal name is an alias. */
5576 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5584 if { (eval echo configure:5585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5586 eval "ac_cv_func_
$ac_func=yes"
5588 echo "configure
: failed program was
:" >&5
5589 cat conftest.$ac_ext >&5
5591 eval "ac_cv_func_
$ac_func=no
"
5596 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5597 echo "$ac_t""yes" 1>&6
5598 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5599 cat >> confdefs.h <<EOF
5600 #define $ac_tr_func 1
5603 cat >> confdefs.h <<\EOF
5604 #define HAVE_GETHOSTBYNAME_R 1
5607 # There are two different kinds of gethostbyname_r.
5608 # We look for the one that returns `int'.
5609 # Hopefully this check is robust enough.
5610 cat > conftest.$ac_ext <<EOF
5611 #line 5612 "configure
"
5612 #include "confdefs.h
"
5615 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
5616 egrep "int.
*gethostbyname_r
" >/dev/null 2>&1; then
5619 cat >> confdefs.h <<\EOF
5620 #define GETHOSTBYNAME_R_RETURNS_INT 1
5628 *" -D_REENTRANT "*) ;;
5630 echo $ac_n "checking whether gethostbyname_r declaration requires
-D_REENTRANT""...
$ac_c" 1>&6
5631 echo "configure
:5632: checking whether gethostbyname_r declaration requires
-D_REENTRANT" >&5
5632 if eval "test \"`echo '$''{'libjava_cv_gethostbyname_r_needs_reentrant'+set}'`\" = set"; then
5633 echo $ac_n "(cached
) $ac_c" 1>&6
5637 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5638 ac_cpp='$CXXCPP $CPPFLAGS'
5639 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5640 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5641 cross_compiling=$ac_cv_prog_cxx_cross
5643 cat > conftest.$ac_ext <<EOF
5644 #line 5645 "configure
"
5645 #include "confdefs.h
"
5648 gethostbyname_r("", 0, 0);
5651 if { (eval echo configure:5652: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5653 libjava_cv_gethostbyname_r_needs_reentrant=no
5655 echo "configure
: failed program was
:" >&5
5656 cat conftest.$ac_ext >&5
5658 CPPFLAGS_SAVE="$CPPFLAGS"
5659 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
5660 cat > conftest.$ac_ext <<EOF
5661 #line 5662 "configure
"
5662 #include "confdefs.h
"
5665 gethostbyname_r("", 0, 0);
5668 if { (eval echo configure:5669: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5670 libjava_cv_gethostbyname_r_needs_reentrant=yes
5672 echo "configure
: failed program was
:" >&5
5673 cat conftest.$ac_ext >&5
5675 libjava_cv_gethostbyname_r_needs_reentrant=fail
5678 CPPFLAGS="$CPPFLAGS_SAVE"
5683 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5684 ac_cpp='$CPP $CPPFLAGS'
5685 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5686 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5687 cross_compiling=$ac_cv_prog_cc_cross
5692 echo "$ac_t""$libjava_cv_gethostbyname_r_needs_reentrant" 1>&6
5693 if test "x
$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
5694 cat >> confdefs.h <<\EOF
5695 #define _REENTRANT 1
5702 echo $ac_n "checking
for struct hostent_data
""...
$ac_c" 1>&6
5703 echo "configure
:5704: checking
for struct hostent_data
" >&5
5704 if eval "test \"`echo '$''{'libjava_cv_struct_hostent_data'+set}'`\" = set"; then
5705 echo $ac_n "(cached
) $ac_c" 1>&6
5707 cat > conftest.$ac_ext <<EOF
5708 #line 5709 "configure
"
5709 #include "confdefs.h
"
5711 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
5712 # define _REENTRANT 1
5716 struct hostent_data data;
5719 if { (eval echo configure:5720: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5721 libjava_cv_struct_hostent_data=yes
5723 echo "configure
: failed program was
:" >&5
5724 cat conftest.$ac_ext >&5
5726 libjava_cv_struct_hostent_data=no
5731 echo "$ac_t""$libjava_cv_struct_hostent_data" 1>&6
5732 if test "x
$libjava_cv_struct_hostent_data" = xyes; then
5733 cat >> confdefs.h <<\EOF
5734 #define HAVE_STRUCT_HOSTENT_DATA 1
5740 echo "$ac_t""no
" 1>&6
5745 # FIXME: libjava source code expects to find a prototype for
5746 # gethostbyaddr_r in netdb.h. The outer check ensures that
5747 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
5748 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
5749 # linkage check is enough, yet C++ code requires proper prototypes.)
5750 cat > conftest.$ac_ext <<EOF
5751 #line 5752 "configure
"
5752 #include "confdefs.h
"
5755 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
5756 egrep "gethostbyaddr_r
" >/dev/null 2>&1; then
5759 for ac_func in gethostbyaddr_r
5761 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
5762 echo "configure
:5763: checking
for $ac_func" >&5
5763 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5764 echo $ac_n "(cached
) $ac_c" 1>&6
5766 cat > conftest.$ac_ext <<EOF
5767 #line 5768 "configure
"
5768 #include "confdefs.h
"
5769 /* System header to define __stub macros and hopefully few prototypes,
5770 which can conflict with char $ac_func(); below. */
5772 /* Override any gcc2 internal prototype to avoid an error. */
5773 /* We use char because int might match the return type of a gcc2
5774 builtin and then its argument prototype would still apply. */
5779 /* The GNU C library defines this for functions which it implements
5780 to always fail with ENOSYS. Some functions are actually named
5781 something starting with __ and the normal name is an alias. */
5782 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5790 if { (eval echo configure:5791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5792 eval "ac_cv_func_
$ac_func=yes"
5794 echo "configure
: failed program was
:" >&5
5795 cat conftest.$ac_ext >&5
5797 eval "ac_cv_func_
$ac_func=no
"
5802 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5803 echo "$ac_t""yes" 1>&6
5804 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5805 cat >> confdefs.h <<EOF
5806 #define $ac_tr_func 1
5809 cat >> confdefs.h <<\EOF
5810 #define HAVE_GETHOSTBYADDR_R 1
5813 # There are two different kinds of gethostbyaddr_r.
5814 # We look for the one that returns `int'.
5815 # Hopefully this check is robust enough.
5816 cat > conftest.$ac_ext <<EOF
5817 #line 5818 "configure
"
5818 #include "confdefs.h
"
5821 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
5822 egrep "int.
*gethostbyaddr_r
" >/dev/null 2>&1; then
5825 cat >> confdefs.h <<\EOF
5826 #define GETHOSTBYADDR_R_RETURNS_INT 1
5833 echo "$ac_t""no
" 1>&6
5841 for ac_func in gethostname
5843 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
5844 echo "configure
:5845: checking
for $ac_func" >&5
5845 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5846 echo $ac_n "(cached
) $ac_c" 1>&6
5848 cat > conftest.$ac_ext <<EOF
5849 #line 5850 "configure
"
5850 #include "confdefs.h
"
5851 /* System header to define __stub macros and hopefully few prototypes,
5852 which can conflict with char $ac_func(); below. */
5854 /* Override any gcc2 internal prototype to avoid an error. */
5855 /* We use char because int might match the return type of a gcc2
5856 builtin and then its argument prototype would still apply. */
5861 /* The GNU C library defines this for functions which it implements
5862 to always fail with ENOSYS. Some functions are actually named
5863 something starting with __ and the normal name is an alias. */
5864 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5872 if { (eval echo configure:5873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5874 eval "ac_cv_func_
$ac_func=yes"
5876 echo "configure
: failed program was
:" >&5
5877 cat conftest.$ac_ext >&5
5879 eval "ac_cv_func_
$ac_func=no
"
5884 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5885 echo "$ac_t""yes" 1>&6
5886 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5887 cat >> confdefs.h <<EOF
5888 #define $ac_tr_func 1
5891 cat >> confdefs.h <<\EOF
5892 #define HAVE_GETHOSTNAME 1
5895 cat > conftest.$ac_ext <<EOF
5896 #line 5897 "configure
"
5897 #include "confdefs.h
"
5900 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
5901 egrep "gethostname
" >/dev/null 2>&1; then
5904 cat >> confdefs.h <<\EOF
5905 #define HAVE_GETHOSTNAME_DECL 1
5912 echo "$ac_t""no
" 1>&6
5917 for ac_func in usleep
5919 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
5920 echo "configure
:5921: checking
for $ac_func" >&5
5921 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5922 echo $ac_n "(cached
) $ac_c" 1>&6
5924 cat > conftest.$ac_ext <<EOF
5925 #line 5926 "configure
"
5926 #include "confdefs.h
"
5927 /* System header to define __stub macros and hopefully few prototypes,
5928 which can conflict with char $ac_func(); below. */
5930 /* Override any gcc2 internal prototype to avoid an error. */
5931 /* We use char because int might match the return type of a gcc2
5932 builtin and then its argument prototype would still apply. */
5937 /* The GNU C library defines this for functions which it implements
5938 to always fail with ENOSYS. Some functions are actually named
5939 something starting with __ and the normal name is an alias. */
5940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5948 if { (eval echo configure:5949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5950 eval "ac_cv_func_
$ac_func=yes"
5952 echo "configure
: failed program was
:" >&5
5953 cat conftest.$ac_ext >&5
5955 eval "ac_cv_func_
$ac_func=no
"
5960 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5961 echo "$ac_t""yes" 1>&6
5962 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5963 cat >> confdefs.h <<EOF
5964 #define $ac_tr_func 1
5967 cat > conftest.$ac_ext <<EOF
5968 #line 5969 "configure
"
5969 #include "confdefs.h
"
5972 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
5973 egrep "usleep" >/dev/null 2>&1; then
5976 cat >> confdefs.h <<\EOF
5977 #define HAVE_USLEEP_DECL 1
5984 echo "$ac_t""no
" 1>&6
5989 # Look for these functions in the thread library, but only bother
5990 # if using POSIX threads.
5991 if test "$THREADS" = posix; then
5993 LIBS="$LIBS $THREADLIBS"
5994 # Some POSIX thread systems don't have pthread_mutexattr_settype.
5996 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
5998 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
5999 echo "configure
:6000: checking
for $ac_func" >&5
6000 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6001 echo $ac_n "(cached
) $ac_c" 1>&6
6003 cat > conftest.$ac_ext <<EOF
6004 #line 6005 "configure
"
6005 #include "confdefs.h
"
6006 /* System header to define __stub macros and hopefully few prototypes,
6007 which can conflict with char $ac_func(); below. */
6009 /* Override any gcc2 internal prototype to avoid an error. */
6010 /* We use char because int might match the return type of a gcc2
6011 builtin and then its argument prototype would still apply. */
6016 /* The GNU C library defines this for functions which it implements
6017 to always fail with ENOSYS. Some functions are actually named
6018 something starting with __ and the normal name is an alias. */
6019 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6027 if { (eval echo configure:6028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6029 eval "ac_cv_func_
$ac_func=yes"
6031 echo "configure
: failed program was
:" >&5
6032 cat conftest.$ac_ext >&5
6034 eval "ac_cv_func_
$ac_func=no
"
6039 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6040 echo "$ac_t""yes" 1>&6
6041 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6042 cat >> confdefs.h <<EOF
6043 #define $ac_tr_func 1
6047 echo "$ac_t""no
" 1>&6
6052 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
6053 # Solaris 7 the name librt is preferred.
6054 for ac_func in sched_yield
6056 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
6057 echo "configure
:6058: checking
for $ac_func" >&5
6058 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6059 echo $ac_n "(cached
) $ac_c" 1>&6
6061 cat > conftest.$ac_ext <<EOF
6062 #line 6063 "configure
"
6063 #include "confdefs.h
"
6064 /* System header to define __stub macros and hopefully few prototypes,
6065 which can conflict with char $ac_func(); below. */
6067 /* Override any gcc2 internal prototype to avoid an error. */
6068 /* We use char because int might match the return type of a gcc2
6069 builtin and then its argument prototype would still apply. */
6074 /* The GNU C library defines this for functions which it implements
6075 to always fail with ENOSYS. Some functions are actually named
6076 something starting with __ and the normal name is an alias. */
6077 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6085 if { (eval echo configure:6086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6087 eval "ac_cv_func_
$ac_func=yes"
6089 echo "configure
: failed program was
:" >&5
6090 cat conftest.$ac_ext >&5
6092 eval "ac_cv_func_
$ac_func=no
"
6097 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6098 echo "$ac_t""yes" 1>&6
6099 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6100 cat >> confdefs.h <<EOF
6101 #define $ac_tr_func 1
6105 echo "$ac_t""no
" 1>&6
6106 echo $ac_n "checking
for sched_yield
in -lrt""...
$ac_c" 1>&6
6107 echo "configure
:6108: checking
for sched_yield
in -lrt" >&5
6108 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
6109 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6110 echo $ac_n "(cached
) $ac_c" 1>&6
6112 ac_save_LIBS="$LIBS"
6114 cat > conftest.$ac_ext <<EOF
6115 #line 6116 "configure
"
6116 #include "confdefs.h
"
6117 /* Override any gcc2 internal prototype to avoid an error. */
6118 /* We use char because int might match the return type of a gcc2
6119 builtin and then its argument prototype would still apply. */
6126 if { (eval echo configure:6127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6128 eval "ac_cv_lib_
$ac_lib_var=yes"
6130 echo "configure
: failed program was
:" >&5
6131 cat conftest.$ac_ext >&5
6133 eval "ac_cv_lib_
$ac_lib_var=no
"
6136 LIBS="$ac_save_LIBS"
6139 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6140 echo "$ac_t""yes" 1>&6
6142 cat >> confdefs.h <<\EOF
6143 #define HAVE_SCHED_YIELD 1
6146 THREADLIBS="$THREADLIBS -lrt"
6147 THREADSPEC="$THREADSPEC -lrt"
6149 echo "$ac_t""no
" 1>&6
6151 echo $ac_n "checking
for sched_yield
in -lposix4""...
$ac_c" 1>&6
6152 echo "configure
:6153: checking
for sched_yield
in -lposix4" >&5
6153 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
6154 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6155 echo $ac_n "(cached
) $ac_c" 1>&6
6157 ac_save_LIBS="$LIBS"
6158 LIBS="-lposix4 $LIBS"
6159 cat > conftest.$ac_ext <<EOF
6160 #line 6161 "configure
"
6161 #include "confdefs.h
"
6162 /* Override any gcc2 internal prototype to avoid an error. */
6163 /* We use char because int might match the return type of a gcc2
6164 builtin and then its argument prototype would still apply. */
6171 if { (eval echo configure:6172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6173 eval "ac_cv_lib_
$ac_lib_var=yes"
6175 echo "configure
: failed program was
:" >&5
6176 cat conftest.$ac_ext >&5
6178 eval "ac_cv_lib_
$ac_lib_var=no
"
6181 LIBS="$ac_save_LIBS"
6184 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6185 echo "$ac_t""yes" 1>&6
6187 cat >> confdefs.h <<\EOF
6188 #define HAVE_SCHED_YIELD 1
6191 THREADLIBS="$THREADLIBS -lposix4"
6192 THREADSPEC="$THREADSPEC -lposix4"
6194 echo "$ac_t""no
" 1>&6
6204 # We can save a little space at runtime if the mutex has m_count
6205 # or __m_count. This is a nice hack for Linux.
6206 cat > conftest.$ac_ext <<EOF
6207 #line 6208 "configure
"
6208 #include "confdefs.h
"
6209 #include <pthread.h>
6212 extern pthread_mutex_t *mutex; int q = mutex->m_count;
6216 if { (eval echo configure:6217: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6218 cat >> confdefs.h <<\EOF
6219 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
6223 echo "configure
: failed program was
:" >&5
6224 cat conftest.$ac_ext >&5
6227 cat > conftest.$ac_ext <<EOF
6228 #line 6229 "configure
"
6229 #include "confdefs.h
"
6230 #include <pthread.h>
6233 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
6237 if { (eval echo configure:6238: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6239 cat >> confdefs.h <<\EOF
6240 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
6244 echo "configure
: failed program was
:" >&5
6245 cat conftest.$ac_ext >&5
6252 # We require a way to get the time.
6254 for ac_func in gettimeofday time ftime
6256 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
6257 echo "configure
:6258: checking
for $ac_func" >&5
6258 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6259 echo $ac_n "(cached
) $ac_c" 1>&6
6261 cat > conftest.$ac_ext <<EOF
6262 #line 6263 "configure
"
6263 #include "confdefs.h
"
6264 /* System header to define __stub macros and hopefully few prototypes,
6265 which can conflict with char $ac_func(); below. */
6267 /* Override any gcc2 internal prototype to avoid an error. */
6268 /* We use char because int might match the return type of a gcc2
6269 builtin and then its argument prototype would still apply. */
6274 /* The GNU C library defines this for functions which it implements
6275 to always fail with ENOSYS. Some functions are actually named
6276 something starting with __ and the normal name is an alias. */
6277 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6285 if { (eval echo configure:6286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6287 eval "ac_cv_func_
$ac_func=yes"
6289 echo "configure
: failed program was
:" >&5
6290 cat conftest.$ac_ext >&5
6292 eval "ac_cv_func_
$ac_func=no
"
6297 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6298 echo "$ac_t""yes" 1>&6
6299 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6300 cat >> confdefs.h <<EOF
6301 #define $ac_tr_func 1
6305 echo "$ac_t""no
" 1>&6
6309 if test "$time_found" = no; then
6310 { echo "configure
: error
: no
function found to get the
time" 1>&2; exit 1; }
6313 for ac_func in memmove
6315 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
6316 echo "configure
:6317: checking
for $ac_func" >&5
6317 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6318 echo $ac_n "(cached
) $ac_c" 1>&6
6320 cat > conftest.$ac_ext <<EOF
6321 #line 6322 "configure
"
6322 #include "confdefs.h
"
6323 /* System header to define __stub macros and hopefully few prototypes,
6324 which can conflict with char $ac_func(); below. */
6326 /* Override any gcc2 internal prototype to avoid an error. */
6327 /* We use char because int might match the return type of a gcc2
6328 builtin and then its argument prototype would still apply. */
6333 /* The GNU C library defines this for functions which it implements
6334 to always fail with ENOSYS. Some functions are actually named
6335 something starting with __ and the normal name is an alias. */
6336 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6344 if { (eval echo configure:6345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6346 eval "ac_cv_func_
$ac_func=yes"
6348 echo "configure
: failed program was
:" >&5
6349 cat conftest.$ac_ext >&5
6351 eval "ac_cv_func_
$ac_func=no
"
6356 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6357 echo "$ac_t""yes" 1>&6
6358 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6359 cat >> confdefs.h <<EOF
6360 #define $ac_tr_func 1
6364 echo "$ac_t""no
" 1>&6
6369 # We require memcpy.
6371 for ac_func in memcpy
6373 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
6374 echo "configure
:6375: checking
for $ac_func" >&5
6375 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6376 echo $ac_n "(cached
) $ac_c" 1>&6
6378 cat > conftest.$ac_ext <<EOF
6379 #line 6380 "configure
"
6380 #include "confdefs.h
"
6381 /* System header to define __stub macros and hopefully few prototypes,
6382 which can conflict with char $ac_func(); below. */
6384 /* Override any gcc2 internal prototype to avoid an error. */
6385 /* We use char because int might match the return type of a gcc2
6386 builtin and then its argument prototype would still apply. */
6391 /* The GNU C library defines this for functions which it implements
6392 to always fail with ENOSYS. Some functions are actually named
6393 something starting with __ and the normal name is an alias. */
6394 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6402 if { (eval echo configure:6403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6404 eval "ac_cv_func_
$ac_func=yes"
6406 echo "configure
: failed program was
:" >&5
6407 cat conftest.$ac_ext >&5
6409 eval "ac_cv_func_
$ac_func=no
"
6414 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6415 echo "$ac_t""yes" 1>&6
6416 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6417 cat >> confdefs.h <<EOF
6418 #define $ac_tr_func 1
6422 echo "$ac_t""no
" 1>&6
6426 if test "$memcpy_found" = no; then
6427 { echo "configure
: error
: memcpy is required
" 1>&2; exit 1; }
6430 echo $ac_n "checking
for dlopen
in -ldl""...
$ac_c" 1>&6
6431 echo "configure
:6432: checking
for dlopen
in -ldl" >&5
6432 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
6433 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6434 echo $ac_n "(cached
) $ac_c" 1>&6
6436 ac_save_LIBS="$LIBS"
6438 cat > conftest.$ac_ext <<EOF
6439 #line 6440 "configure
"
6440 #include "confdefs.h
"
6441 /* Override any gcc2 internal prototype to avoid an error. */
6442 /* We use char because int might match the return type of a gcc2
6443 builtin and then its argument prototype would still apply. */
6450 if { (eval echo configure:6451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6452 eval "ac_cv_lib_
$ac_lib_var=yes"
6454 echo "configure
: failed program was
:" >&5
6455 cat conftest.$ac_ext >&5
6457 eval "ac_cv_lib_
$ac_lib_var=no
"
6460 LIBS="$ac_save_LIBS"
6463 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6464 echo "$ac_t""yes" 1>&6
6466 cat >> confdefs.h <<\EOF
6467 #define HAVE_DLOPEN 1
6471 echo "$ac_t""no
" 1>&6
6475 # Some library-finding code we stole from Tcl.
6476 #--------------------------------------------------------------------
6477 # Check for the existence of the -lsocket and -lnsl libraries.
6478 # The order here is important, so that they end up in the right
6479 # order in the command line generated by make. Here are some
6480 # special considerations:
6481 # 1. Use "connect
" and "accept
" to check for -lsocket, and
6482 # "gethostbyname
" to check for -lnsl.
6483 # 2. Use each function name only once: can't redo a check because
6484 # autoconf caches the results of the last check and won't redo it.
6485 # 3. Use -lnsl and -lsocket only if they supply procedures that
6486 # aren't already present in the normal libraries. This is because
6487 # IRIX 5.2 has libraries, but they aren't needed and they're
6488 # bogus: they goof up name resolution if used.
6489 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
6490 # To get around this problem, check for both libraries together
6491 # if -lsocket doesn't work by itself.
6492 #--------------------------------------------------------------------
6494 echo $ac_n "checking
for socket libraries
""...
$ac_c" 1>&6
6495 echo "configure
:6496: checking
for socket libraries
" >&5
6496 if eval "test \"`echo '$''{'gcj_cv_lib_sockets'+set}'`\" = set"; then
6497 echo $ac_n "(cached
) $ac_c" 1>&6
6501 unset ac_cv_func_connect
6502 echo $ac_n "checking
for connect
""...
$ac_c" 1>&6
6503 echo "configure
:6504: checking
for connect
" >&5
6504 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
6505 echo $ac_n "(cached
) $ac_c" 1>&6
6507 cat > conftest.$ac_ext <<EOF
6508 #line 6509 "configure
"
6509 #include "confdefs.h
"
6510 /* System header to define __stub macros and hopefully few prototypes,
6511 which can conflict with char connect(); below. */
6513 /* Override any gcc2 internal prototype to avoid an error. */
6514 /* We use char because int might match the return type of a gcc2
6515 builtin and then its argument prototype would still apply. */
6520 /* The GNU C library defines this for functions which it implements
6521 to always fail with ENOSYS. Some functions are actually named
6522 something starting with __ and the normal name is an alias. */
6523 #if defined (__stub_connect) || defined (__stub___connect)
6531 if { (eval echo configure:6532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6533 eval "ac_cv_func_connect
=yes"
6535 echo "configure
: failed program was
:" >&5
6536 cat conftest.$ac_ext >&5
6538 eval "ac_cv_func_connect
=no
"
6543 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
6544 echo "$ac_t""yes" 1>&6
6547 echo "$ac_t""no
" 1>&6
6551 if test "$gcj_checkSocket" = 1; then
6552 unset ac_cv_func_connect
6553 echo $ac_n "checking
for main
in -lsocket""...
$ac_c" 1>&6
6554 echo "configure
:6555: checking
for main
in -lsocket" >&5
6555 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
6556 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6557 echo $ac_n "(cached
) $ac_c" 1>&6
6559 ac_save_LIBS="$LIBS"
6560 LIBS="-lsocket $LIBS"
6561 cat > conftest.$ac_ext <<EOF
6562 #line 6563 "configure
"
6563 #include "confdefs.h
"
6569 if { (eval echo configure:6570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6571 eval "ac_cv_lib_
$ac_lib_var=yes"
6573 echo "configure
: failed program was
:" >&5
6574 cat conftest.$ac_ext >&5
6576 eval "ac_cv_lib_
$ac_lib_var=no
"
6579 LIBS="$ac_save_LIBS"
6582 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6583 echo "$ac_t""yes" 1>&6
6584 gcj_cv_lib_sockets="-lsocket"
6586 echo "$ac_t""no
" 1>&6
6591 if test "$gcj_checkBoth" = 1; then
6593 LIBS="$LIBS -lsocket -lnsl"
6594 unset ac_cv_func_accept
6595 echo $ac_n "checking
for accept
""...
$ac_c" 1>&6
6596 echo "configure
:6597: checking
for accept
" >&5
6597 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
6598 echo $ac_n "(cached
) $ac_c" 1>&6
6600 cat > conftest.$ac_ext <<EOF
6601 #line 6602 "configure
"
6602 #include "confdefs.h
"
6603 /* System header to define __stub macros and hopefully few prototypes,
6604 which can conflict with char accept(); below. */
6606 /* Override any gcc2 internal prototype to avoid an error. */
6607 /* We use char because int might match the return type of a gcc2
6608 builtin and then its argument prototype would still apply. */
6613 /* The GNU C library defines this for functions which it implements
6614 to always fail with ENOSYS. Some functions are actually named
6615 something starting with __ and the normal name is an alias. */
6616 #if defined (__stub_accept) || defined (__stub___accept)
6624 if { (eval echo configure:6625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6626 eval "ac_cv_func_accept
=yes"
6628 echo "configure
: failed program was
:" >&5
6629 cat conftest.$ac_ext >&5
6631 eval "ac_cv_func_accept
=no
"
6636 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
6637 echo "$ac_t""yes" 1>&6
6639 gcj_cv_lib_sockets="-lsocket -lnsl"
6641 echo "$ac_t""no
" 1>&6
6644 unset ac_cv_func_accept
6647 unset ac_cv_func_gethostbyname
6649 LIBS="$LIBS $gcj_cv_lib_sockets"
6650 echo $ac_n "checking
for gethostbyname
""...
$ac_c" 1>&6
6651 echo "configure
:6652: checking
for gethostbyname
" >&5
6652 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
6653 echo $ac_n "(cached
) $ac_c" 1>&6
6655 cat > conftest.$ac_ext <<EOF
6656 #line 6657 "configure
"
6657 #include "confdefs.h
"
6658 /* System header to define __stub macros and hopefully few prototypes,
6659 which can conflict with char gethostbyname(); below. */
6661 /* Override any gcc2 internal prototype to avoid an error. */
6662 /* We use char because int might match the return type of a gcc2
6663 builtin and then its argument prototype would still apply. */
6664 char gethostbyname();
6668 /* The GNU C library defines this for functions which it implements
6669 to always fail with ENOSYS. Some functions are actually named
6670 something starting with __ and the normal name is an alias. */
6671 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6679 if { (eval echo configure:6680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6681 eval "ac_cv_func_gethostbyname
=yes"
6683 echo "configure
: failed program was
:" >&5
6684 cat conftest.$ac_ext >&5
6686 eval "ac_cv_func_gethostbyname
=no
"
6691 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
6692 echo "$ac_t""yes" 1>&6
6695 echo "$ac_t""no
" 1>&6
6696 echo $ac_n "checking
for main
in -lnsl""...
$ac_c" 1>&6
6697 echo "configure
:6698: checking
for main
in -lnsl" >&5
6698 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
6699 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6700 echo $ac_n "(cached
) $ac_c" 1>&6
6702 ac_save_LIBS="$LIBS"
6704 cat > conftest.$ac_ext <<EOF
6705 #line 6706 "configure
"
6706 #include "confdefs.h
"
6712 if { (eval echo configure:6713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6714 eval "ac_cv_lib_
$ac_lib_var=yes"
6716 echo "configure
: failed program was
:" >&5
6717 cat conftest.$ac_ext >&5
6719 eval "ac_cv_lib_
$ac_lib_var=no
"
6722 LIBS="$ac_save_LIBS"
6725 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6726 echo "$ac_t""yes" 1>&6
6727 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
6729 echo "$ac_t""no
" 1>&6
6734 unset ac_cv_func_gethostbyname
6739 echo "$ac_t""$gcj_cv_lib_sockets" 1>&6
6740 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
6742 if test "$with_system_zlib" = yes; then
6743 echo $ac_n "checking
for deflate
in -lz""...
$ac_c" 1>&6
6744 echo "configure
:6745: checking
for deflate
in -lz" >&5
6745 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
6746 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6747 echo $ac_n "(cached
) $ac_c" 1>&6
6749 ac_save_LIBS="$LIBS"
6751 cat > conftest.$ac_ext <<EOF
6752 #line 6753 "configure
"
6753 #include "confdefs.h
"
6754 /* Override any gcc2 internal prototype to avoid an error. */
6755 /* We use char because int might match the return type of a gcc2
6756 builtin and then its argument prototype would still apply. */
6763 if { (eval echo configure:6764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6765 eval "ac_cv_lib_
$ac_lib_var=yes"
6767 echo "configure
: failed program was
:" >&5
6768 cat conftest.$ac_ext >&5
6770 eval "ac_cv_lib_
$ac_lib_var=no
"
6773 LIBS="$ac_save_LIBS"
6776 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6777 echo "$ac_t""yes" 1>&6
6780 echo "$ac_t""no
" 1>&6
6786 # Test for Gtk stuff, if asked for.
6787 if test "$use_gtk_awt" = yes; then
6791 if test -z "$PKG_CONFIG"; then
6792 # Extract the first word of "pkg-config
", so it can be a program name with args.
6793 set dummy pkg-config; ac_word=$2
6794 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
6795 echo "configure
:6796: checking
for $ac_word" >&5
6796 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
6797 echo $ac_n "(cached
) $ac_c" 1>&6
6799 case "$PKG_CONFIG" in
6801 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6804 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
6807 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6809 for ac_dir in $ac_dummy; do
6810 test -z "$ac_dir" && ac_dir=.
6811 if test -f $ac_dir/$ac_word; then
6812 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
6817 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
6821 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6822 if test -n "$PKG_CONFIG"; then
6823 echo "$ac_t""$PKG_CONFIG" 1>&6
6825 echo "$ac_t""no
" 1>&6
6830 if test "$PKG_CONFIG" = "no
" ; then
6831 echo "*** The pkg-config
script could not be found. Make sure it is
"
6832 echo "*** in your path
, or
set the PKG_CONFIG environment variable
"
6833 echo "*** to the full path to pkg-config.
"
6834 echo "*** Or see http
://www.freedesktop.org
/software
/pkgconfig to get pkg-config.
"
6836 PKG_CONFIG_MIN_VERSION=0.9.0
6837 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6838 echo $ac_n "checking
for gtk
+-2.0
>= 2.2""...
$ac_c" 1>&6
6839 echo "configure
:6840: checking
for gtk
+-2.0
>= 2.2" >&5
6841 if $PKG_CONFIG --exists "gtk
+-2.0
>= 2.2" ; then
6842 echo "$ac_t""yes" 1>&6
6845 echo $ac_n "checking GTK_CFLAGS
""...
$ac_c" 1>&6
6846 echo "configure
:6847: checking GTK_CFLAGS
" >&5
6847 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk
+-2.0
>= 2.2"`
6848 echo "$ac_t""$GTK_CFLAGS" 1>&6
6850 echo $ac_n "checking GTK_LIBS
""...
$ac_c" 1>&6
6851 echo "configure
:6852: checking GTK_LIBS
" >&5
6852 GTK_LIBS=`$PKG_CONFIG --libs "gtk
+-2.0
>= 2.2"`
6853 echo "$ac_t""$GTK_LIBS" 1>&6
6857 ## If we have a custom action on failure, don't print errors, but
6858 ## do set a variable so people can do so.
6859 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk
+-2.0
>= 2.2"`
6860 echo $GTK_PKG_ERRORS
6866 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
6867 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
6871 if test $succeeded = yes; then
6874 { echo "configure
: error
: Library requirements
(gtk
+-2.0
>= 2.2) not met
; consider adjusting the PKG_CONFIG_PATH environment variable
if your libraries are
in a nonstandard prefix so pkg-config can
find them.
" 1>&2; exit 1; }
6883 if test -z "$PKG_CONFIG"; then
6884 # Extract the first word of "pkg-config
", so it can be a program name with args.
6885 set dummy pkg-config; ac_word=$2
6886 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
6887 echo "configure
:6888: checking
for $ac_word" >&5
6888 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
6889 echo $ac_n "(cached
) $ac_c" 1>&6
6891 case "$PKG_CONFIG" in
6893 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6896 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
6899 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6901 for ac_dir in $ac_dummy; do
6902 test -z "$ac_dir" && ac_dir=.
6903 if test -f $ac_dir/$ac_word; then
6904 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
6909 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
6913 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6914 if test -n "$PKG_CONFIG"; then
6915 echo "$ac_t""$PKG_CONFIG" 1>&6
6917 echo "$ac_t""no
" 1>&6
6922 if test "$PKG_CONFIG" = "no
" ; then
6923 echo "*** The pkg-config
script could not be found. Make sure it is
"
6924 echo "*** in your path
, or
set the PKG_CONFIG environment variable
"
6925 echo "*** to the full path to pkg-config.
"
6926 echo "*** Or see http
://www.freedesktop.org
/software
/pkgconfig to get pkg-config.
"
6928 PKG_CONFIG_MIN_VERSION=0.9.0
6929 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6930 echo $ac_n "checking
for glib-2.0
>= 2.2 gthread-2.0
>= 2.2""...
$ac_c" 1>&6
6931 echo "configure
:6932: checking
for glib-2.0
>= 2.2 gthread-2.0
>= 2.2" >&5
6933 if $PKG_CONFIG --exists "glib-2.0
>= 2.2 gthread-2.0
>= 2.2" ; then
6934 echo "$ac_t""yes" 1>&6
6937 echo $ac_n "checking GLIB_CFLAGS
""...
$ac_c" 1>&6
6938 echo "configure
:6939: checking GLIB_CFLAGS
" >&5
6939 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0
>= 2.2 gthread-2.0
>= 2.2"`
6940 echo "$ac_t""$GLIB_CFLAGS" 1>&6
6942 echo $ac_n "checking GLIB_LIBS
""...
$ac_c" 1>&6
6943 echo "configure
:6944: checking GLIB_LIBS
" >&5
6944 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0
>= 2.2 gthread-2.0
>= 2.2"`
6945 echo "$ac_t""$GLIB_LIBS" 1>&6
6949 ## If we have a custom action on failure, don't print errors, but
6950 ## do set a variable so people can do so.
6951 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0
>= 2.2 gthread-2.0
>= 2.2"`
6952 echo $GLIB_PKG_ERRORS
6958 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
6959 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
6963 if test $succeeded = yes; then
6966 { echo "configure
: error
: Library requirements
(glib-2.0
>= 2.2 gthread-2.0
>= 2.2) not met
; consider adjusting the PKG_CONFIG_PATH environment variable
if your libraries are
in a nonstandard prefix so pkg-config can
find them.
" 1>&2; exit 1; }
6975 if test -z "$PKG_CONFIG"; then
6976 # Extract the first word of "pkg-config
", so it can be a program name with args.
6977 set dummy pkg-config; ac_word=$2
6978 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
6979 echo "configure
:6980: checking
for $ac_word" >&5
6980 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
6981 echo $ac_n "(cached
) $ac_c" 1>&6
6983 case "$PKG_CONFIG" in
6985 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6988 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
6991 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6993 for ac_dir in $ac_dummy; do
6994 test -z "$ac_dir" && ac_dir=.
6995 if test -f $ac_dir/$ac_word; then
6996 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
7001 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
7005 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7006 if test -n "$PKG_CONFIG"; then
7007 echo "$ac_t""$PKG_CONFIG" 1>&6
7009 echo "$ac_t""no
" 1>&6
7014 if test "$PKG_CONFIG" = "no
" ; then
7015 echo "*** The pkg-config
script could not be found. Make sure it is
"
7016 echo "*** in your path
, or
set the PKG_CONFIG environment variable
"
7017 echo "*** to the full path to pkg-config.
"
7018 echo "*** Or see http
://www.freedesktop.org
/software
/pkgconfig to get pkg-config.
"
7020 PKG_CONFIG_MIN_VERSION=0.9.0
7021 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7022 echo $ac_n "checking
for libart-2.0
>= 2.1""...
$ac_c" 1>&6
7023 echo "configure
:7024: checking
for libart-2.0
>= 2.1" >&5
7025 if $PKG_CONFIG --exists "libart-2.0
>= 2.1" ; then
7026 echo "$ac_t""yes" 1>&6
7029 echo $ac_n "checking LIBART_CFLAGS
""...
$ac_c" 1>&6
7030 echo "configure
:7031: checking LIBART_CFLAGS
" >&5
7031 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0
>= 2.1"`
7032 echo "$ac_t""$LIBART_CFLAGS" 1>&6
7034 echo $ac_n "checking LIBART_LIBS
""...
$ac_c" 1>&6
7035 echo "configure
:7036: checking LIBART_LIBS
" >&5
7036 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0
>= 2.1"`
7037 echo "$ac_t""$LIBART_LIBS" 1>&6
7041 ## If we have a custom action on failure, don't print errors, but
7042 ## do set a variable so people can do so.
7043 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0
>= 2.1"`
7044 echo $LIBART_PKG_ERRORS
7050 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
7051 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
7055 if test $succeeded = yes; then
7058 { echo "configure
: error
: Library requirements
(libart-2.0
>= 2.1) not met
; consider adjusting the PKG_CONFIG_PATH environment variable
if your libraries are
in a nonstandard prefix so pkg-config can
find them.
" 1>&2; exit 1; }
7065 # On Solaris, and maybe other architectures, the Boehm collector
7067 if test "$GC" = boehm; then
7068 echo $ac_n "checking
for main
in -ldl""...
$ac_c" 1>&6
7069 echo "configure
:7070: checking
for main
in -ldl" >&5
7070 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
7071 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7072 echo $ac_n "(cached
) $ac_c" 1>&6
7074 ac_save_LIBS="$LIBS"
7076 cat > conftest.$ac_ext <<EOF
7077 #line 7078 "configure
"
7078 #include "confdefs.h
"
7084 if { (eval echo configure:7085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7086 eval "ac_cv_lib_
$ac_lib_var=yes"
7088 echo "configure
: failed program was
:" >&5
7089 cat conftest.$ac_ext >&5
7091 eval "ac_cv_lib_
$ac_lib_var=no
"
7094 LIBS="$ac_save_LIBS"
7097 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7098 echo "$ac_t""yes" 1>&6
7099 SYSTEMSPEC="$SYSTEMSPEC -ldl"
7101 echo "$ac_t""no
" 1>&6
7107 if test -z "${with_multisubdir}"; then
7111 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
7115 # Which gcj do we use?
7117 built_gcc_dir="`cd ${builddotdot}/../../gcc && ${PWDCMD-pwd}`"
7118 if test -n "${with_cross_host}"; then
7119 # We are being configured with a cross compiler. We can't
7120 # use ac_exeext, because that is for the target platform.
7123 case "${with_cross_host}" in
7125 cross_host_exeext=.exe
7128 if test -x "${built_gcc_dir}/gcj
${cross_host_exeext}"; then
7129 if test x"$build_alias" = x"$with_cross_host"; then
7130 # Ordinary cross (host!=target and host=build)
7133 # Canadian cross (host!=target and host!=build)
7140 # We are being configured with a native or crossed-native compiler
7141 if test -x "${built_gcc_dir}/gcj
${ac_exeext}"; then
7142 if test x"$build" = x"$host"; then
7143 # True native build (host=target and host=build)
7146 # Crossed-native build (host=target and host!=build)
7153 case "${which_gcj}" in
7155 GCJ="$built_gcc_dir/gcj
-B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
7158 # See the comment in Makefile.am about CANADIAN being a misnomer
7161 if test "x
${with_newlib}" = "xyes
"; then
7162 # FIXME (comment): Why is this needed?
7164 GCJ="${target_alias}-gcj"
7166 GCJ="${target_alias}-gcj -B`${PWDCMD-pwd}`/"
7170 # See the comment in Makefile.am about CANADIAN being a misnomer
7173 GCJ="gcj
-B`${PWDCMD-pwd}`/"
7177 # Create it, so that compile/link tests don't fail
7178 test -f libgcj.spec || touch libgcj.spec
7180 # We must search the source tree for java.lang, since we still don't
7181 # have libgcj.jar nor java/lang/*.class
7182 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
7183 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
7185 # Since some classes depend on this one, we need its source available
7186 # before we can do any GCJ compilation test :-(
7187 if test ! -f gnu/classpath/Configuration.java; then
7188 test -d gnu || mkdir gnu
7189 test -d gnu/classpath || mkdir gnu/classpath
7190 sed -e 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
7191 -e 's,@TOOLKIT@,$TOOLKIT,' \
7192 < $srcdir/gnu/classpath/Configuration.java.in \
7193 > gnu/classpath/Configuration.java
7194 # We do not want to redirect the output of the grep below to /dev/null,
7195 # but we add /dev/null to the input list so that grep will print the
7196 # filename of Configuration.java in case it finds any matches.
7197 if grep @ gnu/classpath/Configuration.java /dev/null; then
7198 { echo "configure
: error
: configure.
in is missing the substitutions above
" 1>&2; exit 1; }
7202 # Extract the first word of "${ac_tool_prefix}gcj
", so it can be a program name with args.
7203 set dummy ${ac_tool_prefix}gcj; ac_word=$2
7204 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
7205 echo "configure
:7206: checking
for $ac_word" >&5
7206 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
7207 echo $ac_n "(cached
) $ac_c" 1>&6
7209 if test -n "$GCJ"; then
7210 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
7212 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7214 for ac_dir in $ac_dummy; do
7215 test -z "$ac_dir" && ac_dir=.
7216 if test -f $ac_dir/$ac_word; then
7217 ac_cv_prog_GCJ="${ac_tool_prefix}gcj
"
7224 GCJ="$ac_cv_prog_GCJ"
7225 if test -n "$GCJ"; then
7226 echo "$ac_t""$GCJ" 1>&6
7228 echo "$ac_t""no
" 1>&6
7232 if test -z "$ac_cv_prog_GCJ"; then
7233 if test -n "$ac_tool_prefix"; then
7234 # Extract the first word of "gcj
", so it can be a program name with args.
7235 set dummy gcj; ac_word=$2
7236 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
7237 echo "configure
:7238: checking
for $ac_word" >&5
7238 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
7239 echo $ac_n "(cached
) $ac_c" 1>&6
7241 if test -n "$GCJ"; then
7242 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
7244 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7246 for ac_dir in $ac_dummy; do
7247 test -z "$ac_dir" && ac_dir=.
7248 if test -f $ac_dir/$ac_word; then
7249 ac_cv_prog_GCJ="gcj
"
7254 test -z "$ac_cv_prog_GCJ" && ac_cv_prog_GCJ="no
"
7257 GCJ="$ac_cv_prog_GCJ"
7258 if test -n "$GCJ"; then
7259 echo "$ac_t""$GCJ" 1>&6
7261 echo "$ac_t""no
" 1>&6
7269 test "x
${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7273 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh
"
7275 lt_save_CFLAGS="$CFLAGS"
7276 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
7277 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
7278 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
7279 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
7280 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
7281 deplibs_check_method="$deplibs_check_method" \
7282 file_magic_cmd="$file_magic_cmd" \
7283 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
7284 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
7285 || { echo "configure
: error
: libtool tag configuration failed
" 1>&2; exit 1; }
7287 CFLAGS="$lt_save_CFLAGS"
7289 # Redirect the config.log output again, so that the ltconfig log is not
7290 # clobbered by the next message.
7291 exec 5>>./config.log
7296 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
7298 echo $ac_n "checking size of void
*""...
$ac_c" 1>&6
7299 echo "configure
:7300: checking size of void
*" >&5
7300 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
7301 echo $ac_n "(cached
) $ac_c" 1>&6
7303 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
7304 cat > conftest.$ac_ext <<EOF
7305 #line 7306 "configure
"
7306 #include "confdefs.h
"
7307 #include "confdefs.h
"
7308 #include <sys/types.h>
7312 switch (0) case 0: case (sizeof (void *) == $ac_size):;
7315 if { (eval echo configure:7316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7317 ac_cv_sizeof_void_p=$ac_size
7319 echo "configure
: failed program was
:" >&5
7320 cat conftest.$ac_ext >&5
7323 if test x$ac_cv_sizeof_void_p != x ; then break; fi
7328 if test x$ac_cv_sizeof_void_p = x ; then
7329 { echo "configure
: error
: cannot determine a size
for void
*" 1>&2; exit 1; }
7331 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
7332 cat >> confdefs.h <<EOF
7333 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7342 if test -z "$ZLIBSPEC"; then
7343 # Use zlib from the GCC tree.
7344 ZINCS='-I$(top_srcdir)/../zlib'
7345 ZLIBS=../zlib/libzgcj_convenience.la
7348 SYS_ZLIBS="$ZLIBSPEC"
7360 if test "$CANADIAN" = yes; then
7369 if test "$NULL_TARGET" = yes; then
7371 NULL_TARGET_FALSE='#'
7373 NULL_TARGET_TRUE='#'
7378 if test "$NATIVE" = yes || test "$NULL_TARGET" = yes; then
7387 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
7388 NEEDS_DATA_START_TRUE=
7389 NEEDS_DATA_START_FALSE='#'
7391 NEEDS_DATA_START_TRUE='#'
7392 NEEDS_DATA_START_FALSE=
7396 if test -n "$with_cross_host" &&
7397 test x"$with_cross_host" != x"no
"; then
7398 toolexecdir='$(exec_prefix)/$(target_alias)'
7399 toolexecmainlibdir='$(toolexecdir)/lib'
7401 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
7402 toolexecmainlibdir='$(libdir)'
7404 multi_os_directory=`$CC -print-multi-os-directory`
7405 case $multi_os_directory in
7406 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
7407 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
7413 # Determine gcj version number.
7415 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
7417 GCJVERSION=$gcjversion
7419 cat >> confdefs.h <<EOF
7420 #define GCJVERSION "$GCJVERSION"
7424 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 net/if.h pwd.h sys/config.h stdint.h langinfo.h locale.h
7426 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7427 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
7428 echo "configure
:7429: checking
for $ac_hdr" >&5
7429 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7430 echo $ac_n "(cached
) $ac_c" 1>&6
7432 cat > conftest.$ac_ext <<EOF
7433 #line 7434 "configure
"
7434 #include "confdefs.h
"
7437 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
7438 { (eval echo configure:7439: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7439 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
7440 if test -z "$ac_err"; then
7442 eval "ac_cv_header_
$ac_safe=yes"
7445 echo "configure
: failed program was
:" >&5
7446 cat conftest.$ac_ext >&5
7448 eval "ac_cv_header_
$ac_safe=no
"
7452 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7453 echo "$ac_t""yes" 1>&6
7454 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7455 cat >> confdefs.h <<EOF
7456 #define $ac_tr_hdr 1
7460 echo "$ac_t""no
" 1>&6
7464 for ac_hdr in dirent.h
7466 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7467 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
7468 echo "configure
:7469: checking
for $ac_hdr" >&5
7469 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7470 echo $ac_n "(cached
) $ac_c" 1>&6
7472 cat > conftest.$ac_ext <<EOF
7473 #line 7474 "configure
"
7474 #include "confdefs.h
"
7477 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
7478 { (eval echo configure:7479: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7479 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
7480 if test -z "$ac_err"; then
7482 eval "ac_cv_header_
$ac_safe=yes"
7485 echo "configure
: failed program was
:" >&5
7486 cat conftest.$ac_ext >&5
7488 eval "ac_cv_header_
$ac_safe=no
"
7492 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7493 echo "$ac_t""yes" 1>&6
7494 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7495 cat >> confdefs.h <<EOF
7496 #define $ac_tr_hdr 1
7500 echo "$ac_t""no
" 1>&6
7504 for ac_hdr in inttypes.h
7506 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7507 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
7508 echo "configure
:7509: checking
for $ac_hdr" >&5
7509 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7510 echo $ac_n "(cached
) $ac_c" 1>&6
7512 cat > conftest.$ac_ext <<EOF
7513 #line 7514 "configure
"
7514 #include "confdefs.h
"
7517 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
7518 { (eval echo configure:7519: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7519 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
7520 if test -z "$ac_err"; then
7522 eval "ac_cv_header_
$ac_safe=yes"
7525 echo "configure
: failed program was
:" >&5
7526 cat conftest.$ac_ext >&5
7528 eval "ac_cv_header_
$ac_safe=no
"
7532 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7533 echo "$ac_t""yes" 1>&6
7534 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7535 cat >> confdefs.h <<EOF
7536 #define $ac_tr_hdr 1
7539 cat >> confdefs.h <<\EOF
7540 #define HAVE_INTTYPES_H 1
7543 cat >> confdefs.h <<\EOF
7544 #define JV_HAVE_INTTYPES_H 1
7549 echo "$ac_t""no
" 1>&6
7553 echo $ac_n "checking
for sys
/wait.h that is POSIX
.1 compatible
""...
$ac_c" 1>&6
7554 echo "configure
:7555: checking
for sys
/wait.h that is POSIX
.1 compatible
" >&5
7555 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
7556 echo $ac_n "(cached
) $ac_c" 1>&6
7558 cat > conftest.$ac_ext <<EOF
7559 #line 7560 "configure
"
7560 #include "confdefs.h
"
7561 #include <sys/types.h>
7562 #include <sys/wait.h>
7564 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7567 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7572 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7575 if { (eval echo configure:7576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7577 ac_cv_header_sys_wait_h=yes
7579 echo "configure
: failed program was
:" >&5
7580 cat conftest.$ac_ext >&5
7582 ac_cv_header_sys_wait_h=no
7587 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
7588 if test $ac_cv_header_sys_wait_h = yes; then
7589 cat >> confdefs.h <<\EOF
7590 #define HAVE_SYS_WAIT_H 1
7596 echo $ac_n "checking
for ANSI C header files
""...
$ac_c" 1>&6
7597 echo "configure
:7598: checking
for ANSI C header files
" >&5
7598 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
7599 echo $ac_n "(cached
) $ac_c" 1>&6
7601 cat > conftest.$ac_ext <<EOF
7602 #line 7603 "configure
"
7603 #include "confdefs.h
"
7609 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
7610 { (eval echo configure:7611: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7611 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
7612 if test -z "$ac_err"; then
7614 ac_cv_header_stdc=yes
7617 echo "configure
: failed program was
:" >&5
7618 cat conftest.$ac_ext >&5
7620 ac_cv_header_stdc=no
7624 if test $ac_cv_header_stdc = yes; then
7625 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7626 cat > conftest.$ac_ext <<EOF
7627 #line 7628 "configure
"
7628 #include "confdefs.h
"
7631 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7632 egrep "memchr
" >/dev/null 2>&1; then
7636 ac_cv_header_stdc=no
7642 if test $ac_cv_header_stdc = yes; then
7643 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7644 cat > conftest.$ac_ext <<EOF
7645 #line 7646 "configure
"
7646 #include "confdefs.h
"
7649 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7650 egrep "free
" >/dev/null 2>&1; then
7654 ac_cv_header_stdc=no
7660 if test $ac_cv_header_stdc = yes; then
7661 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7662 if test "$cross_compiling" = yes; then
7665 cat > conftest.$ac_ext <<EOF
7666 #line 7667 "configure
"
7667 #include "confdefs.h
"
7669 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7670 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7671 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7672 int main () { int i; for (i = 0; i < 256; i++)
7673 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
7677 if { (eval echo configure:7678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7681 echo "configure
: failed program was
:" >&5
7682 cat conftest.$ac_ext >&5
7684 ac_cv_header_stdc=no
7692 echo "$ac_t""$ac_cv_header_stdc" 1>&6
7693 if test $ac_cv_header_stdc = yes; then
7694 cat >> confdefs.h <<\EOF
7695 #define STDC_HEADERS 1
7700 echo $ac_n "checking
for ssize_t
""...
$ac_c" 1>&6
7701 echo "configure
:7702: checking
for ssize_t
" >&5
7702 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
7703 echo $ac_n "(cached
) $ac_c" 1>&6
7705 cat > conftest.$ac_ext <<EOF
7706 #line 7707 "configure
"
7707 #include "confdefs.h
"
7708 #include <sys/types.h>
7714 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7715 egrep "(^|
[^a-zA-Z_0-9
])ssize_t
[^a-zA-Z_0-9
]" >/dev/null 2>&1; then
7717 ac_cv_type_ssize_t=yes
7720 ac_cv_type_ssize_t=no
7725 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
7726 if test $ac_cv_type_ssize_t = no; then
7727 cat >> confdefs.h <<\EOF
7734 echo $ac_n "checking
for in_addr_t
""...
$ac_c" 1>&6
7735 echo "configure
:7736: checking
for in_addr_t
" >&5
7736 cat > conftest.$ac_ext <<EOF
7737 #line 7738 "configure
"
7738 #include "confdefs.h
"
7739 #include <sys/types.h>
7744 #if HAVE_NETINET_IN_H
7745 #include <netinet/in.h>
7751 if { (eval echo configure:7752: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7753 cat >> confdefs.h <<\EOF
7754 #define HAVE_IN_ADDR_T 1
7757 echo "$ac_t""yes" 1>&6
7759 echo "configure
: failed program was
:" >&5
7760 cat conftest.$ac_ext >&5
7762 echo "$ac_t""no
" 1>&6
7766 echo $ac_n "checking whether struct ip_mreq is
in netinet
/in.h
""...
$ac_c" 1>&6
7767 echo "configure
:7768: checking whether struct ip_mreq is
in netinet
/in.h
" >&5
7768 cat > conftest.$ac_ext <<EOF
7769 #line 7770 "configure
"
7770 #include "confdefs.h
"
7771 #include <netinet/in.h>
7773 struct ip_mreq mreq;
7776 if { (eval echo configure:7777: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7778 cat >> confdefs.h <<\EOF
7779 #define HAVE_STRUCT_IP_MREQ 1
7782 echo "$ac_t""yes" 1>&6
7784 echo "configure
: failed program was
:" >&5
7785 cat conftest.$ac_ext >&5
7787 echo "$ac_t""no
" 1>&6
7791 echo $ac_n "checking whether struct ipv6_mreq is
in netinet
/in.h
""...
$ac_c" 1>&6
7792 echo "configure
:7793: checking whether struct ipv6_mreq is
in netinet
/in.h
" >&5
7793 cat > conftest.$ac_ext <<EOF
7794 #line 7795 "configure
"
7795 #include "confdefs.h
"
7796 #include <netinet/in.h>
7798 struct ipv6_mreq mreq6;
7801 if { (eval echo configure:7802: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7803 cat >> confdefs.h <<\EOF
7804 #define HAVE_STRUCT_IPV6_MREQ 1
7807 echo "$ac_t""yes" 1>&6
7809 echo "configure
: failed program was
:" >&5
7810 cat conftest.$ac_ext >&5
7812 echo "$ac_t""no
" 1>&6
7816 echo $ac_n "checking whether struct sockaddr_in6 is
in netinet
/in.h
""...
$ac_c" 1>&6
7817 echo "configure
:7818: checking whether struct sockaddr_in6 is
in netinet
/in.h
" >&5
7818 cat > conftest.$ac_ext <<EOF
7819 #line 7820 "configure
"
7820 #include "confdefs.h
"
7821 #include <netinet/in.h>
7823 struct sockaddr_in6 addr6;
7826 if { (eval echo configure:7827: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7828 cat >> confdefs.h <<\EOF
7829 #define HAVE_INET6 1
7832 echo "$ac_t""yes" 1>&6
7834 echo "configure
: failed program was
:" >&5
7835 cat conftest.$ac_ext >&5
7837 echo "$ac_t""no
" 1>&6
7841 echo $ac_n "checking
for socklen_t
in sys
/socket.h
""...
$ac_c" 1>&6
7842 echo "configure
:7843: checking
for socklen_t
in sys
/socket.h
" >&5
7843 cat > conftest.$ac_ext <<EOF
7844 #line 7845 "configure
"
7845 #include "confdefs.h
"
7846 #define _POSIX_PII_SOCKET
7847 #include <sys/types.h>
7848 #include <sys/socket.h>
7853 if { (eval echo configure:7854: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7855 cat >> confdefs.h <<\EOF
7856 #define HAVE_SOCKLEN_T 1
7859 echo "$ac_t""yes" 1>&6
7861 echo "configure
: failed program was
:" >&5
7862 cat conftest.$ac_ext >&5
7864 echo "$ac_t""no
" 1>&6
7868 echo $ac_n "checking
for tm_gmtoff
in struct tm
""...
$ac_c" 1>&6
7869 echo "configure
:7870: checking
for tm_gmtoff
in struct tm
" >&5
7870 cat > conftest.$ac_ext <<EOF
7871 #line 7872 "configure
"
7872 #include "confdefs.h
"
7875 struct tm tim; tim.tm_gmtoff = 0;
7878 if { (eval echo configure:7879: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7880 cat >> confdefs.h <<\EOF
7881 #define STRUCT_TM_HAS_GMTOFF 1
7884 echo "$ac_t""yes" 1>&6
7886 echo "configure
: failed program was
:" >&5
7887 cat conftest.$ac_ext >&5
7889 echo "$ac_t""no
" 1>&6
7890 echo $ac_n "checking
for global timezone variable
""...
$ac_c" 1>&6
7891 echo "configure
:7892: checking
for global timezone variable
" >&5
7892 cat > conftest.$ac_ext <<EOF
7893 #line 7894 "configure
"
7894 #include "confdefs.h
"
7897 void i(){long z2 = 2*timezone;}
7900 if { (eval echo configure:7901: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7902 cat >> confdefs.h <<\EOF
7903 #define HAVE_TIMEZONE 1
7906 echo "$ac_t""yes" 1>&6
7908 echo "configure
: failed program was
:" >&5
7909 cat conftest.$ac_ext >&5
7911 echo "$ac_t""no
" 1>&6
7912 echo $ac_n "checking
for global _timezone variable
""...
$ac_c" 1>&6
7913 echo "configure
:7914: checking
for global _timezone variable
" >&5
7914 cat > conftest.$ac_ext <<EOF
7915 #line 7916 "configure
"
7916 #include "confdefs.h
"
7919 long z2 = _timezone;
7922 if { (eval echo configure:7923: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7924 cat >> confdefs.h <<\EOF
7925 #define HAVE_UNDERSCORE_TIMEZONE 1
7928 echo "$ac_t""yes" 1>&6
7930 echo "configure
: failed program was
:" >&5
7931 cat conftest.$ac_ext >&5
7933 echo "$ac_t""no
" 1>&6
7941 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7942 # for constant arguments. Useless!
7943 echo $ac_n "checking
for working alloca.h
""...
$ac_c" 1>&6
7944 echo "configure
:7945: checking
for working alloca.h
" >&5
7945 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
7946 echo $ac_n "(cached
) $ac_c" 1>&6
7948 cat > conftest.$ac_ext <<EOF
7949 #line 7950 "configure
"
7950 #include "confdefs.h
"
7953 char *p = alloca(2 * sizeof(int));
7956 if { (eval echo configure:7957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7958 ac_cv_header_alloca_h=yes
7960 echo "configure
: failed program was
:" >&5
7961 cat conftest.$ac_ext >&5
7963 ac_cv_header_alloca_h=no
7968 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
7969 if test $ac_cv_header_alloca_h = yes; then
7970 cat >> confdefs.h <<\EOF
7971 #define HAVE_ALLOCA_H 1
7976 echo $ac_n "checking
for alloca
""...
$ac_c" 1>&6
7977 echo "configure
:7978: checking
for alloca
" >&5
7978 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
7979 echo $ac_n "(cached
) $ac_c" 1>&6
7981 cat > conftest.$ac_ext <<EOF
7982 #line 7983 "configure
"
7983 #include "confdefs.h
"
7986 # define alloca __builtin_alloca
7989 # include <malloc.h>
7990 # define alloca _alloca
7993 # include <alloca.h>
7998 # ifndef alloca /* predefined by HP cc +Olibcalls */
8007 char *p = (char *) alloca(1);
8010 if { (eval echo configure:8011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8012 ac_cv_func_alloca_works=yes
8014 echo "configure
: failed program was
:" >&5
8015 cat conftest.$ac_ext >&5
8017 ac_cv_func_alloca_works=no
8022 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
8023 if test $ac_cv_func_alloca_works = yes; then
8024 cat >> confdefs.h <<\EOF
8025 #define HAVE_ALLOCA 1
8030 if test $ac_cv_func_alloca_works = no; then
8031 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8032 # that cause trouble. Some versions do not even contain alloca or
8033 # contain a buggy version. If you still want to use their alloca,
8034 # use ar to extract alloca.o from them instead of compiling alloca.c.
8035 ALLOCA=alloca.${ac_objext}
8036 cat >> confdefs.h <<\EOF
8041 echo $ac_n "checking whether alloca needs Cray hooks
""...
$ac_c" 1>&6
8042 echo "configure
:8043: checking whether alloca needs Cray hooks
" >&5
8043 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
8044 echo $ac_n "(cached
) $ac_c" 1>&6
8046 cat > conftest.$ac_ext <<EOF
8047 #line 8048 "configure
"
8048 #include "confdefs.h
"
8049 #if defined(CRAY) && ! defined(CRAY2)
8056 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
8057 egrep "webecray
" >/dev/null 2>&1; then
8068 echo "$ac_t""$ac_cv_os_cray" 1>&6
8069 if test $ac_cv_os_cray = yes; then
8070 for ac_func in _getb67 GETB67 getb67; do
8071 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
8072 echo "configure
:8073: checking
for $ac_func" >&5
8073 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8074 echo $ac_n "(cached
) $ac_c" 1>&6
8076 cat > conftest.$ac_ext <<EOF
8077 #line 8078 "configure
"
8078 #include "confdefs.h
"
8079 /* System header to define __stub macros and hopefully few prototypes,
8080 which can conflict with char $ac_func(); below. */
8082 /* Override any gcc2 internal prototype to avoid an error. */
8083 /* We use char because int might match the return type of a gcc2
8084 builtin and then its argument prototype would still apply. */
8089 /* The GNU C library defines this for functions which it implements
8090 to always fail with ENOSYS. Some functions are actually named
8091 something starting with __ and the normal name is an alias. */
8092 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8100 if { (eval echo configure:8101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8102 eval "ac_cv_func_
$ac_func=yes"
8104 echo "configure
: failed program was
:" >&5
8105 cat conftest.$ac_ext >&5
8107 eval "ac_cv_func_
$ac_func=no
"
8112 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8113 echo "$ac_t""yes" 1>&6
8114 cat >> confdefs.h <<EOF
8115 #define CRAY_STACKSEG_END $ac_func
8120 echo "$ac_t""no
" 1>&6
8126 echo $ac_n "checking stack direction
for C alloca
""...
$ac_c" 1>&6
8127 echo "configure
:8128: checking stack direction
for C alloca
" >&5
8128 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
8129 echo $ac_n "(cached
) $ac_c" 1>&6
8131 if test "$cross_compiling" = yes; then
8132 ac_cv_c_stack_direction=0
8134 cat > conftest.$ac_ext <<EOF
8135 #line 8136 "configure
"
8136 #include "confdefs.h
"
8137 find_stack_direction ()
8139 static char *addr = 0;
8144 return find_stack_direction ();
8147 return (&dummy > addr) ? 1 : -1;
8151 exit (find_stack_direction() < 0);
8154 if { (eval echo configure:8155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8156 ac_cv_c_stack_direction=1
8158 echo "configure
: failed program was
:" >&5
8159 cat conftest.$ac_ext >&5
8161 ac_cv_c_stack_direction=-1
8168 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
8169 cat >> confdefs.h <<EOF
8170 #define STACK_DIRECTION $ac_cv_c_stack_direction
8175 for ac_hdr in unistd.h
8177 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8178 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
8179 echo "configure
:8180: checking
for $ac_hdr" >&5
8180 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8181 echo $ac_n "(cached
) $ac_c" 1>&6
8183 cat > conftest.$ac_ext <<EOF
8184 #line 8185 "configure
"
8185 #include "confdefs.h
"
8188 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
8189 { (eval echo configure:8190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8190 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
8191 if test -z "$ac_err"; then
8193 eval "ac_cv_header_
$ac_safe=yes"
8196 echo "configure
: failed program was
:" >&5
8197 cat conftest.$ac_ext >&5
8199 eval "ac_cv_header_
$ac_safe=no
"
8203 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8204 echo "$ac_t""yes" 1>&6
8205 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8206 cat >> confdefs.h <<EOF
8207 #define $ac_tr_hdr 1
8211 echo "$ac_t""no
" 1>&6
8215 for ac_func in getpagesize
8217 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
8218 echo "configure
:8219: checking
for $ac_func" >&5
8219 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8220 echo $ac_n "(cached
) $ac_c" 1>&6
8222 cat > conftest.$ac_ext <<EOF
8223 #line 8224 "configure
"
8224 #include "confdefs.h
"
8225 /* System header to define __stub macros and hopefully few prototypes,
8226 which can conflict with char $ac_func(); below. */
8228 /* Override any gcc2 internal prototype to avoid an error. */
8229 /* We use char because int might match the return type of a gcc2
8230 builtin and then its argument prototype would still apply. */
8235 /* The GNU C library defines this for functions which it implements
8236 to always fail with ENOSYS. Some functions are actually named
8237 something starting with __ and the normal name is an alias. */
8238 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8246 if { (eval echo configure:8247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8248 eval "ac_cv_func_
$ac_func=yes"
8250 echo "configure
: failed program was
:" >&5
8251 cat conftest.$ac_ext >&5
8253 eval "ac_cv_func_
$ac_func=no
"
8258 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8259 echo "$ac_t""yes" 1>&6
8260 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8261 cat >> confdefs.h <<EOF
8262 #define $ac_tr_func 1
8266 echo "$ac_t""no
" 1>&6
8270 echo $ac_n "checking
for working mmap
""...
$ac_c" 1>&6
8271 echo "configure
:8272: checking
for working mmap
" >&5
8272 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
8273 echo $ac_n "(cached
) $ac_c" 1>&6
8275 if test "$cross_compiling" = yes; then
8276 ac_cv_func_mmap_fixed_mapped=no
8278 cat > conftest.$ac_ext <<EOF
8279 #line 8280 "configure
"
8280 #include "confdefs.h
"
8282 /* Thanks to Mike Haertel and Jim Avera for this test.
8283 Here is a matrix of mmap possibilities:
8284 mmap private not fixed
8285 mmap private fixed at somewhere currently unmapped
8286 mmap private fixed at somewhere already mapped
8287 mmap shared not fixed
8288 mmap shared fixed at somewhere currently unmapped
8289 mmap shared fixed at somewhere already mapped
8290 For private mappings, we should verify that changes cannot be read()
8291 back from the file, nor mmap's back from the file at a different
8292 address. (There have been systems where private was not correctly
8293 implemented like the infamous i386 svr4.0, and systems where the
8294 VM page cache was not coherent with the filesystem buffer cache
8295 like early versions of FreeBSD and possibly contemporary NetBSD.)
8296 For shared mappings, we should conversely verify that changes get
8297 propogated back to all the places they're supposed to be.
8299 Grep wants private fixed already mapped.
8300 The main things grep needs to know about mmap are:
8301 * does it exist and is it safe to write into the mmap'd area
8302 * how to use it (BSD variants) */
8303 #include <sys/types.h>
8305 #include <sys/mman.h>
8307 /* This mess was copied from the GNU getpagesize.h. */
8308 #ifndef HAVE_GETPAGESIZE
8309 # ifdef HAVE_UNISTD_H
8310 # include <unistd.h>
8313 /* Assume that all systems that can run configure have sys/param.h. */
8314 # ifndef HAVE_SYS_PARAM_H
8315 # define HAVE_SYS_PARAM_H 1
8318 # ifdef _SC_PAGESIZE
8319 # define getpagesize() sysconf(_SC_PAGESIZE)
8320 # else /* no _SC_PAGESIZE */
8321 # ifdef HAVE_SYS_PARAM_H
8322 # include <sys/param.h>
8323 # ifdef EXEC_PAGESIZE
8324 # define getpagesize() EXEC_PAGESIZE
8325 # else /* no EXEC_PAGESIZE */
8327 # define getpagesize() NBPG * CLSIZE
8330 # endif /* no CLSIZE */
8331 # else /* no NBPG */
8333 # define getpagesize() NBPC
8334 # else /* no NBPC */
8336 # define getpagesize() PAGESIZE
8337 # endif /* PAGESIZE */
8338 # endif /* no NBPC */
8339 # endif /* no NBPG */
8340 # endif /* no EXEC_PAGESIZE */
8341 # else /* no HAVE_SYS_PARAM_H */
8342 # define getpagesize() 8192 /* punt totally */
8343 # endif /* no HAVE_SYS_PARAM_H */
8344 # endif /* no _SC_PAGESIZE */
8346 #endif /* no HAVE_GETPAGESIZE */
8349 extern "C
" { void *malloc(unsigned); }
8357 char *data, *data2, *data3;
8361 pagesize = getpagesize();
8364 * First, make a file with some known garbage in it.
8366 data = malloc(pagesize);
8369 for (i = 0; i < pagesize; ++i)
8370 *(data + i) = rand();
8372 fd = creat("conftestmmap
", 0600);
8375 if (write(fd, data, pagesize) != pagesize)
8380 * Next, try to mmap the file at a fixed address which
8381 * already has something else allocated at it. If we can,
8382 * also make sure that we see the same garbage.
8384 fd = open("conftestmmap
", O_RDWR);
8387 data2 = malloc(2 * pagesize);
8390 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
8391 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
8392 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8394 for (i = 0; i < pagesize; ++i)
8395 if (*(data + i) != *(data2 + i))
8399 * Finally, make sure that changes to the mapped area
8400 * do not percolate back to the file as seen by read().
8401 * (This is a bug on some variants of i386 svr4.0.)
8403 for (i = 0; i < pagesize; ++i)
8404 *(data2 + i) = *(data2 + i) + 1;
8405 data3 = malloc(pagesize);
8408 if (read(fd, data3, pagesize) != pagesize)
8410 for (i = 0; i < pagesize; ++i)
8411 if (*(data + i) != *(data3 + i))
8414 unlink("conftestmmap
");
8419 if { (eval echo configure:8420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8421 ac_cv_func_mmap_fixed_mapped=yes
8423 echo "configure
: failed program was
:" >&5
8424 cat conftest.$ac_ext >&5
8426 ac_cv_func_mmap_fixed_mapped=no
8433 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
8434 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8435 cat >> confdefs.h <<\EOF
8444 # Extract the first word of "$ac_prog", so it can be a program name with args.
8445 set dummy $ac_prog; ac_word=$2
8446 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
8447 echo "configure
:8448: checking
for $ac_word" >&5
8448 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
8449 echo $ac_n "(cached
) $ac_c" 1>&6
8451 if test -n "$PERL"; then
8452 ac_cv_prog_PERL="$PERL" # Let the user override the test.
8454 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8456 for ac_dir in $ac_dummy; do
8457 test -z "$ac_dir" && ac_dir=.
8458 if test -f $ac_dir/$ac_word; then
8459 ac_cv_prog_PERL="$ac_prog"
8466 PERL="$ac_cv_prog_PERL"
8467 if test -n "$PERL"; then
8468 echo "$ac_t""$PERL" 1>&6
8470 echo "$ac_t""no
" 1>&6
8473 test -n "$PERL" && break
8475 test -n "$PERL" || PERL="false
"
8483 SIGNAL_HANDLER=include/i386-signal.h
8485 sparc*-sun-solaris*)
8486 SIGNAL_HANDLER=include/sparc-signal.h
8489 # SYSDEP_SOURCES=sysdep/ia64.c
8490 # test -d sysdep || mkdir sysdep
8493 SIGNAL_HANDLER=include/dwarf2-signal.h
8496 SIGNAL_HANDLER=include/powerpc-signal.h
8499 SIGNAL_HANDLER=include/dwarf2-signal.h
8502 SIGNAL_HANDLER=include/s390-signal.h
8505 SIGNAL_HANDLER=include/x86_64-signal.h
8506 SIGNAL_HANDLER_AUX=include/i386-signal.h
8509 SIGNAL_HANDLER=include/dwarf2-signal.h
8511 sh-*-linux* | sh[34]*-*-linux*)
8512 SIGNAL_HANDLER=include/dwarf2-signal.h
8515 SIGNAL_HANDLER=include/win32-signal.h
8518 SIGNAL_HANDLER=include/mips-signal.h
8521 SIGNAL_HANDLER=include/default-signal.h
8525 # If we're using sjlj exceptions, forget what we just learned.
8526 if test "$enable_sjlj_exceptions" = yes; then
8527 SIGNAL_HANDLER=include/default-signal.h
8531 # Define here any compiler flags that you need in order to make backtrace() work.
8535 BACKTRACESPEC=-fno-omit-frame-pointer
8542 if test -z "$SIGNAL_HANDLER_AUX"; then
8543 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
8548 if test "${multilib}" = "yes"; then
8549 multilib_arg="--enable-multilib"
8556 here=`${PWDCMD-pwd}`
8559 # We get this from the environment.
8563 cat > confcache <<\EOF
8564 # This file is a shell script that caches the results of configure
8565 # tests run on this system so they can be shared between configure
8566 # scripts and configure runs. It is not useful on other systems.
8567 # If it contains results you don't want to keep, you may remove or edit it.
8569 # By default, configure uses ./config.cache as the cache file,
8570 # creating it if it does not exist already. You can give configure
8571 # the --cache-file=FILE option to use a different cache file; that is
8572 # what configure does when it calls configure scripts in
8573 # subdirectories, so they share the cache.
8574 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8575 # config.status only pays attention to the cache file if you give it the
8576 # --recheck option to rerun configure.
8579 # The following way of writing the cache mishandles newlines in values,
8580 # but we know of no workaround that is simple, portable, and efficient.
8581 # So, don't put newlines in cache variables' values.
8582 # Ultrix sh set writes to stderr and can't be redirected directly,
8583 # and sets the high bit in the cache file unless we assign to the vars.
8585 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8587 # `set' does not quote correctly, so add quotes (double-quote substitution
8588 # turns \\\\ into \\, and sed turns \\ into \).
8590 -e "s
/'/'\\\\''/g
" \
8591 -e "s
/^
\\([a-zA-Z0-9_
]*_cv_
[a-zA-Z0-9_
]*\\)=\\(.
*\\)/\\1=\
${\\1='\\2'}/p
"
8594 # `set' quotes correctly as required by POSIX, so do not add quotes.
8595 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8598 if cmp -s $cache_file confcache; then
8601 if test -w $cache_file; then
8602 echo "updating cache
$cache_file"
8603 cat confcache > $cache_file
8605 echo "not updating unwritable cache
$cache_file"
8610 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8612 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
8613 # Let make expand exec_prefix.
8614 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
8616 # Any assignment to VPATH causes Sun make to only execute
8617 # the first set of double-colon rules, so remove it if not needed.
8618 # If there is a colon in the path, we need to keep it.
8619 if test "x
$srcdir" = x.; then
8620 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8623 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8625 DEFS=-DHAVE_CONFIG_H
8627 # Without the ".
/", some shells look in PATH for config.status.
8628 : ${CONFIG_STATUS=./config.status}
8630 echo creating $CONFIG_STATUS
8631 rm -f $CONFIG_STATUS
8632 cat > $CONFIG_STATUS <<EOF
8634 # Generated automatically by configure.
8635 # Run this file to recreate the current configuration.
8636 # This directory was configured as follows,
8637 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8639 # $0 $ac_configure_args
8641 # Compiler output produced by configure, useful for debugging
8642 # configure, is in ./config.log if it exists.
8644 ac_cs_usage="Usage
: $CONFIG_STATUS [--recheck] [--version] [--help]"
8647 case "\
$ac_option" in
8648 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8649 echo "running \
${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8650 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8651 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8652 echo "$CONFIG_STATUS generated by autoconf version
2.13"
8654 -help | --help | --hel | --he | --h)
8655 echo "\
$ac_cs_usage"; exit 0 ;;
8656 *) echo "\
$ac_cs_usage"; exit 1 ;;
8660 ac_given_srcdir=$srcdir
8661 ac_given_INSTALL="$INSTALL"
8663 trap 'rm -fr `echo "Makefile libgcj.pc 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
8665 cat >> $CONFIG_STATUS <<EOF
8667 # Protect against being on the right side of a sed subst in config.status.
8668 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8669 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8673 s%@CFLAGS@%$CFLAGS%g
8674 s%@CPPFLAGS@%$CPPFLAGS%g
8675 s%@CXXFLAGS@%$CXXFLAGS%g
8676 s%@FFLAGS@%$FFLAGS%g
8678 s%@LDFLAGS@%$LDFLAGS%g
8680 s%@exec_prefix@%$exec_prefix%g
8681 s%@prefix@%$prefix%g
8682 s%@program_transform_name@%$program_transform_name%g
8683 s%@bindir@%$bindir%g
8684 s%@sbindir@%$sbindir%g
8685 s%@libexecdir@%$libexecdir%g
8686 s%@datadir@%$datadir%g
8687 s%@sysconfdir@%$sysconfdir%g
8688 s%@sharedstatedir@%$sharedstatedir%g
8689 s%@localstatedir@%$localstatedir%g
8690 s%@libdir@%$libdir%g
8691 s%@includedir@%$includedir%g
8692 s%@oldincludedir@%$oldincludedir%g
8693 s%@infodir@%$infodir%g
8694 s%@mandir@%$mandir%g
8696 s%@libgcj_basedir@%$libgcj_basedir%g
8697 s%@mkinstalldirs@%$mkinstalldirs%g
8699 s%@host_alias@%$host_alias%g
8700 s%@host_cpu@%$host_cpu%g
8701 s%@host_vendor@%$host_vendor%g
8702 s%@host_os@%$host_os%g
8703 s%@target@%$target%g
8704 s%@target_alias@%$target_alias%g
8705 s%@target_cpu@%$target_cpu%g
8706 s%@target_vendor@%$target_vendor%g
8707 s%@target_os@%$target_os%g
8709 s%@build_alias@%$build_alias%g
8710 s%@build_cpu@%$build_cpu%g
8711 s%@build_vendor@%$build_vendor%g
8712 s%@build_os@%$build_os%g
8714 s%@glibjava_CXX@%$glibjava_CXX%g
8716 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8717 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8718 s%@INSTALL_DATA@%$INSTALL_DATA%g
8719 s%@PACKAGE@%$PACKAGE%g
8720 s%@VERSION@%$VERSION%g
8721 s%@ACLOCAL@%$ACLOCAL%g
8722 s%@AUTOCONF@%$AUTOCONF%g
8723 s%@AUTOMAKE@%$AUTOMAKE%g
8724 s%@AUTOHEADER@%$AUTOHEADER%g
8725 s%@MAKEINFO@%$MAKEINFO%g
8726 s%@SET_MAKE@%$SET_MAKE%g
8729 s%@RANLIB@%$RANLIB%g
8730 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
8731 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
8733 s%@EXEEXT@%$EXEEXT%g
8734 s%@LIBGCJ_CFLAGS@%$LIBGCJ_CFLAGS%g
8735 s%@LIBGCJ_CXXFLAGS@%$LIBGCJ_CXXFLAGS%g
8736 s%@LIBGCJ_JAVAFLAGS@%$LIBGCJ_JAVAFLAGS%g
8737 s%@INCLTDL@%$INCLTDL%g
8738 s%@LIBLTDL@%$LIBLTDL%g
8739 s%@DIRLTDL@%$DIRLTDL%g
8740 s%@OBJEXT@%$OBJEXT%g
8742 s%@LIBTOOL@%$LIBTOOL%g
8743 s%@CXXCPP@%$CXXCPP%g
8744 s%@subdirs@%$subdirs%g
8745 s%@COMPPATH@%$COMPPATH%g
8746 s%@TESTSUBDIR_TRUE@%$TESTSUBDIR_TRUE%g
8747 s%@TESTSUBDIR_FALSE@%$TESTSUBDIR_FALSE%g
8748 s%@ONESTEP_TRUE@%$ONESTEP_TRUE%g
8749 s%@ONESTEP_FALSE@%$ONESTEP_FALSE%g
8750 s%@LIBGCJDEBUG@%$LIBGCJDEBUG%g
8751 s%@INTERPRETER@%$INTERPRETER%g
8752 s%@LIBFFI@%$LIBFFI%g
8753 s%@LIBFFIINCS@%$LIBFFIINCS%g
8754 s%@EXTRA_CC_FILES@%$EXTRA_CC_FILES%g
8755 s%@PLATFORMOBJS@%$PLATFORMOBJS%g
8757 s%@SYSTEMSPEC@%$SYSTEMSPEC%g
8758 s%@LIBGCJTESTSPEC@%$LIBGCJTESTSPEC%g
8759 s%@ZLIBSPEC@%$ZLIBSPEC%g
8760 s%@ZLIBTESTSPEC@%$ZLIBTESTSPEC%g
8761 s%@X_CFLAGS@%$X_CFLAGS%g
8762 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
8763 s%@X_LIBS@%$X_LIBS%g
8764 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
8765 s%@TOOLKIT@%$TOOLKIT%g
8766 s%@XLIB_AWT_TRUE@%$XLIB_AWT_TRUE%g
8767 s%@XLIB_AWT_FALSE@%$XLIB_AWT_FALSE%g
8768 s%@GTK_AWT_TRUE@%$GTK_AWT_TRUE%g
8769 s%@GTK_AWT_FALSE@%$GTK_AWT_FALSE%g
8770 s%@GTK_CAIRO_TRUE@%$GTK_CAIRO_TRUE%g
8771 s%@GTK_CAIRO_FALSE@%$GTK_CAIRO_FALSE%g
8772 s%@PKG_CONFIG@%$PKG_CONFIG%g
8773 s%@CAIRO_CFLAGS@%$CAIRO_CFLAGS%g
8774 s%@CAIRO_LIBS@%$CAIRO_LIBS%g
8775 s%@PANGOFT2_CFLAGS@%$PANGOFT2_CFLAGS%g
8776 s%@PANGOFT2_LIBS@%$PANGOFT2_LIBS%g
8777 s%@GCLIBS@%$GCLIBS%g
8778 s%@GCINCS@%$GCINCS%g
8779 s%@GCDEPS@%$GCDEPS%g
8780 s%@GCOBJS@%$GCOBJS%g
8781 s%@GCSPEC@%$GCSPEC%g
8782 s%@JC1GCSPEC@%$JC1GCSPEC%g
8783 s%@GCTESTSPEC@%$GCTESTSPEC%g
8784 s%@THREADLIBS@%$THREADLIBS%g
8785 s%@THREADINCS@%$THREADINCS%g
8786 s%@THREADDEPS@%$THREADDEPS%g
8787 s%@THREADOBJS@%$THREADOBJS%g
8788 s%@THREADSPEC@%$THREADSPEC%g
8789 s%@THREADLDFLAGS@%$THREADLDFLAGS%g
8790 s%@THREADCXXFLAGS@%$THREADCXXFLAGS%g
8791 s%@HASH_SYNC_SPEC@%$HASH_SYNC_SPEC%g
8792 s%@USING_GCC_TRUE@%$USING_GCC_TRUE%g
8793 s%@USING_GCC_FALSE@%$USING_GCC_FALSE%g
8794 s%@tool_include_dir@%$tool_include_dir%g
8795 s%@gcc_version@%$gcc_version%g
8796 s%@LIBICONV@%$LIBICONV%g
8797 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
8798 s%@GTK_LIBS@%$GTK_LIBS%g
8799 s%@GLIB_CFLAGS@%$GLIB_CFLAGS%g
8800 s%@GLIB_LIBS@%$GLIB_LIBS%g
8801 s%@LIBART_CFLAGS@%$LIBART_CFLAGS%g
8802 s%@LIBART_LIBS@%$LIBART_LIBS%g
8804 s%@GCJFLAGS@%$GCJFLAGS%g
8806 s%@SYS_ZLIBS@%$SYS_ZLIBS%g
8808 s%@DIVIDESPEC@%$DIVIDESPEC%g
8809 s%@CHECKREFSPEC@%$CHECKREFSPEC%g
8810 s%@EXCEPTIONSPEC@%$EXCEPTIONSPEC%g
8811 s%@IEEESPEC@%$IEEESPEC%g
8812 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
8813 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
8814 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
8815 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
8816 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
8817 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
8818 s%@NEEDS_DATA_START_TRUE@%$NEEDS_DATA_START_TRUE%g
8819 s%@NEEDS_DATA_START_FALSE@%$NEEDS_DATA_START_FALSE%g
8820 s%@GCC_UNWIND_INCLUDE@%$GCC_UNWIND_INCLUDE%g
8821 s%@toolexecdir@%$toolexecdir%g
8822 s%@toolexecmainlibdir@%$toolexecmainlibdir%g
8823 s%@toolexeclibdir@%$toolexeclibdir%g
8824 s%@GCJVERSION@%$GCJVERSION%g
8825 s%@ALLOCA@%$ALLOCA%g
8827 s%@BACKTRACESPEC@%$BACKTRACESPEC%g
8828 s%@SYSDEP_SOURCES@%$SYSDEP_SOURCES%g
8834 cat >> $CONFIG_STATUS <<\EOF
8836 # Split the substitutions into bite-sized pieces for seds with
8837 # small command number limits, like on Digital OSF/1 and HP-UX.
8838 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8839 ac_file=1 # Number of current file.
8840 ac_beg=1 # First line for current file.
8841 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8844 while $ac_more_lines; do
8845 if test $ac_beg -gt 1; then
8846 sed "1,${ac_beg}d
; ${ac_end}q
" conftest.subs > conftest.s$ac_file
8848 sed "${ac_end}q
" conftest.subs > conftest.s$ac_file
8850 if test ! -s conftest.s$ac_file; then
8852 rm -f conftest.s$ac_file
8854 if test -z "$ac_sed_cmds"; then
8855 ac_sed_cmds="sed -f conftest.s
$ac_file"
8857 ac_sed_cmds="$ac_sed_cmds |
sed -f conftest.s
$ac_file"
8859 ac_file=`expr $ac_file + 1`
8861 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8864 if test -z "$ac_sed_cmds"; then
8869 cat >> $CONFIG_STATUS <<EOF
8871 CONFIG_FILES=\${CONFIG_FILES-"Makefile libgcj.pc libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile"}
8873 cat >> $CONFIG_STATUS <<\EOF
8874 for ac_file in .. $CONFIG_FILES; do if test "x
$ac_file" != x..; then
8875 # Support "outfile
[:infile
[:infile...
]]", defaulting infile="outfile.
in".
8877 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8878 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8879 *) ac_file_in="${ac_file}.
in" ;;
8882 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8884 # Remove last slash and all that follows it. Not all systems have dirname.
8885 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8886 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8887 # The file is in a subdirectory.
8888 test ! -d "$ac_dir" && mkdir "$ac_dir"
8889 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8890 # A "..
/" for each directory in $ac_dir_suffix.
8891 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8893 ac_dir_suffix= ac_dots=
8896 case "$ac_given_srcdir" in
8898 if test -z "$ac_dots"; then top_srcdir=.
8899 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8900 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8902 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8903 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8906 case "$ac_given_INSTALL" in
8907 [/$]*) INSTALL="$ac_given_INSTALL" ;;
8908 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8911 echo creating "$ac_file"
8913 configure_input="Generated automatically from
`echo $ac_file_in|sed 's%.*/%%'` by configure.
"
8915 *Makefile*) ac_comsub="1i
\\
8916 # $configure_input" ;;
8920 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8922 s%@configure_input@%$configure_input%g
8923 s%@srcdir@%$srcdir%g
8924 s%@top_srcdir@%$top_srcdir%g
8925 s%@INSTALL@%$INSTALL%g
8926 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
8930 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8931 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8933 # ac_d sets the value in "#define NAME VALUE" lines.
8934 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8935 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
8938 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8939 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8940 ac_uB
='\([ ]\)%\1#\2define\3'
8943 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8944 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8945 ac_eB
='$%\1#\2define\3'
8949 if test "${CONFIG_HEADERS+set}" != set; then
8951 cat >> $CONFIG_STATUS <<EOF
8952 CONFIG_HEADERS="include/config.h gcj/libgcj-config.h"
8954 cat >> $CONFIG_STATUS <<\EOF
8956 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
8957 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8959 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
8960 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
8961 *) ac_file_in
="${ac_file}.in" ;;
8964 echo creating
$ac_file
8966 rm -f conftest.frag conftest.
in conftest.out
8967 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8968 cat $ac_file_inputs > conftest.
in
8972 # Transform confdefs.h into a sed script conftest.vals that substitutes
8973 # the proper values into config.h.in to produce config.h. And first:
8974 # Protect against being on the right side of a sed subst in config.status.
8975 # Protect against being in an unquoted here document in config.status.
8977 cat > conftest.hdr
<<\EOF
8980 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8984 sed -n -f conftest.hdr confdefs.h > conftest.vals
8987 # This sed command replaces #undef with comments. This is necessary, for
8988 # example, in the case of _POSIX_SOURCE, which is predefined and required
8989 # on some systems where configure will not decide to define it.
8990 cat >> conftest.vals <<\EOF
8991 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8994 # Break up conftest.vals because some shells have a limit on
8995 # the size of here documents, and old seds have small limits too.
9000 ac_lines=`grep -c . conftest.vals
`
9001 # grep -c gives empty output for an empty file on some AIX systems.
9002 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9003 # Write a limited-size here document to conftest.frag.
9004 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9005 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9007 sed -f conftest.frag conftest.in > conftest.out
9009 mv conftest.out conftest.in
9011 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9013 mv conftest.tail conftest.vals
9017 cat >> $CONFIG_STATUS <<\EOF
9018 rm -f conftest.frag conftest.h
9019 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9020 cat conftest.in >> conftest.h
9022 if cmp -s $ac_file conftest.h 2>/dev/null; then
9023 echo "$ac_file is unchanged"
9026 # Remove last slash and all that follows it. Not all systems have dirname.
9027 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
9028 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9029 # The file is in a subdirectory.
9030 test ! -d "$ac_dir" && mkdir "$ac_dir"
9033 mv conftest.h $ac_file
9039 cat >> $CONFIG_STATUS <<EOF
9040 ac_sources="include/$PLATFORMH java/io/natFile${FILE-${PLATFORM}}.cc java/io/natFileDescriptor${FILE-${PLATFORM}}.cc java/lang/${PLATFORM}Process.java java/lang/nat${PLATFORM}Process.cc java/net/natInetAddress${PLATFORMNET}.cc java/net/natNetworkInterface${PLATFORMNET}.cc gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc gnu/java/nio/natPipeImpl${PLATFORM}.cc gnu/java/nio/natSelectorImpl${PLATFORM}.cc include/$GCHDR include/$THREADH sysdep/$sysdeps_dir/locks.h $SIGNAL_HANDLER $SIGNAL_HANDLER_AUX"
9041 ac_dests="include/platform.h java/io/natFile.cc java/io/natFileDescriptor.cc java/lang/ConcreteProcess.java java/lang/natConcreteProcess.cc java/net/natInetAddress.cc java/net/natNetworkInterface.cc gnu/java/net/natPlainSocketImpl.cc gnu/java/net/natPlainDatagramSocketImpl.cc gnu/java/nio/natPipeImpl.cc gnu/java/nio/natSelectorImpl.cc include/java-gc.h include/java-threads.h sysdep/locks.h include/java-signal.h include/java-signal-aux.h"
9044 cat >> $CONFIG_STATUS <<\EOF
9045 srcdir=$ac_given_srcdir
9046 while test -n "$ac_sources"; do
9047 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
9048 set $ac_sources; ac_source=$1; shift; ac_sources=$*
9050 echo "linking $srcdir/$ac_source to $ac_dest"
9052 if test ! -r $srcdir/$ac_source; then
9053 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
9057 # Make relative symlinks.
9058 # Remove last slash and all that follows it. Not all systems have dirname.
9059 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
9060 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
9061 # The dest file is in a subdirectory.
9062 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
9063 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
9064 # A "../" for each directory in $ac_dest_dir_suffix.
9065 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
9067 ac_dest_dir_suffix= ac_dots=
9071 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
9072 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
9075 # Make a symlink if possible; otherwise try a hard link.
9076 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9077 ln $srcdir/$ac_source $ac_dest; then :
9079 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
9083 cat >> $CONFIG_STATUS <<EOF
9088 with_multisubdir=${with_multisubdir}
9089 ac_configure_args="${multilib_arg} ${ac_configure_args}"
9090 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
9091 libgcj_basedir=${libgcj_basedir}
9094 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
9097 cat >> $CONFIG_STATUS <<\EOF
9099 for am_file in include/config.h gcj/libgcj-config.h; do
9100 case " $CONFIG_HEADERS " in
9102 echo timestamp > `echo $am_file |
sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
9105 am_indx=`expr "$am_indx" + 1`
9107 # Only add multilib support code if we just rebuilt top-level Makefile.
9108 case " $CONFIG_FILES " in
9110 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
9111 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
9115 # Make subdirectories and `.d
' files. Look in both srcdir and
9116 # builddir for the .java files.
9119 ( (cd $srcdir && find . \( -name '*.java
' -o -name '*.cc
' -o -name '*.c
' \) -print) ;
9120 find . \( -name '*.java
' -o -name '*.cc
' -o -name '*.c
' \) -print) | \
9121 fgrep -v testsuite | \
9122 sed -e 's
/\.java
/.d
/'\;'s
/\.cc
/.d
/'\;'s
/\.c
/.d
/' | \
9124 echo "include $f" >> deps.mk
9127 d=`echo $f | sed -e 's
,/[^
/]*$
,,'`
9129 if test ! -d $d; then
9130 $libgcj_basedir/../mkinstalldirs $d
9138 chmod +x $CONFIG_STATUS
9139 rm -fr confdefs* $ac_clean_files
9140 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
9142 if test "$no_recursion" != yes; then
9144 # Remove --cache-file and --srcdir arguments so they do not pile up.
9145 ac_sub_configure_args=
9147 for ac_arg in $ac_configure_args; do
9148 if test -n "$ac_prev"; then
9153 -cache-file | --cache-file | --cache-fil | --cache-fi \
9154 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
9155 ac_prev=cache_file ;;
9156 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
9157 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
9159 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
9161 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
9163 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
9167 for ac_config_dir in $DIRLTDL; do
9169 # Do not complain, so a configure script can configure whichever
9170 # parts of a large source tree are present.
9171 if test ! -d $srcdir/$ac_config_dir; then
9175 echo configuring in $ac_config_dir
9180 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
9182 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
9190 # A "../" for each directory in /$ac_config_dir.
9191 ac_dots=`echo $ac_config_dir|sed -e 's
%^\.
/%%' -e 's
%[^
/]$
%&/%' -e 's
%[^
/]*/%..
/%g
'`
9194 .) # No --srcdir option. We are building in place.
9195 ac_sub_srcdir=$srcdir ;;
9196 /*) # Absolute path.
9197 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
9199 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
9202 # Check for guested configure; otherwise get Cygnus style configure.
9203 if test -f $ac_sub_srcdir/configure; then
9204 ac_sub_configure=$ac_sub_srcdir/configure
9205 elif test -f $ac_sub_srcdir/configure.in; then
9206 ac_sub_configure=$ac_configure
9208 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
9212 # The recursion is here.
9213 if test -n "$ac_sub_configure"; then
9215 # Make the cache file name correct relative to the subdirectory.
9216 case "$cache_file" in
9217 /*) ac_sub_cache_file=$cache_file ;;
9219 ac_sub_cache_file="$ac_dots$cache_file" ;;
9221 case "$ac_given_INSTALL" in
9222 [/$]*) INSTALL="$ac_given_INSTALL" ;;
9223 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9226 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
9227 # The eval makes quoting arguments work.
9228 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
9231 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }