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
3228 test -d java/lang || mkdir java/lang
3232 test -d java/net || mkdir java/net
3236 test -d gnu/java || mkdir gnu/java
3237 test -d gnu/java/net || mkdir gnu/java/net
3241 test -d gnu/java/nio || mkdir gnu/java/nio
3244 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
3249 SYSTEMSPEC="-lgdi32 -lwsock32 -lws2_32"
3250 if test "${with_win32_nlsapi}" = "unicows
"; then
3251 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
3260 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs
-rpath `${PWDCMD-pwd}`/.libs
"
3263 # Check whether --with-system-zlib or --without-system-zlib was given.
3264 if test "${with_system_zlib+set}" = set; then
3265 withval="$with_system_zlib"
3274 # If we find X, set shell vars x_includes and x_libraries to the
3275 # paths, otherwise set no_x=yes.
3276 # Uses ac_ vars as temps to allow command line to override cache and checks.
3277 # --without-x overrides everything else, but does not touch the cache.
3278 echo $ac_n "checking
for X
""...
$ac_c" 1>&6
3279 echo "configure
:3280: checking
for X
" >&5
3281 # Check whether --with-x or --without-x was given.
3282 if test "${with_x+set}" = set; then
3287 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3288 if test "x
$with_x" = xno; then
3289 # The user explicitly disabled X.
3292 if test "x
$x_includes" != xNONE && test "x
$x_libraries" != xNONE; then
3293 # Both variables are already set.
3296 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
3297 echo $ac_n "(cached
) $ac_c" 1>&6
3299 # One or both of the vars are not set, and there is no cached value.
3300 ac_x_includes=NO ac_x_libraries=NO
3302 if mkdir conftestdir; then
3304 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3305 cat > Imakefile <<'EOF'
3307 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3309 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3310 # GNU make sometimes prints "make[1]: Entering...
", which would confuse us.
3311 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3312 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3313 for ac_extension in a so sl; do
3314 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3315 test -f $ac_im_libdir/libX11.$ac_extension; then
3316 ac_im_usrlibdir=$ac_im_libdir; break
3319 # Screen out bogus values from the imake configuration. They are
3320 # bogus both because they are the default anyway, and because
3321 # using them would break gcc on systems where it needs fixed includes.
3322 case "$ac_im_incroot" in
3324 *) test -f "$ac_im_incroot/X11
/Xos.h
" && ac_x_includes="$ac_im_incroot" ;;
3326 case "$ac_im_usrlibdir" in
3328 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
3335 if test "$ac_x_includes" = NO; then
3336 # Guess where to find include files, by looking for this one X11 .h file.
3337 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
3339 # First, try using that file with no special directory specified.
3340 cat > conftest.$ac_ext <<EOF
3341 #line 3342 "configure
"
3342 #include "confdefs.h
"
3343 #include <$x_direct_test_include>
3345 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
3346 { (eval echo configure:3347: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3347 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
3348 if test -z "$ac_err"; then
3350 # We can compile using X headers with no special include directory.
3354 echo "configure
: failed program was
:" >&5
3355 cat conftest.$ac_ext >&5
3357 # Look for the header file in a standard set of common directories.
3358 # Check X11 before X11Rn because it is often a symlink to the current release.
3361 /usr/X11R6/include \
3362 /usr/X11R5/include \
3363 /usr/X11R4/include \
3366 /usr/include/X11R6 \
3367 /usr/include/X11R5 \
3368 /usr/include/X11R4 \
3370 /usr/local/X11/include \
3371 /usr/local/X11R6/include \
3372 /usr/local/X11R5/include \
3373 /usr/local/X11R4/include \
3375 /usr/local/include/X11 \
3376 /usr/local/include/X11R6 \
3377 /usr/local/include/X11R5 \
3378 /usr/local/include/X11R4 \
3382 /usr/XFree86/include/X11 \
3385 /usr/local/include \
3386 /usr/unsupported/include \
3387 /usr/athena/include \
3388 /usr/local/x11r5/include \
3389 /usr/lpp/Xamples/include \
3391 /usr/openwin/include \
3392 /usr/openwin/share/include \
3395 if test -r "$ac_dir/$x_direct_test_include"; then
3396 ac_x_includes=$ac_dir
3402 fi # $ac_x_includes = NO
3404 if test "$ac_x_libraries" = NO; then
3405 # Check for the libraries.
3407 test -z "$x_direct_test_library" && x_direct_test_library=Xt
3408 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
3410 # See if we find them without any special options.
3411 # Don't add to $LIBS permanently.
3412 ac_save_LIBS="$LIBS"
3413 LIBS="-l$x_direct_test_library $LIBS"
3414 cat > conftest.$ac_ext <<EOF
3415 #line 3416 "configure
"
3416 #include "confdefs.h
"
3419 ${x_direct_test_function}()
3422 if { (eval echo configure:3423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3424 LIBS="$ac_save_LIBS"
3425 # We can link X programs with no special library path.
3428 echo "configure
: failed program was
:" >&5
3429 cat conftest.$ac_ext >&5
3431 LIBS="$ac_save_LIBS"
3432 # First see if replacing the include by lib works.
3433 # Check X11 before X11Rn because it is often a symlink to the current release.
3434 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
3445 /usr/local/X11/lib \
3446 /usr/local/X11R6/lib \
3447 /usr/local/X11R5/lib \
3448 /usr/local/X11R4/lib \
3450 /usr/local/lib/X11 \
3451 /usr/local/lib/X11R6 \
3452 /usr/local/lib/X11R5 \
3453 /usr/local/lib/X11R4 \
3457 /usr/XFree86/lib/X11 \
3461 /usr/unsupported/lib \
3463 /usr/local/x11r5/lib \
3464 /usr/lpp/Xamples/lib \
3468 /usr/openwin/share/lib \
3471 for ac_extension in a so sl; do
3472 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
3473 ac_x_libraries=$ac_dir
3480 fi # $ac_x_libraries = NO
3482 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
3483 # Didn't find X anywhere. Cache the known absence of X.
3484 ac_cv_have_x="have_x
=no
"
3486 # Record where we found X for the cache.
3487 ac_cv_have_x="have_x
=yes \
3488 ac_x_includes
=$ac_x_includes ac_x_libraries
=$ac_x_libraries"
3492 eval "$ac_cv_have_x"
3495 if test "$have_x" != yes; then
3496 echo "$ac_t""$have_x" 1>&6
3499 # If each of the values was on the command line, it overrides each guess.
3500 test "x
$x_includes" = xNONE && x_includes=$ac_x_includes
3501 test "x
$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3502 # Update the cache value to reflect the command line values.
3503 ac_cv_have_x="have_x
=yes \
3504 ac_x_includes
=$x_includes ac_x_libraries
=$x_libraries"
3505 echo "$ac_t""libraries
$x_libraries, headers
$x_includes" 1>&6
3508 if test "$no_x" = yes; then
3509 # Not all programs may use this symbol, but it does not hurt to define it.
3510 cat >> confdefs.h <<\EOF
3511 #define X_DISPLAY_MISSING 1
3514 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3516 if test -n "$x_includes"; then
3517 X_CFLAGS="$X_CFLAGS -I$x_includes"
3520 # It would also be nice to do this for all -L options, not just this one.
3521 if test -n "$x_libraries"; then
3522 X_LIBS="$X_LIBS -L$x_libraries"
3523 # For Solaris; some versions of Sun CC require a space after -R and
3524 # others require no space. Words are not sufficient . . . .
3525 case "`(uname -sr) 2>/dev/null`" in
3527 echo $ac_n "checking whether
-R must be followed by a space
""...
$ac_c" 1>&6
3528 echo "configure
:3529: checking whether
-R must be followed by a space
" >&5
3529 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
3530 cat > conftest.$ac_ext <<EOF
3531 #line 3532 "configure
"
3532 #include "confdefs.h
"
3538 if { (eval echo configure:3539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3542 echo "configure
: failed program was
:" >&5
3543 cat conftest.$ac_ext >&5
3548 if test $ac_R_nospace = yes; then
3549 echo "$ac_t""no
" 1>&6
3550 X_LIBS="$X_LIBS -R$x_libraries"
3552 LIBS="$ac_xsave_LIBS -R $x_libraries"
3553 cat > conftest.$ac_ext <<EOF
3554 #line 3555 "configure
"
3555 #include "confdefs.h
"
3561 if { (eval echo configure:3562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3565 echo "configure
: failed program was
:" >&5
3566 cat conftest.$ac_ext >&5
3571 if test $ac_R_space = yes; then
3572 echo "$ac_t""yes" 1>&6
3573 X_LIBS="$X_LIBS -R $x_libraries"
3575 echo "$ac_t""neither works
" 1>&6
3578 LIBS="$ac_xsave_LIBS"
3582 # Check for system-dependent libraries X programs must link with.
3583 # Do this before checking for the system-independent R6 libraries
3584 # (-lICE), since we may need -lsocket or whatever for X linking.
3586 if test "$ISC" = yes; then
3587 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3589 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
3590 # libraries were built with DECnet support. And karl@cs.umb.edu says
3591 # the Alpha needs dnet_stub (dnet does not exist).
3592 echo $ac_n "checking
for dnet_ntoa
in -ldnet""...
$ac_c" 1>&6
3593 echo "configure
:3594: checking
for dnet_ntoa
in -ldnet" >&5
3594 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3595 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3596 echo $ac_n "(cached
) $ac_c" 1>&6
3598 ac_save_LIBS="$LIBS"
3600 cat > conftest.$ac_ext <<EOF
3601 #line 3602 "configure
"
3602 #include "confdefs.h
"
3603 /* Override any gcc2 internal prototype to avoid an error. */
3604 /* We use char because int might match the return type of a gcc2
3605 builtin and then its argument prototype would still apply. */
3612 if { (eval echo configure:3613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3614 eval "ac_cv_lib_
$ac_lib_var=yes"
3616 echo "configure
: failed program was
:" >&5
3617 cat conftest.$ac_ext >&5
3619 eval "ac_cv_lib_
$ac_lib_var=no
"
3622 LIBS="$ac_save_LIBS"
3625 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3626 echo "$ac_t""yes" 1>&6
3627 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3629 echo "$ac_t""no
" 1>&6
3632 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3633 echo $ac_n "checking
for dnet_ntoa
in -ldnet_stub""...
$ac_c" 1>&6
3634 echo "configure
:3635: checking
for dnet_ntoa
in -ldnet_stub" >&5
3635 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3636 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3637 echo $ac_n "(cached
) $ac_c" 1>&6
3639 ac_save_LIBS="$LIBS"
3640 LIBS="-ldnet_stub $LIBS"
3641 cat > conftest.$ac_ext <<EOF
3642 #line 3643 "configure
"
3643 #include "confdefs.h
"
3644 /* Override any gcc2 internal prototype to avoid an error. */
3645 /* We use char because int might match the return type of a gcc2
3646 builtin and then its argument prototype would still apply. */
3653 if { (eval echo configure:3654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3655 eval "ac_cv_lib_
$ac_lib_var=yes"
3657 echo "configure
: failed program was
:" >&5
3658 cat conftest.$ac_ext >&5
3660 eval "ac_cv_lib_
$ac_lib_var=no
"
3663 LIBS="$ac_save_LIBS"
3666 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3667 echo "$ac_t""yes" 1>&6
3668 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3670 echo "$ac_t""no
" 1>&6
3675 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3676 # to get the SysV transport functions.
3677 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
3679 # The nsl library prevents programs from opening the X display
3680 # on Irix 5.2, according to dickey@clark.net.
3681 echo $ac_n "checking
for gethostbyname
""...
$ac_c" 1>&6
3682 echo "configure
:3683: checking
for gethostbyname
" >&5
3683 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3684 echo $ac_n "(cached
) $ac_c" 1>&6
3686 cat > conftest.$ac_ext <<EOF
3687 #line 3688 "configure
"
3688 #include "confdefs.h
"
3689 /* System header to define __stub macros and hopefully few prototypes,
3690 which can conflict with char gethostbyname(); below. */
3692 /* Override any gcc2 internal prototype to avoid an error. */
3693 /* We use char because int might match the return type of a gcc2
3694 builtin and then its argument prototype would still apply. */
3695 char gethostbyname();
3699 /* The GNU C library defines this for functions which it implements
3700 to always fail with ENOSYS. Some functions are actually named
3701 something starting with __ and the normal name is an alias. */
3702 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3710 if { (eval echo configure:3711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3712 eval "ac_cv_func_gethostbyname
=yes"
3714 echo "configure
: failed program was
:" >&5
3715 cat conftest.$ac_ext >&5
3717 eval "ac_cv_func_gethostbyname
=no
"
3722 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3723 echo "$ac_t""yes" 1>&6
3726 echo "$ac_t""no
" 1>&6
3729 if test $ac_cv_func_gethostbyname = no; then
3730 echo $ac_n "checking
for gethostbyname
in -lnsl""...
$ac_c" 1>&6
3731 echo "configure
:3732: checking
for gethostbyname
in -lnsl" >&5
3732 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3733 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3734 echo $ac_n "(cached
) $ac_c" 1>&6
3736 ac_save_LIBS="$LIBS"
3738 cat > conftest.$ac_ext <<EOF
3739 #line 3740 "configure
"
3740 #include "confdefs.h
"
3741 /* Override any gcc2 internal prototype to avoid an error. */
3742 /* We use char because int might match the return type of a gcc2
3743 builtin and then its argument prototype would still apply. */
3744 char gethostbyname();
3750 if { (eval echo configure:3751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3752 eval "ac_cv_lib_
$ac_lib_var=yes"
3754 echo "configure
: failed program was
:" >&5
3755 cat conftest.$ac_ext >&5
3757 eval "ac_cv_lib_
$ac_lib_var=no
"
3760 LIBS="$ac_save_LIBS"
3763 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3764 echo "$ac_t""yes" 1>&6
3765 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3767 echo "$ac_t""no
" 1>&6
3772 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3773 # socket/setsockopt and other routines are undefined under SCO ODT
3774 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3775 # on later versions), says simon@lia.di.epfl.ch: it contains
3776 # gethostby* variants that don't use the nameserver (or something).
3777 # -lsocket must be given before -lnsl if both are needed.
3778 # We assume that if connect needs -lnsl, so does gethostbyname.
3779 echo $ac_n "checking
for connect
""...
$ac_c" 1>&6
3780 echo "configure
:3781: checking
for connect
" >&5
3781 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3782 echo $ac_n "(cached
) $ac_c" 1>&6
3784 cat > conftest.$ac_ext <<EOF
3785 #line 3786 "configure
"
3786 #include "confdefs.h
"
3787 /* System header to define __stub macros and hopefully few prototypes,
3788 which can conflict with char connect(); below. */
3790 /* Override any gcc2 internal prototype to avoid an error. */
3791 /* We use char because int might match the return type of a gcc2
3792 builtin and then its argument prototype would still apply. */
3797 /* The GNU C library defines this for functions which it implements
3798 to always fail with ENOSYS. Some functions are actually named
3799 something starting with __ and the normal name is an alias. */
3800 #if defined (__stub_connect) || defined (__stub___connect)
3808 if { (eval echo configure:3809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3810 eval "ac_cv_func_connect
=yes"
3812 echo "configure
: failed program was
:" >&5
3813 cat conftest.$ac_ext >&5
3815 eval "ac_cv_func_connect
=no
"
3820 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3821 echo "$ac_t""yes" 1>&6
3824 echo "$ac_t""no
" 1>&6
3827 if test $ac_cv_func_connect = no; then
3828 echo $ac_n "checking
for connect
in -lsocket""...
$ac_c" 1>&6
3829 echo "configure
:3830: checking
for connect
in -lsocket" >&5
3830 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3831 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3832 echo $ac_n "(cached
) $ac_c" 1>&6
3834 ac_save_LIBS="$LIBS"
3835 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3836 cat > conftest.$ac_ext <<EOF
3837 #line 3838 "configure
"
3838 #include "confdefs.h
"
3839 /* Override any gcc2 internal prototype to avoid an error. */
3840 /* We use char because int might match the return type of a gcc2
3841 builtin and then its argument prototype would still apply. */
3848 if { (eval echo configure:3849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3850 eval "ac_cv_lib_
$ac_lib_var=yes"
3852 echo "configure
: failed program was
:" >&5
3853 cat conftest.$ac_ext >&5
3855 eval "ac_cv_lib_
$ac_lib_var=no
"
3858 LIBS="$ac_save_LIBS"
3861 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3862 echo "$ac_t""yes" 1>&6
3863 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3865 echo "$ac_t""no
" 1>&6
3870 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
3871 echo $ac_n "checking
for remove
""...
$ac_c" 1>&6
3872 echo "configure
:3873: checking
for remove
" >&5
3873 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
3874 echo $ac_n "(cached
) $ac_c" 1>&6
3876 cat > conftest.$ac_ext <<EOF
3877 #line 3878 "configure
"
3878 #include "confdefs.h
"
3879 /* System header to define __stub macros and hopefully few prototypes,
3880 which can conflict with char remove(); below. */
3882 /* Override any gcc2 internal prototype to avoid an error. */
3883 /* We use char because int might match the return type of a gcc2
3884 builtin and then its argument prototype would still apply. */
3889 /* The GNU C library defines this for functions which it implements
3890 to always fail with ENOSYS. Some functions are actually named
3891 something starting with __ and the normal name is an alias. */
3892 #if defined (__stub_remove) || defined (__stub___remove)
3900 if { (eval echo configure:3901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3902 eval "ac_cv_func_remove
=yes"
3904 echo "configure
: failed program was
:" >&5
3905 cat conftest.$ac_ext >&5
3907 eval "ac_cv_func_remove
=no
"
3912 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
3913 echo "$ac_t""yes" 1>&6
3916 echo "$ac_t""no
" 1>&6
3919 if test $ac_cv_func_remove = no; then
3920 echo $ac_n "checking
for remove
in -lposix""...
$ac_c" 1>&6
3921 echo "configure
:3922: checking
for remove
in -lposix" >&5
3922 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
3923 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3924 echo $ac_n "(cached
) $ac_c" 1>&6
3926 ac_save_LIBS="$LIBS"
3927 LIBS="-lposix $LIBS"
3928 cat > conftest.$ac_ext <<EOF
3929 #line 3930 "configure
"
3930 #include "confdefs.h
"
3931 /* Override any gcc2 internal prototype to avoid an error. */
3932 /* We use char because int might match the return type of a gcc2
3933 builtin and then its argument prototype would still apply. */
3940 if { (eval echo configure:3941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3942 eval "ac_cv_lib_
$ac_lib_var=yes"
3944 echo "configure
: failed program was
:" >&5
3945 cat conftest.$ac_ext >&5
3947 eval "ac_cv_lib_
$ac_lib_var=no
"
3950 LIBS="$ac_save_LIBS"
3953 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3954 echo "$ac_t""yes" 1>&6
3955 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3957 echo "$ac_t""no
" 1>&6
3962 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3963 echo $ac_n "checking
for shmat
""...
$ac_c" 1>&6
3964 echo "configure
:3965: checking
for shmat
" >&5
3965 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
3966 echo $ac_n "(cached
) $ac_c" 1>&6
3968 cat > conftest.$ac_ext <<EOF
3969 #line 3970 "configure
"
3970 #include "confdefs.h
"
3971 /* System header to define __stub macros and hopefully few prototypes,
3972 which can conflict with char shmat(); below. */
3974 /* Override any gcc2 internal prototype to avoid an error. */
3975 /* We use char because int might match the return type of a gcc2
3976 builtin and then its argument prototype would still apply. */
3981 /* The GNU C library defines this for functions which it implements
3982 to always fail with ENOSYS. Some functions are actually named
3983 something starting with __ and the normal name is an alias. */
3984 #if defined (__stub_shmat) || defined (__stub___shmat)
3992 if { (eval echo configure:3993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3994 eval "ac_cv_func_shmat
=yes"
3996 echo "configure
: failed program was
:" >&5
3997 cat conftest.$ac_ext >&5
3999 eval "ac_cv_func_shmat
=no
"
4004 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
4005 echo "$ac_t""yes" 1>&6
4008 echo "$ac_t""no
" 1>&6
4011 if test $ac_cv_func_shmat = no; then
4012 echo $ac_n "checking
for shmat
in -lipc""...
$ac_c" 1>&6
4013 echo "configure
:4014: checking
for shmat
in -lipc" >&5
4014 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
4015 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4016 echo $ac_n "(cached
) $ac_c" 1>&6
4018 ac_save_LIBS="$LIBS"
4020 cat > conftest.$ac_ext <<EOF
4021 #line 4022 "configure
"
4022 #include "confdefs.h
"
4023 /* Override any gcc2 internal prototype to avoid an error. */
4024 /* We use char because int might match the return type of a gcc2
4025 builtin and then its argument prototype would still apply. */
4032 if { (eval echo configure:4033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4034 eval "ac_cv_lib_
$ac_lib_var=yes"
4036 echo "configure
: failed program was
:" >&5
4037 cat conftest.$ac_ext >&5
4039 eval "ac_cv_lib_
$ac_lib_var=no
"
4042 LIBS="$ac_save_LIBS"
4045 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4046 echo "$ac_t""yes" 1>&6
4047 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4049 echo "$ac_t""no
" 1>&6
4055 # Check for libraries that X11R6 Xt/Xaw programs need.
4056 ac_save_LDFLAGS="$LDFLAGS"
4057 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4058 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4059 # check for ICE first), but we must link in the order -lSM -lICE or
4060 # we get undefined symbols. So assume we have SM if we have ICE.
4061 # These have to be linked with before -lX11, unlike the other
4062 # libraries we check for below, so use a different variable.
4063 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
4064 echo $ac_n "checking
for IceConnectionNumber
in -lICE""...
$ac_c" 1>&6
4065 echo "configure
:4066: checking
for IceConnectionNumber
in -lICE" >&5
4066 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
4067 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4068 echo $ac_n "(cached
) $ac_c" 1>&6
4070 ac_save_LIBS="$LIBS"
4071 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4072 cat > conftest.$ac_ext <<EOF
4073 #line 4074 "configure
"
4074 #include "confdefs.h
"
4075 /* Override any gcc2 internal prototype to avoid an error. */
4076 /* We use char because int might match the return type of a gcc2
4077 builtin and then its argument prototype would still apply. */
4078 char IceConnectionNumber();
4081 IceConnectionNumber()
4084 if { (eval echo configure:4085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4086 eval "ac_cv_lib_
$ac_lib_var=yes"
4088 echo "configure
: failed program was
:" >&5
4089 cat conftest.$ac_ext >&5
4091 eval "ac_cv_lib_
$ac_lib_var=no
"
4094 LIBS="$ac_save_LIBS"
4097 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4098 echo "$ac_t""yes" 1>&6
4099 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4101 echo "$ac_t""no
" 1>&6
4104 LDFLAGS="$ac_save_LDFLAGS"
4109 # Check whether --enable-java-awt or --disable-java-awt was given.
4110 if test "${enable_java_awt+set}" = set; then
4111 enableval="$enable_java_awt"
4116 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
4119 # The default toolkit to use is the first one specified.
4123 for peer in $peerlibs ; do
4126 if test "$no_x" = yes; then
4127 echo "*** xlib peers requested but no X library available
" 1>&2
4131 if test -z "$TOOLKIT"; then
4132 TOOLKIT=gnu.awt.xlib.XToolkit
4137 if test "$no_x" = yes; then
4138 echo "*** xlib peers requested but no X library available
" 1>&2
4142 if test -z "$TOOLKIT"; then
4143 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
4145 test -d jniinclude || mkdir jniinclude
4154 echo "*** unrecognised argument
\"${peer}\" for --enable-java-awt" 1>&2
4161 if test "$use_xlib_awt" = yes; then
4170 if test "$use_gtk_awt" = yes; then
4178 # Check whether --enable-gtk-cairo or --disable-gtk-cairo was given.
4179 if test "${enable_gtk_cairo+set}" = set; then
4180 enableval="$enable_gtk_cairo"
4186 if test "x
${enable_gtk_cairo}" = xyes; then
4193 if test "x
${enable_gtk_cairo}" = xyes
4198 if test -z "$PKG_CONFIG"; then
4199 # Extract the first word of "pkg-config
", so it can be a program name with args.
4200 set dummy pkg-config; ac_word=$2
4201 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4202 echo "configure
:4203: checking
for $ac_word" >&5
4203 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
4204 echo $ac_n "(cached
) $ac_c" 1>&6
4206 case "$PKG_CONFIG" in
4208 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4211 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
4214 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4216 for ac_dir in $ac_dummy; do
4217 test -z "$ac_dir" && ac_dir=.
4218 if test -f $ac_dir/$ac_word; then
4219 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
4224 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
4228 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4229 if test -n "$PKG_CONFIG"; then
4230 echo "$ac_t""$PKG_CONFIG" 1>&6
4232 echo "$ac_t""no
" 1>&6
4237 if test "$PKG_CONFIG" = "no
" ; then
4238 echo "*** The pkg-config
script could not be found. Make sure it is
"
4239 echo "*** in your path
, or
set the PKG_CONFIG environment variable
"
4240 echo "*** to the full path to pkg-config.
"
4241 echo "*** Or see http
://www.freedesktop.org
/software
/pkgconfig to get pkg-config.
"
4243 PKG_CONFIG_MIN_VERSION=0.9.0
4244 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
4245 echo $ac_n "checking
for cairo
""...
$ac_c" 1>&6
4246 echo "configure
:4247: checking
for cairo
" >&5
4248 if $PKG_CONFIG --exists "cairo
" ; then
4249 echo "$ac_t""yes" 1>&6
4252 echo $ac_n "checking CAIRO_CFLAGS
""...
$ac_c" 1>&6
4253 echo "configure
:4254: checking CAIRO_CFLAGS
" >&5
4254 CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo
"`
4255 echo "$ac_t""$CAIRO_CFLAGS" 1>&6
4257 echo $ac_n "checking CAIRO_LIBS
""...
$ac_c" 1>&6
4258 echo "configure
:4259: checking CAIRO_LIBS
" >&5
4259 CAIRO_LIBS=`$PKG_CONFIG --libs "cairo
"`
4260 echo "$ac_t""$CAIRO_LIBS" 1>&6
4264 ## If we have a custom action on failure, don't print errors, but
4265 ## do set a variable so people can do so.
4266 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo
"`
4267 echo $CAIRO_PKG_ERRORS
4273 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
4274 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
4278 if test $succeeded = yes; then
4281 { 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; }
4287 if test -z "$PKG_CONFIG"; then
4288 # Extract the first word of "pkg-config
", so it can be a program name with args.
4289 set dummy pkg-config; ac_word=$2
4290 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4291 echo "configure
:4292: checking
for $ac_word" >&5
4292 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
4293 echo $ac_n "(cached
) $ac_c" 1>&6
4295 case "$PKG_CONFIG" in
4297 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4300 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
4303 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4305 for ac_dir in $ac_dummy; do
4306 test -z "$ac_dir" && ac_dir=.
4307 if test -f $ac_dir/$ac_word; then
4308 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
4313 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
4317 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4318 if test -n "$PKG_CONFIG"; then
4319 echo "$ac_t""$PKG_CONFIG" 1>&6
4321 echo "$ac_t""no
" 1>&6
4326 if test "$PKG_CONFIG" = "no
" ; then
4327 echo "*** The pkg-config
script could not be found. Make sure it is
"
4328 echo "*** in your path
, or
set the PKG_CONFIG environment variable
"
4329 echo "*** to the full path to pkg-config.
"
4330 echo "*** Or see http
://www.freedesktop.org
/software
/pkgconfig to get pkg-config.
"
4332 PKG_CONFIG_MIN_VERSION=0.9.0
4333 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
4334 echo $ac_n "checking
for pangoft2
""...
$ac_c" 1>&6
4335 echo "configure
:4336: checking
for pangoft2
" >&5
4337 if $PKG_CONFIG --exists "pangoft2
" ; then
4338 echo "$ac_t""yes" 1>&6
4341 echo $ac_n "checking PANGOFT2_CFLAGS
""...
$ac_c" 1>&6
4342 echo "configure
:4343: checking PANGOFT2_CFLAGS
" >&5
4343 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2
"`
4344 echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
4346 echo $ac_n "checking PANGOFT2_LIBS
""...
$ac_c" 1>&6
4347 echo "configure
:4348: checking PANGOFT2_LIBS
" >&5
4348 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2
"`
4349 echo "$ac_t""$PANGOFT2_LIBS" 1>&6
4353 ## If we have a custom action on failure, don't print errors, but
4354 ## do set a variable so people can do so.
4355 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2
"`
4356 echo $PANGOFT2_PKG_ERRORS
4362 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
4363 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
4367 if test $succeeded = yes; then
4370 { 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; }
4381 echo $ac_n "checking
for garbage collector to use
""...
$ac_c" 1>&6
4382 echo "configure
:4383: checking
for garbage collector to use
" >&5
4383 # Check whether --enable-java-gc or --disable-java-gc was given.
4384 if test "${enable_java_gc+set}" = set; then
4385 enableval="$enable_java_gc"
4401 echo "$ac_t""boehm
" 1>&6
4402 GCLIBS=../boehm-gc/libgcjgc_convenience.la
4403 JC1GCSPEC='-fuse-boehm-gc'
4404 GCTESTSPEC="-L`${PWDCMD-pwd}`/..
/boehm-gc
/.libs
-rpath `${PWDCMD-pwd}`/..
/boehm-gc
/.libs
"
4406 GCINCS="`cat ../boehm-gc/boehm-cflags`"
4409 cat >> confdefs.h <<\EOF
4410 #define HAVE_BOEHM_GC 1
4415 echo "$ac_t""none
" 1>&6
4420 { echo "configure
: error
: unrecognized collector
\"$GC\"" 1>&2; exit 1; }
4433 echo $ac_n "checking
for thread model used by GCC
""...
$ac_c" 1>&6
4434 echo "configure
:4435: checking
for thread model used by GCC
" >&5
4435 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
4436 echo "$ac_t""$THREADS" 1>&6
4446 cat >> confdefs.h <<\EOF
4447 #define LINUX_THREADS 1
4455 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
4456 { echo "configure
: error
: thread package
$THREADS not yet supported
" 1>&2; exit 1; }
4459 { echo "configure
: error
: $THREADS is an unknown thread package
" 1>&2; exit 1; }
4475 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
4480 # Before FreeBSD 5, it didn't have -lpthread (or any library which
4481 # merely adds pthread_* functions) but it does have a -pthread switch
4482 # which is required at link-time to select -lc_r *instead* of -lc.
4483 THREADLDFLAGS=-pthread
4484 # Don't set THREADSPEC here as might be expected since -pthread is
4485 # not processed when found within a spec file, it must come from
4486 # the command line. For now, the user must provide the -pthread
4487 # switch to link code compiled with gcj. In future, consider adding
4488 # support for weak references to pthread_* functions ala gthr.h API.
4489 THREADSPEC='%{!pthread: %eUnder this configuration, the user must provide -pthread when linking.}'
4492 # FreeBSD 5 implements a model much closer to other modern UNIX
4493 # which support threads. However, it still does not support
4495 THREADLDFLAGS=-pthread
4499 THREADCXXFLAGS=-pthread
4500 # boehm-gc needs some functions from librt, so link that too.
4501 THREADLIBS='-lpthread -lrt'
4502 THREADSPEC='-lpthread -lrt'
4505 THREADLIBS=-lpthread
4506 THREADSPEC=-lpthread
4509 THREADOBJS=posix-threads.lo
4510 THREADH=posix-threads.h
4511 # MIT pthreads doesn't seem to have the mutexattr functions.
4512 # But for now we don't check for it. We just assume you aren't
4513 # using MIT pthreads.
4514 cat >> confdefs.h <<\EOF
4515 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
4519 # If we're using the Boehm GC, then we happen to know that it
4520 # defines _REENTRANT, so we don't bother. Eww.
4521 if test "$GC" != boehm; then
4522 cat >> confdefs.h <<\EOF
4523 #define _REENTRANT 1
4527 cat >> confdefs.h <<\EOF
4528 #define _POSIX_PTHREAD_SEMANTICS 1
4534 THREADOBJS=win32-threads.lo
4535 THREADH=win32-threads.h
4539 THREADOBJS=no-threads.lo
4540 THREADH=no-threads.h
4552 if test -d sysdep; then true; else mkdir sysdep; fi
4556 # Hash synchronization is only useful with posix threads right now.
4557 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none
"; then
4558 HASH_SYNC_SPEC=-fhash-synchronization
4559 cat >> confdefs.h <<\EOF
4560 #define JV_HASH_SYNCHRONIZATION 1
4569 if test "$GCC" = yes; then
4581 # We're in the tree with gcc, and need to include some of its headers.
4582 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
4584 # Figure out where generated headers like libgcj-config.h get installed.
4585 gcc_version_trigger=${libgcj_basedir}/../gcc/version.c
4586 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
4587 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
4588 tool_include_dir='$(libdir)/gcc/$(target_alias)/'${gcc_version}/include
4592 if test "x
${with_newlib}" = "xyes
"; then
4593 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
4594 # may not work correctly, because the compiler may not be able to
4597 # We assume newlib. This lets us hard-code the functions we know
4599 cat >> confdefs.h <<\EOF
4600 #define HAVE_MEMMOVE 1
4603 cat >> confdefs.h <<\EOF
4604 #define HAVE_MEMCPY 1
4607 cat >> confdefs.h <<\EOF
4608 #define HAVE_STRERROR 1
4611 cat >> confdefs.h <<\EOF
4615 cat >> confdefs.h <<\EOF
4616 #define HAVE_GMTIME_R 1
4619 cat >> confdefs.h <<\EOF
4620 #define HAVE_LOCALTIME_R 1
4623 cat >> confdefs.h <<\EOF
4624 #define HAVE_USLEEP_DECL 1
4627 cat >> confdefs.h <<\EOF
4628 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
4631 cat >> confdefs.h <<\EOF
4632 #define HAVE_ALLOCA 1
4636 cat >> confdefs.h <<\EOF
4642 for ac_func in strerror ioctl select fstat open fsync sleep opendir
4644 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4645 echo "configure
:4646: checking
for $ac_func" >&5
4646 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4647 echo $ac_n "(cached
) $ac_c" 1>&6
4649 cat > conftest.$ac_ext <<EOF
4650 #line 4651 "configure
"
4651 #include "confdefs.h
"
4652 /* System header to define __stub macros and hopefully few prototypes,
4653 which can conflict with char $ac_func(); below. */
4655 /* Override any gcc2 internal prototype to avoid an error. */
4656 /* We use char because int might match the return type of a gcc2
4657 builtin and then its argument prototype would still apply. */
4662 /* The GNU C library defines this for functions which it implements
4663 to always fail with ENOSYS. Some functions are actually named
4664 something starting with __ and the normal name is an alias. */
4665 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4673 if { (eval echo configure:4674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4675 eval "ac_cv_func_
$ac_func=yes"
4677 echo "configure
: failed program was
:" >&5
4678 cat conftest.$ac_ext >&5
4680 eval "ac_cv_func_
$ac_func=no
"
4685 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4686 echo "$ac_t""yes" 1>&6
4687 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4688 cat >> confdefs.h <<EOF
4689 #define $ac_tr_func 1
4693 echo "$ac_t""no
" 1>&6
4697 for ac_func in gmtime_r localtime_r readdir_r getpwuid_r getcwd
4699 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4700 echo "configure
:4701: checking
for $ac_func" >&5
4701 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4702 echo $ac_n "(cached
) $ac_c" 1>&6
4704 cat > conftest.$ac_ext <<EOF
4705 #line 4706 "configure
"
4706 #include "confdefs.h
"
4707 /* System header to define __stub macros and hopefully few prototypes,
4708 which can conflict with char $ac_func(); below. */
4710 /* Override any gcc2 internal prototype to avoid an error. */
4711 /* We use char because int might match the return type of a gcc2
4712 builtin and then its argument prototype would still apply. */
4717 /* The GNU C library defines this for functions which it implements
4718 to always fail with ENOSYS. Some functions are actually named
4719 something starting with __ and the normal name is an alias. */
4720 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4728 if { (eval echo configure:4729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4730 eval "ac_cv_func_
$ac_func=yes"
4732 echo "configure
: failed program was
:" >&5
4733 cat conftest.$ac_ext >&5
4735 eval "ac_cv_func_
$ac_func=no
"
4740 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4741 echo "$ac_t""yes" 1>&6
4742 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4743 cat >> confdefs.h <<EOF
4744 #define $ac_tr_func 1
4748 echo "$ac_t""no
" 1>&6
4752 for ac_func in access stat mkdir rename rmdir unlink realpath utime chmod
4754 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4755 echo "configure
:4756: checking
for $ac_func" >&5
4756 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4757 echo $ac_n "(cached
) $ac_c" 1>&6
4759 cat > conftest.$ac_ext <<EOF
4760 #line 4761 "configure
"
4761 #include "confdefs.h
"
4762 /* System header to define __stub macros and hopefully few prototypes,
4763 which can conflict with char $ac_func(); below. */
4765 /* Override any gcc2 internal prototype to avoid an error. */
4766 /* We use char because int might match the return type of a gcc2
4767 builtin and then its argument prototype would still apply. */
4772 /* The GNU C library defines this for functions which it implements
4773 to always fail with ENOSYS. Some functions are actually named
4774 something starting with __ and the normal name is an alias. */
4775 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4783 if { (eval echo configure:4784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4785 eval "ac_cv_func_
$ac_func=yes"
4787 echo "configure
: failed program was
:" >&5
4788 cat conftest.$ac_ext >&5
4790 eval "ac_cv_func_
$ac_func=no
"
4795 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4796 echo "$ac_t""yes" 1>&6
4797 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4798 cat >> confdefs.h <<EOF
4799 #define $ac_tr_func 1
4803 echo "$ac_t""no
" 1>&6
4807 for ac_func in nl_langinfo setlocale
4809 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4810 echo "configure
:4811: checking
for $ac_func" >&5
4811 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4812 echo $ac_n "(cached
) $ac_c" 1>&6
4814 cat > conftest.$ac_ext <<EOF
4815 #line 4816 "configure
"
4816 #include "confdefs.h
"
4817 /* System header to define __stub macros and hopefully few prototypes,
4818 which can conflict with char $ac_func(); below. */
4820 /* Override any gcc2 internal prototype to avoid an error. */
4821 /* We use char because int might match the return type of a gcc2
4822 builtin and then its argument prototype would still apply. */
4827 /* The GNU C library defines this for functions which it implements
4828 to always fail with ENOSYS. Some functions are actually named
4829 something starting with __ and the normal name is an alias. */
4830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4838 if { (eval echo configure:4839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4840 eval "ac_cv_func_
$ac_func=yes"
4842 echo "configure
: failed program was
:" >&5
4843 cat conftest.$ac_ext >&5
4845 eval "ac_cv_func_
$ac_func=no
"
4850 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4851 echo "$ac_t""yes" 1>&6
4852 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4853 cat >> confdefs.h <<EOF
4854 #define $ac_tr_func 1
4858 echo "$ac_t""no
" 1>&6
4862 for ac_func in inet_aton inet_addr
4864 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4865 echo "configure
:4866: checking
for $ac_func" >&5
4866 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4867 echo $ac_n "(cached
) $ac_c" 1>&6
4869 cat > conftest.$ac_ext <<EOF
4870 #line 4871 "configure
"
4871 #include "confdefs.h
"
4872 /* System header to define __stub macros and hopefully few prototypes,
4873 which can conflict with char $ac_func(); below. */
4875 /* Override any gcc2 internal prototype to avoid an error. */
4876 /* We use char because int might match the return type of a gcc2
4877 builtin and then its argument prototype would still apply. */
4882 /* The GNU C library defines this for functions which it implements
4883 to always fail with ENOSYS. Some functions are actually named
4884 something starting with __ and the normal name is an alias. */
4885 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4893 if { (eval echo configure:4894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4895 eval "ac_cv_func_
$ac_func=yes"
4897 echo "configure
: failed program was
:" >&5
4898 cat conftest.$ac_ext >&5
4900 eval "ac_cv_func_
$ac_func=no
"
4905 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4906 echo "$ac_t""yes" 1>&6
4907 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4908 cat >> confdefs.h <<EOF
4909 #define $ac_tr_func 1
4913 echo "$ac_t""no
" 1>&6
4917 for ac_func in inet_pton uname inet_ntoa
4919 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4920 echo "configure
:4921: checking
for $ac_func" >&5
4921 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4922 echo $ac_n "(cached
) $ac_c" 1>&6
4924 cat > conftest.$ac_ext <<EOF
4925 #line 4926 "configure
"
4926 #include "confdefs.h
"
4927 /* System header to define __stub macros and hopefully few prototypes,
4928 which can conflict with char $ac_func(); below. */
4930 /* Override any gcc2 internal prototype to avoid an error. */
4931 /* We use char because int might match the return type of a gcc2
4932 builtin and then its argument prototype would still apply. */
4937 /* The GNU C library defines this for functions which it implements
4938 to always fail with ENOSYS. Some functions are actually named
4939 something starting with __ and the normal name is an alias. */
4940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4948 if { (eval echo configure:4949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4950 eval "ac_cv_func_
$ac_func=yes"
4952 echo "configure
: failed program was
:" >&5
4953 cat conftest.$ac_ext >&5
4955 eval "ac_cv_func_
$ac_func=no
"
4960 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4961 echo "$ac_t""yes" 1>&6
4962 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4963 cat >> confdefs.h <<EOF
4964 #define $ac_tr_func 1
4968 echo "$ac_t""no
" 1>&6
4972 for ac_func in fork execvp pipe sigaction ftruncate
4974 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4975 echo "configure
:4976: checking
for $ac_func" >&5
4976 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4977 echo $ac_n "(cached
) $ac_c" 1>&6
4979 cat > conftest.$ac_ext <<EOF
4980 #line 4981 "configure
"
4981 #include "confdefs.h
"
4982 /* System header to define __stub macros and hopefully few prototypes,
4983 which can conflict with char $ac_func(); below. */
4985 /* Override any gcc2 internal prototype to avoid an error. */
4986 /* We use char because int might match the return type of a gcc2
4987 builtin and then its argument prototype would still apply. */
4992 /* The GNU C library defines this for functions which it implements
4993 to always fail with ENOSYS. Some functions are actually named
4994 something starting with __ and the normal name is an alias. */
4995 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5003 if { (eval echo configure:5004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5005 eval "ac_cv_func_
$ac_func=yes"
5007 echo "configure
: failed program was
:" >&5
5008 cat conftest.$ac_ext >&5
5010 eval "ac_cv_func_
$ac_func=no
"
5015 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5016 echo "$ac_t""yes" 1>&6
5017 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5018 cat >> confdefs.h <<EOF
5019 #define $ac_tr_func 1
5023 echo "$ac_t""no
" 1>&6
5027 for ac_hdr in execinfo.h unistd.h dlfcn.h
5029 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5030 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
5031 echo "configure
:5032: checking
for $ac_hdr" >&5
5032 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5033 echo $ac_n "(cached
) $ac_c" 1>&6
5035 cat > conftest.$ac_ext <<EOF
5036 #line 5037 "configure
"
5037 #include "confdefs.h
"
5040 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
5041 { (eval echo configure:5042: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5042 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
5043 if test -z "$ac_err"; then
5045 eval "ac_cv_header_
$ac_safe=yes"
5048 echo "configure
: failed program was
:" >&5
5049 cat conftest.$ac_ext >&5
5051 eval "ac_cv_header_
$ac_safe=no
"
5055 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5056 echo "$ac_t""yes" 1>&6
5057 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5058 cat >> confdefs.h <<EOF
5059 #define $ac_tr_hdr 1
5063 echo "$ac_t""no
" 1>&6
5067 echo $ac_n "checking
for backtrace
""...
$ac_c" 1>&6
5068 echo "configure
:5069: checking
for backtrace
" >&5
5069 if eval "test \"`echo '$''{'ac_cv_func_backtrace'+set}'`\" = set"; then
5070 echo $ac_n "(cached
) $ac_c" 1>&6
5072 cat > conftest.$ac_ext <<EOF
5073 #line 5074 "configure
"
5074 #include "confdefs.h
"
5075 /* System header to define __stub macros and hopefully few prototypes,
5076 which can conflict with char backtrace(); below. */
5078 /* Override any gcc2 internal prototype to avoid an error. */
5079 /* We use char because int might match the return type of a gcc2
5080 builtin and then its argument prototype would still apply. */
5085 /* The GNU C library defines this for functions which it implements
5086 to always fail with ENOSYS. Some functions are actually named
5087 something starting with __ and the normal name is an alias. */
5088 #if defined (__stub_backtrace) || defined (__stub___backtrace)
5096 if { (eval echo configure:5097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5098 eval "ac_cv_func_backtrace
=yes"
5100 echo "configure
: failed program was
:" >&5
5101 cat conftest.$ac_ext >&5
5103 eval "ac_cv_func_backtrace
=no
"
5108 if eval "test \"`echo '$ac_cv_func_'backtrace`\" = yes"; then
5109 echo "$ac_t""yes" 1>&6
5113 # Has broken backtrace()
5116 # Has broken backtrace(), but we supply our own.
5117 if test -d sysdep; then true; else mkdir -p sysdep; fi
5118 EXTRA_CC_FILES="${EXTRA_CC_FILES} sysdep
/dwarf2-backtrace.cc
"
5119 cat >> confdefs.h <<\EOF
5120 #define HAVE_BACKTRACE 1
5125 cat >> confdefs.h <<\EOF
5126 #define HAVE_BACKTRACE 1
5133 echo "$ac_t""no
" 1>&6
5137 # Has backtrace() defined in libgcj itself
5138 cat >> confdefs.h <<\EOF
5139 #define HAVE_BACKTRACE 1
5148 echo $ac_n "checking
for dladdr
in -ldl""...
$ac_c" 1>&6
5149 echo "configure
:5150: checking
for dladdr
in -ldl" >&5
5150 ac_lib_var=`echo dl'_'dladdr | sed 'y%./+-%__p_%'`
5151 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5152 echo $ac_n "(cached
) $ac_c" 1>&6
5154 ac_save_LIBS="$LIBS"
5156 cat > conftest.$ac_ext <<EOF
5157 #line 5158 "configure
"
5158 #include "confdefs.h
"
5159 /* Override any gcc2 internal prototype to avoid an error. */
5160 /* We use char because int might match the return type of a gcc2
5161 builtin and then its argument prototype would still apply. */
5168 if { (eval echo configure:5169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5170 eval "ac_cv_lib_
$ac_lib_var=yes"
5172 echo "configure
: failed program was
:" >&5
5173 cat conftest.$ac_ext >&5
5175 eval "ac_cv_lib_
$ac_lib_var=no
"
5178 LIBS="$ac_save_LIBS"
5181 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5182 echo "$ac_t""yes" 1>&6
5184 if test "x
${disable_dladdr}" = "xyes
"; then
5188 cat >> confdefs.h <<\EOF
5189 #define HAVE_DLADDR 1
5195 echo "$ac_t""no
" 1>&6
5198 if test x"$build" = x"$host"; then
5199 for ac_file in /proc/self/exe
5202 ac_safe=`echo "$ac_file" | sed 'y%./+-%__p_%'`
5203 echo $ac_n "checking
for $ac_file""...
$ac_c" 1>&6
5204 echo "configure
:5205: checking
for $ac_file" >&5
5205 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
5206 echo $ac_n "(cached
) $ac_c" 1>&6
5208 if test "$cross_compiling" = yes; then
5209 { echo "configure
: error
: Cannot check
for file existence when cross compiling
" 1>&2; exit 1; }
5211 if test -r $ac_file; then
5212 eval "ac_cv_file_
$ac_safe=yes"
5214 eval "ac_cv_file_
$ac_safe=no
"
5218 if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
5219 echo "$ac_t""yes" 1>&6
5220 ac_tr_file=HAVE_`echo $ac_file | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5221 cat >> confdefs.h <<EOF
5222 #define $ac_tr_file 1
5225 cat >> confdefs.h <<\EOF
5226 #define HAVE_PROC_SELF_EXE 1
5230 echo "$ac_t""no
" 1>&6
5238 cat >> confdefs.h <<\EOF
5239 #define HAVE_PROC_SELF_EXE 1
5248 am_cv_lib_iconv_ldpath=
5249 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5250 if test "${with_libiconv_prefix+set}" = set; then
5251 withval="$with_libiconv_prefix"
5253 for dir in `echo "$withval" | tr : ' '`; do
5254 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include
"; fi
5255 if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib
"; fi
5261 echo $ac_n "checking
for iconv""...
$ac_c" 1>&6
5262 echo "configure
:5263: checking
for iconv" >&5
5263 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
5264 echo $ac_n "(cached
) $ac_c" 1>&6
5267 am_cv_func_iconv="no
, consider installing GNU libiconv
"
5269 cat > conftest.$ac_ext <<EOF
5270 #line 5271 "configure
"
5271 #include "confdefs.h
"
5275 iconv_t cd = iconv_open("","");
5276 iconv(cd,NULL,NULL,NULL,NULL);
5280 if { (eval echo configure:5281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5282 am_cv_func_iconv=yes
5284 echo "configure
: failed program was
:" >&5
5285 cat conftest.$ac_ext >&5
5288 if test "$am_cv_func_iconv" != yes; then
5289 am_save_LIBS="$LIBS"
5290 LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
5291 cat > conftest.$ac_ext <<EOF
5292 #line 5293 "configure
"
5293 #include "confdefs.h
"
5297 iconv_t cd = iconv_open("","");
5298 iconv(cd,NULL,NULL,NULL,NULL);
5302 if { (eval echo configure:5303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5305 am_cv_func_iconv=yes
5307 echo "configure
: failed program was
:" >&5
5308 cat conftest.$ac_ext >&5
5311 LIBS="$am_save_LIBS"
5316 echo "$ac_t""$am_cv_func_iconv" 1>&6
5317 if test "$am_cv_func_iconv" = yes; then
5318 cat >> confdefs.h <<\EOF
5319 #define HAVE_ICONV 1
5322 echo $ac_n "checking
for iconv declaration
""...
$ac_c" 1>&6
5323 echo "configure
:5324: checking
for iconv declaration
" >&5
5324 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
5325 echo $ac_n "(cached
) $ac_c" 1>&6
5328 cat > conftest.$ac_ext <<EOF
5329 #line 5330 "configure
"
5330 #include "confdefs.h
"
5338 #if defined(__STDC__) || defined(__cplusplus)
5339 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
5348 if { (eval echo configure:5349: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5350 am_cv_proto_iconv_arg1=""
5352 echo "configure
: failed program was
:" >&5
5353 cat conftest.$ac_ext >&5
5355 am_cv_proto_iconv_arg1="const
"
5358 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
);"
5361 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
5362 echo "$ac_t""$
{ac_t
:-
5363 }$am_cv_proto_iconv" 1>&6
5364 cat >> confdefs.h <<EOF
5365 #define ICONV_CONST $am_cv_proto_iconv_arg1
5370 if test "$am_cv_lib_iconv" = yes; then
5371 LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
5375 for ac_hdr in locale.h
5377 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5378 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
5379 echo "configure
:5380: checking
for $ac_hdr" >&5
5380 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5381 echo $ac_n "(cached
) $ac_c" 1>&6
5383 cat > conftest.$ac_ext <<EOF
5384 #line 5385 "configure
"
5385 #include "confdefs.h
"
5388 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
5389 { (eval echo configure:5390: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5390 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
5391 if test -z "$ac_err"; then
5393 eval "ac_cv_header_
$ac_safe=yes"
5396 echo "configure
: failed program was
:" >&5
5397 cat conftest.$ac_ext >&5
5399 eval "ac_cv_header_
$ac_safe=no
"
5403 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5404 echo "$ac_t""yes" 1>&6
5405 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5406 cat >> confdefs.h <<EOF
5407 #define $ac_tr_hdr 1
5411 echo "$ac_t""no
" 1>&6
5415 if test $ac_cv_header_locale_h = yes; then
5416 echo $ac_n "checking
for LC_MESSAGES
""...
$ac_c" 1>&6
5417 echo "configure
:5418: checking
for LC_MESSAGES
" >&5
5418 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
5419 echo $ac_n "(cached
) $ac_c" 1>&6
5421 cat > conftest.$ac_ext <<EOF
5422 #line 5423 "configure
"
5423 #include "confdefs.h
"
5429 if { (eval echo configure:5430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5431 am_cv_val_LC_MESSAGES=yes
5433 echo "configure
: failed program was
:" >&5
5434 cat conftest.$ac_ext >&5
5436 am_cv_val_LC_MESSAGES=no
5441 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
5442 if test $am_cv_val_LC_MESSAGES = yes; then
5443 cat >> confdefs.h <<\EOF
5444 #define HAVE_LC_MESSAGES 1
5449 echo $ac_n "checking whether struct tm is
in sys
/time.h or
time.h
""...
$ac_c" 1>&6
5450 echo "configure
:5451: checking whether struct tm is
in sys
/time.h or
time.h
" >&5
5451 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
5452 echo $ac_n "(cached
) $ac_c" 1>&6
5454 cat > conftest.$ac_ext <<EOF
5455 #line 5456 "configure
"
5456 #include "confdefs.h
"
5457 #include <sys/types.h>
5460 struct tm *tp; tp->tm_sec;
5463 if { (eval echo configure:5464: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5465 ac_cv_struct_tm=time.h
5467 echo "configure
: failed program was
:" >&5
5468 cat conftest.$ac_ext >&5
5470 ac_cv_struct_tm=sys/time.h
5475 echo "$ac_t""$ac_cv_struct_tm" 1>&6
5476 if test $ac_cv_struct_tm = sys/time.h; then
5477 cat >> confdefs.h <<\EOF
5478 #define TM_IN_SYS_TIME 1
5483 echo $ac_n "checking
for tm_zone
in struct tm
""...
$ac_c" 1>&6
5484 echo "configure
:5485: checking
for tm_zone
in struct tm
" >&5
5485 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
5486 echo $ac_n "(cached
) $ac_c" 1>&6
5488 cat > conftest.$ac_ext <<EOF
5489 #line 5490 "configure
"
5490 #include "confdefs.h
"
5491 #include <sys/types.h>
5492 #include <$ac_cv_struct_tm>
5494 struct tm tm; tm.tm_zone;
5497 if { (eval echo configure:5498: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5499 ac_cv_struct_tm_zone=yes
5501 echo "configure
: failed program was
:" >&5
5502 cat conftest.$ac_ext >&5
5504 ac_cv_struct_tm_zone=no
5509 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
5510 if test "$ac_cv_struct_tm_zone" = yes; then
5511 cat >> confdefs.h <<\EOF
5512 #define HAVE_TM_ZONE 1
5516 echo $ac_n "checking
for tzname
""...
$ac_c" 1>&6
5517 echo "configure
:5518: checking
for tzname
" >&5
5518 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
5519 echo $ac_n "(cached
) $ac_c" 1>&6
5521 cat > conftest.$ac_ext <<EOF
5522 #line 5523 "configure
"
5523 #include "confdefs.h
"
5525 #ifndef tzname /* For SGI. */
5526 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5532 if { (eval echo configure:5533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5534 ac_cv_var_tzname=yes
5536 echo "configure
: failed program was
:" >&5
5537 cat conftest.$ac_ext >&5
5544 echo "$ac_t""$ac_cv_var_tzname" 1>&6
5545 if test $ac_cv_var_tzname = yes; then
5546 cat >> confdefs.h <<\EOF
5547 #define HAVE_TZNAME 1
5554 for ac_func in gethostbyname_r
5556 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
5557 echo "configure
:5558: checking
for $ac_func" >&5
5558 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5559 echo $ac_n "(cached
) $ac_c" 1>&6
5561 cat > conftest.$ac_ext <<EOF
5562 #line 5563 "configure
"
5563 #include "confdefs.h
"
5564 /* System header to define __stub macros and hopefully few prototypes,
5565 which can conflict with char $ac_func(); below. */
5567 /* Override any gcc2 internal prototype to avoid an error. */
5568 /* We use char because int might match the return type of a gcc2
5569 builtin and then its argument prototype would still apply. */
5574 /* The GNU C library defines this for functions which it implements
5575 to always fail with ENOSYS. Some functions are actually named
5576 something starting with __ and the normal name is an alias. */
5577 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5585 if { (eval echo configure:5586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5587 eval "ac_cv_func_
$ac_func=yes"
5589 echo "configure
: failed program was
:" >&5
5590 cat conftest.$ac_ext >&5
5592 eval "ac_cv_func_
$ac_func=no
"
5597 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5598 echo "$ac_t""yes" 1>&6
5599 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5600 cat >> confdefs.h <<EOF
5601 #define $ac_tr_func 1
5604 cat >> confdefs.h <<\EOF
5605 #define HAVE_GETHOSTBYNAME_R 1
5608 # There are two different kinds of gethostbyname_r.
5609 # We look for the one that returns `int'.
5610 # Hopefully this check is robust enough.
5611 cat > conftest.$ac_ext <<EOF
5612 #line 5613 "configure
"
5613 #include "confdefs.h
"
5616 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
5617 egrep "int.
*gethostbyname_r
" >/dev/null 2>&1; then
5620 cat >> confdefs.h <<\EOF
5621 #define GETHOSTBYNAME_R_RETURNS_INT 1
5629 *" -D_REENTRANT "*) ;;
5631 echo $ac_n "checking whether gethostbyname_r declaration requires
-D_REENTRANT""...
$ac_c" 1>&6
5632 echo "configure
:5633: checking whether gethostbyname_r declaration requires
-D_REENTRANT" >&5
5633 if eval "test \"`echo '$''{'libjava_cv_gethostbyname_r_needs_reentrant'+set}'`\" = set"; then
5634 echo $ac_n "(cached
) $ac_c" 1>&6
5638 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5639 ac_cpp='$CXXCPP $CPPFLAGS'
5640 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5641 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5642 cross_compiling=$ac_cv_prog_cxx_cross
5644 cat > conftest.$ac_ext <<EOF
5645 #line 5646 "configure
"
5646 #include "confdefs.h
"
5649 gethostbyname_r("", 0, 0);
5652 if { (eval echo configure:5653: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5654 libjava_cv_gethostbyname_r_needs_reentrant=no
5656 echo "configure
: failed program was
:" >&5
5657 cat conftest.$ac_ext >&5
5659 CPPFLAGS_SAVE="$CPPFLAGS"
5660 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
5661 cat > conftest.$ac_ext <<EOF
5662 #line 5663 "configure
"
5663 #include "confdefs.h
"
5666 gethostbyname_r("", 0, 0);
5669 if { (eval echo configure:5670: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5671 libjava_cv_gethostbyname_r_needs_reentrant=yes
5673 echo "configure
: failed program was
:" >&5
5674 cat conftest.$ac_ext >&5
5676 libjava_cv_gethostbyname_r_needs_reentrant=fail
5679 CPPFLAGS="$CPPFLAGS_SAVE"
5684 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5685 ac_cpp='$CPP $CPPFLAGS'
5686 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5687 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5688 cross_compiling=$ac_cv_prog_cc_cross
5693 echo "$ac_t""$libjava_cv_gethostbyname_r_needs_reentrant" 1>&6
5694 if test "x
$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
5695 cat >> confdefs.h <<\EOF
5696 #define _REENTRANT 1
5703 echo $ac_n "checking
for struct hostent_data
""...
$ac_c" 1>&6
5704 echo "configure
:5705: checking
for struct hostent_data
" >&5
5705 if eval "test \"`echo '$''{'libjava_cv_struct_hostent_data'+set}'`\" = set"; then
5706 echo $ac_n "(cached
) $ac_c" 1>&6
5708 cat > conftest.$ac_ext <<EOF
5709 #line 5710 "configure
"
5710 #include "confdefs.h
"
5712 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
5713 # define _REENTRANT 1
5717 struct hostent_data data;
5720 if { (eval echo configure:5721: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5722 libjava_cv_struct_hostent_data=yes
5724 echo "configure
: failed program was
:" >&5
5725 cat conftest.$ac_ext >&5
5727 libjava_cv_struct_hostent_data=no
5732 echo "$ac_t""$libjava_cv_struct_hostent_data" 1>&6
5733 if test "x
$libjava_cv_struct_hostent_data" = xyes; then
5734 cat >> confdefs.h <<\EOF
5735 #define HAVE_STRUCT_HOSTENT_DATA 1
5741 echo "$ac_t""no
" 1>&6
5746 # FIXME: libjava source code expects to find a prototype for
5747 # gethostbyaddr_r in netdb.h. The outer check ensures that
5748 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
5749 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
5750 # linkage check is enough, yet C++ code requires proper prototypes.)
5751 cat > conftest.$ac_ext <<EOF
5752 #line 5753 "configure
"
5753 #include "confdefs.h
"
5756 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
5757 egrep "gethostbyaddr_r
" >/dev/null 2>&1; then
5760 for ac_func in gethostbyaddr_r
5762 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
5763 echo "configure
:5764: checking
for $ac_func" >&5
5764 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5765 echo $ac_n "(cached
) $ac_c" 1>&6
5767 cat > conftest.$ac_ext <<EOF
5768 #line 5769 "configure
"
5769 #include "confdefs.h
"
5770 /* System header to define __stub macros and hopefully few prototypes,
5771 which can conflict with char $ac_func(); below. */
5773 /* Override any gcc2 internal prototype to avoid an error. */
5774 /* We use char because int might match the return type of a gcc2
5775 builtin and then its argument prototype would still apply. */
5780 /* The GNU C library defines this for functions which it implements
5781 to always fail with ENOSYS. Some functions are actually named
5782 something starting with __ and the normal name is an alias. */
5783 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5791 if { (eval echo configure:5792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5793 eval "ac_cv_func_
$ac_func=yes"
5795 echo "configure
: failed program was
:" >&5
5796 cat conftest.$ac_ext >&5
5798 eval "ac_cv_func_
$ac_func=no
"
5803 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5804 echo "$ac_t""yes" 1>&6
5805 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5806 cat >> confdefs.h <<EOF
5807 #define $ac_tr_func 1
5810 cat >> confdefs.h <<\EOF
5811 #define HAVE_GETHOSTBYADDR_R 1
5814 # There are two different kinds of gethostbyaddr_r.
5815 # We look for the one that returns `int'.
5816 # Hopefully this check is robust enough.
5817 cat > conftest.$ac_ext <<EOF
5818 #line 5819 "configure
"
5819 #include "confdefs.h
"
5822 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
5823 egrep "int.
*gethostbyaddr_r
" >/dev/null 2>&1; then
5826 cat >> confdefs.h <<\EOF
5827 #define GETHOSTBYADDR_R_RETURNS_INT 1
5834 echo "$ac_t""no
" 1>&6
5842 for ac_func in gethostname
5844 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
5845 echo "configure
:5846: checking
for $ac_func" >&5
5846 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5847 echo $ac_n "(cached
) $ac_c" 1>&6
5849 cat > conftest.$ac_ext <<EOF
5850 #line 5851 "configure
"
5851 #include "confdefs.h
"
5852 /* System header to define __stub macros and hopefully few prototypes,
5853 which can conflict with char $ac_func(); below. */
5855 /* Override any gcc2 internal prototype to avoid an error. */
5856 /* We use char because int might match the return type of a gcc2
5857 builtin and then its argument prototype would still apply. */
5862 /* The GNU C library defines this for functions which it implements
5863 to always fail with ENOSYS. Some functions are actually named
5864 something starting with __ and the normal name is an alias. */
5865 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5873 if { (eval echo configure:5874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5875 eval "ac_cv_func_
$ac_func=yes"
5877 echo "configure
: failed program was
:" >&5
5878 cat conftest.$ac_ext >&5
5880 eval "ac_cv_func_
$ac_func=no
"
5885 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5886 echo "$ac_t""yes" 1>&6
5887 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5888 cat >> confdefs.h <<EOF
5889 #define $ac_tr_func 1
5892 cat >> confdefs.h <<\EOF
5893 #define HAVE_GETHOSTNAME 1
5896 cat > conftest.$ac_ext <<EOF
5897 #line 5898 "configure
"
5898 #include "confdefs.h
"
5901 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
5902 egrep "gethostname
" >/dev/null 2>&1; then
5905 cat >> confdefs.h <<\EOF
5906 #define HAVE_GETHOSTNAME_DECL 1
5913 echo "$ac_t""no
" 1>&6
5918 for ac_func in usleep
5920 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
5921 echo "configure
:5922: checking
for $ac_func" >&5
5922 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5923 echo $ac_n "(cached
) $ac_c" 1>&6
5925 cat > conftest.$ac_ext <<EOF
5926 #line 5927 "configure
"
5927 #include "confdefs.h
"
5928 /* System header to define __stub macros and hopefully few prototypes,
5929 which can conflict with char $ac_func(); below. */
5931 /* Override any gcc2 internal prototype to avoid an error. */
5932 /* We use char because int might match the return type of a gcc2
5933 builtin and then its argument prototype would still apply. */
5938 /* The GNU C library defines this for functions which it implements
5939 to always fail with ENOSYS. Some functions are actually named
5940 something starting with __ and the normal name is an alias. */
5941 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5949 if { (eval echo configure:5950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5951 eval "ac_cv_func_
$ac_func=yes"
5953 echo "configure
: failed program was
:" >&5
5954 cat conftest.$ac_ext >&5
5956 eval "ac_cv_func_
$ac_func=no
"
5961 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5962 echo "$ac_t""yes" 1>&6
5963 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5964 cat >> confdefs.h <<EOF
5965 #define $ac_tr_func 1
5968 cat > conftest.$ac_ext <<EOF
5969 #line 5970 "configure
"
5970 #include "confdefs.h
"
5973 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
5974 egrep "usleep" >/dev/null 2>&1; then
5977 cat >> confdefs.h <<\EOF
5978 #define HAVE_USLEEP_DECL 1
5985 echo "$ac_t""no
" 1>&6
5990 # Look for these functions in the thread library, but only bother
5991 # if using POSIX threads.
5992 if test "$THREADS" = posix; then
5994 LIBS="$LIBS $THREADLIBS"
5995 # Some POSIX thread systems don't have pthread_mutexattr_settype.
5997 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
5999 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
6000 echo "configure
:6001: checking
for $ac_func" >&5
6001 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6002 echo $ac_n "(cached
) $ac_c" 1>&6
6004 cat > conftest.$ac_ext <<EOF
6005 #line 6006 "configure
"
6006 #include "confdefs.h
"
6007 /* System header to define __stub macros and hopefully few prototypes,
6008 which can conflict with char $ac_func(); below. */
6010 /* Override any gcc2 internal prototype to avoid an error. */
6011 /* We use char because int might match the return type of a gcc2
6012 builtin and then its argument prototype would still apply. */
6017 /* The GNU C library defines this for functions which it implements
6018 to always fail with ENOSYS. Some functions are actually named
6019 something starting with __ and the normal name is an alias. */
6020 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6028 if { (eval echo configure:6029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6030 eval "ac_cv_func_
$ac_func=yes"
6032 echo "configure
: failed program was
:" >&5
6033 cat conftest.$ac_ext >&5
6035 eval "ac_cv_func_
$ac_func=no
"
6040 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6041 echo "$ac_t""yes" 1>&6
6042 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6043 cat >> confdefs.h <<EOF
6044 #define $ac_tr_func 1
6048 echo "$ac_t""no
" 1>&6
6053 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
6054 # Solaris 7 the name librt is preferred.
6055 for ac_func in sched_yield
6057 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
6058 echo "configure
:6059: checking
for $ac_func" >&5
6059 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6060 echo $ac_n "(cached
) $ac_c" 1>&6
6062 cat > conftest.$ac_ext <<EOF
6063 #line 6064 "configure
"
6064 #include "confdefs.h
"
6065 /* System header to define __stub macros and hopefully few prototypes,
6066 which can conflict with char $ac_func(); below. */
6068 /* Override any gcc2 internal prototype to avoid an error. */
6069 /* We use char because int might match the return type of a gcc2
6070 builtin and then its argument prototype would still apply. */
6075 /* The GNU C library defines this for functions which it implements
6076 to always fail with ENOSYS. Some functions are actually named
6077 something starting with __ and the normal name is an alias. */
6078 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6086 if { (eval echo configure:6087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6088 eval "ac_cv_func_
$ac_func=yes"
6090 echo "configure
: failed program was
:" >&5
6091 cat conftest.$ac_ext >&5
6093 eval "ac_cv_func_
$ac_func=no
"
6098 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6099 echo "$ac_t""yes" 1>&6
6100 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6101 cat >> confdefs.h <<EOF
6102 #define $ac_tr_func 1
6106 echo "$ac_t""no
" 1>&6
6107 echo $ac_n "checking
for sched_yield
in -lrt""...
$ac_c" 1>&6
6108 echo "configure
:6109: checking
for sched_yield
in -lrt" >&5
6109 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
6110 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6111 echo $ac_n "(cached
) $ac_c" 1>&6
6113 ac_save_LIBS="$LIBS"
6115 cat > conftest.$ac_ext <<EOF
6116 #line 6117 "configure
"
6117 #include "confdefs.h
"
6118 /* Override any gcc2 internal prototype to avoid an error. */
6119 /* We use char because int might match the return type of a gcc2
6120 builtin and then its argument prototype would still apply. */
6127 if { (eval echo configure:6128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6129 eval "ac_cv_lib_
$ac_lib_var=yes"
6131 echo "configure
: failed program was
:" >&5
6132 cat conftest.$ac_ext >&5
6134 eval "ac_cv_lib_
$ac_lib_var=no
"
6137 LIBS="$ac_save_LIBS"
6140 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6141 echo "$ac_t""yes" 1>&6
6143 cat >> confdefs.h <<\EOF
6144 #define HAVE_SCHED_YIELD 1
6147 THREADLIBS="$THREADLIBS -lrt"
6148 THREADSPEC="$THREADSPEC -lrt"
6150 echo "$ac_t""no
" 1>&6
6152 echo $ac_n "checking
for sched_yield
in -lposix4""...
$ac_c" 1>&6
6153 echo "configure
:6154: checking
for sched_yield
in -lposix4" >&5
6154 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
6155 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6156 echo $ac_n "(cached
) $ac_c" 1>&6
6158 ac_save_LIBS="$LIBS"
6159 LIBS="-lposix4 $LIBS"
6160 cat > conftest.$ac_ext <<EOF
6161 #line 6162 "configure
"
6162 #include "confdefs.h
"
6163 /* Override any gcc2 internal prototype to avoid an error. */
6164 /* We use char because int might match the return type of a gcc2
6165 builtin and then its argument prototype would still apply. */
6172 if { (eval echo configure:6173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6174 eval "ac_cv_lib_
$ac_lib_var=yes"
6176 echo "configure
: failed program was
:" >&5
6177 cat conftest.$ac_ext >&5
6179 eval "ac_cv_lib_
$ac_lib_var=no
"
6182 LIBS="$ac_save_LIBS"
6185 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6186 echo "$ac_t""yes" 1>&6
6188 cat >> confdefs.h <<\EOF
6189 #define HAVE_SCHED_YIELD 1
6192 THREADLIBS="$THREADLIBS -lposix4"
6193 THREADSPEC="$THREADSPEC -lposix4"
6195 echo "$ac_t""no
" 1>&6
6205 # We can save a little space at runtime if the mutex has m_count
6206 # or __m_count. This is a nice hack for Linux.
6207 cat > conftest.$ac_ext <<EOF
6208 #line 6209 "configure
"
6209 #include "confdefs.h
"
6210 #include <pthread.h>
6213 extern pthread_mutex_t *mutex; int q = mutex->m_count;
6217 if { (eval echo configure:6218: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6219 cat >> confdefs.h <<\EOF
6220 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
6224 echo "configure
: failed program was
:" >&5
6225 cat conftest.$ac_ext >&5
6228 cat > conftest.$ac_ext <<EOF
6229 #line 6230 "configure
"
6230 #include "confdefs.h
"
6231 #include <pthread.h>
6234 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
6238 if { (eval echo configure:6239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6240 cat >> confdefs.h <<\EOF
6241 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
6245 echo "configure
: failed program was
:" >&5
6246 cat conftest.$ac_ext >&5
6253 # We require a way to get the time.
6255 for ac_func in gettimeofday time ftime
6257 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
6258 echo "configure
:6259: checking
for $ac_func" >&5
6259 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6260 echo $ac_n "(cached
) $ac_c" 1>&6
6262 cat > conftest.$ac_ext <<EOF
6263 #line 6264 "configure
"
6264 #include "confdefs.h
"
6265 /* System header to define __stub macros and hopefully few prototypes,
6266 which can conflict with char $ac_func(); below. */
6268 /* Override any gcc2 internal prototype to avoid an error. */
6269 /* We use char because int might match the return type of a gcc2
6270 builtin and then its argument prototype would still apply. */
6275 /* The GNU C library defines this for functions which it implements
6276 to always fail with ENOSYS. Some functions are actually named
6277 something starting with __ and the normal name is an alias. */
6278 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6286 if { (eval echo configure:6287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6288 eval "ac_cv_func_
$ac_func=yes"
6290 echo "configure
: failed program was
:" >&5
6291 cat conftest.$ac_ext >&5
6293 eval "ac_cv_func_
$ac_func=no
"
6298 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6299 echo "$ac_t""yes" 1>&6
6300 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6301 cat >> confdefs.h <<EOF
6302 #define $ac_tr_func 1
6306 echo "$ac_t""no
" 1>&6
6310 if test "$time_found" = no; then
6311 { echo "configure
: error
: no
function found to get the
time" 1>&2; exit 1; }
6314 for ac_func in memmove
6316 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
6317 echo "configure
:6318: checking
for $ac_func" >&5
6318 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6319 echo $ac_n "(cached
) $ac_c" 1>&6
6321 cat > conftest.$ac_ext <<EOF
6322 #line 6323 "configure
"
6323 #include "confdefs.h
"
6324 /* System header to define __stub macros and hopefully few prototypes,
6325 which can conflict with char $ac_func(); below. */
6327 /* Override any gcc2 internal prototype to avoid an error. */
6328 /* We use char because int might match the return type of a gcc2
6329 builtin and then its argument prototype would still apply. */
6334 /* The GNU C library defines this for functions which it implements
6335 to always fail with ENOSYS. Some functions are actually named
6336 something starting with __ and the normal name is an alias. */
6337 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6345 if { (eval echo configure:6346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6347 eval "ac_cv_func_
$ac_func=yes"
6349 echo "configure
: failed program was
:" >&5
6350 cat conftest.$ac_ext >&5
6352 eval "ac_cv_func_
$ac_func=no
"
6357 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6358 echo "$ac_t""yes" 1>&6
6359 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6360 cat >> confdefs.h <<EOF
6361 #define $ac_tr_func 1
6365 echo "$ac_t""no
" 1>&6
6370 # We require memcpy.
6372 for ac_func in memcpy
6374 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
6375 echo "configure
:6376: checking
for $ac_func" >&5
6376 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6377 echo $ac_n "(cached
) $ac_c" 1>&6
6379 cat > conftest.$ac_ext <<EOF
6380 #line 6381 "configure
"
6381 #include "confdefs.h
"
6382 /* System header to define __stub macros and hopefully few prototypes,
6383 which can conflict with char $ac_func(); below. */
6385 /* Override any gcc2 internal prototype to avoid an error. */
6386 /* We use char because int might match the return type of a gcc2
6387 builtin and then its argument prototype would still apply. */
6392 /* The GNU C library defines this for functions which it implements
6393 to always fail with ENOSYS. Some functions are actually named
6394 something starting with __ and the normal name is an alias. */
6395 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6403 if { (eval echo configure:6404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6405 eval "ac_cv_func_
$ac_func=yes"
6407 echo "configure
: failed program was
:" >&5
6408 cat conftest.$ac_ext >&5
6410 eval "ac_cv_func_
$ac_func=no
"
6415 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6416 echo "$ac_t""yes" 1>&6
6417 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6418 cat >> confdefs.h <<EOF
6419 #define $ac_tr_func 1
6423 echo "$ac_t""no
" 1>&6
6427 if test "$memcpy_found" = no; then
6428 { echo "configure
: error
: memcpy is required
" 1>&2; exit 1; }
6431 echo $ac_n "checking
for dlopen
in -ldl""...
$ac_c" 1>&6
6432 echo "configure
:6433: checking
for dlopen
in -ldl" >&5
6433 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
6434 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6435 echo $ac_n "(cached
) $ac_c" 1>&6
6437 ac_save_LIBS="$LIBS"
6439 cat > conftest.$ac_ext <<EOF
6440 #line 6441 "configure
"
6441 #include "confdefs.h
"
6442 /* Override any gcc2 internal prototype to avoid an error. */
6443 /* We use char because int might match the return type of a gcc2
6444 builtin and then its argument prototype would still apply. */
6451 if { (eval echo configure:6452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6453 eval "ac_cv_lib_
$ac_lib_var=yes"
6455 echo "configure
: failed program was
:" >&5
6456 cat conftest.$ac_ext >&5
6458 eval "ac_cv_lib_
$ac_lib_var=no
"
6461 LIBS="$ac_save_LIBS"
6464 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6465 echo "$ac_t""yes" 1>&6
6467 cat >> confdefs.h <<\EOF
6468 #define HAVE_DLOPEN 1
6472 echo "$ac_t""no
" 1>&6
6476 # Some library-finding code we stole from Tcl.
6477 #--------------------------------------------------------------------
6478 # Check for the existence of the -lsocket and -lnsl libraries.
6479 # The order here is important, so that they end up in the right
6480 # order in the command line generated by make. Here are some
6481 # special considerations:
6482 # 1. Use "connect
" and "accept
" to check for -lsocket, and
6483 # "gethostbyname
" to check for -lnsl.
6484 # 2. Use each function name only once: can't redo a check because
6485 # autoconf caches the results of the last check and won't redo it.
6486 # 3. Use -lnsl and -lsocket only if they supply procedures that
6487 # aren't already present in the normal libraries. This is because
6488 # IRIX 5.2 has libraries, but they aren't needed and they're
6489 # bogus: they goof up name resolution if used.
6490 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
6491 # To get around this problem, check for both libraries together
6492 # if -lsocket doesn't work by itself.
6493 #--------------------------------------------------------------------
6495 echo $ac_n "checking
for socket libraries
""...
$ac_c" 1>&6
6496 echo "configure
:6497: checking
for socket libraries
" >&5
6497 if eval "test \"`echo '$''{'gcj_cv_lib_sockets'+set}'`\" = set"; then
6498 echo $ac_n "(cached
) $ac_c" 1>&6
6502 unset ac_cv_func_connect
6503 echo $ac_n "checking
for connect
""...
$ac_c" 1>&6
6504 echo "configure
:6505: checking
for connect
" >&5
6505 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
6506 echo $ac_n "(cached
) $ac_c" 1>&6
6508 cat > conftest.$ac_ext <<EOF
6509 #line 6510 "configure
"
6510 #include "confdefs.h
"
6511 /* System header to define __stub macros and hopefully few prototypes,
6512 which can conflict with char connect(); below. */
6514 /* Override any gcc2 internal prototype to avoid an error. */
6515 /* We use char because int might match the return type of a gcc2
6516 builtin and then its argument prototype would still apply. */
6521 /* The GNU C library defines this for functions which it implements
6522 to always fail with ENOSYS. Some functions are actually named
6523 something starting with __ and the normal name is an alias. */
6524 #if defined (__stub_connect) || defined (__stub___connect)
6532 if { (eval echo configure:6533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6534 eval "ac_cv_func_connect
=yes"
6536 echo "configure
: failed program was
:" >&5
6537 cat conftest.$ac_ext >&5
6539 eval "ac_cv_func_connect
=no
"
6544 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
6545 echo "$ac_t""yes" 1>&6
6548 echo "$ac_t""no
" 1>&6
6552 if test "$gcj_checkSocket" = 1; then
6553 unset ac_cv_func_connect
6554 echo $ac_n "checking
for main
in -lsocket""...
$ac_c" 1>&6
6555 echo "configure
:6556: checking
for main
in -lsocket" >&5
6556 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
6557 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6558 echo $ac_n "(cached
) $ac_c" 1>&6
6560 ac_save_LIBS="$LIBS"
6561 LIBS="-lsocket $LIBS"
6562 cat > conftest.$ac_ext <<EOF
6563 #line 6564 "configure
"
6564 #include "confdefs.h
"
6570 if { (eval echo configure:6571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6572 eval "ac_cv_lib_
$ac_lib_var=yes"
6574 echo "configure
: failed program was
:" >&5
6575 cat conftest.$ac_ext >&5
6577 eval "ac_cv_lib_
$ac_lib_var=no
"
6580 LIBS="$ac_save_LIBS"
6583 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6584 echo "$ac_t""yes" 1>&6
6585 gcj_cv_lib_sockets="-lsocket"
6587 echo "$ac_t""no
" 1>&6
6592 if test "$gcj_checkBoth" = 1; then
6594 LIBS="$LIBS -lsocket -lnsl"
6595 unset ac_cv_func_accept
6596 echo $ac_n "checking
for accept
""...
$ac_c" 1>&6
6597 echo "configure
:6598: checking
for accept
" >&5
6598 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
6599 echo $ac_n "(cached
) $ac_c" 1>&6
6601 cat > conftest.$ac_ext <<EOF
6602 #line 6603 "configure
"
6603 #include "confdefs.h
"
6604 /* System header to define __stub macros and hopefully few prototypes,
6605 which can conflict with char accept(); below. */
6607 /* Override any gcc2 internal prototype to avoid an error. */
6608 /* We use char because int might match the return type of a gcc2
6609 builtin and then its argument prototype would still apply. */
6614 /* The GNU C library defines this for functions which it implements
6615 to always fail with ENOSYS. Some functions are actually named
6616 something starting with __ and the normal name is an alias. */
6617 #if defined (__stub_accept) || defined (__stub___accept)
6625 if { (eval echo configure:6626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6627 eval "ac_cv_func_accept
=yes"
6629 echo "configure
: failed program was
:" >&5
6630 cat conftest.$ac_ext >&5
6632 eval "ac_cv_func_accept
=no
"
6637 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
6638 echo "$ac_t""yes" 1>&6
6640 gcj_cv_lib_sockets="-lsocket -lnsl"
6642 echo "$ac_t""no
" 1>&6
6645 unset ac_cv_func_accept
6648 unset ac_cv_func_gethostbyname
6650 LIBS="$LIBS $gcj_cv_lib_sockets"
6651 echo $ac_n "checking
for gethostbyname
""...
$ac_c" 1>&6
6652 echo "configure
:6653: checking
for gethostbyname
" >&5
6653 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
6654 echo $ac_n "(cached
) $ac_c" 1>&6
6656 cat > conftest.$ac_ext <<EOF
6657 #line 6658 "configure
"
6658 #include "confdefs.h
"
6659 /* System header to define __stub macros and hopefully few prototypes,
6660 which can conflict with char gethostbyname(); below. */
6662 /* Override any gcc2 internal prototype to avoid an error. */
6663 /* We use char because int might match the return type of a gcc2
6664 builtin and then its argument prototype would still apply. */
6665 char gethostbyname();
6669 /* The GNU C library defines this for functions which it implements
6670 to always fail with ENOSYS. Some functions are actually named
6671 something starting with __ and the normal name is an alias. */
6672 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6680 if { (eval echo configure:6681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6682 eval "ac_cv_func_gethostbyname
=yes"
6684 echo "configure
: failed program was
:" >&5
6685 cat conftest.$ac_ext >&5
6687 eval "ac_cv_func_gethostbyname
=no
"
6692 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
6693 echo "$ac_t""yes" 1>&6
6696 echo "$ac_t""no
" 1>&6
6697 echo $ac_n "checking
for main
in -lnsl""...
$ac_c" 1>&6
6698 echo "configure
:6699: checking
for main
in -lnsl" >&5
6699 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
6700 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6701 echo $ac_n "(cached
) $ac_c" 1>&6
6703 ac_save_LIBS="$LIBS"
6705 cat > conftest.$ac_ext <<EOF
6706 #line 6707 "configure
"
6707 #include "confdefs.h
"
6713 if { (eval echo configure:6714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6715 eval "ac_cv_lib_
$ac_lib_var=yes"
6717 echo "configure
: failed program was
:" >&5
6718 cat conftest.$ac_ext >&5
6720 eval "ac_cv_lib_
$ac_lib_var=no
"
6723 LIBS="$ac_save_LIBS"
6726 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6727 echo "$ac_t""yes" 1>&6
6728 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
6730 echo "$ac_t""no
" 1>&6
6735 unset ac_cv_func_gethostbyname
6740 echo "$ac_t""$gcj_cv_lib_sockets" 1>&6
6741 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
6743 if test "$with_system_zlib" = yes; then
6744 echo $ac_n "checking
for deflate
in -lz""...
$ac_c" 1>&6
6745 echo "configure
:6746: checking
for deflate
in -lz" >&5
6746 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
6747 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6748 echo $ac_n "(cached
) $ac_c" 1>&6
6750 ac_save_LIBS="$LIBS"
6752 cat > conftest.$ac_ext <<EOF
6753 #line 6754 "configure
"
6754 #include "confdefs.h
"
6755 /* Override any gcc2 internal prototype to avoid an error. */
6756 /* We use char because int might match the return type of a gcc2
6757 builtin and then its argument prototype would still apply. */
6764 if { (eval echo configure:6765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6766 eval "ac_cv_lib_
$ac_lib_var=yes"
6768 echo "configure
: failed program was
:" >&5
6769 cat conftest.$ac_ext >&5
6771 eval "ac_cv_lib_
$ac_lib_var=no
"
6774 LIBS="$ac_save_LIBS"
6777 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6778 echo "$ac_t""yes" 1>&6
6781 echo "$ac_t""no
" 1>&6
6787 # Test for Gtk stuff, if asked for.
6788 if test "$use_gtk_awt" = yes; then
6792 if test -z "$PKG_CONFIG"; then
6793 # Extract the first word of "pkg-config
", so it can be a program name with args.
6794 set dummy pkg-config; ac_word=$2
6795 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
6796 echo "configure
:6797: checking
for $ac_word" >&5
6797 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
6798 echo $ac_n "(cached
) $ac_c" 1>&6
6800 case "$PKG_CONFIG" in
6802 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6805 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
6808 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6810 for ac_dir in $ac_dummy; do
6811 test -z "$ac_dir" && ac_dir=.
6812 if test -f $ac_dir/$ac_word; then
6813 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
6818 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
6822 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6823 if test -n "$PKG_CONFIG"; then
6824 echo "$ac_t""$PKG_CONFIG" 1>&6
6826 echo "$ac_t""no
" 1>&6
6831 if test "$PKG_CONFIG" = "no
" ; then
6832 echo "*** The pkg-config
script could not be found. Make sure it is
"
6833 echo "*** in your path
, or
set the PKG_CONFIG environment variable
"
6834 echo "*** to the full path to pkg-config.
"
6835 echo "*** Or see http
://www.freedesktop.org
/software
/pkgconfig to get pkg-config.
"
6837 PKG_CONFIG_MIN_VERSION=0.9.0
6838 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6839 echo $ac_n "checking
for gtk
+-2.0
>= 2.2""...
$ac_c" 1>&6
6840 echo "configure
:6841: checking
for gtk
+-2.0
>= 2.2" >&5
6842 if $PKG_CONFIG --exists "gtk
+-2.0
>= 2.2" ; then
6843 echo "$ac_t""yes" 1>&6
6846 echo $ac_n "checking GTK_CFLAGS
""...
$ac_c" 1>&6
6847 echo "configure
:6848: checking GTK_CFLAGS
" >&5
6848 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk
+-2.0
>= 2.2"`
6849 echo "$ac_t""$GTK_CFLAGS" 1>&6
6851 echo $ac_n "checking GTK_LIBS
""...
$ac_c" 1>&6
6852 echo "configure
:6853: checking GTK_LIBS
" >&5
6853 GTK_LIBS=`$PKG_CONFIG --libs "gtk
+-2.0
>= 2.2"`
6854 echo "$ac_t""$GTK_LIBS" 1>&6
6858 ## If we have a custom action on failure, don't print errors, but
6859 ## do set a variable so people can do so.
6860 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk
+-2.0
>= 2.2"`
6861 echo $GTK_PKG_ERRORS
6867 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
6868 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
6872 if test $succeeded = yes; then
6875 { 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; }
6884 if test -z "$PKG_CONFIG"; then
6885 # Extract the first word of "pkg-config
", so it can be a program name with args.
6886 set dummy pkg-config; ac_word=$2
6887 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
6888 echo "configure
:6889: checking
for $ac_word" >&5
6889 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
6890 echo $ac_n "(cached
) $ac_c" 1>&6
6892 case "$PKG_CONFIG" in
6894 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6897 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
6900 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6902 for ac_dir in $ac_dummy; do
6903 test -z "$ac_dir" && ac_dir=.
6904 if test -f $ac_dir/$ac_word; then
6905 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
6910 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
6914 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6915 if test -n "$PKG_CONFIG"; then
6916 echo "$ac_t""$PKG_CONFIG" 1>&6
6918 echo "$ac_t""no
" 1>&6
6923 if test "$PKG_CONFIG" = "no
" ; then
6924 echo "*** The pkg-config
script could not be found. Make sure it is
"
6925 echo "*** in your path
, or
set the PKG_CONFIG environment variable
"
6926 echo "*** to the full path to pkg-config.
"
6927 echo "*** Or see http
://www.freedesktop.org
/software
/pkgconfig to get pkg-config.
"
6929 PKG_CONFIG_MIN_VERSION=0.9.0
6930 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6931 echo $ac_n "checking
for glib-2.0
>= 2.2 gthread-2.0
>= 2.2""...
$ac_c" 1>&6
6932 echo "configure
:6933: checking
for glib-2.0
>= 2.2 gthread-2.0
>= 2.2" >&5
6934 if $PKG_CONFIG --exists "glib-2.0
>= 2.2 gthread-2.0
>= 2.2" ; then
6935 echo "$ac_t""yes" 1>&6
6938 echo $ac_n "checking GLIB_CFLAGS
""...
$ac_c" 1>&6
6939 echo "configure
:6940: checking GLIB_CFLAGS
" >&5
6940 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0
>= 2.2 gthread-2.0
>= 2.2"`
6941 echo "$ac_t""$GLIB_CFLAGS" 1>&6
6943 echo $ac_n "checking GLIB_LIBS
""...
$ac_c" 1>&6
6944 echo "configure
:6945: checking GLIB_LIBS
" >&5
6945 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0
>= 2.2 gthread-2.0
>= 2.2"`
6946 echo "$ac_t""$GLIB_LIBS" 1>&6
6950 ## If we have a custom action on failure, don't print errors, but
6951 ## do set a variable so people can do so.
6952 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0
>= 2.2 gthread-2.0
>= 2.2"`
6953 echo $GLIB_PKG_ERRORS
6959 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
6960 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
6964 if test $succeeded = yes; then
6967 { 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; }
6976 if test -z "$PKG_CONFIG"; then
6977 # Extract the first word of "pkg-config
", so it can be a program name with args.
6978 set dummy pkg-config; ac_word=$2
6979 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
6980 echo "configure
:6981: checking
for $ac_word" >&5
6981 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
6982 echo $ac_n "(cached
) $ac_c" 1>&6
6984 case "$PKG_CONFIG" in
6986 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6989 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
6992 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6994 for ac_dir in $ac_dummy; do
6995 test -z "$ac_dir" && ac_dir=.
6996 if test -f $ac_dir/$ac_word; then
6997 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
7002 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
7006 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7007 if test -n "$PKG_CONFIG"; then
7008 echo "$ac_t""$PKG_CONFIG" 1>&6
7010 echo "$ac_t""no
" 1>&6
7015 if test "$PKG_CONFIG" = "no
" ; then
7016 echo "*** The pkg-config
script could not be found. Make sure it is
"
7017 echo "*** in your path
, or
set the PKG_CONFIG environment variable
"
7018 echo "*** to the full path to pkg-config.
"
7019 echo "*** Or see http
://www.freedesktop.org
/software
/pkgconfig to get pkg-config.
"
7021 PKG_CONFIG_MIN_VERSION=0.9.0
7022 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7023 echo $ac_n "checking
for libart-2.0
>= 2.1""...
$ac_c" 1>&6
7024 echo "configure
:7025: checking
for libart-2.0
>= 2.1" >&5
7026 if $PKG_CONFIG --exists "libart-2.0
>= 2.1" ; then
7027 echo "$ac_t""yes" 1>&6
7030 echo $ac_n "checking LIBART_CFLAGS
""...
$ac_c" 1>&6
7031 echo "configure
:7032: checking LIBART_CFLAGS
" >&5
7032 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0
>= 2.1"`
7033 echo "$ac_t""$LIBART_CFLAGS" 1>&6
7035 echo $ac_n "checking LIBART_LIBS
""...
$ac_c" 1>&6
7036 echo "configure
:7037: checking LIBART_LIBS
" >&5
7037 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0
>= 2.1"`
7038 echo "$ac_t""$LIBART_LIBS" 1>&6
7042 ## If we have a custom action on failure, don't print errors, but
7043 ## do set a variable so people can do so.
7044 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0
>= 2.1"`
7045 echo $LIBART_PKG_ERRORS
7051 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
7052 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
7056 if test $succeeded = yes; then
7059 { 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; }
7066 # On Solaris, and maybe other architectures, the Boehm collector
7068 if test "$GC" = boehm; then
7069 echo $ac_n "checking
for main
in -ldl""...
$ac_c" 1>&6
7070 echo "configure
:7071: checking
for main
in -ldl" >&5
7071 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
7072 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7073 echo $ac_n "(cached
) $ac_c" 1>&6
7075 ac_save_LIBS="$LIBS"
7077 cat > conftest.$ac_ext <<EOF
7078 #line 7079 "configure
"
7079 #include "confdefs.h
"
7085 if { (eval echo configure:7086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7087 eval "ac_cv_lib_
$ac_lib_var=yes"
7089 echo "configure
: failed program was
:" >&5
7090 cat conftest.$ac_ext >&5
7092 eval "ac_cv_lib_
$ac_lib_var=no
"
7095 LIBS="$ac_save_LIBS"
7098 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7099 echo "$ac_t""yes" 1>&6
7100 SYSTEMSPEC="$SYSTEMSPEC -ldl"
7102 echo "$ac_t""no
" 1>&6
7108 if test -z "${with_multisubdir}"; then
7112 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
7116 # Which gcj do we use?
7118 built_gcc_dir="`cd ${builddotdot}/../../gcc && ${PWDCMD-pwd}`"
7119 if test -n "${with_cross_host}"; then
7120 # We are being configured with a cross compiler. We can't
7121 # use ac_exeext, because that is for the target platform.
7124 case "${with_cross_host}" in
7126 cross_host_exeext=.exe
7129 if test -x "${built_gcc_dir}/gcj
${cross_host_exeext}"; then
7130 if test x"$build_alias" = x"$with_cross_host"; then
7131 # Ordinary cross (host!=target and host=build)
7134 # Canadian cross (host!=target and host!=build)
7141 # We are being configured with a native or crossed-native compiler
7142 if test -x "${built_gcc_dir}/gcj
${ac_exeext}"; then
7143 if test x"$build" = x"$host"; then
7144 # True native build (host=target and host=build)
7147 # Crossed-native build (host=target and host!=build)
7154 case "${which_gcj}" in
7156 GCJ="$built_gcc_dir/gcj
-B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
7159 # See the comment in Makefile.am about CANADIAN being a misnomer
7162 if test "x
${with_newlib}" = "xyes
"; then
7163 # FIXME (comment): Why is this needed?
7165 GCJ="${target_alias}-gcj"
7167 GCJ="${target_alias}-gcj -B`${PWDCMD-pwd}`/"
7171 # See the comment in Makefile.am about CANADIAN being a misnomer
7174 GCJ="gcj
-B`${PWDCMD-pwd}`/"
7178 # Create it, so that compile/link tests don't fail
7179 test -f libgcj.spec || touch libgcj.spec
7181 # We must search the source tree for java.lang, since we still don't
7182 # have libgcj.jar nor java/lang/*.class
7183 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
7184 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
7186 # Since some classes depend on this one, we need its source available
7187 # before we can do any GCJ compilation test :-(
7188 if test ! -f gnu/classpath/Configuration.java; then
7189 test -d gnu || mkdir gnu
7190 test -d gnu/classpath || mkdir gnu/classpath
7191 sed -e 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
7192 -e 's,@TOOLKIT@,$TOOLKIT,' \
7193 < $srcdir/gnu/classpath/Configuration.java.in \
7194 > gnu/classpath/Configuration.java
7195 # We do not want to redirect the output of the grep below to /dev/null,
7196 # but we add /dev/null to the input list so that grep will print the
7197 # filename of Configuration.java in case it finds any matches.
7198 if grep @ gnu/classpath/Configuration.java /dev/null; then
7199 { echo "configure
: error
: configure.
in is missing the substitutions above
" 1>&2; exit 1; }
7203 # Extract the first word of "${ac_tool_prefix}gcj
", so it can be a program name with args.
7204 set dummy ${ac_tool_prefix}gcj; ac_word=$2
7205 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
7206 echo "configure
:7207: checking
for $ac_word" >&5
7207 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
7208 echo $ac_n "(cached
) $ac_c" 1>&6
7210 if test -n "$GCJ"; then
7211 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
7213 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7215 for ac_dir in $ac_dummy; do
7216 test -z "$ac_dir" && ac_dir=.
7217 if test -f $ac_dir/$ac_word; then
7218 ac_cv_prog_GCJ="${ac_tool_prefix}gcj
"
7225 GCJ="$ac_cv_prog_GCJ"
7226 if test -n "$GCJ"; then
7227 echo "$ac_t""$GCJ" 1>&6
7229 echo "$ac_t""no
" 1>&6
7233 if test -z "$ac_cv_prog_GCJ"; then
7234 if test -n "$ac_tool_prefix"; then
7235 # Extract the first word of "gcj
", so it can be a program name with args.
7236 set dummy gcj; ac_word=$2
7237 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
7238 echo "configure
:7239: checking
for $ac_word" >&5
7239 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
7240 echo $ac_n "(cached
) $ac_c" 1>&6
7242 if test -n "$GCJ"; then
7243 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
7245 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7247 for ac_dir in $ac_dummy; do
7248 test -z "$ac_dir" && ac_dir=.
7249 if test -f $ac_dir/$ac_word; then
7250 ac_cv_prog_GCJ="gcj
"
7255 test -z "$ac_cv_prog_GCJ" && ac_cv_prog_GCJ="no
"
7258 GCJ="$ac_cv_prog_GCJ"
7259 if test -n "$GCJ"; then
7260 echo "$ac_t""$GCJ" 1>&6
7262 echo "$ac_t""no
" 1>&6
7270 test "x
${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7274 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh
"
7276 lt_save_CFLAGS="$CFLAGS"
7277 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
7278 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
7279 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
7280 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
7281 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
7282 deplibs_check_method="$deplibs_check_method" \
7283 file_magic_cmd="$file_magic_cmd" \
7284 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
7285 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
7286 || { echo "configure
: error
: libtool tag configuration failed
" 1>&2; exit 1; }
7288 CFLAGS="$lt_save_CFLAGS"
7290 # Redirect the config.log output again, so that the ltconfig log is not
7291 # clobbered by the next message.
7292 exec 5>>./config.log
7297 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
7299 echo $ac_n "checking size of void
*""...
$ac_c" 1>&6
7300 echo "configure
:7301: checking size of void
*" >&5
7301 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
7302 echo $ac_n "(cached
) $ac_c" 1>&6
7304 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
7305 cat > conftest.$ac_ext <<EOF
7306 #line 7307 "configure
"
7307 #include "confdefs.h
"
7308 #include "confdefs.h
"
7309 #include <sys/types.h>
7313 switch (0) case 0: case (sizeof (void *) == $ac_size):;
7316 if { (eval echo configure:7317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7318 ac_cv_sizeof_void_p=$ac_size
7320 echo "configure
: failed program was
:" >&5
7321 cat conftest.$ac_ext >&5
7324 if test x$ac_cv_sizeof_void_p != x ; then break; fi
7329 if test x$ac_cv_sizeof_void_p = x ; then
7330 { echo "configure
: error
: cannot determine a size
for void
*" 1>&2; exit 1; }
7332 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
7333 cat >> confdefs.h <<EOF
7334 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7343 if test -z "$ZLIBSPEC"; then
7344 # Use zlib from the GCC tree.
7345 ZINCS='-I$(top_srcdir)/../zlib'
7346 ZLIBS=../zlib/libzgcj_convenience.la
7349 SYS_ZLIBS="$ZLIBSPEC"
7361 if test "$CANADIAN" = yes; then
7370 if test "$NULL_TARGET" = yes; then
7372 NULL_TARGET_FALSE='#'
7374 NULL_TARGET_TRUE='#'
7379 if test "$NATIVE" = yes || test "$NULL_TARGET" = yes; then
7388 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
7389 NEEDS_DATA_START_TRUE=
7390 NEEDS_DATA_START_FALSE='#'
7392 NEEDS_DATA_START_TRUE='#'
7393 NEEDS_DATA_START_FALSE=
7397 if test -n "$with_cross_host" &&
7398 test x"$with_cross_host" != x"no
"; then
7399 toolexecdir='$(exec_prefix)/$(target_alias)'
7400 toolexecmainlibdir='$(toolexecdir)/lib'
7402 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
7403 toolexecmainlibdir='$(libdir)'
7405 multi_os_directory=`$CC -print-multi-os-directory`
7406 case $multi_os_directory in
7407 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
7408 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
7414 # Determine gcj version number.
7416 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
7418 GCJVERSION=$gcjversion
7420 cat >> confdefs.h <<EOF
7421 #define GCJVERSION "$GCJVERSION"
7425 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
7427 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7428 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
7429 echo "configure
:7430: checking
for $ac_hdr" >&5
7430 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7431 echo $ac_n "(cached
) $ac_c" 1>&6
7433 cat > conftest.$ac_ext <<EOF
7434 #line 7435 "configure
"
7435 #include "confdefs.h
"
7438 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
7439 { (eval echo configure:7440: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7440 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
7441 if test -z "$ac_err"; then
7443 eval "ac_cv_header_
$ac_safe=yes"
7446 echo "configure
: failed program was
:" >&5
7447 cat conftest.$ac_ext >&5
7449 eval "ac_cv_header_
$ac_safe=no
"
7453 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7454 echo "$ac_t""yes" 1>&6
7455 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7456 cat >> confdefs.h <<EOF
7457 #define $ac_tr_hdr 1
7461 echo "$ac_t""no
" 1>&6
7465 for ac_hdr in dirent.h
7467 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7468 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
7469 echo "configure
:7470: checking
for $ac_hdr" >&5
7470 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7471 echo $ac_n "(cached
) $ac_c" 1>&6
7473 cat > conftest.$ac_ext <<EOF
7474 #line 7475 "configure
"
7475 #include "confdefs.h
"
7478 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
7479 { (eval echo configure:7480: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7480 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
7481 if test -z "$ac_err"; then
7483 eval "ac_cv_header_
$ac_safe=yes"
7486 echo "configure
: failed program was
:" >&5
7487 cat conftest.$ac_ext >&5
7489 eval "ac_cv_header_
$ac_safe=no
"
7493 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7494 echo "$ac_t""yes" 1>&6
7495 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7496 cat >> confdefs.h <<EOF
7497 #define $ac_tr_hdr 1
7501 echo "$ac_t""no
" 1>&6
7505 for ac_hdr in inttypes.h
7507 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7508 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
7509 echo "configure
:7510: checking
for $ac_hdr" >&5
7510 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7511 echo $ac_n "(cached
) $ac_c" 1>&6
7513 cat > conftest.$ac_ext <<EOF
7514 #line 7515 "configure
"
7515 #include "confdefs.h
"
7518 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
7519 { (eval echo configure:7520: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7520 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
7521 if test -z "$ac_err"; then
7523 eval "ac_cv_header_
$ac_safe=yes"
7526 echo "configure
: failed program was
:" >&5
7527 cat conftest.$ac_ext >&5
7529 eval "ac_cv_header_
$ac_safe=no
"
7533 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7534 echo "$ac_t""yes" 1>&6
7535 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7536 cat >> confdefs.h <<EOF
7537 #define $ac_tr_hdr 1
7540 cat >> confdefs.h <<\EOF
7541 #define HAVE_INTTYPES_H 1
7544 cat >> confdefs.h <<\EOF
7545 #define JV_HAVE_INTTYPES_H 1
7550 echo "$ac_t""no
" 1>&6
7554 echo $ac_n "checking
for sys
/wait.h that is POSIX
.1 compatible
""...
$ac_c" 1>&6
7555 echo "configure
:7556: checking
for sys
/wait.h that is POSIX
.1 compatible
" >&5
7556 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
7557 echo $ac_n "(cached
) $ac_c" 1>&6
7559 cat > conftest.$ac_ext <<EOF
7560 #line 7561 "configure
"
7561 #include "confdefs.h
"
7562 #include <sys/types.h>
7563 #include <sys/wait.h>
7565 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7568 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7573 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7576 if { (eval echo configure:7577: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7578 ac_cv_header_sys_wait_h=yes
7580 echo "configure
: failed program was
:" >&5
7581 cat conftest.$ac_ext >&5
7583 ac_cv_header_sys_wait_h=no
7588 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
7589 if test $ac_cv_header_sys_wait_h = yes; then
7590 cat >> confdefs.h <<\EOF
7591 #define HAVE_SYS_WAIT_H 1
7597 echo $ac_n "checking
for ANSI C header files
""...
$ac_c" 1>&6
7598 echo "configure
:7599: checking
for ANSI C header files
" >&5
7599 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
7600 echo $ac_n "(cached
) $ac_c" 1>&6
7602 cat > conftest.$ac_ext <<EOF
7603 #line 7604 "configure
"
7604 #include "confdefs.h
"
7610 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
7611 { (eval echo configure:7612: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7612 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
7613 if test -z "$ac_err"; then
7615 ac_cv_header_stdc=yes
7618 echo "configure
: failed program was
:" >&5
7619 cat conftest.$ac_ext >&5
7621 ac_cv_header_stdc=no
7625 if test $ac_cv_header_stdc = yes; then
7626 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7627 cat > conftest.$ac_ext <<EOF
7628 #line 7629 "configure
"
7629 #include "confdefs.h
"
7632 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7633 egrep "memchr
" >/dev/null 2>&1; then
7637 ac_cv_header_stdc=no
7643 if test $ac_cv_header_stdc = yes; then
7644 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7645 cat > conftest.$ac_ext <<EOF
7646 #line 7647 "configure
"
7647 #include "confdefs.h
"
7650 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7651 egrep "free
" >/dev/null 2>&1; then
7655 ac_cv_header_stdc=no
7661 if test $ac_cv_header_stdc = yes; then
7662 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7663 if test "$cross_compiling" = yes; then
7666 cat > conftest.$ac_ext <<EOF
7667 #line 7668 "configure
"
7668 #include "confdefs.h
"
7670 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7671 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7672 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7673 int main () { int i; for (i = 0; i < 256; i++)
7674 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
7678 if { (eval echo configure:7679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7682 echo "configure
: failed program was
:" >&5
7683 cat conftest.$ac_ext >&5
7685 ac_cv_header_stdc=no
7693 echo "$ac_t""$ac_cv_header_stdc" 1>&6
7694 if test $ac_cv_header_stdc = yes; then
7695 cat >> confdefs.h <<\EOF
7696 #define STDC_HEADERS 1
7701 echo $ac_n "checking
for ssize_t
""...
$ac_c" 1>&6
7702 echo "configure
:7703: checking
for ssize_t
" >&5
7703 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
7704 echo $ac_n "(cached
) $ac_c" 1>&6
7706 cat > conftest.$ac_ext <<EOF
7707 #line 7708 "configure
"
7708 #include "confdefs.h
"
7709 #include <sys/types.h>
7715 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7716 egrep "(^|
[^a-zA-Z_0-9
])ssize_t
[^a-zA-Z_0-9
]" >/dev/null 2>&1; then
7718 ac_cv_type_ssize_t=yes
7721 ac_cv_type_ssize_t=no
7726 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
7727 if test $ac_cv_type_ssize_t = no; then
7728 cat >> confdefs.h <<\EOF
7735 echo $ac_n "checking
for in_addr_t
""...
$ac_c" 1>&6
7736 echo "configure
:7737: checking
for in_addr_t
" >&5
7737 cat > conftest.$ac_ext <<EOF
7738 #line 7739 "configure
"
7739 #include "confdefs.h
"
7740 #include <sys/types.h>
7745 #if HAVE_NETINET_IN_H
7746 #include <netinet/in.h>
7752 if { (eval echo configure:7753: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7754 cat >> confdefs.h <<\EOF
7755 #define HAVE_IN_ADDR_T 1
7758 echo "$ac_t""yes" 1>&6
7760 echo "configure
: failed program was
:" >&5
7761 cat conftest.$ac_ext >&5
7763 echo "$ac_t""no
" 1>&6
7767 echo $ac_n "checking whether struct ip_mreq is
in netinet
/in.h
""...
$ac_c" 1>&6
7768 echo "configure
:7769: checking whether struct ip_mreq is
in netinet
/in.h
" >&5
7769 cat > conftest.$ac_ext <<EOF
7770 #line 7771 "configure
"
7771 #include "confdefs.h
"
7772 #include <netinet/in.h>
7774 struct ip_mreq mreq;
7777 if { (eval echo configure:7778: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7779 cat >> confdefs.h <<\EOF
7780 #define HAVE_STRUCT_IP_MREQ 1
7783 echo "$ac_t""yes" 1>&6
7785 echo "configure
: failed program was
:" >&5
7786 cat conftest.$ac_ext >&5
7788 echo "$ac_t""no
" 1>&6
7792 echo $ac_n "checking whether struct ipv6_mreq is
in netinet
/in.h
""...
$ac_c" 1>&6
7793 echo "configure
:7794: checking whether struct ipv6_mreq is
in netinet
/in.h
" >&5
7794 cat > conftest.$ac_ext <<EOF
7795 #line 7796 "configure
"
7796 #include "confdefs.h
"
7797 #include <netinet/in.h>
7799 struct ipv6_mreq mreq6;
7802 if { (eval echo configure:7803: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7804 cat >> confdefs.h <<\EOF
7805 #define HAVE_STRUCT_IPV6_MREQ 1
7808 echo "$ac_t""yes" 1>&6
7810 echo "configure
: failed program was
:" >&5
7811 cat conftest.$ac_ext >&5
7813 echo "$ac_t""no
" 1>&6
7817 echo $ac_n "checking whether struct sockaddr_in6 is
in netinet
/in.h
""...
$ac_c" 1>&6
7818 echo "configure
:7819: checking whether struct sockaddr_in6 is
in netinet
/in.h
" >&5
7819 cat > conftest.$ac_ext <<EOF
7820 #line 7821 "configure
"
7821 #include "confdefs.h
"
7822 #include <netinet/in.h>
7824 struct sockaddr_in6 addr6;
7827 if { (eval echo configure:7828: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7829 cat >> confdefs.h <<\EOF
7830 #define HAVE_INET6 1
7833 echo "$ac_t""yes" 1>&6
7835 echo "configure
: failed program was
:" >&5
7836 cat conftest.$ac_ext >&5
7838 echo "$ac_t""no
" 1>&6
7842 echo $ac_n "checking
for socklen_t
in sys
/socket.h
""...
$ac_c" 1>&6
7843 echo "configure
:7844: checking
for socklen_t
in sys
/socket.h
" >&5
7844 cat > conftest.$ac_ext <<EOF
7845 #line 7846 "configure
"
7846 #include "confdefs.h
"
7847 #define _POSIX_PII_SOCKET
7848 #include <sys/types.h>
7849 #include <sys/socket.h>
7854 if { (eval echo configure:7855: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7856 cat >> confdefs.h <<\EOF
7857 #define HAVE_SOCKLEN_T 1
7860 echo "$ac_t""yes" 1>&6
7862 echo "configure
: failed program was
:" >&5
7863 cat conftest.$ac_ext >&5
7865 echo "$ac_t""no
" 1>&6
7869 echo $ac_n "checking
for tm_gmtoff
in struct tm
""...
$ac_c" 1>&6
7870 echo "configure
:7871: checking
for tm_gmtoff
in struct tm
" >&5
7871 cat > conftest.$ac_ext <<EOF
7872 #line 7873 "configure
"
7873 #include "confdefs.h
"
7876 struct tm tim; tim.tm_gmtoff = 0;
7879 if { (eval echo configure:7880: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7881 cat >> confdefs.h <<\EOF
7882 #define STRUCT_TM_HAS_GMTOFF 1
7885 echo "$ac_t""yes" 1>&6
7887 echo "configure
: failed program was
:" >&5
7888 cat conftest.$ac_ext >&5
7890 echo "$ac_t""no
" 1>&6
7891 echo $ac_n "checking
for global timezone variable
""...
$ac_c" 1>&6
7892 echo "configure
:7893: checking
for global timezone variable
" >&5
7893 cat > conftest.$ac_ext <<EOF
7894 #line 7895 "configure
"
7895 #include "confdefs.h
"
7898 void i(){long z2 = 2*timezone;}
7901 if { (eval echo configure:7902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7903 cat >> confdefs.h <<\EOF
7904 #define HAVE_TIMEZONE 1
7907 echo "$ac_t""yes" 1>&6
7909 echo "configure
: failed program was
:" >&5
7910 cat conftest.$ac_ext >&5
7912 echo "$ac_t""no
" 1>&6
7913 echo $ac_n "checking
for global _timezone variable
""...
$ac_c" 1>&6
7914 echo "configure
:7915: checking
for global _timezone variable
" >&5
7915 cat > conftest.$ac_ext <<EOF
7916 #line 7917 "configure
"
7917 #include "confdefs.h
"
7920 long z2 = _timezone;
7923 if { (eval echo configure:7924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7925 cat >> confdefs.h <<\EOF
7926 #define HAVE_UNDERSCORE_TIMEZONE 1
7929 echo "$ac_t""yes" 1>&6
7931 echo "configure
: failed program was
:" >&5
7932 cat conftest.$ac_ext >&5
7934 echo "$ac_t""no
" 1>&6
7942 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7943 # for constant arguments. Useless!
7944 echo $ac_n "checking
for working alloca.h
""...
$ac_c" 1>&6
7945 echo "configure
:7946: checking
for working alloca.h
" >&5
7946 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
7947 echo $ac_n "(cached
) $ac_c" 1>&6
7949 cat > conftest.$ac_ext <<EOF
7950 #line 7951 "configure
"
7951 #include "confdefs.h
"
7954 char *p = alloca(2 * sizeof(int));
7957 if { (eval echo configure:7958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7959 ac_cv_header_alloca_h=yes
7961 echo "configure
: failed program was
:" >&5
7962 cat conftest.$ac_ext >&5
7964 ac_cv_header_alloca_h=no
7969 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
7970 if test $ac_cv_header_alloca_h = yes; then
7971 cat >> confdefs.h <<\EOF
7972 #define HAVE_ALLOCA_H 1
7977 echo $ac_n "checking
for alloca
""...
$ac_c" 1>&6
7978 echo "configure
:7979: checking
for alloca
" >&5
7979 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
7980 echo $ac_n "(cached
) $ac_c" 1>&6
7982 cat > conftest.$ac_ext <<EOF
7983 #line 7984 "configure
"
7984 #include "confdefs.h
"
7987 # define alloca __builtin_alloca
7990 # include <malloc.h>
7991 # define alloca _alloca
7994 # include <alloca.h>
7999 # ifndef alloca /* predefined by HP cc +Olibcalls */
8008 char *p = (char *) alloca(1);
8011 if { (eval echo configure:8012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8013 ac_cv_func_alloca_works=yes
8015 echo "configure
: failed program was
:" >&5
8016 cat conftest.$ac_ext >&5
8018 ac_cv_func_alloca_works=no
8023 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
8024 if test $ac_cv_func_alloca_works = yes; then
8025 cat >> confdefs.h <<\EOF
8026 #define HAVE_ALLOCA 1
8031 if test $ac_cv_func_alloca_works = no; then
8032 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8033 # that cause trouble. Some versions do not even contain alloca or
8034 # contain a buggy version. If you still want to use their alloca,
8035 # use ar to extract alloca.o from them instead of compiling alloca.c.
8036 ALLOCA=alloca.${ac_objext}
8037 cat >> confdefs.h <<\EOF
8042 echo $ac_n "checking whether alloca needs Cray hooks
""...
$ac_c" 1>&6
8043 echo "configure
:8044: checking whether alloca needs Cray hooks
" >&5
8044 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
8045 echo $ac_n "(cached
) $ac_c" 1>&6
8047 cat > conftest.$ac_ext <<EOF
8048 #line 8049 "configure
"
8049 #include "confdefs.h
"
8050 #if defined(CRAY) && ! defined(CRAY2)
8057 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
8058 egrep "webecray
" >/dev/null 2>&1; then
8069 echo "$ac_t""$ac_cv_os_cray" 1>&6
8070 if test $ac_cv_os_cray = yes; then
8071 for ac_func in _getb67 GETB67 getb67; do
8072 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
8073 echo "configure
:8074: checking
for $ac_func" >&5
8074 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8075 echo $ac_n "(cached
) $ac_c" 1>&6
8077 cat > conftest.$ac_ext <<EOF
8078 #line 8079 "configure
"
8079 #include "confdefs.h
"
8080 /* System header to define __stub macros and hopefully few prototypes,
8081 which can conflict with char $ac_func(); below. */
8083 /* Override any gcc2 internal prototype to avoid an error. */
8084 /* We use char because int might match the return type of a gcc2
8085 builtin and then its argument prototype would still apply. */
8090 /* The GNU C library defines this for functions which it implements
8091 to always fail with ENOSYS. Some functions are actually named
8092 something starting with __ and the normal name is an alias. */
8093 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8101 if { (eval echo configure:8102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8103 eval "ac_cv_func_
$ac_func=yes"
8105 echo "configure
: failed program was
:" >&5
8106 cat conftest.$ac_ext >&5
8108 eval "ac_cv_func_
$ac_func=no
"
8113 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8114 echo "$ac_t""yes" 1>&6
8115 cat >> confdefs.h <<EOF
8116 #define CRAY_STACKSEG_END $ac_func
8121 echo "$ac_t""no
" 1>&6
8127 echo $ac_n "checking stack direction
for C alloca
""...
$ac_c" 1>&6
8128 echo "configure
:8129: checking stack direction
for C alloca
" >&5
8129 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
8130 echo $ac_n "(cached
) $ac_c" 1>&6
8132 if test "$cross_compiling" = yes; then
8133 ac_cv_c_stack_direction=0
8135 cat > conftest.$ac_ext <<EOF
8136 #line 8137 "configure
"
8137 #include "confdefs.h
"
8138 find_stack_direction ()
8140 static char *addr = 0;
8145 return find_stack_direction ();
8148 return (&dummy > addr) ? 1 : -1;
8152 exit (find_stack_direction() < 0);
8155 if { (eval echo configure:8156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8157 ac_cv_c_stack_direction=1
8159 echo "configure
: failed program was
:" >&5
8160 cat conftest.$ac_ext >&5
8162 ac_cv_c_stack_direction=-1
8169 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
8170 cat >> confdefs.h <<EOF
8171 #define STACK_DIRECTION $ac_cv_c_stack_direction
8176 for ac_hdr in unistd.h
8178 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8179 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
8180 echo "configure
:8181: checking
for $ac_hdr" >&5
8181 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8182 echo $ac_n "(cached
) $ac_c" 1>&6
8184 cat > conftest.$ac_ext <<EOF
8185 #line 8186 "configure
"
8186 #include "confdefs.h
"
8189 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
8190 { (eval echo configure:8191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8191 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
8192 if test -z "$ac_err"; then
8194 eval "ac_cv_header_
$ac_safe=yes"
8197 echo "configure
: failed program was
:" >&5
8198 cat conftest.$ac_ext >&5
8200 eval "ac_cv_header_
$ac_safe=no
"
8204 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8205 echo "$ac_t""yes" 1>&6
8206 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8207 cat >> confdefs.h <<EOF
8208 #define $ac_tr_hdr 1
8212 echo "$ac_t""no
" 1>&6
8216 for ac_func in getpagesize
8218 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
8219 echo "configure
:8220: checking
for $ac_func" >&5
8220 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8221 echo $ac_n "(cached
) $ac_c" 1>&6
8223 cat > conftest.$ac_ext <<EOF
8224 #line 8225 "configure
"
8225 #include "confdefs.h
"
8226 /* System header to define __stub macros and hopefully few prototypes,
8227 which can conflict with char $ac_func(); below. */
8229 /* Override any gcc2 internal prototype to avoid an error. */
8230 /* We use char because int might match the return type of a gcc2
8231 builtin and then its argument prototype would still apply. */
8236 /* The GNU C library defines this for functions which it implements
8237 to always fail with ENOSYS. Some functions are actually named
8238 something starting with __ and the normal name is an alias. */
8239 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8247 if { (eval echo configure:8248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8249 eval "ac_cv_func_
$ac_func=yes"
8251 echo "configure
: failed program was
:" >&5
8252 cat conftest.$ac_ext >&5
8254 eval "ac_cv_func_
$ac_func=no
"
8259 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8260 echo "$ac_t""yes" 1>&6
8261 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8262 cat >> confdefs.h <<EOF
8263 #define $ac_tr_func 1
8267 echo "$ac_t""no
" 1>&6
8271 echo $ac_n "checking
for working mmap
""...
$ac_c" 1>&6
8272 echo "configure
:8273: checking
for working mmap
" >&5
8273 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
8274 echo $ac_n "(cached
) $ac_c" 1>&6
8276 if test "$cross_compiling" = yes; then
8277 ac_cv_func_mmap_fixed_mapped=no
8279 cat > conftest.$ac_ext <<EOF
8280 #line 8281 "configure
"
8281 #include "confdefs.h
"
8283 /* Thanks to Mike Haertel and Jim Avera for this test.
8284 Here is a matrix of mmap possibilities:
8285 mmap private not fixed
8286 mmap private fixed at somewhere currently unmapped
8287 mmap private fixed at somewhere already mapped
8288 mmap shared not fixed
8289 mmap shared fixed at somewhere currently unmapped
8290 mmap shared fixed at somewhere already mapped
8291 For private mappings, we should verify that changes cannot be read()
8292 back from the file, nor mmap's back from the file at a different
8293 address. (There have been systems where private was not correctly
8294 implemented like the infamous i386 svr4.0, and systems where the
8295 VM page cache was not coherent with the filesystem buffer cache
8296 like early versions of FreeBSD and possibly contemporary NetBSD.)
8297 For shared mappings, we should conversely verify that changes get
8298 propogated back to all the places they're supposed to be.
8300 Grep wants private fixed already mapped.
8301 The main things grep needs to know about mmap are:
8302 * does it exist and is it safe to write into the mmap'd area
8303 * how to use it (BSD variants) */
8304 #include <sys/types.h>
8306 #include <sys/mman.h>
8308 /* This mess was copied from the GNU getpagesize.h. */
8309 #ifndef HAVE_GETPAGESIZE
8310 # ifdef HAVE_UNISTD_H
8311 # include <unistd.h>
8314 /* Assume that all systems that can run configure have sys/param.h. */
8315 # ifndef HAVE_SYS_PARAM_H
8316 # define HAVE_SYS_PARAM_H 1
8319 # ifdef _SC_PAGESIZE
8320 # define getpagesize() sysconf(_SC_PAGESIZE)
8321 # else /* no _SC_PAGESIZE */
8322 # ifdef HAVE_SYS_PARAM_H
8323 # include <sys/param.h>
8324 # ifdef EXEC_PAGESIZE
8325 # define getpagesize() EXEC_PAGESIZE
8326 # else /* no EXEC_PAGESIZE */
8328 # define getpagesize() NBPG * CLSIZE
8331 # endif /* no CLSIZE */
8332 # else /* no NBPG */
8334 # define getpagesize() NBPC
8335 # else /* no NBPC */
8337 # define getpagesize() PAGESIZE
8338 # endif /* PAGESIZE */
8339 # endif /* no NBPC */
8340 # endif /* no NBPG */
8341 # endif /* no EXEC_PAGESIZE */
8342 # else /* no HAVE_SYS_PARAM_H */
8343 # define getpagesize() 8192 /* punt totally */
8344 # endif /* no HAVE_SYS_PARAM_H */
8345 # endif /* no _SC_PAGESIZE */
8347 #endif /* no HAVE_GETPAGESIZE */
8350 extern "C
" { void *malloc(unsigned); }
8358 char *data, *data2, *data3;
8362 pagesize = getpagesize();
8365 * First, make a file with some known garbage in it.
8367 data = malloc(pagesize);
8370 for (i = 0; i < pagesize; ++i)
8371 *(data + i) = rand();
8373 fd = creat("conftestmmap
", 0600);
8376 if (write(fd, data, pagesize) != pagesize)
8381 * Next, try to mmap the file at a fixed address which
8382 * already has something else allocated at it. If we can,
8383 * also make sure that we see the same garbage.
8385 fd = open("conftestmmap
", O_RDWR);
8388 data2 = malloc(2 * pagesize);
8391 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
8392 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
8393 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8395 for (i = 0; i < pagesize; ++i)
8396 if (*(data + i) != *(data2 + i))
8400 * Finally, make sure that changes to the mapped area
8401 * do not percolate back to the file as seen by read().
8402 * (This is a bug on some variants of i386 svr4.0.)
8404 for (i = 0; i < pagesize; ++i)
8405 *(data2 + i) = *(data2 + i) + 1;
8406 data3 = malloc(pagesize);
8409 if (read(fd, data3, pagesize) != pagesize)
8411 for (i = 0; i < pagesize; ++i)
8412 if (*(data + i) != *(data3 + i))
8415 unlink("conftestmmap
");
8420 if { (eval echo configure:8421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8422 ac_cv_func_mmap_fixed_mapped=yes
8424 echo "configure
: failed program was
:" >&5
8425 cat conftest.$ac_ext >&5
8427 ac_cv_func_mmap_fixed_mapped=no
8434 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
8435 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8436 cat >> confdefs.h <<\EOF
8445 # Extract the first word of "$ac_prog", so it can be a program name with args.
8446 set dummy $ac_prog; ac_word=$2
8447 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
8448 echo "configure
:8449: checking
for $ac_word" >&5
8449 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
8450 echo $ac_n "(cached
) $ac_c" 1>&6
8452 if test -n "$PERL"; then
8453 ac_cv_prog_PERL="$PERL" # Let the user override the test.
8455 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8457 for ac_dir in $ac_dummy; do
8458 test -z "$ac_dir" && ac_dir=.
8459 if test -f $ac_dir/$ac_word; then
8460 ac_cv_prog_PERL="$ac_prog"
8467 PERL="$ac_cv_prog_PERL"
8468 if test -n "$PERL"; then
8469 echo "$ac_t""$PERL" 1>&6
8471 echo "$ac_t""no
" 1>&6
8474 test -n "$PERL" && break
8476 test -n "$PERL" || PERL="false
"
8484 SIGNAL_HANDLER=include/i386-signal.h
8486 sparc*-sun-solaris*)
8487 SIGNAL_HANDLER=include/sparc-signal.h
8490 # SYSDEP_SOURCES=sysdep/ia64.c
8491 # test -d sysdep || mkdir sysdep
8494 SIGNAL_HANDLER=include/dwarf2-signal.h
8497 SIGNAL_HANDLER=include/powerpc-signal.h
8500 SIGNAL_HANDLER=include/dwarf2-signal.h
8503 SIGNAL_HANDLER=include/s390-signal.h
8506 SIGNAL_HANDLER=include/x86_64-signal.h
8507 SIGNAL_HANDLER_AUX=include/i386-signal.h
8510 SIGNAL_HANDLER=include/dwarf2-signal.h
8512 sh-*-linux* | sh[34]*-*-linux*)
8513 SIGNAL_HANDLER=include/dwarf2-signal.h
8516 SIGNAL_HANDLER=include/win32-signal.h
8519 SIGNAL_HANDLER=include/mips-signal.h
8522 SIGNAL_HANDLER=include/default-signal.h
8526 # If we're using sjlj exceptions, forget what we just learned.
8527 if test "$enable_sjlj_exceptions" = yes; then
8528 SIGNAL_HANDLER=include/default-signal.h
8532 # Define here any compiler flags that you need in order to make backtrace() work.
8535 x86_64*-*-linux*|i?86-*)
8536 BACKTRACESPEC=-fno-omit-frame-pointer
8543 if test -z "$SIGNAL_HANDLER_AUX"; then
8544 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
8549 if test "${multilib}" = "yes"; then
8550 multilib_arg="--enable-multilib"
8557 here=`${PWDCMD-pwd}`
8560 # We get this from the environment.
8564 cat > confcache <<\EOF
8565 # This file is a shell script that caches the results of configure
8566 # tests run on this system so they can be shared between configure
8567 # scripts and configure runs. It is not useful on other systems.
8568 # If it contains results you don't want to keep, you may remove or edit it.
8570 # By default, configure uses ./config.cache as the cache file,
8571 # creating it if it does not exist already. You can give configure
8572 # the --cache-file=FILE option to use a different cache file; that is
8573 # what configure does when it calls configure scripts in
8574 # subdirectories, so they share the cache.
8575 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8576 # config.status only pays attention to the cache file if you give it the
8577 # --recheck option to rerun configure.
8580 # The following way of writing the cache mishandles newlines in values,
8581 # but we know of no workaround that is simple, portable, and efficient.
8582 # So, don't put newlines in cache variables' values.
8583 # Ultrix sh set writes to stderr and can't be redirected directly,
8584 # and sets the high bit in the cache file unless we assign to the vars.
8586 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8588 # `set' does not quote correctly, so add quotes (double-quote substitution
8589 # turns \\\\ into \\, and sed turns \\ into \).
8591 -e "s
/'/'\\\\''/g
" \
8592 -e "s
/^
\\([a-zA-Z0-9_
]*_cv_
[a-zA-Z0-9_
]*\\)=\\(.
*\\)/\\1=\
${\\1='\\2'}/p
"
8595 # `set' quotes correctly as required by POSIX, so do not add quotes.
8596 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8599 if cmp -s $cache_file confcache; then
8602 if test -w $cache_file; then
8603 echo "updating cache
$cache_file"
8604 cat confcache > $cache_file
8606 echo "not updating unwritable cache
$cache_file"
8611 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8613 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
8614 # Let make expand exec_prefix.
8615 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
8617 # Any assignment to VPATH causes Sun make to only execute
8618 # the first set of double-colon rules, so remove it if not needed.
8619 # If there is a colon in the path, we need to keep it.
8620 if test "x
$srcdir" = x.; then
8621 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8624 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8626 DEFS=-DHAVE_CONFIG_H
8628 # Without the ".
/", some shells look in PATH for config.status.
8629 : ${CONFIG_STATUS=./config.status}
8631 echo creating $CONFIG_STATUS
8632 rm -f $CONFIG_STATUS
8633 cat > $CONFIG_STATUS <<EOF
8635 # Generated automatically by configure.
8636 # Run this file to recreate the current configuration.
8637 # This directory was configured as follows,
8638 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8640 # $0 $ac_configure_args
8642 # Compiler output produced by configure, useful for debugging
8643 # configure, is in ./config.log if it exists.
8645 ac_cs_usage="Usage
: $CONFIG_STATUS [--recheck] [--version] [--help]"
8648 case "\
$ac_option" in
8649 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8650 echo "running \
${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8651 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8652 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8653 echo "$CONFIG_STATUS generated by autoconf version
2.13"
8655 -help | --help | --hel | --he | --h)
8656 echo "\
$ac_cs_usage"; exit 0 ;;
8657 *) echo "\
$ac_cs_usage"; exit 1 ;;
8661 ac_given_srcdir=$srcdir
8662 ac_given_INSTALL="$INSTALL"
8664 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
8666 cat >> $CONFIG_STATUS <<EOF
8668 # Protect against being on the right side of a sed subst in config.status.
8669 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8670 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8674 s%@CFLAGS@%$CFLAGS%g
8675 s%@CPPFLAGS@%$CPPFLAGS%g
8676 s%@CXXFLAGS@%$CXXFLAGS%g
8677 s%@FFLAGS@%$FFLAGS%g
8679 s%@LDFLAGS@%$LDFLAGS%g
8681 s%@exec_prefix@%$exec_prefix%g
8682 s%@prefix@%$prefix%g
8683 s%@program_transform_name@%$program_transform_name%g
8684 s%@bindir@%$bindir%g
8685 s%@sbindir@%$sbindir%g
8686 s%@libexecdir@%$libexecdir%g
8687 s%@datadir@%$datadir%g
8688 s%@sysconfdir@%$sysconfdir%g
8689 s%@sharedstatedir@%$sharedstatedir%g
8690 s%@localstatedir@%$localstatedir%g
8691 s%@libdir@%$libdir%g
8692 s%@includedir@%$includedir%g
8693 s%@oldincludedir@%$oldincludedir%g
8694 s%@infodir@%$infodir%g
8695 s%@mandir@%$mandir%g
8697 s%@libgcj_basedir@%$libgcj_basedir%g
8698 s%@mkinstalldirs@%$mkinstalldirs%g
8700 s%@host_alias@%$host_alias%g
8701 s%@host_cpu@%$host_cpu%g
8702 s%@host_vendor@%$host_vendor%g
8703 s%@host_os@%$host_os%g
8704 s%@target@%$target%g
8705 s%@target_alias@%$target_alias%g
8706 s%@target_cpu@%$target_cpu%g
8707 s%@target_vendor@%$target_vendor%g
8708 s%@target_os@%$target_os%g
8710 s%@build_alias@%$build_alias%g
8711 s%@build_cpu@%$build_cpu%g
8712 s%@build_vendor@%$build_vendor%g
8713 s%@build_os@%$build_os%g
8715 s%@glibjava_CXX@%$glibjava_CXX%g
8717 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8718 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8719 s%@INSTALL_DATA@%$INSTALL_DATA%g
8720 s%@PACKAGE@%$PACKAGE%g
8721 s%@VERSION@%$VERSION%g
8722 s%@ACLOCAL@%$ACLOCAL%g
8723 s%@AUTOCONF@%$AUTOCONF%g
8724 s%@AUTOMAKE@%$AUTOMAKE%g
8725 s%@AUTOHEADER@%$AUTOHEADER%g
8726 s%@MAKEINFO@%$MAKEINFO%g
8727 s%@SET_MAKE@%$SET_MAKE%g
8730 s%@RANLIB@%$RANLIB%g
8731 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
8732 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
8734 s%@EXEEXT@%$EXEEXT%g
8735 s%@LIBGCJ_CFLAGS@%$LIBGCJ_CFLAGS%g
8736 s%@LIBGCJ_CXXFLAGS@%$LIBGCJ_CXXFLAGS%g
8737 s%@LIBGCJ_JAVAFLAGS@%$LIBGCJ_JAVAFLAGS%g
8738 s%@INCLTDL@%$INCLTDL%g
8739 s%@LIBLTDL@%$LIBLTDL%g
8740 s%@DIRLTDL@%$DIRLTDL%g
8741 s%@OBJEXT@%$OBJEXT%g
8743 s%@LIBTOOL@%$LIBTOOL%g
8744 s%@CXXCPP@%$CXXCPP%g
8745 s%@subdirs@%$subdirs%g
8746 s%@COMPPATH@%$COMPPATH%g
8747 s%@TESTSUBDIR_TRUE@%$TESTSUBDIR_TRUE%g
8748 s%@TESTSUBDIR_FALSE@%$TESTSUBDIR_FALSE%g
8749 s%@ONESTEP_TRUE@%$ONESTEP_TRUE%g
8750 s%@ONESTEP_FALSE@%$ONESTEP_FALSE%g
8751 s%@LIBGCJDEBUG@%$LIBGCJDEBUG%g
8752 s%@INTERPRETER@%$INTERPRETER%g
8753 s%@LIBFFI@%$LIBFFI%g
8754 s%@LIBFFIINCS@%$LIBFFIINCS%g
8755 s%@EXTRA_CC_FILES@%$EXTRA_CC_FILES%g
8756 s%@PLATFORMOBJS@%$PLATFORMOBJS%g
8758 s%@SYSTEMSPEC@%$SYSTEMSPEC%g
8759 s%@LIBGCJTESTSPEC@%$LIBGCJTESTSPEC%g
8760 s%@ZLIBSPEC@%$ZLIBSPEC%g
8761 s%@ZLIBTESTSPEC@%$ZLIBTESTSPEC%g
8762 s%@X_CFLAGS@%$X_CFLAGS%g
8763 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
8764 s%@X_LIBS@%$X_LIBS%g
8765 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
8766 s%@TOOLKIT@%$TOOLKIT%g
8767 s%@XLIB_AWT_TRUE@%$XLIB_AWT_TRUE%g
8768 s%@XLIB_AWT_FALSE@%$XLIB_AWT_FALSE%g
8769 s%@GTK_AWT_TRUE@%$GTK_AWT_TRUE%g
8770 s%@GTK_AWT_FALSE@%$GTK_AWT_FALSE%g
8771 s%@GTK_CAIRO_TRUE@%$GTK_CAIRO_TRUE%g
8772 s%@GTK_CAIRO_FALSE@%$GTK_CAIRO_FALSE%g
8773 s%@PKG_CONFIG@%$PKG_CONFIG%g
8774 s%@CAIRO_CFLAGS@%$CAIRO_CFLAGS%g
8775 s%@CAIRO_LIBS@%$CAIRO_LIBS%g
8776 s%@PANGOFT2_CFLAGS@%$PANGOFT2_CFLAGS%g
8777 s%@PANGOFT2_LIBS@%$PANGOFT2_LIBS%g
8778 s%@GCLIBS@%$GCLIBS%g
8779 s%@GCINCS@%$GCINCS%g
8780 s%@GCDEPS@%$GCDEPS%g
8781 s%@GCOBJS@%$GCOBJS%g
8782 s%@GCSPEC@%$GCSPEC%g
8783 s%@JC1GCSPEC@%$JC1GCSPEC%g
8784 s%@GCTESTSPEC@%$GCTESTSPEC%g
8785 s%@THREADLIBS@%$THREADLIBS%g
8786 s%@THREADINCS@%$THREADINCS%g
8787 s%@THREADDEPS@%$THREADDEPS%g
8788 s%@THREADOBJS@%$THREADOBJS%g
8789 s%@THREADSPEC@%$THREADSPEC%g
8790 s%@THREADLDFLAGS@%$THREADLDFLAGS%g
8791 s%@THREADCXXFLAGS@%$THREADCXXFLAGS%g
8792 s%@HASH_SYNC_SPEC@%$HASH_SYNC_SPEC%g
8793 s%@USING_GCC_TRUE@%$USING_GCC_TRUE%g
8794 s%@USING_GCC_FALSE@%$USING_GCC_FALSE%g
8795 s%@tool_include_dir@%$tool_include_dir%g
8796 s%@gcc_version@%$gcc_version%g
8797 s%@LIBICONV@%$LIBICONV%g
8798 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
8799 s%@GTK_LIBS@%$GTK_LIBS%g
8800 s%@GLIB_CFLAGS@%$GLIB_CFLAGS%g
8801 s%@GLIB_LIBS@%$GLIB_LIBS%g
8802 s%@LIBART_CFLAGS@%$LIBART_CFLAGS%g
8803 s%@LIBART_LIBS@%$LIBART_LIBS%g
8805 s%@GCJFLAGS@%$GCJFLAGS%g
8807 s%@SYS_ZLIBS@%$SYS_ZLIBS%g
8809 s%@DIVIDESPEC@%$DIVIDESPEC%g
8810 s%@CHECKREFSPEC@%$CHECKREFSPEC%g
8811 s%@EXCEPTIONSPEC@%$EXCEPTIONSPEC%g
8812 s%@IEEESPEC@%$IEEESPEC%g
8813 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
8814 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
8815 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
8816 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
8817 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
8818 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
8819 s%@NEEDS_DATA_START_TRUE@%$NEEDS_DATA_START_TRUE%g
8820 s%@NEEDS_DATA_START_FALSE@%$NEEDS_DATA_START_FALSE%g
8821 s%@GCC_UNWIND_INCLUDE@%$GCC_UNWIND_INCLUDE%g
8822 s%@toolexecdir@%$toolexecdir%g
8823 s%@toolexecmainlibdir@%$toolexecmainlibdir%g
8824 s%@toolexeclibdir@%$toolexeclibdir%g
8825 s%@GCJVERSION@%$GCJVERSION%g
8826 s%@ALLOCA@%$ALLOCA%g
8828 s%@BACKTRACESPEC@%$BACKTRACESPEC%g
8829 s%@SYSDEP_SOURCES@%$SYSDEP_SOURCES%g
8835 cat >> $CONFIG_STATUS <<\EOF
8837 # Split the substitutions into bite-sized pieces for seds with
8838 # small command number limits, like on Digital OSF/1 and HP-UX.
8839 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8840 ac_file=1 # Number of current file.
8841 ac_beg=1 # First line for current file.
8842 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8845 while $ac_more_lines; do
8846 if test $ac_beg -gt 1; then
8847 sed "1,${ac_beg}d
; ${ac_end}q
" conftest.subs > conftest.s$ac_file
8849 sed "${ac_end}q
" conftest.subs > conftest.s$ac_file
8851 if test ! -s conftest.s$ac_file; then
8853 rm -f conftest.s$ac_file
8855 if test -z "$ac_sed_cmds"; then
8856 ac_sed_cmds="sed -f conftest.s
$ac_file"
8858 ac_sed_cmds="$ac_sed_cmds |
sed -f conftest.s
$ac_file"
8860 ac_file=`expr $ac_file + 1`
8862 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8865 if test -z "$ac_sed_cmds"; then
8870 cat >> $CONFIG_STATUS <<EOF
8872 CONFIG_FILES=\${CONFIG_FILES-"Makefile libgcj.pc libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile"}
8874 cat >> $CONFIG_STATUS <<\EOF
8875 for ac_file in .. $CONFIG_FILES; do if test "x
$ac_file" != x..; then
8876 # Support "outfile
[:infile
[:infile...
]]", defaulting infile="outfile.
in".
8878 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8879 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8880 *) ac_file_in="${ac_file}.
in" ;;
8883 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8885 # Remove last slash and all that follows it. Not all systems have dirname.
8886 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8887 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8888 # The file is in a subdirectory.
8889 test ! -d "$ac_dir" && mkdir "$ac_dir"
8890 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8891 # A "..
/" for each directory in $ac_dir_suffix.
8892 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8894 ac_dir_suffix= ac_dots=
8897 case "$ac_given_srcdir" in
8899 if test -z "$ac_dots"; then top_srcdir=.
8900 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8901 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8903 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8904 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8907 case "$ac_given_INSTALL" in
8908 [/$]*) INSTALL="$ac_given_INSTALL" ;;
8909 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8912 echo creating "$ac_file"
8914 configure_input="Generated automatically from
`echo $ac_file_in|sed 's%.*/%%'` by configure.
"
8916 *Makefile*) ac_comsub="1i
\\
8917 # $configure_input" ;;
8921 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8923 s%@configure_input@%$configure_input%g
8924 s%@srcdir@%$srcdir%g
8925 s%@top_srcdir@%$top_srcdir%g
8926 s%@INSTALL@%$INSTALL%g
8927 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
8931 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8932 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8934 # ac_d sets the value in "#define NAME VALUE" lines.
8935 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8936 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
8939 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8940 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8941 ac_uB
='\([ ]\)%\1#\2define\3'
8944 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8945 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8946 ac_eB
='$%\1#\2define\3'
8950 if test "${CONFIG_HEADERS+set}" != set; then
8952 cat >> $CONFIG_STATUS <<EOF
8953 CONFIG_HEADERS="include/config.h gcj/libgcj-config.h"
8955 cat >> $CONFIG_STATUS <<\EOF
8957 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
8958 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8960 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
8961 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
8962 *) ac_file_in
="${ac_file}.in" ;;
8965 echo creating
$ac_file
8967 rm -f conftest.frag conftest.
in conftest.out
8968 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8969 cat $ac_file_inputs > conftest.
in
8973 # Transform confdefs.h into a sed script conftest.vals that substitutes
8974 # the proper values into config.h.in to produce config.h. And first:
8975 # Protect against being on the right side of a sed subst in config.status.
8976 # Protect against being in an unquoted here document in config.status.
8978 cat > conftest.hdr
<<\EOF
8981 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8985 sed -n -f conftest.hdr confdefs.h > conftest.vals
8988 # This sed command replaces #undef with comments. This is necessary, for
8989 # example, in the case of _POSIX_SOURCE, which is predefined and required
8990 # on some systems where configure will not decide to define it.
8991 cat >> conftest.vals <<\EOF
8992 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8995 # Break up conftest.vals because some shells have a limit on
8996 # the size of here documents, and old seds have small limits too.
9001 ac_lines=`grep -c . conftest.vals
`
9002 # grep -c gives empty output for an empty file on some AIX systems.
9003 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9004 # Write a limited-size here document to conftest.frag.
9005 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9006 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9008 sed -f conftest.frag conftest.in > conftest.out
9010 mv conftest.out conftest.in
9012 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9014 mv conftest.tail conftest.vals
9018 cat >> $CONFIG_STATUS <<\EOF
9019 rm -f conftest.frag conftest.h
9020 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9021 cat conftest.in >> conftest.h
9023 if cmp -s $ac_file conftest.h 2>/dev/null; then
9024 echo "$ac_file is unchanged"
9027 # Remove last slash and all that follows it. Not all systems have dirname.
9028 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
9029 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9030 # The file is in a subdirectory.
9031 test ! -d "$ac_dir" && mkdir "$ac_dir"
9034 mv conftest.h $ac_file
9040 cat >> $CONFIG_STATUS <<EOF
9041 ac_sources="include/$PLATFORMH java/io/natFile${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 gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc include/$GCHDR include/$THREADH sysdep/$sysdeps_dir/locks.h $SIGNAL_HANDLER $SIGNAL_HANDLER_AUX"
9042 ac_dests="include/platform.h java/io/natFile.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 gnu/java/nio/channels/natFileChannelImpl.cc include/java-gc.h include/java-threads.h sysdep/locks.h include/java-signal.h include/java-signal-aux.h"
9045 cat >> $CONFIG_STATUS <<\EOF
9046 srcdir=$ac_given_srcdir
9047 while test -n "$ac_sources"; do
9048 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
9049 set $ac_sources; ac_source=$1; shift; ac_sources=$*
9051 echo "linking $srcdir/$ac_source to $ac_dest"
9053 if test ! -r $srcdir/$ac_source; then
9054 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
9058 # Make relative symlinks.
9059 # Remove last slash and all that follows it. Not all systems have dirname.
9060 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
9061 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
9062 # The dest file is in a subdirectory.
9063 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
9064 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
9065 # A "../" for each directory in $ac_dest_dir_suffix.
9066 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
9068 ac_dest_dir_suffix= ac_dots=
9072 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
9073 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
9076 # Make a symlink if possible; otherwise try a hard link.
9077 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9078 ln $srcdir/$ac_source $ac_dest; then :
9080 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
9084 cat >> $CONFIG_STATUS <<EOF
9089 with_multisubdir=${with_multisubdir}
9090 ac_configure_args="${multilib_arg} ${ac_configure_args}"
9091 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
9092 libgcj_basedir=${libgcj_basedir}
9095 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
9098 cat >> $CONFIG_STATUS <<\EOF
9100 for am_file in include/config.h gcj/libgcj-config.h; do
9101 case " $CONFIG_HEADERS " in
9103 echo timestamp > `echo $am_file |
sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
9106 am_indx=`expr "$am_indx" + 1`
9108 # Only add multilib support code if we just rebuilt top-level Makefile.
9109 case " $CONFIG_FILES " in
9111 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
9112 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
9116 # Make subdirectories and `.d
' files. Look in both srcdir and
9117 # builddir for the .java files.
9120 ( (cd $srcdir && find . \( -name '*.java
' -o -name '*.cc
' -o -name '*.c
' \) -print) ;
9121 find . \( -name '*.java
' -o -name '*.cc
' -o -name '*.c
' \) -print) | \
9122 fgrep -v testsuite | \
9123 sed -e 's
/\.java
/.d
/'\;'s
/\.cc
/.d
/'\;'s
/\.c
/.d
/' | \
9125 echo "include $f" >> deps.mk
9128 d=`echo $f | sed -e 's
,/[^
/]*$
,,'`
9130 if test ! -d $d; then
9131 $libgcj_basedir/../mkinstalldirs $d
9139 chmod +x $CONFIG_STATUS
9140 rm -fr confdefs* $ac_clean_files
9141 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
9143 if test "$no_recursion" != yes; then
9145 # Remove --cache-file and --srcdir arguments so they do not pile up.
9146 ac_sub_configure_args=
9148 for ac_arg in $ac_configure_args; do
9149 if test -n "$ac_prev"; then
9154 -cache-file | --cache-file | --cache-fil | --cache-fi \
9155 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
9156 ac_prev=cache_file ;;
9157 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
9158 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
9160 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
9162 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
9164 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
9168 for ac_config_dir in $DIRLTDL; do
9170 # Do not complain, so a configure script can configure whichever
9171 # parts of a large source tree are present.
9172 if test ! -d $srcdir/$ac_config_dir; then
9176 echo configuring in $ac_config_dir
9181 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
9183 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
9191 # A "../" for each directory in /$ac_config_dir.
9192 ac_dots=`echo $ac_config_dir|sed -e 's
%^\.
/%%' -e 's
%[^
/]$
%&/%' -e 's
%[^
/]*/%..
/%g
'`
9195 .) # No --srcdir option. We are building in place.
9196 ac_sub_srcdir=$srcdir ;;
9197 /*) # Absolute path.
9198 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
9200 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
9203 # Check for guested configure; otherwise get Cygnus style configure.
9204 if test -f $ac_sub_srcdir/configure; then
9205 ac_sub_configure=$ac_sub_srcdir/configure
9206 elif test -f $ac_sub_srcdir/configure.in; then
9207 ac_sub_configure=$ac_configure
9209 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
9213 # The recursion is here.
9214 if test -n "$ac_sub_configure"; then
9216 # Make the cache file name correct relative to the subdirectory.
9217 case "$cache_file" in
9218 /*) ac_sub_cache_file=$cache_file ;;
9220 ac_sub_cache_file="$ac_dots$cache_file" ;;
9222 case "$ac_given_INSTALL" in
9223 [/$]*) INSTALL="$ac_given_INSTALL" ;;
9224 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9227 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
9228 # The eval makes quoting arguments work.
9229 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
9232 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }