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 --disable-gtktest do not try to compile and run a test GTK+ program"
79 --disable-glibtest do not try to compile and run a test GLIB program"
81 --with-libart-prefix=PFX Prefix where LIBART is installed (optional)"
83 --with-libart-exec-prefix=PFX Exec prefix where LIBART is installed (optional)"
85 --disable-libarttest Do not try to compile and run a test LIBART program"
87 # Initialize some variables set by options.
88 # The variables have the same names as the options, with
89 # dashes changed to underlines.
91 cache_file
=.
/config.cache
100 program_transform_name
=s
,x
,x
,
108 bindir
='${exec_prefix}/bin'
109 sbindir
='${exec_prefix}/sbin'
110 libexecdir
='${exec_prefix}/libexec'
111 datadir
='${prefix}/share'
112 sysconfdir
='${prefix}/etc'
113 sharedstatedir
='${prefix}/com'
114 localstatedir
='${prefix}/var'
115 libdir
='${exec_prefix}/lib'
116 includedir
='${prefix}/include'
117 oldincludedir
='/usr/include'
118 infodir
='${prefix}/info'
119 mandir
='${prefix}/man'
121 # Initialize some other variables.
124 SHELL
=${CONFIG_SHELL-/bin/sh}
125 # Maximum number of lines to put in a shell here document.
132 # If the previous option needs an argument, assign it.
133 if test -n "$ac_prev"; then
134 eval "$ac_prev=\$ac_option"
140 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
144 # Accept the important Cygnus configure options, so we can diagnose typos.
148 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
150 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
151 bindir
="$ac_optarg" ;;
153 -build |
--build |
--buil |
--bui |
--bu)
155 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
156 build
="$ac_optarg" ;;
158 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
159 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
160 ac_prev
=cache_file
;;
161 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
162 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
163 cache_file
="$ac_optarg" ;;
165 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
167 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
169 datadir
="$ac_optarg" ;;
171 -disable-* |
--disable-*)
172 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
173 # Reject names that are not valid shell variable names.
174 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
175 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
177 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
178 eval "enable_${ac_feature}=no" ;;
180 -enable-* |
--enable-*)
181 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
182 # Reject names that are not valid shell variable names.
183 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
184 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
186 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
191 eval "enable_${ac_feature}='$ac_optarg'" ;;
193 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
194 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
195 |
--exec |
--exe |
--ex)
196 ac_prev
=exec_prefix
;;
197 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
198 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
199 |
--exec=* |
--exe=* |
--ex=*)
200 exec_prefix
="$ac_optarg" ;;
202 -gas |
--gas |
--ga |
--g)
203 # Obsolete; use --with-gas.
206 -help |
--help |
--hel |
--he)
207 # Omit some internal or obsolete options to make the list less imposing.
208 # This message is too long to be a string in the A/UX 3.1 sh.
210 Usage: configure [options] [host]
211 Options: [defaults in brackets after descriptions]
213 --cache-file=FILE cache test results in FILE
214 --help print this message
215 --no-create do not create output files
216 --quiet, --silent do not print \`checking...' messages
217 --version print the version of autoconf that created configure
218 Directory and file names:
219 --prefix=PREFIX install architecture-independent files in PREFIX
221 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
223 --bindir=DIR user executables in DIR [EPREFIX/bin]
224 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
225 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
226 --datadir=DIR read-only architecture-independent data in DIR
228 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
229 --sharedstatedir=DIR modifiable architecture-independent data in DIR
231 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
232 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
233 --includedir=DIR C header files in DIR [PREFIX/include]
234 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
235 --infodir=DIR info documentation in DIR [PREFIX/info]
236 --mandir=DIR man documentation in DIR [PREFIX/man]
237 --srcdir=DIR find the sources in DIR [configure dir or ..]
238 --program-prefix=PREFIX prepend PREFIX to installed program names
239 --program-suffix=SUFFIX append SUFFIX to installed program names
240 --program-transform-name=PROGRAM
241 run sed PROGRAM on installed program names
245 --build=BUILD configure for building on BUILD [BUILD=HOST]
246 --host=HOST configure for HOST [guessed]
247 --target=TARGET configure for TARGET [TARGET=HOST]
248 Features and packages:
249 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
250 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
251 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
252 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
253 --x-includes=DIR X include files are in DIR
254 --x-libraries=DIR X library files are in DIR
256 if test -n "$ac_help"; then
257 echo "--enable and --with options recognized:$ac_help"
261 -host |
--host |
--hos |
--ho)
263 -host=* |
--host=* |
--hos=* |
--ho=*)
266 -includedir |
--includedir |
--includedi |
--included |
--include \
267 |
--includ |
--inclu |
--incl |
--inc)
268 ac_prev
=includedir
;;
269 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
270 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
271 includedir
="$ac_optarg" ;;
273 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
275 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
276 infodir
="$ac_optarg" ;;
278 -libdir |
--libdir |
--libdi |
--libd)
280 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
281 libdir
="$ac_optarg" ;;
283 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
284 |
--libexe |
--libex |
--libe)
285 ac_prev
=libexecdir
;;
286 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
287 |
--libexe=* |
--libex=* |
--libe=*)
288 libexecdir
="$ac_optarg" ;;
290 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
291 |
--localstate |
--localstat |
--localsta |
--localst \
292 |
--locals |
--local |
--loca |
--loc |
--lo)
293 ac_prev
=localstatedir
;;
294 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
295 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
296 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
297 localstatedir
="$ac_optarg" ;;
299 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
301 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
302 mandir
="$ac_optarg" ;;
305 # Obsolete; use --without-fp.
308 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
312 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
313 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
316 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
317 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
318 |
--oldin |
--oldi |
--old |
--ol |
--o)
319 ac_prev
=oldincludedir
;;
320 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
321 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
322 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
323 oldincludedir
="$ac_optarg" ;;
325 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
327 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
328 prefix
="$ac_optarg" ;;
330 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
331 |
--program-pre |
--program-pr |
--program-p)
332 ac_prev
=program_prefix
;;
333 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
334 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
335 program_prefix
="$ac_optarg" ;;
337 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
338 |
--program-suf |
--program-su |
--program-s)
339 ac_prev
=program_suffix
;;
340 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
341 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
342 program_suffix
="$ac_optarg" ;;
344 -program-transform-name |
--program-transform-name \
345 |
--program-transform-nam |
--program-transform-na \
346 |
--program-transform-n |
--program-transform- \
347 |
--program-transform |
--program-transfor \
348 |
--program-transfo |
--program-transf \
349 |
--program-trans |
--program-tran \
350 |
--progr-tra |
--program-tr |
--program-t)
351 ac_prev
=program_transform_name
;;
352 -program-transform-name=* |
--program-transform-name=* \
353 |
--program-transform-nam=* |
--program-transform-na=* \
354 |
--program-transform-n=* |
--program-transform-=* \
355 |
--program-transform=* |
--program-transfor=* \
356 |
--program-transfo=* |
--program-transf=* \
357 |
--program-trans=* |
--program-tran=* \
358 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
359 program_transform_name
="$ac_optarg" ;;
361 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
362 |
-silent |
--silent |
--silen |
--sile |
--sil)
365 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
367 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
369 sbindir
="$ac_optarg" ;;
371 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
372 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
373 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
375 ac_prev
=sharedstatedir
;;
376 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
377 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
378 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
380 sharedstatedir
="$ac_optarg" ;;
382 -site |
--site |
--sit)
384 -site=* |
--site=* |
--sit=*)
387 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
389 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
390 srcdir
="$ac_optarg" ;;
392 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
393 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
394 ac_prev
=sysconfdir
;;
395 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
396 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
397 sysconfdir
="$ac_optarg" ;;
399 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
401 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
402 target
="$ac_optarg" ;;
404 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
407 -version |
--version |
--versio |
--versi |
--vers)
408 echo "configure generated by autoconf version 2.13"
412 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
413 # Reject names that are not valid shell variable names.
414 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
415 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
417 ac_package
=`echo $ac_package| sed 's/-/_/g'`
422 eval "with_${ac_package}='$ac_optarg'" ;;
424 -without-* |
--without-*)
425 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
426 # Reject names that are not valid shell variable names.
427 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
428 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
430 ac_package
=`echo $ac_package| sed 's/-/_/g'`
431 eval "with_${ac_package}=no" ;;
434 # Obsolete; use --with-x.
437 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
438 |
--x-incl |
--x-inc |
--x-in |
--x-i)
439 ac_prev
=x_includes
;;
440 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
441 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
442 x_includes
="$ac_optarg" ;;
444 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
445 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
446 ac_prev
=x_libraries
;;
447 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
448 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
449 x_libraries
="$ac_optarg" ;;
451 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
455 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
456 echo "configure: warning: $ac_option: invalid host type" 1>&2
458 if test "x$nonopt" != xNONE
; then
459 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
467 if test -n "$ac_prev"; then
468 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
471 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
473 # File descriptor usage:
476 # 2 errors and warnings
477 # 3 some systems may open it to /dev/tty
478 # 4 used on the Kubota Titan
479 # 6 checking for... messages and results
480 # 5 compiler messages saved in config.log
481 if test "$silent" = yes; then
489 This file contains any messages produced by compilers while
490 running configure, to aid debugging if configure makes a mistake.
493 # Strip out --no-create and --no-recursion so they do not pile up.
494 # Also quote any args containing shell metacharacters.
499 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
500 |
--no-cr |
--no-c) ;;
501 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
502 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
503 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
504 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
505 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
510 # Only set these to C if already set. These must not be set unconditionally
511 # because not all systems understand e.g. LANG=C (notably SCO).
512 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
513 # Non-C LC_CTYPE values break the ctype check.
514 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
515 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
516 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
517 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
519 # confdefs.h avoids OS command line length limits that DEFS can exceed.
520 rm -rf conftest
* confdefs.h
521 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
524 # A filename unique to this package, relative to the directory that
525 # configure is in, which we can look for to find out if srcdir is correct.
526 ac_unique_file
=java
/lang
/System.java
528 # Find the source files, if location was not specified.
529 if test -z "$srcdir"; then
530 ac_srcdir_defaulted
=yes
531 # Try the directory containing this script, then its parent.
533 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
534 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
536 if test ! -r $srcdir/$ac_unique_file; then
540 ac_srcdir_defaulted
=no
542 if test ! -r $srcdir/$ac_unique_file; then
543 if test "$ac_srcdir_defaulted" = yes; then
544 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
546 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
549 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
551 # Prefer explicitly selected file to automatically selected ones.
552 if test -z "$CONFIG_SITE"; then
553 if test "x$prefix" != xNONE
; then
554 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
556 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
559 for ac_site_file
in $CONFIG_SITE; do
560 if test -r "$ac_site_file"; then
561 echo "loading site script $ac_site_file"
566 if test -r "$cache_file"; then
567 echo "loading cache $cache_file"
570 echo "creating cache $cache_file"
575 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
576 ac_cpp
='$CPP $CPPFLAGS'
577 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
578 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
579 cross_compiling
=$ac_cv_prog_cc_cross
583 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
584 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
585 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
592 ac_n
= ac_c
='\c' ac_t
=
597 # This works around the fact that libtool configuration may change LD
598 # for this particular configuration, but some shells, instead of
599 # keeping the changes in LD private, export them just because LD is
601 ORIGINAL_LD_FOR_MULTILIBS
=$LD
603 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
604 echo "configure:605: checking whether ln -s works" >&5
605 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
606 echo $ac_n "(cached) $ac_c" 1>&6
609 if ln -s X conftestdata
2>/dev
/null
612 ac_cv_prog_LN_S
="ln -s"
617 LN_S
="$ac_cv_prog_LN_S"
618 if test "$ac_cv_prog_LN_S" = "ln -s"; then
619 echo "$ac_t""yes" 1>&6
621 echo "$ac_t""no" 1>&6
625 # Check whether --with-target-subdir or --without-target-subdir was given.
626 if test "${with_target_subdir+set}" = set; then
627 withval
="$with_target_subdir"
631 # Check whether --with-cross-host or --without-cross-host was given.
632 if test "${with_cross_host+set}" = set; then
633 withval
="$with_cross_host"
638 # Check whether --with-newlib or --without-newlib was given.
639 if test "${with_newlib+set}" = set; then
640 withval
="$with_newlib"
645 am__api_version
="1.4"
646 # Find a good install program. We prefer a C program (faster),
647 # so one script is as good as another. But avoid the broken or
648 # incompatible versions:
649 # SysV /etc/install, /usr/sbin/install
650 # SunOS /usr/etc/install
653 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
654 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
655 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
656 # ./install, which can be erroneously created by make from ./install.sh.
657 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
658 echo "configure:659: checking for a BSD compatible install" >&5
659 if test -z "$INSTALL"; then
660 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
661 echo $ac_n "(cached) $ac_c" 1>&6
663 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
664 for ac_dir
in $PATH; do
665 # Account for people who put trailing slashes in PATH elements.
667 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
669 # OSF1 and SCO ODT 3.0 have their own names for install.
670 # Don't use installbsd from OSF since it installs stuff as root
672 for ac_prog
in ginstall scoinst
install; do
673 if test -f $ac_dir/$ac_prog; then
674 if test $ac_prog = install &&
675 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
676 # AIX install. It has an incompatible calling convention.
679 ac_cv_path_install
="$ac_dir/$ac_prog -c"
690 if test "${ac_cv_path_install+set}" = set; then
691 INSTALL
="$ac_cv_path_install"
693 # As a last resort, use the slow shell script. We don't cache a
694 # path for INSTALL within a source directory, because that will
695 # break other packages using the cache if that directory is
696 # removed, or if the path is relative.
697 INSTALL
="$ac_install_sh"
700 echo "$ac_t""$INSTALL" 1>&6
702 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
703 # It thinks the first close brace ends the variable substitution.
704 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
706 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
708 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
710 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
711 echo "configure:712: checking whether build environment is sane" >&5
714 echo timestamp
> conftestfile
715 # Do `set' in a subshell so we don't clobber the current shell's
716 # arguments. Must try -L first in case configure is actually a
717 # symlink; some systems play weird games with the mod time of symlinks
718 # (eg FreeBSD returns the mod time of the symlink's containing
721 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
722 if test "$*" = "X"; then
724 set X
`ls -t $srcdir/configure conftestfile`
726 if test "$*" != "X $srcdir/configure conftestfile" \
727 && test "$*" != "X conftestfile $srcdir/configure"; then
729 # If neither matched, then we have a broken ls. This can happen
730 # if, for instance, CONFIG_SHELL is bash and it inherits a
731 # broken ls alias from the environment. This has actually
732 # happened. Such a system could not be considered "sane".
733 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
734 alias in your environment" 1>&2; exit 1; }
737 test "$2" = conftestfile
743 { echo "configure: error: newly created file is older than distributed files!
744 Check your system clock" 1>&2; exit 1; }
747 echo "$ac_t""yes" 1>&6
748 if test "$program_transform_name" = s
,x
,x
,; then
749 program_transform_name
=
751 # Double any \ or $. echo might interpret backslashes.
752 cat <<\EOF_SED
> conftestsed
753 s
,\\,\\\\,g
; s
,\$
,$$
,g
755 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
758 test "$program_prefix" != NONE
&&
759 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
760 # Use a double $ so make ignores it.
761 test "$program_suffix" != NONE
&&
762 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
764 # sed with no file args requires a program.
765 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
767 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
768 echo "configure:769: checking whether ${MAKE-make} sets \${MAKE}" >&5
769 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
770 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
771 echo $ac_n "(cached) $ac_c" 1>&6
773 cat > conftestmake
<<\EOF
775 @
echo 'ac_maketemp="${MAKE}"'
777 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
778 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
779 if test -n "$ac_maketemp"; then
780 eval ac_cv_prog_make_
${ac_make}_set
=yes
782 eval ac_cv_prog_make_
${ac_make}_set
=no
786 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
787 echo "$ac_t""yes" 1>&6
790 echo "$ac_t""no" 1>&6
791 SET_MAKE
="MAKE=${MAKE-make}"
794 if test $host != $build; then
795 ac_tool_prefix
=${host_alias}-
800 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
801 echo "configure:802: checking for Cygwin environment" >&5
802 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
803 echo $ac_n "(cached) $ac_c" 1>&6
805 cat > conftest.
$ac_ext <<EOF
806 #line 807 "configure"
807 #include "confdefs.h"
812 #define __CYGWIN__ __CYGWIN32__
817 if { (eval echo configure
:818: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
821 echo "configure: failed program was:" >&5
822 cat conftest.
$ac_ext >&5
830 echo "$ac_t""$ac_cv_cygwin" 1>&6
832 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
833 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
834 echo "configure:835: checking for mingw32 environment" >&5
835 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
836 echo $ac_n "(cached) $ac_c" 1>&6
838 cat > conftest.
$ac_ext <<EOF
839 #line 840 "configure"
840 #include "confdefs.h"
846 if { (eval echo configure
:847: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
850 echo "configure: failed program was:" >&5
851 cat conftest.
$ac_ext >&5
859 echo "$ac_t""$ac_cv_mingw32" 1>&6
861 test "$ac_cv_mingw32" = yes && MINGW32
=yes
863 # Check whether --enable-multilib or --disable-multilib was given.
864 if test "${enable_multilib+set}" = set; then
865 enableval
="$enable_multilib"
866 case "${enableval}" in
869 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
876 # When building with srcdir == objdir, links to the source files will
877 # be created in directories within the target_subdir. We have to
878 # adjust toplevel_srcdir accordingly, so that configure finds
879 # install-sh and other auxiliary files that live in the top-level
881 if test "${srcdir}" = "."; then
882 if test -z "${with_target_subdir}"; then
885 if test "${with_target_subdir}" != "."; then
886 toprel
="${with_multisrctop}../.."
888 toprel
="${with_multisrctop}.."
895 libgcj_basedir
=$srcdir/$toprel/.
/libjava
899 for ac_dir
in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
900 if test -f $ac_dir/install-sh
; then
902 ac_install_sh
="$ac_aux_dir/install-sh -c"
904 elif test -f $ac_dir/install.sh
; then
906 ac_install_sh
="$ac_aux_dir/install.sh -c"
910 if test -z "$ac_aux_dir"; then
911 { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
913 ac_config_guess=$ac_aux_dir/config.guess
914 ac_config_sub=$ac_aux_dir/config.sub
915 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
918 # This overrides the previous occurrence for automake, but not for
919 # autoconf, which is exactly what we want.
921 for ac_dir in .. $srcdir/..; do
922 if test -f $ac_dir/install-sh; then
924 ac_install_sh="$ac_aux_dir/install-sh
-c"
926 elif test -f $ac_dir/install.sh; then
928 ac_install_sh="$ac_aux_dir/install.sh
-c"
932 if test -z "$ac_aux_dir"; then
933 { echo "configure
: error
: can not
find install-sh or
install.sh
in ..
$srcdir/..
" 1>&2; exit 1; }
935 ac_config_guess=$ac_aux_dir/config.guess
936 ac_config_sub=$ac_aux_dir/config.sub
937 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
941 # This works around an automake problem.
942 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs
"
946 # Do some error checking and defaulting for the host and target type.
948 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
951 # 1. You are not allowed to specify --host, --target, and nonopt at the
953 # 2. Host defaults to nonopt.
954 # 3. If nonopt is not specified, then host defaults to the current host,
955 # as determined by config.guess.
956 # 4. Target and build default to nonopt.
957 # 5. If nonopt is not specified, then target and build default to host.
959 # The aliases save the names the user supplied, while $host etc.
960 # will get canonicalized.
961 case $host---$target---$nonopt in
962 NONE---*---* | *---NONE---* | *---*---NONE) ;;
963 *) { echo "configure
: error
: can only configure
for one
host and one target
at a
time" 1>&2; exit 1; } ;;
967 # Make sure we can run config.sub.
968 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
969 else { echo "configure
: error
: can not run
$ac_config_sub" 1>&2; exit 1; }
972 echo $ac_n "checking
host system
type""...
$ac_c" 1>&6
973 echo "configure
:974: checking
host system
type" >&5
976 case "$host_alias" in
980 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
981 else { echo "configure
: error
: can not guess
host type; you must specify one
" 1>&2; exit 1; }
983 *) host_alias=$nonopt ;;
987 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
988 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
989 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
990 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
991 echo "$ac_t""$host" 1>&6
993 echo $ac_n "checking target system
type""...
$ac_c" 1>&6
994 echo "configure
:995: checking target system
type" >&5
997 case "$target_alias" in
1000 NONE) target_alias=$host_alias ;;
1001 *) target_alias=$nonopt ;;
1005 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1006 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1007 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1008 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1009 echo "$ac_t""$target" 1>&6
1011 echo $ac_n "checking build system
type""...
$ac_c" 1>&6
1012 echo "configure
:1013: checking build system
type" >&5
1015 case "$build_alias" in
1018 NONE) build_alias=$host_alias ;;
1019 *) build_alias=$nonopt ;;
1023 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1024 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1025 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1026 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1027 echo "$ac_t""$build" 1>&6
1029 test "$host_alias" != "$target_alias" &&
1030 test "$program_prefix$program_suffix$program_transform_name" = \
1032 program_prefix=${target_alias}-
1038 # Extract the first word of "gcc
", so it can be a program name with args.
1039 set dummy gcc; ac_word=$2
1040 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1041 echo "configure
:1042: checking
for $ac_word" >&5
1042 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1043 echo $ac_n "(cached
) $ac_c" 1>&6
1045 if test -n "$CC"; then
1046 ac_cv_prog_CC="$CC" # Let the user override the test.
1048 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1050 for ac_dir in $ac_dummy; do
1051 test -z "$ac_dir" && ac_dir=.
1052 if test -f $ac_dir/$ac_word; then
1061 if test -n "$CC"; then
1062 echo "$ac_t""$CC" 1>&6
1064 echo "$ac_t""no
" 1>&6
1067 if test -z "$CC"; then
1068 # Extract the first word of "cc
", so it can be a program name with args.
1069 set dummy cc; ac_word=$2
1070 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1071 echo "configure
:1072: checking
for $ac_word" >&5
1072 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1073 echo $ac_n "(cached
) $ac_c" 1>&6
1075 if test -n "$CC"; then
1076 ac_cv_prog_CC="$CC" # Let the user override the test.
1078 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1081 for ac_dir in $ac_dummy; do
1082 test -z "$ac_dir" && ac_dir=.
1083 if test -f $ac_dir/$ac_word; then
1084 if test "$ac_dir/$ac_word" = "/usr
/ucb
/cc
"; then
1085 ac_prog_rejected=yes
1093 if test $ac_prog_rejected = yes; then
1094 # We found a bogon in the path, so make sure we never use it.
1095 set dummy $ac_cv_prog_CC
1097 if test $# -gt 0; then
1098 # We chose a different compiler from the bogus one.
1099 # However, it has the same basename, so the bogon will be chosen
1100 # first if we set CC to just the basename; use the full file name.
1102 set dummy "$ac_dir/$ac_word" "$@
"
1110 if test -n "$CC"; then
1111 echo "$ac_t""$CC" 1>&6
1113 echo "$ac_t""no
" 1>&6
1116 if test -z "$CC"; then
1117 case "`uname -s`" in
1119 # Extract the first word of "cl
", so it can be a program name with args.
1120 set dummy cl; ac_word=$2
1121 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1122 echo "configure
:1123: checking
for $ac_word" >&5
1123 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1124 echo $ac_n "(cached
) $ac_c" 1>&6
1126 if test -n "$CC"; then
1127 ac_cv_prog_CC="$CC" # Let the user override the test.
1129 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1131 for ac_dir in $ac_dummy; do
1132 test -z "$ac_dir" && ac_dir=.
1133 if test -f $ac_dir/$ac_word; then
1142 if test -n "$CC"; then
1143 echo "$ac_t""$CC" 1>&6
1145 echo "$ac_t""no
" 1>&6
1150 test -z "$CC" && { echo "configure
: error
: no acceptable cc found
in \
$PATH" 1>&2; exit 1; }
1154 echo $ac_n "checking whether we are using GNU C
""...
$ac_c" 1>&6
1155 echo "configure
:1156: checking whether we are using GNU C
" >&5
1156 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1157 echo $ac_n "(cached
) $ac_c" 1>&6
1159 cat > conftest.c <<EOF
1164 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1165: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1171 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1173 if test $ac_cv_prog_gcc = yes; then
1179 ac_test_CFLAGS="${CFLAGS+set}"
1180 ac_save_CFLAGS="$CFLAGS"
1182 echo $ac_n "checking whether
${CC-cc} accepts
-g""...
$ac_c" 1>&6
1183 echo "configure
:1184: checking whether
${CC-cc} accepts
-g" >&5
1184 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1185 echo $ac_n "(cached
) $ac_c" 1>&6
1187 echo 'void f(){}' > conftest.c
1188 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1197 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1198 if test "$ac_test_CFLAGS" = set; then
1199 CFLAGS="$ac_save_CFLAGS"
1200 elif test $ac_cv_prog_cc_g = yes; then
1201 if test "$GCC" = yes; then
1207 if test "$GCC" = yes; then
1215 # We use the libstdc++-v3 version of LIB_AC_PROG_CXX, but use
1216 # glibjava_CXX instead of glibcpp_CXX. That's because we're passed a
1217 # different definition of CXX than other directories, since we don't
1218 # depend on libstdc++-v3 having already been built.
1222 # Use glibjava_CXX so that we do not cause CXX to be cached with the
1223 # flags that come in CXX while configuring libjava. They're different
1224 # from those used for all other target libraries. If CXX is set in
1225 # the environment, respect that here.
1227 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1229 # Extract the first word of "$ac_prog", so it can be a program name with args.
1230 set dummy $ac_prog; ac_word=$2
1231 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1232 echo "configure
:1233: checking
for $ac_word" >&5
1233 if eval "test \"`echo '$''{'ac_cv_prog_glibjava_CXX'+set}'`\" = set"; then
1234 echo $ac_n "(cached
) $ac_c" 1>&6
1236 if test -n "$glibjava_CXX"; then
1237 ac_cv_prog_glibjava_CXX="$glibjava_CXX" # Let the user override the test.
1239 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1241 for ac_dir in $ac_dummy; do
1242 test -z "$ac_dir" && ac_dir=.
1243 if test -f $ac_dir/$ac_word; then
1244 ac_cv_prog_glibjava_CXX="$ac_prog"
1251 glibjava_CXX="$ac_cv_prog_glibjava_CXX"
1252 if test -n "$glibjava_CXX"; then
1253 echo "$ac_t""$glibjava_CXX" 1>&6
1255 echo "$ac_t""no
" 1>&6
1258 test -n "$glibjava_CXX" && break
1260 test -n "$glibjava_CXX" || glibjava_CXX="gcc
"
1264 test -z "$glibjava_CXX" && { echo "configure
: error
: no acceptable c
++ found
in \
$PATH" 1>&2; exit 1; }
1266 echo $ac_n "checking whether we are using GNU C
++""...
$ac_c" 1>&6
1267 echo "configure
:1268: checking whether we are using GNU C
++" >&5
1268 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1269 echo $ac_n "(cached
) $ac_c" 1>&6
1271 cat > conftest.C <<EOF
1276 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1277: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1283 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1285 if test $ac_cv_prog_gxx = yes; then
1287 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1288 ac_save_CXXFLAGS="$CXXFLAGS"
1290 echo $ac_n "checking whether
${CXX-g++} accepts
-g""...
$ac_c" 1>&6
1291 echo "configure
:1292: checking whether
${CXX-g++} accepts
-g" >&5
1292 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1293 echo $ac_n "(cached
) $ac_c" 1>&6
1295 echo 'void f(){}' > conftest.cc
1296 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1297 ac_cv_prog_cxx_g=yes
1305 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1306 if test "$ac_test_CXXFLAGS" = set; then
1307 CXXFLAGS="$ac_save_CXXFLAGS"
1308 elif test $ac_cv_prog_cxx_g = yes; then
1315 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1325 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1326 { echo "configure
: error
: source directory already configured
; run
"make distclean" there first
" 1>&2; exit 1; }
1328 cat >> confdefs.h <<EOF
1329 #define PACKAGE "$PACKAGE"
1332 cat >> confdefs.h <<EOF
1333 #define VERSION "$VERSION"
1338 missing_dir=`cd $ac_aux_dir && pwd`
1339 echo $ac_n "checking
for working aclocal-
${am__api_version}""...
$ac_c" 1>&6
1340 echo "configure
:1341: checking
for working aclocal-
${am__api_version}" >&5
1341 # Run test in a subshell; some versions of sh will print an error if
1342 # an executable is not found, even if stderr is redirected.
1343 # Redirect stdin to placate older versions of autoconf. Sigh.
1344 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1345 ACLOCAL=aclocal-${am__api_version}
1346 echo "$ac_t""found
" 1>&6
1348 ACLOCAL="$missing_dir/missing aclocal-
${am__api_version}"
1349 echo "$ac_t""missing
" 1>&6
1352 echo $ac_n "checking
for working autoconf
""...
$ac_c" 1>&6
1353 echo "configure
:1354: checking
for working autoconf
" >&5
1354 # Run test in a subshell; some versions of sh will print an error if
1355 # an executable is not found, even if stderr is redirected.
1356 # Redirect stdin to placate older versions of autoconf. Sigh.
1357 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1359 echo "$ac_t""found
" 1>&6
1361 AUTOCONF="$missing_dir/missing autoconf
"
1362 echo "$ac_t""missing
" 1>&6
1365 echo $ac_n "checking
for working automake-
${am__api_version}""...
$ac_c" 1>&6
1366 echo "configure
:1367: checking
for working automake-
${am__api_version}" >&5
1367 # Run test in a subshell; some versions of sh will print an error if
1368 # an executable is not found, even if stderr is redirected.
1369 # Redirect stdin to placate older versions of autoconf. Sigh.
1370 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1371 AUTOMAKE=automake-${am__api_version}
1372 echo "$ac_t""found
" 1>&6
1374 AUTOMAKE="$missing_dir/missing automake-
${am__api_version}"
1375 echo "$ac_t""missing
" 1>&6
1378 echo $ac_n "checking
for working autoheader
""...
$ac_c" 1>&6
1379 echo "configure
:1380: checking
for working autoheader
" >&5
1380 # Run test in a subshell; some versions of sh will print an error if
1381 # an executable is not found, even if stderr is redirected.
1382 # Redirect stdin to placate older versions of autoconf. Sigh.
1383 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1384 AUTOHEADER=autoheader
1385 echo "$ac_t""found
" 1>&6
1387 AUTOHEADER="$missing_dir/missing autoheader
"
1388 echo "$ac_t""missing
" 1>&6
1391 echo $ac_n "checking
for working makeinfo
""...
$ac_c" 1>&6
1392 echo "configure
:1393: checking
for working makeinfo
" >&5
1393 # Run test in a subshell; some versions of sh will print an error if
1394 # an executable is not found, even if stderr is redirected.
1395 # Redirect stdin to placate older versions of autoconf. Sigh.
1396 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1398 echo "$ac_t""found
" 1>&6
1400 MAKEINFO="$missing_dir/missing makeinfo
"
1401 echo "$ac_t""missing
" 1>&6
1406 # Extract the first word of "${ac_tool_prefix}as
", so it can be a program name with args.
1407 set dummy ${ac_tool_prefix}as; ac_word=$2
1408 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1409 echo "configure
:1410: checking
for $ac_word" >&5
1410 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1411 echo $ac_n "(cached
) $ac_c" 1>&6
1413 if test -n "$AS"; then
1414 ac_cv_prog_AS="$AS" # Let the user override the test.
1416 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1418 for ac_dir in $ac_dummy; do
1419 test -z "$ac_dir" && ac_dir=.
1420 if test -f $ac_dir/$ac_word; then
1421 ac_cv_prog_AS="${ac_tool_prefix}as
"
1426 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as
"
1430 if test -n "$AS"; then
1431 echo "$ac_t""$AS" 1>&6
1433 echo "$ac_t""no
" 1>&6
1438 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1439 set dummy ${ac_tool_prefix}ar; ac_word=$2
1440 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1441 echo "configure
:1442: checking
for $ac_word" >&5
1442 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1443 echo $ac_n "(cached
) $ac_c" 1>&6
1445 if test -n "$AR"; then
1446 ac_cv_prog_AR="$AR" # Let the user override the test.
1448 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1450 for ac_dir in $ac_dummy; do
1451 test -z "$ac_dir" && ac_dir=.
1452 if test -f $ac_dir/$ac_word; then
1453 ac_cv_prog_AR="${ac_tool_prefix}ar"
1458 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1462 if test -n "$AR"; then
1463 echo "$ac_t""$AR" 1>&6
1465 echo "$ac_t""no
" 1>&6
1470 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
1471 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1472 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1473 echo "configure
:1474: checking
for $ac_word" >&5
1474 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1475 echo $ac_n "(cached
) $ac_c" 1>&6
1477 if test -n "$RANLIB"; then
1478 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1480 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1482 for ac_dir in $ac_dummy; do
1483 test -z "$ac_dir" && ac_dir=.
1484 if test -f $ac_dir/$ac_word; then
1485 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
1492 RANLIB="$ac_cv_prog_RANLIB"
1493 if test -n "$RANLIB"; then
1494 echo "$ac_t""$RANLIB" 1>&6
1496 echo "$ac_t""no
" 1>&6
1500 if test -z "$ac_cv_prog_RANLIB"; then
1501 if test -n "$ac_tool_prefix"; then
1502 # Extract the first word of "ranlib
", so it can be a program name with args.
1503 set dummy ranlib; ac_word=$2
1504 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1505 echo "configure
:1506: checking
for $ac_word" >&5
1506 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1507 echo $ac_n "(cached
) $ac_c" 1>&6
1509 if test -n "$RANLIB"; then
1510 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1512 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1514 for ac_dir in $ac_dummy; do
1515 test -z "$ac_dir" && ac_dir=.
1516 if test -f $ac_dir/$ac_word; then
1517 ac_cv_prog_RANLIB="ranlib
"
1522 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1525 RANLIB="$ac_cv_prog_RANLIB"
1526 if test -n "$RANLIB"; then
1527 echo "$ac_t""$RANLIB" 1>&6
1529 echo "$ac_t""no
" 1>&6
1538 # Find a good install program. We prefer a C program (faster),
1539 # so one script is as good as another. But avoid the broken or
1540 # incompatible versions:
1541 # SysV /etc/install, /usr/sbin/install
1542 # SunOS /usr/etc/install
1543 # IRIX /sbin/install
1545 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1546 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1547 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff
"
1548 # ./install, which can be erroneously created by make from ./install.sh.
1549 echo $ac_n "checking
for a BSD compatible
install""...
$ac_c" 1>&6
1550 echo "configure
:1551: checking
for a BSD compatible
install" >&5
1551 if test -z "$INSTALL"; then
1552 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1553 echo $ac_n "(cached
) $ac_c" 1>&6
1555 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1556 for ac_dir in $PATH; do
1557 # Account for people who put trailing slashes in PATH elements.
1559 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1561 # OSF1 and SCO ODT 3.0 have their own names for install.
1562 # Don't use installbsd from OSF since it installs stuff as root
1564 for ac_prog in ginstall scoinst install; do
1565 if test -f $ac_dir/$ac_prog; then
1566 if test $ac_prog = install &&
1567 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1568 # AIX install. It has an incompatible calling convention.
1571 ac_cv_path_install="$ac_dir/$ac_prog -c"
1582 if test "${ac_cv_path_install+set}" = set; then
1583 INSTALL="$ac_cv_path_install"
1585 # As a last resort, use the slow shell script. We don't cache a
1586 # path for INSTALL within a source directory, because that will
1587 # break other packages using the cache if that directory is
1588 # removed, or if the path is relative.
1589 INSTALL="$ac_install_sh"
1592 echo "$ac_t""$INSTALL" 1>&6
1594 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1595 # It thinks the first close brace ends the variable substitution.
1596 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1598 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1600 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1603 echo $ac_n "checking whether to
enable maintainer-specific portions of Makefiles
""...
$ac_c" 1>&6
1604 echo "configure
:1605: checking whether to
enable maintainer-specific portions of Makefiles
" >&5
1605 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1606 if test "${enable_maintainer_mode+set}" = set; then
1607 enableval="$enable_maintainer_mode"
1608 USE_MAINTAINER_MODE=$enableval
1610 USE_MAINTAINER_MODE=no
1613 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1616 if test $USE_MAINTAINER_MODE = yes; then
1617 MAINTAINER_MODE_TRUE=
1618 MAINTAINER_MODE_FALSE='#'
1620 MAINTAINER_MODE_TRUE='#'
1621 MAINTAINER_MODE_FALSE=
1623 MAINT=$MAINTAINER_MODE_TRUE
1629 echo $ac_n "checking
for executable suffix
""...
$ac_c" 1>&6
1630 echo "configure
:1631: checking
for executable suffix
" >&5
1631 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1632 echo $ac_n "(cached
) $ac_c" 1>&6
1634 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1638 echo 'int main () { return 0; }' > conftest.$ac_ext
1640 if { (eval echo configure:1641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1641 for file in conftest.*; do
1643 *.$ac_ext | *.c | *.o | *.obj) ;;
1644 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1648 { echo "configure
: error
: installation or configuration problem
: compiler cannot create executables.
" 1>&2; exit 1; }
1651 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1656 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1657 echo "$ac_t""${ac_cv_exeext}" 1>&6
1661 # configure.host sets the following important variables
1662 # libgcj_cflags - host specific C compiler flags
1663 # libgcj_cxxflags - host specific C++ compiler flags
1664 # libgcj_javaflags - host specific Java compiler flags
1670 . ${srcdir}/configure.host
1672 LIBGCJ_CFLAGS="${libgcj_cflags}"
1673 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
1674 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
1684 # Only use libltdl for non-newlib builds.
1685 if test "x
${with_newlib}" = "x
" || test "x
${with_newlib}" = "xno
"; then
1686 case $enable_ltdl_convenience in
1687 no) { echo "configure
: error
: this package needs a convenience libltdl
" 1>&2; exit 1; } ;;
1688 "") enable_ltdl_convenience=yes
1689 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
1691 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
1692 INCLTDL='-I${top_srcdir}/''libltdl'
1696 cat >> confdefs.h <<\EOF
1700 # Sigh. Libtool's macro doesn't do the right thing.
1701 INCLTDL="-I\$
(top_srcdir
)/libltdl
$INCLTDL"
1702 # FIXME: this is a hack.
1703 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
1704 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
1709 # Check whether --enable-shared or --disable-shared was given.
1710 if test "${enable_shared+set}" = set; then
1711 enableval="$enable_shared"
1712 p=${PACKAGE-default}
1714 yes) enable_shared=yes ;;
1715 no) enable_shared=no ;;
1718 # Look at the argument we got. We use all the common list separators.
1719 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1720 for pkg in $enableval; do
1721 if test "X
$pkg" = "X
$p"; then
1732 # Check whether --enable-static or --disable-static was given.
1733 if test "${enable_static+set}" = set; then
1734 enableval="$enable_static"
1735 p=${PACKAGE-default}
1737 yes) enable_static=yes ;;
1738 no) enable_static=no ;;
1741 # Look at the argument we got. We use all the common list separators.
1742 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1743 for pkg in $enableval; do
1744 if test "X
$pkg" = "X
$p"; then
1755 # Check whether --enable-fast-install or --disable-fast-install was given.
1756 if test "${enable_fast_install+set}" = set; then
1757 enableval="$enable_fast_install"
1758 p=${PACKAGE-default}
1760 yes) enable_fast_install=yes ;;
1761 no) enable_fast_install=no ;;
1763 enable_fast_install=no
1764 # Look at the argument we got. We use all the common list separators.
1765 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1766 for pkg in $enableval; do
1767 if test "X
$pkg" = "X
$p"; then
1768 enable_fast_install=yes
1775 enable_fast_install=yes
1778 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1779 if test "${with_gnu_ld+set}" = set; then
1780 withval="$with_gnu_ld"
1781 test "$withval" = no || with_gnu_ld=yes
1787 if test "$GCC" = yes; then
1788 # Check if gcc -print-prog-name=ld gives a path.
1789 echo $ac_n "checking
for ld used by GCC
""...
$ac_c" 1>&6
1790 echo "configure
:1791: checking
for ld used by GCC
" >&5
1793 # gcc leaves a trailing carriage return which upsets mingw
1794 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1796 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1799 # Accept absolute paths.
1800 [\\/]* | [A-Za-z]:[\\/]*)
1801 re_direlt='/[^/][^/]*/\.\./'
1802 # Canonicalize the path of ld
1803 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1804 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1805 ac_prog=`echo $ac_prog| sed "s
%$re_direlt%/%"`
1807 test -z "$LD" && LD="$ac_prog"
1810 # If it fails, then pretend we aren't using GCC.
1814 # If it is relative, then search for the first ld in PATH.
1818 elif test "$with_gnu_ld" = yes; then
1819 echo $ac_n "checking
for GNU ld
""...
$ac_c" 1>&6
1820 echo "configure
:1821: checking
for GNU ld
" >&5
1822 echo $ac_n "checking
for non-GNU ld
""...
$ac_c" 1>&6
1823 echo "configure
:1824: checking
for non-GNU ld
" >&5
1825 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1826 echo $ac_n "(cached
) $ac_c" 1>&6
1828 if test -z "$LD"; then
1829 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1830 for ac_dir in $PATH; do
1831 test -z "$ac_dir" && ac_dir=.
1832 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1833 lt_cv_path_LD="$ac_dir/$ac_prog"
1834 # Check to see if the program is GNU ld. I'd rather use --version,
1835 # but apparently some GNU ld's only accept -v.
1836 # Break only if it was the GNU/non-GNU ld that we prefer.
1837 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1838 test "$with_gnu_ld" != no && break
1840 test "$with_gnu_ld" != yes && break
1846 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1851 if test -n "$LD"; then
1852 echo "$ac_t""$LD" 1>&6
1854 echo "$ac_t""no
" 1>&6
1856 test -z "$LD" && { echo "configure
: error
: no acceptable ld found
in \
$PATH" 1>&2; exit 1; }
1857 echo $ac_n "checking
if the linker
($LD) is GNU ld
""...
$ac_c" 1>&6
1858 echo "configure
:1859: checking
if the linker
($LD) is GNU ld
" >&5
1859 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1860 echo $ac_n "(cached
) $ac_c" 1>&6
1862 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1863 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1864 lt_cv_prog_gnu_ld=yes
1866 lt_cv_prog_gnu_ld=no
1870 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1871 with_gnu_ld=$lt_cv_prog_gnu_ld
1874 echo $ac_n "checking
for $LD option to reload object files
""...
$ac_c" 1>&6
1875 echo "configure
:1876: checking
for $LD option to reload object files
" >&5
1876 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1877 echo $ac_n "(cached
) $ac_c" 1>&6
1879 lt_cv_ld_reload_flag='-r'
1882 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1883 reload_flag=$lt_cv_ld_reload_flag
1884 test -n "$reload_flag" && reload_flag=" $reload_flag"
1886 echo $ac_n "checking
for BSD-compatible nm
""...
$ac_c" 1>&6
1887 echo "configure
:1888: checking
for BSD-compatible nm
" >&5
1888 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1889 echo $ac_n "(cached
) $ac_c" 1>&6
1891 if test -n "$NM"; then
1892 # Let the user override the test.
1895 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1896 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1897 test -z "$ac_dir" && ac_dir=.
1898 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1899 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1900 # Check to see if the nm accepts a BSD-compat flag.
1901 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1902 # nm: unknown option "B
" ignored
1903 # Tru64's nm complains that /dev/null is an invalid object file
1904 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1905 lt_cv_path_NM="$tmp_nm -B"
1907 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1908 lt_cv_path_NM="$tmp_nm -p"
1911 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1912 continue # so that we can try to find one that supports BSD flags
1917 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1922 echo "$ac_t""$NM" 1>&6
1924 echo $ac_n "checking how to recognise dependant libraries
""...
$ac_c" 1>&6
1925 echo "configure
:1926: checking how to recognise dependant libraries
" >&5
1926 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1927 echo $ac_n "(cached
) $ac_c" 1>&6
1929 lt_cv_file_magic_cmd='$MAGIC_CMD'
1930 lt_cv_file_magic_test_file=
1931 lt_cv_deplibs_check_method='unknown'
1932 # Need to set the preceding variable on all platforms that support
1933 # interlibrary dependencies.
1934 # 'none' -- dependencies not supported.
1935 # `unknown' -- same as none, but documents that we really don't know.
1936 # 'pass_all' -- all dependencies passed with no checks.
1937 # 'test_compile' -- check by making test program.
1938 # 'file_magic [regex]' -- check by looking for files in library path
1939 # which responds to the $file_magic_cmd with a given egrep regex.
1940 # If you have `file' or equivalent on your system and you're not sure
1941 # whether `pass_all' will *always* work, you probably want this one.
1945 lt_cv_deplibs_check_method=pass_all
1949 lt_cv_deplibs_check_method=pass_all
1953 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1954 lt_cv_file_magic_cmd='/usr/bin/file -L'
1955 lt_cv_file_magic_test_file=/shlib/libc.so
1958 cygwin* | mingw* |pw32*)
1959 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1960 lt_cv_file_magic_cmd='$OBJDUMP -f'
1963 darwin* | rhapsody*)
1964 # this will be overwritten by pass_all, but leave it in just in case
1965 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1966 lt_cv_file_magic_cmd='/usr/bin/file -L'
1968 rhapsody* | darwin1.012)
1969 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1972 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1975 lt_cv_deplibs_check_method=pass_all
1979 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1982 # Not sure whether the presence of OpenBSD here was a mistake.
1983 # Let's accept both of them until this is cleared up.
1984 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1985 lt_cv_file_magic_cmd=/usr/bin/file
1986 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1990 lt_cv_deplibs_check_method=pass_all
1995 lt_cv_deplibs_check_method=pass_all
2001 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2002 lt_cv_file_magic_cmd=/usr/bin/file
2003 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2006 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
2007 lt_cv_file_magic_cmd=/usr/bin/file
2008 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
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
32-bit MSB dynamic lib MIPS
- version
1"
2021 *-32|*"-32 ") libmagic=32-bit;;
2022 *-n32|*"-n32 ") libmagic=N32;;
2023 *-64|*"-64 ") libmagic=64-bit;;
2024 *) libmagic=never-match;;
2026 # this will be overridden with pass_all, but let us keep it just in case
2027 lt_cv_deplibs_check_method="file_magic ELF
${libmagic} MSB mips-
[1234] dynamic lib MIPS
- version
1"
2030 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2031 lt_cv_deplibs_check_method=pass_all
2034 # This must be Linux ELF.
2037 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* | sh* )
2038 lt_cv_deplibs_check_method=pass_all ;;
2040 # glibc up to 2.1.1 does not perform some relocations on ARM
2041 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2043 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2047 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2048 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2050 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2055 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2056 lt_cv_file_magic_cmd=/usr/bin/file
2057 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2060 osf3* | osf4* | osf5*)
2061 # this will be overridden with pass_all, but let us keep it just in case
2062 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2063 lt_cv_file_magic_test_file=/shlib/libc.so
2064 lt_cv_deplibs_check_method=pass_all
2068 lt_cv_deplibs_check_method=pass_all
2072 lt_cv_deplibs_check_method=pass_all
2073 lt_cv_file_magic_test_file=/lib/libc.so
2076 sysv5uw[78]* | sysv4*uw2*)
2077 lt_cv_deplibs_check_method=pass_all
2080 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2081 case $host_vendor in
2083 lt_cv_deplibs_check_method=pass_all
2086 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]'
2087 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2095 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2096 file_magic_cmd=$lt_cv_file_magic_cmd
2097 deplibs_check_method=$lt_cv_deplibs_check_method
2099 echo $ac_n "checking
for object suffix
""...
$ac_c" 1>&6
2100 echo "configure
:2101: checking
for object suffix
" >&5
2101 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2102 echo $ac_n "(cached
) $ac_c" 1>&6
2105 echo 'int i = 1;' > conftest.$ac_ext
2106 if { (eval echo configure:2107: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2107 for ac_file in conftest.*; do
2110 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2114 { echo "configure
: error
: installation or configuration problem
; compiler does not work
" 1>&2; exit 1; }
2119 echo "$ac_t""$ac_cv_objext" 1>&6
2120 OBJEXT=$ac_cv_objext
2121 ac_objext=$ac_cv_objext
2123 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2125 # Only perform the check for file, if the check method requires it
2126 case $deplibs_check_method in
2128 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2129 echo $ac_n "checking
for ${ac_tool_prefix}file""...
$ac_c" 1>&6
2130 echo "configure
:2131: checking
for ${ac_tool_prefix}file" >&5
2131 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2132 echo $ac_n "(cached
) $ac_c" 1>&6
2136 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2139 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2142 ac_save_MAGIC_CMD="$MAGIC_CMD"
2143 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2144 ac_dummy="/usr
/bin
:$PATH"
2145 for ac_dir in $ac_dummy; do
2146 test -z "$ac_dir" && ac_dir=.
2147 if test -f $ac_dir/${ac_tool_prefix}file; then
2148 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2149 if test -n "$file_magic_test_file"; then
2150 case $deplibs_check_method in
2152 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2153 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2154 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2155 egrep "$file_magic_regex" > /dev/null; then
2160 *** Warning: the command libtool uses to detect shared libraries,
2161 *** $file_magic_cmd, produces output that libtool cannot recognize.
2162 *** The result is that libtool may fail to recognize shared libraries
2163 *** as such. This will affect the creation of libtool libraries that
2164 *** depend on shared libraries, but programs linked with such libtool
2165 *** libraries will work regardless of this problem. Nevertheless, you
2166 *** may want to report the problem to your system manager and/or to
2167 *** bug-libtool@gnu.org
2177 MAGIC_CMD="$ac_save_MAGIC_CMD"
2182 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2183 if test -n "$MAGIC_CMD"; then
2184 echo "$ac_t""$MAGIC_CMD" 1>&6
2186 echo "$ac_t""no
" 1>&6
2189 if test -z "$lt_cv_path_MAGIC_CMD"; then
2190 if test -n "$ac_tool_prefix"; then
2191 echo $ac_n "checking
for file""...
$ac_c" 1>&6
2192 echo "configure
:2193: checking
for file" >&5
2193 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2194 echo $ac_n "(cached
) $ac_c" 1>&6
2198 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2201 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2204 ac_save_MAGIC_CMD="$MAGIC_CMD"
2205 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2206 ac_dummy="/usr
/bin
:$PATH"
2207 for ac_dir in $ac_dummy; do
2208 test -z "$ac_dir" && ac_dir=.
2209 if test -f $ac_dir/file; then
2210 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2211 if test -n "$file_magic_test_file"; then
2212 case $deplibs_check_method in
2214 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2215 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2216 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2217 egrep "$file_magic_regex" > /dev/null; then
2222 *** Warning: the command libtool uses to detect shared libraries,
2223 *** $file_magic_cmd, produces output that libtool cannot recognize.
2224 *** The result is that libtool may fail to recognize shared libraries
2225 *** as such. This will affect the creation of libtool libraries that
2226 *** depend on shared libraries, but programs linked with such libtool
2227 *** libraries will work regardless of this problem. Nevertheless, you
2228 *** may want to report the problem to your system manager and/or to
2229 *** bug-libtool@gnu.org
2239 MAGIC_CMD="$ac_save_MAGIC_CMD"
2244 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2245 if test -n "$MAGIC_CMD"; then
2246 echo "$ac_t""$MAGIC_CMD" 1>&6
2248 echo "$ac_t""no
" 1>&6
2260 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
2261 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2262 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2263 echo "configure
:2264: checking
for $ac_word" >&5
2264 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2265 echo $ac_n "(cached
) $ac_c" 1>&6
2267 if test -n "$RANLIB"; then
2268 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2270 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2272 for ac_dir in $ac_dummy; do
2273 test -z "$ac_dir" && ac_dir=.
2274 if test -f $ac_dir/$ac_word; then
2275 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
2282 RANLIB="$ac_cv_prog_RANLIB"
2283 if test -n "$RANLIB"; then
2284 echo "$ac_t""$RANLIB" 1>&6
2286 echo "$ac_t""no
" 1>&6
2290 if test -z "$ac_cv_prog_RANLIB"; then
2291 if test -n "$ac_tool_prefix"; then
2292 # Extract the first word of "ranlib
", so it can be a program name with args.
2293 set dummy ranlib; ac_word=$2
2294 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2295 echo "configure
:2296: checking
for $ac_word" >&5
2296 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2297 echo $ac_n "(cached
) $ac_c" 1>&6
2299 if test -n "$RANLIB"; then
2300 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2302 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2304 for ac_dir in $ac_dummy; do
2305 test -z "$ac_dir" && ac_dir=.
2306 if test -f $ac_dir/$ac_word; then
2307 ac_cv_prog_RANLIB="ranlib
"
2312 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2315 RANLIB="$ac_cv_prog_RANLIB"
2316 if test -n "$RANLIB"; then
2317 echo "$ac_t""$RANLIB" 1>&6
2319 echo "$ac_t""no
" 1>&6
2327 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
2328 set dummy ${ac_tool_prefix}strip; ac_word=$2
2329 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2330 echo "configure
:2331: checking
for $ac_word" >&5
2331 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2332 echo $ac_n "(cached
) $ac_c" 1>&6
2334 if test -n "$STRIP"; then
2335 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2337 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2339 for ac_dir in $ac_dummy; do
2340 test -z "$ac_dir" && ac_dir=.
2341 if test -f $ac_dir/$ac_word; then
2342 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
2349 STRIP="$ac_cv_prog_STRIP"
2350 if test -n "$STRIP"; then
2351 echo "$ac_t""$STRIP" 1>&6
2353 echo "$ac_t""no
" 1>&6
2357 if test -z "$ac_cv_prog_STRIP"; then
2358 if test -n "$ac_tool_prefix"; then
2359 # Extract the first word of "strip
", so it can be a program name with args.
2360 set dummy strip; ac_word=$2
2361 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2362 echo "configure
:2363: checking
for $ac_word" >&5
2363 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2364 echo $ac_n "(cached
) $ac_c" 1>&6
2366 if test -n "$STRIP"; then
2367 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2369 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2371 for ac_dir in $ac_dummy; do
2372 test -z "$ac_dir" && ac_dir=.
2373 if test -f $ac_dir/$ac_word; then
2374 ac_cv_prog_STRIP="strip
"
2379 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2382 STRIP="$ac_cv_prog_STRIP"
2383 if test -n "$STRIP"; then
2384 echo "$ac_t""$STRIP" 1>&6
2386 echo "$ac_t""no
" 1>&6
2395 # Check for any special flags to pass to ltconfig.
2396 libtool_flags="--cache-file=$cache_file"
2397 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2398 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2399 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2400 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2401 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2402 libtool_flags="$libtool_flags --enable-dlopen"
2404 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2405 if test "${enable_libtool_lock+set}" = set; then
2406 enableval="$enable_libtool_lock"
2410 test "x
$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2411 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2413 # Check whether --with-pic or --without-pic was given.
2414 if test "${with_pic+set}" = set; then
2421 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2422 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2424 # Some flags need to be propagated to the compiler or linker for good
2428 # Find out which ABI we are using.
2429 echo '#line 2430 "configure
"' > conftest.$ac_ext
2430 if { (eval echo configure:2431: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2431 if test "$lt_cv_prog_gnu_ld" = yes; then
2432 case `/usr/bin/file conftest.$ac_objext` in
2434 LD="${LD-ld} -melf32bsmip"
2437 LD="${LD-ld} -melf32bmipn32"
2440 LD="${LD-ld} -melf64bmip"
2444 case `/usr/bin/file conftest.$ac_objext` in
2461 # Find out which ABI we are using.
2462 echo 'int i;' > conftest.$ac_ext
2463 if { (eval echo configure:2464: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2464 case "`/usr/bin/file conftest.o`" in
2476 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
2477 # Find out which ABI we are using.
2478 echo 'int i;' > conftest.$ac_ext
2479 if { (eval echo configure:2480: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2480 case "`/usr/bin/file conftest.o`" in
2484 LD="${LD-ld} -m elf_i386
"
2486 ppc64-*linux*|powerpc64-*linux*)
2487 LD="${LD-ld} -m elf32ppclinux
"
2490 LD="${LD-ld} -m elf_s390
"
2493 LD="${LD-ld} -m elf32_sparc
"
2500 LD="${LD-ld} -m elf_x86_64
"
2502 ppc*-*linux*|powerpc*-*linux*)
2503 LD="${LD-ld} -m elf64ppc
"
2506 LD="${LD-ld} -m elf64_s390
"
2509 LD="${LD-ld} -m elf64_sparc
"
2519 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2520 SAVE_CFLAGS="$CFLAGS"
2521 CFLAGS="$CFLAGS -belf"
2522 echo $ac_n "checking whether the C compiler needs
-belf""...
$ac_c" 1>&6
2523 echo "configure
:2524: checking whether the C compiler needs
-belf" >&5
2524 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2525 echo $ac_n "(cached
) $ac_c" 1>&6
2529 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2530 ac_cpp='$CPP $CPPFLAGS'
2531 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2532 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2533 cross_compiling=$ac_cv_prog_cc_cross
2535 cat > conftest.$ac_ext <<EOF
2536 #line 2537 "configure
"
2537 #include "confdefs.h
"
2543 if { (eval echo configure:2544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2545 lt_cv_cc_needs_belf=yes
2547 echo "configure
: failed program was
:" >&5
2548 cat conftest.$ac_ext >&5
2550 lt_cv_cc_needs_belf=no
2554 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2555 ac_cpp='$CPP $CPPFLAGS'
2556 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2557 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2558 cross_compiling=$ac_cv_prog_cc_cross
2562 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2563 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2564 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2565 CFLAGS="$SAVE_CFLAGS"
2572 echo $ac_n "checking how to run the C
++ preprocessor
""...
$ac_c" 1>&6
2573 echo "configure
:2574: checking how to run the C
++ preprocessor
" >&5
2574 if test -z "$CXXCPP"; then
2575 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2576 echo $ac_n "(cached
) $ac_c" 1>&6
2579 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2580 ac_cpp='$CXXCPP $CPPFLAGS'
2581 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2582 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2583 cross_compiling=$ac_cv_prog_cxx_cross
2584 CXXCPP="${CXX-g++} -E"
2585 cat > conftest.$ac_ext <<EOF
2586 #line 2587 "configure
"
2587 #include "confdefs.h
"
2590 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
2591 { (eval echo configure:2592: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2592 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
2593 if test -z "$ac_err"; then
2597 echo "configure
: failed program was
:" >&5
2598 cat conftest.$ac_ext >&5
2603 ac_cv_prog_CXXCPP="$CXXCPP"
2605 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2606 ac_cpp='$CPP $CPPFLAGS'
2607 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2608 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2609 cross_compiling=$ac_cv_prog_cc_cross
2612 CXXCPP="$ac_cv_prog_CXXCPP"
2613 echo "$ac_t""$CXXCPP" 1>&6
2616 # Save cache, so that ltconfig can load it
2617 cat > confcache <<\EOF
2618 # This file is a shell script that caches the results of configure
2619 # tests run on this system so they can be shared between configure
2620 # scripts and configure runs. It is not useful on other systems.
2621 # If it contains results you don't want to keep, you may remove or edit it.
2623 # By default, configure uses ./config.cache as the cache file,
2624 # creating it if it does not exist already. You can give configure
2625 # the --cache-file=FILE option to use a different cache file; that is
2626 # what configure does when it calls configure scripts in
2627 # subdirectories, so they share the cache.
2628 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2629 # config.status only pays attention to the cache file if you give it the
2630 # --recheck option to rerun configure.
2633 # The following way of writing the cache mishandles newlines in values,
2634 # but we know of no workaround that is simple, portable, and efficient.
2635 # So, don't put newlines in cache variables' values.
2636 # Ultrix sh set writes to stderr and can't be redirected directly,
2637 # and sets the high bit in the cache file unless we assign to the vars.
2639 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2641 # `set' does not quote correctly, so add quotes (double-quote substitution
2642 # turns \\\\ into \\, and sed turns \\ into \).
2644 -e "s
/'/'\\\\''/g
" \
2645 -e "s
/^
\\([a-zA-Z0-9_
]*_cv_
[a-zA-Z0-9_
]*\\)=\\(.
*\\)/\\1=\
${\\1='\\2'}/p
"
2648 # `set' quotes correctly as required by POSIX, so do not add quotes.
2649 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2652 if cmp -s $cache_file confcache; then
2655 if test -w $cache_file; then
2656 echo "updating cache
$cache_file"
2657 cat confcache > $cache_file
2659 echo "not updating unwritable cache
$cache_file"
2665 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2666 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2667 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2668 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2669 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2670 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2671 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2672 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2673 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2674 || { echo "configure
: error
: libtool configure failed
" 1>&2; exit 1; }
2676 # Reload cache, that may have been modified by ltconfig
2677 if test -r "$cache_file"; then
2678 echo "loading cache
$cache_file"
2681 echo "creating cache
$cache_file"
2686 # This can be used to rebuild libtool when needed
2687 LIBTOOL_DEPS="$ac_aux_dir/ltconfig
$ac_aux_dir/ltmain.sh
$ac_aux_dir/ltcf-c.sh
"
2689 # Always use our own libtool.
2690 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2692 # Redirect the config.log output again, so that the ltconfig log is not
2693 # clobbered by the next message.
2694 exec 5>>./config.log
2698 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh
"
2700 lt_save_CFLAGS="$CFLAGS"
2701 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2702 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2703 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2704 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2705 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2706 deplibs_check_method="$deplibs_check_method" \
2707 file_magic_cmd="$file_magic_cmd" \
2708 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2709 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2710 || { echo "configure
: error
: libtool tag configuration failed
" 1>&2; exit 1; }
2712 CFLAGS="$lt_save_CFLAGS"
2714 # Redirect the config.log output again, so that the ltconfig log is not
2715 # clobbered by the next message.
2716 exec 5>>./config.log
2726 if test -z "$with_target_subdir" || test "$with_target_subdir" = ".
"; then
2735 if test -d $srcdir/testsuite; then
2737 TESTSUBDIR_FALSE='#'
2743 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
2744 if test "${enable_getenv_properties+set}" = set; then
2745 enableval="$enable_getenv_properties"
2750 if test -z "$enable_getenv_properties"; then
2751 enable_getenv_properties=${enable_getenv_properties_default-yes}
2753 if test "$enable_getenv_properties" = no; then
2754 cat >> confdefs.h <<\EOF
2755 #define DISABLE_GETENV_PROPERTIES 1
2760 if test -z "$enable_main_args"; then
2761 enable_main_args=${enable_main_args_default-yes}
2763 if test "$enable_main_args" = no; then
2764 cat >> confdefs.h <<\EOF
2765 #define DISABLE_MAIN_ARGS 1
2771 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
2772 if test "${enable_hash_synchronization+set}" = set; then
2773 enableval="$enable_hash_synchronization"
2778 if test -z "$enable_hash_synchronization"; then
2779 enable_hash_synchronization=$enable_hash_synchronization_default
2782 # Do we allow intermodule optimizations (i.e. compiling many files at once)?
2783 # Check whether --enable-libgcj-multifile or --disable-libgcj-multifile was given.
2784 if test "${enable_libgcj_multifile+set}" = set; then
2785 enableval="$enable_libgcj_multifile"
2786 case "${enableval}" in
2787 yes) enable_libgcj_multifile=yes ;;
2788 no) enable_libgcj_multifile=no ;;
2789 *) { echo "configure
: error
: bad value
${enableval} for --enable-libgcj-multifile" 1>&2; exit 1; } ;;
2792 enable_libgcj_multifile=no
2797 if test "$enable_libgcj_multifile" = yes; then
2805 # What is the native OS API for MinGW?
2806 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
2807 if test "${with_win32_nlsapi+set}" = set; then
2808 withval="$with_win32_nlsapi"
2810 case "${withval}" in
2811 ansi) with_win32_nlsapi=ansi ;;
2812 unicows) with_win32_nlsapi=unicows ;;
2813 unicode) with_win32_nlsapi=unicode ;;
2814 *) { echo "configure
: error
: Bad value
${withval} for --with-win32-nlsapi.
" 1>&2; exit 1; } ;;
2817 with_win32_nlsapi=ansi
2821 case "${with_win32_nlsapi}" in
2823 cat >> confdefs.h <<\EOF
2824 #define MINGW_LIBGCJ_UNICODE 1
2830 if test "${slow_pthread_self}" = "yes"; then
2831 cat >> confdefs.h <<\EOF
2832 #define SLOW_PTHREAD_SELF 1
2840 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
2841 if test "${enable_libgcj_debug+set}" = set; then
2842 enableval="$enable_libgcj_debug"
2843 if test "$enable_libgcj_debug" = yes; then
2844 cat >> confdefs.h <<\EOF
2853 # Check whether --enable-interpreter or --disable-interpreter was given.
2854 if test "${enable_interpreter+set}" = set; then
2855 enableval="$enable_interpreter"
2856 if test "$enable_interpreter" = yes; then
2857 # This can also be set in configure.host.
2858 libgcj_interpreter=yes
2859 elif test "$enable_interpreter" = no; then
2860 libgcj_interpreter=no
2865 if test "$libgcj_interpreter" = yes; then
2866 cat >> confdefs.h <<\EOF
2867 #define INTERPRETER 1
2871 INTERPRETER="$libgcj_interpreter"
2874 echo $ac_n "checking
for exception model to use
""...
$ac_c" 1>&6
2875 echo "configure
:2876: checking
for exception model to use
" >&5
2878 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2879 ac_cpp='$CXXCPP $CPPFLAGS'
2880 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2881 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2882 cross_compiling=$ac_cv_prog_cxx_cross
2884 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
2885 if test "${enable_sjlj_exceptions+set}" = set; then
2886 enableval="$enable_sjlj_exceptions"
2889 cat > conftest.$ac_ext << EOF
2890 #line 2891 "configure
"
2899 old_CXXFLAGS="$CXXFLAGS"
2901 if { (eval echo configure:2902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2902 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
2903 enable_sjlj_exceptions=yes
2904 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
2905 enable_sjlj_exceptions=no
2908 CXXFLAGS="$old_CXXFLAGS"
2912 if test x$enable_sjlj_exceptions = xyes; then
2913 cat >> confdefs.h <<\EOF
2914 #define SJLJ_EXCEPTIONS 1
2917 ac_exception_model_name=sjlj
2918 elif test x$enable_sjlj_exceptions = xno; then
2919 ac_exception_model_name="call frame
"
2921 { echo "configure
: error
: unable to detect exception model
" 1>&2; exit 1; }
2924 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2925 ac_cpp='$CPP $CPPFLAGS'
2926 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2927 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2928 cross_compiling=$ac_cv_prog_cc_cross
2930 echo "$ac_t""$ac_exception_model_name" 1>&6
2932 # If we are non using SJLJ exceptions, and this host does not have support
2933 # for unwinding from a signal handler, enable checked dereferences and divides.
2934 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
2935 CHECKREFSPEC=-fcheck-references
2936 DIVIDESPEC=-fuse-divide-subroutine
2940 # Check whether --enable-java-net or --disable-java-net was given.
2941 if test "${enable_java_net+set}" = set; then
2942 enableval="$enable_java_net"
2947 if test -z "$enable_java_net"; then
2948 enable_java_net=${enable_java_net_default-yes}
2950 if test "$enable_java_net" = no; then
2951 cat >> confdefs.h <<\EOF
2952 #define DISABLE_JAVA_NET 1
2957 # Check whether --with-libffi or --without-libffi was given.
2958 if test "${with_libffi+set}" = set; then
2959 withval="$with_libffi"
2962 with_libffi=${with_libffi_default-yes}
2968 if test "$with_libffi" != no; then
2969 cat >> confdefs.h <<\EOF
2970 #define USE_LIBFFI 1
2973 LIBFFI=../libffi/libffi_convenience.la
2974 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
2979 # Check whether --enable-jvmpi or --disable-jvmpi was given.
2980 if test "${enable_jvmpi+set}" = set; then
2981 enableval="$enable_jvmpi"
2986 if test "$enable_jvmpi" != no; then
2987 cat >> confdefs.h <<\EOF
2988 #define ENABLE_JVMPI 1
2993 TARGET_ECOS=${PROCESS-"no"}
2994 # Check whether --with-ecos or --without-ecos was given.
2995 if test "${with_ecos+set}" = set; then
2996 withval="$with_ecos"
2997 TARGET_ECOS="$with_ecos"
3006 case "$TARGET_ECOS" in
3011 PLATFORMOBJS=win32.lo
3014 echo $ac_n "checking whether
'ld' is
at least
2.13""...
$ac_c" 1>&6
3015 echo "configure
:3016: checking whether
'ld' is
at least
2.13" >&5
3016 LD_PROG=`$CC --print-prog-name=ld`
3017 LD_VERSION=`$LD_PROG --version`
3018 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
3019 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
3020 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
3023 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
3027 if test "x
$LD_OK" != x; then
3028 echo "$ac_t""yes; major
=$LD_VERSION_MAJOR, minor
=$LD_VERSION_MINOR" 1>&6
3030 echo "$ac_t""no
; major
=$LD_VERSION_MAJOR, minor
=$LD_VERSION_MINOR" 1>&6
3031 echo "configure
: warning
: ld
<2.13 detected
; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack...
" 1>&2
3032 cat >> confdefs.h <<\EOF
3033 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
3041 PLATFORMOBJS=posix.lo
3049 cat >> confdefs.h <<\EOF
3053 PLATFORMOBJS=posix.lo
3060 echo $ac_n "checking how to run the C preprocessor
""...
$ac_c" 1>&6
3061 echo "configure
:3062: checking how to run the C preprocessor
" >&5
3062 # On Suns, sometimes $CPP names a directory.
3063 if test -n "$CPP" && test -d "$CPP"; then
3066 if test -z "$CPP"; then
3067 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
3068 echo $ac_n "(cached
) $ac_c" 1>&6
3070 # This must be in double quotes, not single quotes, because CPP may get
3071 # substituted into the Makefile and "${CC-cc}" will confuse make.
3073 # On the NeXT, cc -E runs the code through the compiler's parser,
3074 # not just through cpp.
3075 cat > conftest.$ac_ext <<EOF
3076 #line 3077 "configure
"
3077 #include "confdefs.h
"
3081 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
3082 { (eval echo configure:3083: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3083 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
3084 if test -z "$ac_err"; then
3088 echo "configure
: failed program was
:" >&5
3089 cat conftest.$ac_ext >&5
3091 CPP="${CC-cc} -E -traditional-cpp"
3092 cat > conftest.$ac_ext <<EOF
3093 #line 3094 "configure
"
3094 #include "confdefs.h
"
3098 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
3099 { (eval echo configure:3100: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3100 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
3101 if test -z "$ac_err"; then
3105 echo "configure
: failed program was
:" >&5
3106 cat conftest.$ac_ext >&5
3108 CPP="${CC-cc} -nologo -E"
3109 cat > conftest.$ac_ext <<EOF
3110 #line 3111 "configure
"
3111 #include "confdefs.h
"
3115 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
3116 { (eval echo configure:3117: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3117 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
3118 if test -z "$ac_err"; then
3122 echo "configure
: failed program was
:" >&5
3123 cat conftest.$ac_ext >&5
3132 ac_cv_prog_CPP="$CPP"
3134 CPP="$ac_cv_prog_CPP"
3136 ac_cv_prog_CPP="$CPP"
3138 echo "$ac_t""$CPP" 1>&6
3140 cat > conftest.$ac_ext <<EOF
3141 #line 3142 "configure
"
3142 #include "confdefs.h
"
3145 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3146 egrep "uint32_t
" >/dev/null 2>&1; then
3148 cat >> confdefs.h <<\EOF
3149 #define HAVE_INT32_DEFINED 1
3155 cat > conftest.$ac_ext <<EOF
3156 #line 3157 "configure
"
3157 #include "confdefs.h
"
3158 #include <inttypes.h>
3160 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3161 egrep "uint32_t
" >/dev/null 2>&1; then
3163 cat >> confdefs.h <<\EOF
3164 #define HAVE_INT32_DEFINED 1
3170 cat > conftest.$ac_ext <<EOF
3171 #line 3172 "configure
"
3172 #include "confdefs.h
"
3173 #include <sys/types.h>
3175 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3176 egrep "u_int32_t
" >/dev/null 2>&1; then
3178 cat >> confdefs.h <<\EOF
3179 #define HAVE_BSD_INT32_DEFINED 1
3185 cat > conftest.$ac_ext <<EOF
3186 #line 3187 "configure
"
3187 #include "confdefs.h
"
3188 #include <sys/config.h>
3190 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3191 egrep "u_int32_t
" >/dev/null 2>&1; then
3193 cat >> confdefs.h <<\EOF
3194 #define HAVE_BSD_INT32_DEFINED 1
3202 cat > conftest.$ac_ext <<EOF
3203 #line 3204 "configure
"
3204 #include "confdefs.h
"
3207 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3208 egrep "mktime
" >/dev/null 2>&1; then
3210 cat >> confdefs.h <<\EOF
3211 #define HAVE_MKTIME 1
3217 cat > conftest.$ac_ext <<EOF
3218 #line 3219 "configure
"
3219 #include "confdefs.h
"
3222 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3223 egrep "localtime
" >/dev/null 2>&1; then
3225 cat >> confdefs.h <<\EOF
3226 #define HAVE_LOCALTIME 1
3233 test -d java || mkdir java
3234 test -d java/io || mkdir java/io
3235 test -d gnu || mkdir gnu
3239 test -d java/lang || mkdir java/lang
3243 test -d java/net || mkdir java/net
3247 test -d gnu/java || mkdir gnu/java
3248 test -d gnu/java/net || mkdir gnu/java/net
3252 test -d gnu/java/nio || mkdir gnu/java/nio
3258 SYSTEMSPEC="-lgdi32 -lwsock32 -lws2_32"
3259 if test "${with_win32_nlsapi}" = "unicows
"; then
3260 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
3269 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs
-rpath `${PWDCMD-pwd}`/.libs
"
3272 # Check whether --with-system-zlib or --without-system-zlib was given.
3273 if test "${with_system_zlib+set}" = set; then
3274 withval="$with_system_zlib"
3283 # If we find X, set shell vars x_includes and x_libraries to the
3284 # paths, otherwise set no_x=yes.
3285 # Uses ac_ vars as temps to allow command line to override cache and checks.
3286 # --without-x overrides everything else, but does not touch the cache.
3287 echo $ac_n "checking
for X
""...
$ac_c" 1>&6
3288 echo "configure
:3289: checking
for X
" >&5
3290 # Check whether --with-x or --without-x was given.
3291 if test "${with_x+set}" = set; then
3296 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3297 if test "x
$with_x" = xno; then
3298 # The user explicitly disabled X.
3301 if test "x
$x_includes" != xNONE && test "x
$x_libraries" != xNONE; then
3302 # Both variables are already set.
3305 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
3306 echo $ac_n "(cached
) $ac_c" 1>&6
3308 # One or both of the vars are not set, and there is no cached value.
3309 ac_x_includes=NO ac_x_libraries=NO
3311 if mkdir conftestdir; then
3313 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3314 cat > Imakefile <<'EOF'
3316 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3318 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3319 # GNU make sometimes prints "make[1]: Entering...
", which would confuse us.
3320 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3321 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3322 for ac_extension in a so sl; do
3323 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3324 test -f $ac_im_libdir/libX11.$ac_extension; then
3325 ac_im_usrlibdir=$ac_im_libdir; break
3328 # Screen out bogus values from the imake configuration. They are
3329 # bogus both because they are the default anyway, and because
3330 # using them would break gcc on systems where it needs fixed includes.
3331 case "$ac_im_incroot" in
3333 *) test -f "$ac_im_incroot/X11
/Xos.h
" && ac_x_includes="$ac_im_incroot" ;;
3335 case "$ac_im_usrlibdir" in
3337 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
3344 if test "$ac_x_includes" = NO; then
3345 # Guess where to find include files, by looking for this one X11 .h file.
3346 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
3348 # First, try using that file with no special directory specified.
3349 cat > conftest.$ac_ext <<EOF
3350 #line 3351 "configure
"
3351 #include "confdefs.h
"
3352 #include <$x_direct_test_include>
3354 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
3355 { (eval echo configure:3356: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3356 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
3357 if test -z "$ac_err"; then
3359 # We can compile using X headers with no special include directory.
3363 echo "configure
: failed program was
:" >&5
3364 cat conftest.$ac_ext >&5
3366 # Look for the header file in a standard set of common directories.
3367 # Check X11 before X11Rn because it is often a symlink to the current release.
3370 /usr/X11R6/include \
3371 /usr/X11R5/include \
3372 /usr/X11R4/include \
3375 /usr/include/X11R6 \
3376 /usr/include/X11R5 \
3377 /usr/include/X11R4 \
3379 /usr/local/X11/include \
3380 /usr/local/X11R6/include \
3381 /usr/local/X11R5/include \
3382 /usr/local/X11R4/include \
3384 /usr/local/include/X11 \
3385 /usr/local/include/X11R6 \
3386 /usr/local/include/X11R5 \
3387 /usr/local/include/X11R4 \
3391 /usr/XFree86/include/X11 \
3394 /usr/local/include \
3395 /usr/unsupported/include \
3396 /usr/athena/include \
3397 /usr/local/x11r5/include \
3398 /usr/lpp/Xamples/include \
3400 /usr/openwin/include \
3401 /usr/openwin/share/include \
3404 if test -r "$ac_dir/$x_direct_test_include"; then
3405 ac_x_includes=$ac_dir
3411 fi # $ac_x_includes = NO
3413 if test "$ac_x_libraries" = NO; then
3414 # Check for the libraries.
3416 test -z "$x_direct_test_library" && x_direct_test_library=Xt
3417 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
3419 # See if we find them without any special options.
3420 # Don't add to $LIBS permanently.
3421 ac_save_LIBS="$LIBS"
3422 LIBS="-l$x_direct_test_library $LIBS"
3423 cat > conftest.$ac_ext <<EOF
3424 #line 3425 "configure
"
3425 #include "confdefs.h
"
3428 ${x_direct_test_function}()
3431 if { (eval echo configure:3432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3433 LIBS="$ac_save_LIBS"
3434 # We can link X programs with no special library path.
3437 echo "configure
: failed program was
:" >&5
3438 cat conftest.$ac_ext >&5
3440 LIBS="$ac_save_LIBS"
3441 # First see if replacing the include by lib works.
3442 # Check X11 before X11Rn because it is often a symlink to the current release.
3443 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
3454 /usr/local/X11/lib \
3455 /usr/local/X11R6/lib \
3456 /usr/local/X11R5/lib \
3457 /usr/local/X11R4/lib \
3459 /usr/local/lib/X11 \
3460 /usr/local/lib/X11R6 \
3461 /usr/local/lib/X11R5 \
3462 /usr/local/lib/X11R4 \
3466 /usr/XFree86/lib/X11 \
3470 /usr/unsupported/lib \
3472 /usr/local/x11r5/lib \
3473 /usr/lpp/Xamples/lib \
3477 /usr/openwin/share/lib \
3480 for ac_extension in a so sl; do
3481 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
3482 ac_x_libraries=$ac_dir
3489 fi # $ac_x_libraries = NO
3491 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
3492 # Didn't find X anywhere. Cache the known absence of X.
3493 ac_cv_have_x="have_x
=no
"
3495 # Record where we found X for the cache.
3496 ac_cv_have_x="have_x
=yes \
3497 ac_x_includes
=$ac_x_includes ac_x_libraries
=$ac_x_libraries"
3501 eval "$ac_cv_have_x"
3504 if test "$have_x" != yes; then
3505 echo "$ac_t""$have_x" 1>&6
3508 # If each of the values was on the command line, it overrides each guess.
3509 test "x
$x_includes" = xNONE && x_includes=$ac_x_includes
3510 test "x
$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3511 # Update the cache value to reflect the command line values.
3512 ac_cv_have_x="have_x
=yes \
3513 ac_x_includes
=$x_includes ac_x_libraries
=$x_libraries"
3514 echo "$ac_t""libraries
$x_libraries, headers
$x_includes" 1>&6
3517 if test "$no_x" = yes; then
3518 # Not all programs may use this symbol, but it does not hurt to define it.
3519 cat >> confdefs.h <<\EOF
3520 #define X_DISPLAY_MISSING 1
3523 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3525 if test -n "$x_includes"; then
3526 X_CFLAGS="$X_CFLAGS -I$x_includes"
3529 # It would also be nice to do this for all -L options, not just this one.
3530 if test -n "$x_libraries"; then
3531 X_LIBS="$X_LIBS -L$x_libraries"
3532 # For Solaris; some versions of Sun CC require a space after -R and
3533 # others require no space. Words are not sufficient . . . .
3534 case "`(uname -sr) 2>/dev/null`" in
3536 echo $ac_n "checking whether
-R must be followed by a space
""...
$ac_c" 1>&6
3537 echo "configure
:3538: checking whether
-R must be followed by a space
" >&5
3538 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
3539 cat > conftest.$ac_ext <<EOF
3540 #line 3541 "configure
"
3541 #include "confdefs.h
"
3547 if { (eval echo configure:3548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3551 echo "configure
: failed program was
:" >&5
3552 cat conftest.$ac_ext >&5
3557 if test $ac_R_nospace = yes; then
3558 echo "$ac_t""no
" 1>&6
3559 X_LIBS="$X_LIBS -R$x_libraries"
3561 LIBS="$ac_xsave_LIBS -R $x_libraries"
3562 cat > conftest.$ac_ext <<EOF
3563 #line 3564 "configure
"
3564 #include "confdefs.h
"
3570 if { (eval echo configure:3571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3574 echo "configure
: failed program was
:" >&5
3575 cat conftest.$ac_ext >&5
3580 if test $ac_R_space = yes; then
3581 echo "$ac_t""yes" 1>&6
3582 X_LIBS="$X_LIBS -R $x_libraries"
3584 echo "$ac_t""neither works
" 1>&6
3587 LIBS="$ac_xsave_LIBS"
3591 # Check for system-dependent libraries X programs must link with.
3592 # Do this before checking for the system-independent R6 libraries
3593 # (-lICE), since we may need -lsocket or whatever for X linking.
3595 if test "$ISC" = yes; then
3596 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3598 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
3599 # libraries were built with DECnet support. And karl@cs.umb.edu says
3600 # the Alpha needs dnet_stub (dnet does not exist).
3601 echo $ac_n "checking
for dnet_ntoa
in -ldnet""...
$ac_c" 1>&6
3602 echo "configure
:3603: checking
for dnet_ntoa
in -ldnet" >&5
3603 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3604 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3605 echo $ac_n "(cached
) $ac_c" 1>&6
3607 ac_save_LIBS="$LIBS"
3609 cat > conftest.$ac_ext <<EOF
3610 #line 3611 "configure
"
3611 #include "confdefs.h
"
3612 /* Override any gcc2 internal prototype to avoid an error. */
3613 /* We use char because int might match the return type of a gcc2
3614 builtin and then its argument prototype would still apply. */
3621 if { (eval echo configure:3622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3623 eval "ac_cv_lib_
$ac_lib_var=yes"
3625 echo "configure
: failed program was
:" >&5
3626 cat conftest.$ac_ext >&5
3628 eval "ac_cv_lib_
$ac_lib_var=no
"
3631 LIBS="$ac_save_LIBS"
3634 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3635 echo "$ac_t""yes" 1>&6
3636 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3638 echo "$ac_t""no
" 1>&6
3641 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3642 echo $ac_n "checking
for dnet_ntoa
in -ldnet_stub""...
$ac_c" 1>&6
3643 echo "configure
:3644: checking
for dnet_ntoa
in -ldnet_stub" >&5
3644 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3645 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3646 echo $ac_n "(cached
) $ac_c" 1>&6
3648 ac_save_LIBS="$LIBS"
3649 LIBS="-ldnet_stub $LIBS"
3650 cat > conftest.$ac_ext <<EOF
3651 #line 3652 "configure
"
3652 #include "confdefs.h
"
3653 /* Override any gcc2 internal prototype to avoid an error. */
3654 /* We use char because int might match the return type of a gcc2
3655 builtin and then its argument prototype would still apply. */
3662 if { (eval echo configure:3663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3664 eval "ac_cv_lib_
$ac_lib_var=yes"
3666 echo "configure
: failed program was
:" >&5
3667 cat conftest.$ac_ext >&5
3669 eval "ac_cv_lib_
$ac_lib_var=no
"
3672 LIBS="$ac_save_LIBS"
3675 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3676 echo "$ac_t""yes" 1>&6
3677 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3679 echo "$ac_t""no
" 1>&6
3684 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3685 # to get the SysV transport functions.
3686 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
3688 # The nsl library prevents programs from opening the X display
3689 # on Irix 5.2, according to dickey@clark.net.
3690 echo $ac_n "checking
for gethostbyname
""...
$ac_c" 1>&6
3691 echo "configure
:3692: checking
for gethostbyname
" >&5
3692 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3693 echo $ac_n "(cached
) $ac_c" 1>&6
3695 cat > conftest.$ac_ext <<EOF
3696 #line 3697 "configure
"
3697 #include "confdefs.h
"
3698 /* System header to define __stub macros and hopefully few prototypes,
3699 which can conflict with char gethostbyname(); below. */
3701 /* Override any gcc2 internal prototype to avoid an error. */
3702 /* We use char because int might match the return type of a gcc2
3703 builtin and then its argument prototype would still apply. */
3704 char gethostbyname();
3708 /* The GNU C library defines this for functions which it implements
3709 to always fail with ENOSYS. Some functions are actually named
3710 something starting with __ and the normal name is an alias. */
3711 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3719 if { (eval echo configure:3720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3721 eval "ac_cv_func_gethostbyname
=yes"
3723 echo "configure
: failed program was
:" >&5
3724 cat conftest.$ac_ext >&5
3726 eval "ac_cv_func_gethostbyname
=no
"
3731 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3732 echo "$ac_t""yes" 1>&6
3735 echo "$ac_t""no
" 1>&6
3738 if test $ac_cv_func_gethostbyname = no; then
3739 echo $ac_n "checking
for gethostbyname
in -lnsl""...
$ac_c" 1>&6
3740 echo "configure
:3741: checking
for gethostbyname
in -lnsl" >&5
3741 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3742 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3743 echo $ac_n "(cached
) $ac_c" 1>&6
3745 ac_save_LIBS="$LIBS"
3747 cat > conftest.$ac_ext <<EOF
3748 #line 3749 "configure
"
3749 #include "confdefs.h
"
3750 /* Override any gcc2 internal prototype to avoid an error. */
3751 /* We use char because int might match the return type of a gcc2
3752 builtin and then its argument prototype would still apply. */
3753 char gethostbyname();
3759 if { (eval echo configure:3760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3761 eval "ac_cv_lib_
$ac_lib_var=yes"
3763 echo "configure
: failed program was
:" >&5
3764 cat conftest.$ac_ext >&5
3766 eval "ac_cv_lib_
$ac_lib_var=no
"
3769 LIBS="$ac_save_LIBS"
3772 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3773 echo "$ac_t""yes" 1>&6
3774 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3776 echo "$ac_t""no
" 1>&6
3781 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3782 # socket/setsockopt and other routines are undefined under SCO ODT
3783 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3784 # on later versions), says simon@lia.di.epfl.ch: it contains
3785 # gethostby* variants that don't use the nameserver (or something).
3786 # -lsocket must be given before -lnsl if both are needed.
3787 # We assume that if connect needs -lnsl, so does gethostbyname.
3788 echo $ac_n "checking
for connect
""...
$ac_c" 1>&6
3789 echo "configure
:3790: checking
for connect
" >&5
3790 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3791 echo $ac_n "(cached
) $ac_c" 1>&6
3793 cat > conftest.$ac_ext <<EOF
3794 #line 3795 "configure
"
3795 #include "confdefs.h
"
3796 /* System header to define __stub macros and hopefully few prototypes,
3797 which can conflict with char connect(); below. */
3799 /* Override any gcc2 internal prototype to avoid an error. */
3800 /* We use char because int might match the return type of a gcc2
3801 builtin and then its argument prototype would still apply. */
3806 /* The GNU C library defines this for functions which it implements
3807 to always fail with ENOSYS. Some functions are actually named
3808 something starting with __ and the normal name is an alias. */
3809 #if defined (__stub_connect) || defined (__stub___connect)
3817 if { (eval echo configure:3818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3819 eval "ac_cv_func_connect
=yes"
3821 echo "configure
: failed program was
:" >&5
3822 cat conftest.$ac_ext >&5
3824 eval "ac_cv_func_connect
=no
"
3829 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3830 echo "$ac_t""yes" 1>&6
3833 echo "$ac_t""no
" 1>&6
3836 if test $ac_cv_func_connect = no; then
3837 echo $ac_n "checking
for connect
in -lsocket""...
$ac_c" 1>&6
3838 echo "configure
:3839: checking
for connect
in -lsocket" >&5
3839 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3840 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3841 echo $ac_n "(cached
) $ac_c" 1>&6
3843 ac_save_LIBS="$LIBS"
3844 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3845 cat > conftest.$ac_ext <<EOF
3846 #line 3847 "configure
"
3847 #include "confdefs.h
"
3848 /* Override any gcc2 internal prototype to avoid an error. */
3849 /* We use char because int might match the return type of a gcc2
3850 builtin and then its argument prototype would still apply. */
3857 if { (eval echo configure:3858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3859 eval "ac_cv_lib_
$ac_lib_var=yes"
3861 echo "configure
: failed program was
:" >&5
3862 cat conftest.$ac_ext >&5
3864 eval "ac_cv_lib_
$ac_lib_var=no
"
3867 LIBS="$ac_save_LIBS"
3870 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3871 echo "$ac_t""yes" 1>&6
3872 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3874 echo "$ac_t""no
" 1>&6
3879 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
3880 echo $ac_n "checking
for remove
""...
$ac_c" 1>&6
3881 echo "configure
:3882: checking
for remove
" >&5
3882 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
3883 echo $ac_n "(cached
) $ac_c" 1>&6
3885 cat > conftest.$ac_ext <<EOF
3886 #line 3887 "configure
"
3887 #include "confdefs.h
"
3888 /* System header to define __stub macros and hopefully few prototypes,
3889 which can conflict with char remove(); below. */
3891 /* Override any gcc2 internal prototype to avoid an error. */
3892 /* We use char because int might match the return type of a gcc2
3893 builtin and then its argument prototype would still apply. */
3898 /* The GNU C library defines this for functions which it implements
3899 to always fail with ENOSYS. Some functions are actually named
3900 something starting with __ and the normal name is an alias. */
3901 #if defined (__stub_remove) || defined (__stub___remove)
3909 if { (eval echo configure:3910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3911 eval "ac_cv_func_remove
=yes"
3913 echo "configure
: failed program was
:" >&5
3914 cat conftest.$ac_ext >&5
3916 eval "ac_cv_func_remove
=no
"
3921 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
3922 echo "$ac_t""yes" 1>&6
3925 echo "$ac_t""no
" 1>&6
3928 if test $ac_cv_func_remove = no; then
3929 echo $ac_n "checking
for remove
in -lposix""...
$ac_c" 1>&6
3930 echo "configure
:3931: checking
for remove
in -lposix" >&5
3931 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
3932 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3933 echo $ac_n "(cached
) $ac_c" 1>&6
3935 ac_save_LIBS="$LIBS"
3936 LIBS="-lposix $LIBS"
3937 cat > conftest.$ac_ext <<EOF
3938 #line 3939 "configure
"
3939 #include "confdefs.h
"
3940 /* Override any gcc2 internal prototype to avoid an error. */
3941 /* We use char because int might match the return type of a gcc2
3942 builtin and then its argument prototype would still apply. */
3949 if { (eval echo configure:3950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3951 eval "ac_cv_lib_
$ac_lib_var=yes"
3953 echo "configure
: failed program was
:" >&5
3954 cat conftest.$ac_ext >&5
3956 eval "ac_cv_lib_
$ac_lib_var=no
"
3959 LIBS="$ac_save_LIBS"
3962 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3963 echo "$ac_t""yes" 1>&6
3964 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3966 echo "$ac_t""no
" 1>&6
3971 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3972 echo $ac_n "checking
for shmat
""...
$ac_c" 1>&6
3973 echo "configure
:3974: checking
for shmat
" >&5
3974 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
3975 echo $ac_n "(cached
) $ac_c" 1>&6
3977 cat > conftest.$ac_ext <<EOF
3978 #line 3979 "configure
"
3979 #include "confdefs.h
"
3980 /* System header to define __stub macros and hopefully few prototypes,
3981 which can conflict with char shmat(); below. */
3983 /* Override any gcc2 internal prototype to avoid an error. */
3984 /* We use char because int might match the return type of a gcc2
3985 builtin and then its argument prototype would still apply. */
3990 /* The GNU C library defines this for functions which it implements
3991 to always fail with ENOSYS. Some functions are actually named
3992 something starting with __ and the normal name is an alias. */
3993 #if defined (__stub_shmat) || defined (__stub___shmat)
4001 if { (eval echo configure:4002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4003 eval "ac_cv_func_shmat
=yes"
4005 echo "configure
: failed program was
:" >&5
4006 cat conftest.$ac_ext >&5
4008 eval "ac_cv_func_shmat
=no
"
4013 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
4014 echo "$ac_t""yes" 1>&6
4017 echo "$ac_t""no
" 1>&6
4020 if test $ac_cv_func_shmat = no; then
4021 echo $ac_n "checking
for shmat
in -lipc""...
$ac_c" 1>&6
4022 echo "configure
:4023: checking
for shmat
in -lipc" >&5
4023 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
4024 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4025 echo $ac_n "(cached
) $ac_c" 1>&6
4027 ac_save_LIBS="$LIBS"
4029 cat > conftest.$ac_ext <<EOF
4030 #line 4031 "configure
"
4031 #include "confdefs.h
"
4032 /* Override any gcc2 internal prototype to avoid an error. */
4033 /* We use char because int might match the return type of a gcc2
4034 builtin and then its argument prototype would still apply. */
4041 if { (eval echo configure:4042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4043 eval "ac_cv_lib_
$ac_lib_var=yes"
4045 echo "configure
: failed program was
:" >&5
4046 cat conftest.$ac_ext >&5
4048 eval "ac_cv_lib_
$ac_lib_var=no
"
4051 LIBS="$ac_save_LIBS"
4054 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4055 echo "$ac_t""yes" 1>&6
4056 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4058 echo "$ac_t""no
" 1>&6
4064 # Check for libraries that X11R6 Xt/Xaw programs need.
4065 ac_save_LDFLAGS="$LDFLAGS"
4066 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4067 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4068 # check for ICE first), but we must link in the order -lSM -lICE or
4069 # we get undefined symbols. So assume we have SM if we have ICE.
4070 # These have to be linked with before -lX11, unlike the other
4071 # libraries we check for below, so use a different variable.
4072 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
4073 echo $ac_n "checking
for IceConnectionNumber
in -lICE""...
$ac_c" 1>&6
4074 echo "configure
:4075: checking
for IceConnectionNumber
in -lICE" >&5
4075 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
4076 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4077 echo $ac_n "(cached
) $ac_c" 1>&6
4079 ac_save_LIBS="$LIBS"
4080 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4081 cat > conftest.$ac_ext <<EOF
4082 #line 4083 "configure
"
4083 #include "confdefs.h
"
4084 /* Override any gcc2 internal prototype to avoid an error. */
4085 /* We use char because int might match the return type of a gcc2
4086 builtin and then its argument prototype would still apply. */
4087 char IceConnectionNumber();
4090 IceConnectionNumber()
4093 if { (eval echo configure:4094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4095 eval "ac_cv_lib_
$ac_lib_var=yes"
4097 echo "configure
: failed program was
:" >&5
4098 cat conftest.$ac_ext >&5
4100 eval "ac_cv_lib_
$ac_lib_var=no
"
4103 LIBS="$ac_save_LIBS"
4106 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4107 echo "$ac_t""yes" 1>&6
4108 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4110 echo "$ac_t""no
" 1>&6
4113 LDFLAGS="$ac_save_LDFLAGS"
4118 # Check whether --enable-java-awt or --disable-java-awt was given.
4119 if test "${enable_java_awt+set}" = set; then
4120 enableval="$enable_java_awt"
4125 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
4128 # The default toolkit to use is the first one specified.
4132 for peer in $peerlibs ; do
4135 if test "$no_x" = yes; then
4136 echo "*** xlib peers requested but no X library available
" 1>&2
4140 if test -z "$TOOLKIT"; then
4141 TOOLKIT=gnu.awt.xlib.XToolkit
4146 if test "$no_x" = yes; then
4147 echo "*** xlib peers requested but no X library available
" 1>&2
4151 if test -z "$TOOLKIT"; then
4152 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
4154 test -d jniinclude || mkdir jniinclude
4163 echo "*** unrecognised argument
\"${peer}\" for --enable-java-awt" 1>&2
4170 if test "$use_xlib_awt" = yes; then
4179 if test "$use_gtk_awt" = yes; then
4187 # Check whether --enable-gtk-cairo or --disable-gtk-cairo was given.
4188 if test "${enable_gtk_cairo+set}" = set; then
4189 enableval="$enable_gtk_cairo"
4195 if test "x
${enable_gtk_cairo}" = xyes; then
4202 if test "x
${enable_gtk_cairo}" = xyes
4207 if test -z "$PKG_CONFIG"; then
4208 # Extract the first word of "pkg-config
", so it can be a program name with args.
4209 set dummy pkg-config; ac_word=$2
4210 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4211 echo "configure
:4212: checking
for $ac_word" >&5
4212 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
4213 echo $ac_n "(cached
) $ac_c" 1>&6
4215 case "$PKG_CONFIG" in
4217 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4220 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
4223 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4225 for ac_dir in $ac_dummy; do
4226 test -z "$ac_dir" && ac_dir=.
4227 if test -f $ac_dir/$ac_word; then
4228 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
4233 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
4237 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4238 if test -n "$PKG_CONFIG"; then
4239 echo "$ac_t""$PKG_CONFIG" 1>&6
4241 echo "$ac_t""no
" 1>&6
4246 if test "$PKG_CONFIG" = "no
" ; then
4247 echo "*** The pkg-config
script could not be found. Make sure it is
"
4248 echo "*** in your path
, or
set the PKG_CONFIG environment variable
"
4249 echo "*** to the full path to pkg-config.
"
4250 echo "*** Or see http
://www.freedesktop.org
/software
/pkgconfig to get pkg-config.
"
4252 PKG_CONFIG_MIN_VERSION=0.9.0
4253 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
4254 echo $ac_n "checking
for cairo
""...
$ac_c" 1>&6
4255 echo "configure
:4256: checking
for cairo
" >&5
4257 if $PKG_CONFIG --exists "cairo
" ; then
4258 echo "$ac_t""yes" 1>&6
4261 echo $ac_n "checking CAIRO_CFLAGS
""...
$ac_c" 1>&6
4262 echo "configure
:4263: checking CAIRO_CFLAGS
" >&5
4263 CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo
"`
4264 echo "$ac_t""$CAIRO_CFLAGS" 1>&6
4266 echo $ac_n "checking CAIRO_LIBS
""...
$ac_c" 1>&6
4267 echo "configure
:4268: checking CAIRO_LIBS
" >&5
4268 CAIRO_LIBS=`$PKG_CONFIG --libs "cairo
"`
4269 echo "$ac_t""$CAIRO_LIBS" 1>&6
4273 ## If we have a custom action on failure, don't print errors, but
4274 ## do set a variable so people can do so.
4275 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo
"`
4276 echo $CAIRO_PKG_ERRORS
4282 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
4283 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
4287 if test $succeeded = yes; then
4290 { 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; }
4296 if test -z "$PKG_CONFIG"; then
4297 # Extract the first word of "pkg-config
", so it can be a program name with args.
4298 set dummy pkg-config; ac_word=$2
4299 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
4300 echo "configure
:4301: checking
for $ac_word" >&5
4301 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
4302 echo $ac_n "(cached
) $ac_c" 1>&6
4304 case "$PKG_CONFIG" in
4306 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4309 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
4312 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4314 for ac_dir in $ac_dummy; do
4315 test -z "$ac_dir" && ac_dir=.
4316 if test -f $ac_dir/$ac_word; then
4317 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
4322 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
4326 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4327 if test -n "$PKG_CONFIG"; then
4328 echo "$ac_t""$PKG_CONFIG" 1>&6
4330 echo "$ac_t""no
" 1>&6
4335 if test "$PKG_CONFIG" = "no
" ; then
4336 echo "*** The pkg-config
script could not be found. Make sure it is
"
4337 echo "*** in your path
, or
set the PKG_CONFIG environment variable
"
4338 echo "*** to the full path to pkg-config.
"
4339 echo "*** Or see http
://www.freedesktop.org
/software
/pkgconfig to get pkg-config.
"
4341 PKG_CONFIG_MIN_VERSION=0.9.0
4342 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
4343 echo $ac_n "checking
for pangoft2
""...
$ac_c" 1>&6
4344 echo "configure
:4345: checking
for pangoft2
" >&5
4346 if $PKG_CONFIG --exists "pangoft2
" ; then
4347 echo "$ac_t""yes" 1>&6
4350 echo $ac_n "checking PANGOFT2_CFLAGS
""...
$ac_c" 1>&6
4351 echo "configure
:4352: checking PANGOFT2_CFLAGS
" >&5
4352 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2
"`
4353 echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
4355 echo $ac_n "checking PANGOFT2_LIBS
""...
$ac_c" 1>&6
4356 echo "configure
:4357: checking PANGOFT2_LIBS
" >&5
4357 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2
"`
4358 echo "$ac_t""$PANGOFT2_LIBS" 1>&6
4362 ## If we have a custom action on failure, don't print errors, but
4363 ## do set a variable so people can do so.
4364 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2
"`
4365 echo $PANGOFT2_PKG_ERRORS
4371 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
4372 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
4376 if test $succeeded = yes; then
4379 { 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; }
4390 echo $ac_n "checking
for garbage collector to use
""...
$ac_c" 1>&6
4391 echo "configure
:4392: checking
for garbage collector to use
" >&5
4392 # Check whether --enable-java-gc or --disable-java-gc was given.
4393 if test "${enable_java_gc+set}" = set; then
4394 enableval="$enable_java_gc"
4410 echo "$ac_t""boehm
" 1>&6
4411 GCLIBS=../boehm-gc/libgcjgc_convenience.la
4412 JC1GCSPEC='-fuse-boehm-gc'
4413 GCTESTSPEC="-L`${PWDCMD-pwd}`/..
/boehm-gc
/.libs
-rpath `${PWDCMD-pwd}`/..
/boehm-gc
/.libs
"
4415 GCINCS="`cat ../boehm-gc/boehm-cflags`"
4418 cat >> confdefs.h <<\EOF
4419 #define HAVE_BOEHM_GC 1
4424 echo "$ac_t""none
" 1>&6
4429 { echo "configure
: error
: unrecognized collector
\"$GC\"" 1>&2; exit 1; }
4442 echo $ac_n "checking
for thread model used by GCC
""...
$ac_c" 1>&6
4443 echo "configure
:4444: checking
for thread model used by GCC
" >&5
4444 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
4445 echo "$ac_t""$THREADS" 1>&6
4455 cat >> confdefs.h <<\EOF
4456 #define LINUX_THREADS 1
4464 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
4465 { echo "configure
: error
: thread package
$THREADS not yet supported
" 1>&2; exit 1; }
4468 { echo "configure
: error
: $THREADS is an unknown thread package
" 1>&2; exit 1; }
4484 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
4489 # Before FreeBSD 5, it didn't have -lpthread (or any library which
4490 # merely adds pthread_* functions) but it does have a -pthread switch
4491 # which is required at link-time to select -lc_r *instead* of -lc.
4492 THREADLDFLAGS=-pthread
4493 # Don't set THREADSPEC here as might be expected since -pthread is
4494 # not processed when found within a spec file, it must come from
4495 # the command line. For now, the user must provide the -pthread
4496 # switch to link code compiled with gcj. In future, consider adding
4497 # support for weak references to pthread_* functions ala gthr.h API.
4498 THREADSPEC='%{!pthread: %eUnder this configuration, the user must provide -pthread when linking.}'
4501 # FreeBSD 5 implements a model much closer to other modern UNIX
4502 # which support threads. However, it still does not support
4504 THREADLDFLAGS=-pthread
4508 THREADCXXFLAGS=-pthread
4509 # boehm-gc needs some functions from librt, so link that too.
4510 THREADLIBS='-lpthread -lrt'
4511 THREADSPEC='-lpthread -lrt'
4514 THREADLIBS=-lpthread
4515 THREADSPEC=-lpthread
4518 THREADOBJS=posix-threads.lo
4519 THREADH=posix-threads.h
4520 # MIT pthreads doesn't seem to have the mutexattr functions.
4521 # But for now we don't check for it. We just assume you aren't
4522 # using MIT pthreads.
4523 cat >> confdefs.h <<\EOF
4524 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
4528 # If we're using the Boehm GC, then we happen to know that it
4529 # defines _REENTRANT, so we don't bother. Eww.
4530 if test "$GC" != boehm; then
4531 cat >> confdefs.h <<\EOF
4532 #define _REENTRANT 1
4536 cat >> confdefs.h <<\EOF
4537 #define _POSIX_PTHREAD_SEMANTICS 1
4543 THREADOBJS=win32-threads.lo
4544 THREADH=win32-threads.h
4548 THREADOBJS=no-threads.lo
4549 THREADH=no-threads.h
4561 if test -d sysdep; then true; else mkdir sysdep; fi
4565 # Hash synchronization is only useful with posix threads right now.
4566 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none
"; then
4567 HASH_SYNC_SPEC=-fhash-synchronization
4568 cat >> confdefs.h <<\EOF
4569 #define JV_HASH_SYNCHRONIZATION 1
4578 if test "$GCC" = yes; then
4590 # We're in the tree with gcc, and need to include some of its headers.
4591 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
4593 # Figure out where generated headers like libgcj-config.h get installed.
4594 gcc_version_trigger=${libgcj_basedir}/../gcc/version.c
4595 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
4596 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
4597 tool_include_dir='$(libdir)/gcc/$(target_alias)/'${gcc_version}/include
4601 if test "x
${with_newlib}" = "xyes
"; then
4602 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
4603 # may not work correctly, because the compiler may not be able to
4606 # We assume newlib. This lets us hard-code the functions we know
4608 cat >> confdefs.h <<\EOF
4609 #define HAVE_MEMMOVE 1
4612 cat >> confdefs.h <<\EOF
4613 #define HAVE_MEMCPY 1
4616 cat >> confdefs.h <<\EOF
4617 #define HAVE_STRERROR 1
4620 cat >> confdefs.h <<\EOF
4624 cat >> confdefs.h <<\EOF
4625 #define HAVE_GMTIME_R 1
4628 cat >> confdefs.h <<\EOF
4629 #define HAVE_LOCALTIME_R 1
4632 cat >> confdefs.h <<\EOF
4633 #define HAVE_USLEEP_DECL 1
4636 cat >> confdefs.h <<\EOF
4637 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
4640 cat >> confdefs.h <<\EOF
4641 #define HAVE_ALLOCA 1
4645 cat >> confdefs.h <<\EOF
4651 for ac_func in strerror ioctl select fstat open fsync sleep opendir
4653 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4654 echo "configure
:4655: checking
for $ac_func" >&5
4655 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4656 echo $ac_n "(cached
) $ac_c" 1>&6
4658 cat > conftest.$ac_ext <<EOF
4659 #line 4660 "configure
"
4660 #include "confdefs.h
"
4661 /* System header to define __stub macros and hopefully few prototypes,
4662 which can conflict with char $ac_func(); below. */
4664 /* Override any gcc2 internal prototype to avoid an error. */
4665 /* We use char because int might match the return type of a gcc2
4666 builtin and then its argument prototype would still apply. */
4671 /* The GNU C library defines this for functions which it implements
4672 to always fail with ENOSYS. Some functions are actually named
4673 something starting with __ and the normal name is an alias. */
4674 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4682 if { (eval echo configure:4683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4684 eval "ac_cv_func_
$ac_func=yes"
4686 echo "configure
: failed program was
:" >&5
4687 cat conftest.$ac_ext >&5
4689 eval "ac_cv_func_
$ac_func=no
"
4694 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4695 echo "$ac_t""yes" 1>&6
4696 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4697 cat >> confdefs.h <<EOF
4698 #define $ac_tr_func 1
4702 echo "$ac_t""no
" 1>&6
4706 for ac_func in gmtime_r localtime_r readdir_r getpwuid_r getcwd
4708 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4709 echo "configure
:4710: checking
for $ac_func" >&5
4710 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4711 echo $ac_n "(cached
) $ac_c" 1>&6
4713 cat > conftest.$ac_ext <<EOF
4714 #line 4715 "configure
"
4715 #include "confdefs.h
"
4716 /* System header to define __stub macros and hopefully few prototypes,
4717 which can conflict with char $ac_func(); below. */
4719 /* Override any gcc2 internal prototype to avoid an error. */
4720 /* We use char because int might match the return type of a gcc2
4721 builtin and then its argument prototype would still apply. */
4726 /* The GNU C library defines this for functions which it implements
4727 to always fail with ENOSYS. Some functions are actually named
4728 something starting with __ and the normal name is an alias. */
4729 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4737 if { (eval echo configure:4738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4739 eval "ac_cv_func_
$ac_func=yes"
4741 echo "configure
: failed program was
:" >&5
4742 cat conftest.$ac_ext >&5
4744 eval "ac_cv_func_
$ac_func=no
"
4749 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4750 echo "$ac_t""yes" 1>&6
4751 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4752 cat >> confdefs.h <<EOF
4753 #define $ac_tr_func 1
4757 echo "$ac_t""no
" 1>&6
4761 for ac_func in access stat mkdir rename rmdir unlink realpath utime chmod
4763 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4764 echo "configure
:4765: checking
for $ac_func" >&5
4765 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4766 echo $ac_n "(cached
) $ac_c" 1>&6
4768 cat > conftest.$ac_ext <<EOF
4769 #line 4770 "configure
"
4770 #include "confdefs.h
"
4771 /* System header to define __stub macros and hopefully few prototypes,
4772 which can conflict with char $ac_func(); below. */
4774 /* Override any gcc2 internal prototype to avoid an error. */
4775 /* We use char because int might match the return type of a gcc2
4776 builtin and then its argument prototype would still apply. */
4781 /* The GNU C library defines this for functions which it implements
4782 to always fail with ENOSYS. Some functions are actually named
4783 something starting with __ and the normal name is an alias. */
4784 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4792 if { (eval echo configure:4793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4794 eval "ac_cv_func_
$ac_func=yes"
4796 echo "configure
: failed program was
:" >&5
4797 cat conftest.$ac_ext >&5
4799 eval "ac_cv_func_
$ac_func=no
"
4804 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4805 echo "$ac_t""yes" 1>&6
4806 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4807 cat >> confdefs.h <<EOF
4808 #define $ac_tr_func 1
4812 echo "$ac_t""no
" 1>&6
4816 for ac_func in nl_langinfo setlocale
4818 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4819 echo "configure
:4820: checking
for $ac_func" >&5
4820 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4821 echo $ac_n "(cached
) $ac_c" 1>&6
4823 cat > conftest.$ac_ext <<EOF
4824 #line 4825 "configure
"
4825 #include "confdefs.h
"
4826 /* System header to define __stub macros and hopefully few prototypes,
4827 which can conflict with char $ac_func(); below. */
4829 /* Override any gcc2 internal prototype to avoid an error. */
4830 /* We use char because int might match the return type of a gcc2
4831 builtin and then its argument prototype would still apply. */
4836 /* The GNU C library defines this for functions which it implements
4837 to always fail with ENOSYS. Some functions are actually named
4838 something starting with __ and the normal name is an alias. */
4839 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4847 if { (eval echo configure:4848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4849 eval "ac_cv_func_
$ac_func=yes"
4851 echo "configure
: failed program was
:" >&5
4852 cat conftest.$ac_ext >&5
4854 eval "ac_cv_func_
$ac_func=no
"
4859 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4860 echo "$ac_t""yes" 1>&6
4861 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4862 cat >> confdefs.h <<EOF
4863 #define $ac_tr_func 1
4867 echo "$ac_t""no
" 1>&6
4871 for ac_func in inet_aton inet_addr
4873 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4874 echo "configure
:4875: checking
for $ac_func" >&5
4875 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4876 echo $ac_n "(cached
) $ac_c" 1>&6
4878 cat > conftest.$ac_ext <<EOF
4879 #line 4880 "configure
"
4880 #include "confdefs.h
"
4881 /* System header to define __stub macros and hopefully few prototypes,
4882 which can conflict with char $ac_func(); below. */
4884 /* Override any gcc2 internal prototype to avoid an error. */
4885 /* We use char because int might match the return type of a gcc2
4886 builtin and then its argument prototype would still apply. */
4891 /* The GNU C library defines this for functions which it implements
4892 to always fail with ENOSYS. Some functions are actually named
4893 something starting with __ and the normal name is an alias. */
4894 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4902 if { (eval echo configure:4903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4904 eval "ac_cv_func_
$ac_func=yes"
4906 echo "configure
: failed program was
:" >&5
4907 cat conftest.$ac_ext >&5
4909 eval "ac_cv_func_
$ac_func=no
"
4914 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4915 echo "$ac_t""yes" 1>&6
4916 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4917 cat >> confdefs.h <<EOF
4918 #define $ac_tr_func 1
4922 echo "$ac_t""no
" 1>&6
4926 for ac_func in inet_pton uname inet_ntoa
4928 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4929 echo "configure
:4930: checking
for $ac_func" >&5
4930 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4931 echo $ac_n "(cached
) $ac_c" 1>&6
4933 cat > conftest.$ac_ext <<EOF
4934 #line 4935 "configure
"
4935 #include "confdefs.h
"
4936 /* System header to define __stub macros and hopefully few prototypes,
4937 which can conflict with char $ac_func(); below. */
4939 /* Override any gcc2 internal prototype to avoid an error. */
4940 /* We use char because int might match the return type of a gcc2
4941 builtin and then its argument prototype would still apply. */
4946 /* The GNU C library defines this for functions which it implements
4947 to always fail with ENOSYS. Some functions are actually named
4948 something starting with __ and the normal name is an alias. */
4949 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4957 if { (eval echo configure:4958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4959 eval "ac_cv_func_
$ac_func=yes"
4961 echo "configure
: failed program was
:" >&5
4962 cat conftest.$ac_ext >&5
4964 eval "ac_cv_func_
$ac_func=no
"
4969 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4970 echo "$ac_t""yes" 1>&6
4971 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4972 cat >> confdefs.h <<EOF
4973 #define $ac_tr_func 1
4977 echo "$ac_t""no
" 1>&6
4981 for ac_func in fork execvp pipe sigaction ftruncate
4983 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4984 echo "configure
:4985: checking
for $ac_func" >&5
4985 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4986 echo $ac_n "(cached
) $ac_c" 1>&6
4988 cat > conftest.$ac_ext <<EOF
4989 #line 4990 "configure
"
4990 #include "confdefs.h
"
4991 /* System header to define __stub macros and hopefully few prototypes,
4992 which can conflict with char $ac_func(); below. */
4994 /* Override any gcc2 internal prototype to avoid an error. */
4995 /* We use char because int might match the return type of a gcc2
4996 builtin and then its argument prototype would still apply. */
5001 /* The GNU C library defines this for functions which it implements
5002 to always fail with ENOSYS. Some functions are actually named
5003 something starting with __ and the normal name is an alias. */
5004 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5012 if { (eval echo configure:5013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5014 eval "ac_cv_func_
$ac_func=yes"
5016 echo "configure
: failed program was
:" >&5
5017 cat conftest.$ac_ext >&5
5019 eval "ac_cv_func_
$ac_func=no
"
5024 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5025 echo "$ac_t""yes" 1>&6
5026 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5027 cat >> confdefs.h <<EOF
5028 #define $ac_tr_func 1
5032 echo "$ac_t""no
" 1>&6
5036 for ac_hdr in execinfo.h unistd.h dlfcn.h
5038 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5039 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
5040 echo "configure
:5041: checking
for $ac_hdr" >&5
5041 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5042 echo $ac_n "(cached
) $ac_c" 1>&6
5044 cat > conftest.$ac_ext <<EOF
5045 #line 5046 "configure
"
5046 #include "confdefs.h
"
5049 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
5050 { (eval echo configure:5051: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5051 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
5052 if test -z "$ac_err"; then
5054 eval "ac_cv_header_
$ac_safe=yes"
5057 echo "configure
: failed program was
:" >&5
5058 cat conftest.$ac_ext >&5
5060 eval "ac_cv_header_
$ac_safe=no
"
5064 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5065 echo "$ac_t""yes" 1>&6
5066 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5067 cat >> confdefs.h <<EOF
5068 #define $ac_tr_hdr 1
5072 echo "$ac_t""no
" 1>&6
5076 echo $ac_n "checking
for backtrace
""...
$ac_c" 1>&6
5077 echo "configure
:5078: checking
for backtrace
" >&5
5078 if eval "test \"`echo '$''{'ac_cv_func_backtrace'+set}'`\" = set"; then
5079 echo $ac_n "(cached
) $ac_c" 1>&6
5081 cat > conftest.$ac_ext <<EOF
5082 #line 5083 "configure
"
5083 #include "confdefs.h
"
5084 /* System header to define __stub macros and hopefully few prototypes,
5085 which can conflict with char backtrace(); below. */
5087 /* Override any gcc2 internal prototype to avoid an error. */
5088 /* We use char because int might match the return type of a gcc2
5089 builtin and then its argument prototype would still apply. */
5094 /* The GNU C library defines this for functions which it implements
5095 to always fail with ENOSYS. Some functions are actually named
5096 something starting with __ and the normal name is an alias. */
5097 #if defined (__stub_backtrace) || defined (__stub___backtrace)
5105 if { (eval echo configure:5106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5107 eval "ac_cv_func_backtrace
=yes"
5109 echo "configure
: failed program was
:" >&5
5110 cat conftest.$ac_ext >&5
5112 eval "ac_cv_func_backtrace
=no
"
5117 if eval "test \"`echo '$ac_cv_func_'backtrace`\" = yes"; then
5118 echo "$ac_t""yes" 1>&6
5122 # Has broken backtrace()
5125 # Has broken backtrace(), but we supply our own.
5126 if test -d sysdep; then true; else mkdir -p sysdep; fi
5127 EXTRA_CC_FILES="${EXTRA_CC_FILES} sysdep
/dwarf2-backtrace.cc
"
5128 cat >> confdefs.h <<\EOF
5129 #define HAVE_BACKTRACE 1
5134 cat >> confdefs.h <<\EOF
5135 #define HAVE_BACKTRACE 1
5142 echo "$ac_t""no
" 1>&6
5146 # Has backtrace() defined in libgcj itself
5147 cat >> confdefs.h <<\EOF
5148 #define HAVE_BACKTRACE 1
5157 echo $ac_n "checking
for dladdr
in -ldl""...
$ac_c" 1>&6
5158 echo "configure
:5159: checking
for dladdr
in -ldl" >&5
5159 ac_lib_var=`echo dl'_'dladdr | sed 'y%./+-%__p_%'`
5160 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5161 echo $ac_n "(cached
) $ac_c" 1>&6
5163 ac_save_LIBS="$LIBS"
5165 cat > conftest.$ac_ext <<EOF
5166 #line 5167 "configure
"
5167 #include "confdefs.h
"
5168 /* Override any gcc2 internal prototype to avoid an error. */
5169 /* We use char because int might match the return type of a gcc2
5170 builtin and then its argument prototype would still apply. */
5177 if { (eval echo configure:5178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5179 eval "ac_cv_lib_
$ac_lib_var=yes"
5181 echo "configure
: failed program was
:" >&5
5182 cat conftest.$ac_ext >&5
5184 eval "ac_cv_lib_
$ac_lib_var=no
"
5187 LIBS="$ac_save_LIBS"
5190 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5191 echo "$ac_t""yes" 1>&6
5193 if test "x
${disable_dladdr}" = "xyes
"; then
5197 cat >> confdefs.h <<\EOF
5198 #define HAVE_DLADDR 1
5204 echo "$ac_t""no
" 1>&6
5207 if test x"$build" = x"$host"; then
5208 for ac_file in /proc/self/exe
5211 ac_safe=`echo "$ac_file" | sed 'y%./+-%__p_%'`
5212 echo $ac_n "checking
for $ac_file""...
$ac_c" 1>&6
5213 echo "configure
:5214: checking
for $ac_file" >&5
5214 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
5215 echo $ac_n "(cached
) $ac_c" 1>&6
5217 if test "$cross_compiling" = yes; then
5218 { echo "configure
: error
: Cannot check
for file existence when cross compiling
" 1>&2; exit 1; }
5220 if test -r $ac_file; then
5221 eval "ac_cv_file_
$ac_safe=yes"
5223 eval "ac_cv_file_
$ac_safe=no
"
5227 if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
5228 echo "$ac_t""yes" 1>&6
5229 ac_tr_file=HAVE_`echo $ac_file | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5230 cat >> confdefs.h <<EOF
5231 #define $ac_tr_file 1
5234 cat >> confdefs.h <<\EOF
5235 #define HAVE_PROC_SELF_EXE 1
5239 echo "$ac_t""no
" 1>&6
5247 cat >> confdefs.h <<\EOF
5248 #define HAVE_PROC_SELF_EXE 1
5257 am_cv_lib_iconv_ldpath=
5258 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5259 if test "${with_libiconv_prefix+set}" = set; then
5260 withval="$with_libiconv_prefix"
5262 for dir in `echo "$withval" | tr : ' '`; do
5263 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include
"; fi
5264 if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib
"; fi
5270 echo $ac_n "checking
for iconv""...
$ac_c" 1>&6
5271 echo "configure
:5272: checking
for iconv" >&5
5272 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
5273 echo $ac_n "(cached
) $ac_c" 1>&6
5276 am_cv_func_iconv="no
, consider installing GNU libiconv
"
5278 cat > conftest.$ac_ext <<EOF
5279 #line 5280 "configure
"
5280 #include "confdefs.h
"
5284 iconv_t cd = iconv_open("","");
5285 iconv(cd,NULL,NULL,NULL,NULL);
5289 if { (eval echo configure:5290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5291 am_cv_func_iconv=yes
5293 echo "configure
: failed program was
:" >&5
5294 cat conftest.$ac_ext >&5
5297 if test "$am_cv_func_iconv" != yes; then
5298 am_save_LIBS="$LIBS"
5299 LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
5300 cat > conftest.$ac_ext <<EOF
5301 #line 5302 "configure
"
5302 #include "confdefs.h
"
5306 iconv_t cd = iconv_open("","");
5307 iconv(cd,NULL,NULL,NULL,NULL);
5311 if { (eval echo configure:5312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5314 am_cv_func_iconv=yes
5316 echo "configure
: failed program was
:" >&5
5317 cat conftest.$ac_ext >&5
5320 LIBS="$am_save_LIBS"
5325 echo "$ac_t""$am_cv_func_iconv" 1>&6
5326 if test "$am_cv_func_iconv" = yes; then
5327 cat >> confdefs.h <<\EOF
5328 #define HAVE_ICONV 1
5331 echo $ac_n "checking
for iconv declaration
""...
$ac_c" 1>&6
5332 echo "configure
:5333: checking
for iconv declaration
" >&5
5333 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
5334 echo $ac_n "(cached
) $ac_c" 1>&6
5337 cat > conftest.$ac_ext <<EOF
5338 #line 5339 "configure
"
5339 #include "confdefs.h
"
5347 #if defined(__STDC__) || defined(__cplusplus)
5348 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
5357 if { (eval echo configure:5358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5359 am_cv_proto_iconv_arg1=""
5361 echo "configure
: failed program was
:" >&5
5362 cat conftest.$ac_ext >&5
5364 am_cv_proto_iconv_arg1="const
"
5367 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
);"
5370 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
5371 echo "$ac_t""$
{ac_t
:-
5372 }$am_cv_proto_iconv" 1>&6
5373 cat >> confdefs.h <<EOF
5374 #define ICONV_CONST $am_cv_proto_iconv_arg1
5379 if test "$am_cv_lib_iconv" = yes; then
5380 LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
5384 for ac_hdr in locale.h
5386 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5387 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
5388 echo "configure
:5389: checking
for $ac_hdr" >&5
5389 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5390 echo $ac_n "(cached
) $ac_c" 1>&6
5392 cat > conftest.$ac_ext <<EOF
5393 #line 5394 "configure
"
5394 #include "confdefs.h
"
5397 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
5398 { (eval echo configure:5399: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5399 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
5400 if test -z "$ac_err"; then
5402 eval "ac_cv_header_
$ac_safe=yes"
5405 echo "configure
: failed program was
:" >&5
5406 cat conftest.$ac_ext >&5
5408 eval "ac_cv_header_
$ac_safe=no
"
5412 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5413 echo "$ac_t""yes" 1>&6
5414 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5415 cat >> confdefs.h <<EOF
5416 #define $ac_tr_hdr 1
5420 echo "$ac_t""no
" 1>&6
5424 if test $ac_cv_header_locale_h = yes; then
5425 echo $ac_n "checking
for LC_MESSAGES
""...
$ac_c" 1>&6
5426 echo "configure
:5427: checking
for LC_MESSAGES
" >&5
5427 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
5428 echo $ac_n "(cached
) $ac_c" 1>&6
5430 cat > conftest.$ac_ext <<EOF
5431 #line 5432 "configure
"
5432 #include "confdefs.h
"
5438 if { (eval echo configure:5439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5440 am_cv_val_LC_MESSAGES=yes
5442 echo "configure
: failed program was
:" >&5
5443 cat conftest.$ac_ext >&5
5445 am_cv_val_LC_MESSAGES=no
5450 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
5451 if test $am_cv_val_LC_MESSAGES = yes; then
5452 cat >> confdefs.h <<\EOF
5453 #define HAVE_LC_MESSAGES 1
5458 echo $ac_n "checking whether struct tm is
in sys
/time.h or
time.h
""...
$ac_c" 1>&6
5459 echo "configure
:5460: checking whether struct tm is
in sys
/time.h or
time.h
" >&5
5460 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
5461 echo $ac_n "(cached
) $ac_c" 1>&6
5463 cat > conftest.$ac_ext <<EOF
5464 #line 5465 "configure
"
5465 #include "confdefs.h
"
5466 #include <sys/types.h>
5469 struct tm *tp; tp->tm_sec;
5472 if { (eval echo configure:5473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5474 ac_cv_struct_tm=time.h
5476 echo "configure
: failed program was
:" >&5
5477 cat conftest.$ac_ext >&5
5479 ac_cv_struct_tm=sys/time.h
5484 echo "$ac_t""$ac_cv_struct_tm" 1>&6
5485 if test $ac_cv_struct_tm = sys/time.h; then
5486 cat >> confdefs.h <<\EOF
5487 #define TM_IN_SYS_TIME 1
5492 echo $ac_n "checking
for tm_zone
in struct tm
""...
$ac_c" 1>&6
5493 echo "configure
:5494: checking
for tm_zone
in struct tm
" >&5
5494 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
5495 echo $ac_n "(cached
) $ac_c" 1>&6
5497 cat > conftest.$ac_ext <<EOF
5498 #line 5499 "configure
"
5499 #include "confdefs.h
"
5500 #include <sys/types.h>
5501 #include <$ac_cv_struct_tm>
5503 struct tm tm; tm.tm_zone;
5506 if { (eval echo configure:5507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5508 ac_cv_struct_tm_zone=yes
5510 echo "configure
: failed program was
:" >&5
5511 cat conftest.$ac_ext >&5
5513 ac_cv_struct_tm_zone=no
5518 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
5519 if test "$ac_cv_struct_tm_zone" = yes; then
5520 cat >> confdefs.h <<\EOF
5521 #define HAVE_TM_ZONE 1
5525 echo $ac_n "checking
for tzname
""...
$ac_c" 1>&6
5526 echo "configure
:5527: checking
for tzname
" >&5
5527 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
5528 echo $ac_n "(cached
) $ac_c" 1>&6
5530 cat > conftest.$ac_ext <<EOF
5531 #line 5532 "configure
"
5532 #include "confdefs.h
"
5534 #ifndef tzname /* For SGI. */
5535 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5541 if { (eval echo configure:5542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5543 ac_cv_var_tzname=yes
5545 echo "configure
: failed program was
:" >&5
5546 cat conftest.$ac_ext >&5
5553 echo "$ac_t""$ac_cv_var_tzname" 1>&6
5554 if test $ac_cv_var_tzname = yes; then
5555 cat >> confdefs.h <<\EOF
5556 #define HAVE_TZNAME 1
5563 for ac_func in gethostbyname_r
5565 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
5566 echo "configure
:5567: checking
for $ac_func" >&5
5567 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5568 echo $ac_n "(cached
) $ac_c" 1>&6
5570 cat > conftest.$ac_ext <<EOF
5571 #line 5572 "configure
"
5572 #include "confdefs.h
"
5573 /* System header to define __stub macros and hopefully few prototypes,
5574 which can conflict with char $ac_func(); below. */
5576 /* Override any gcc2 internal prototype to avoid an error. */
5577 /* We use char because int might match the return type of a gcc2
5578 builtin and then its argument prototype would still apply. */
5583 /* The GNU C library defines this for functions which it implements
5584 to always fail with ENOSYS. Some functions are actually named
5585 something starting with __ and the normal name is an alias. */
5586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5594 if { (eval echo configure:5595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5596 eval "ac_cv_func_
$ac_func=yes"
5598 echo "configure
: failed program was
:" >&5
5599 cat conftest.$ac_ext >&5
5601 eval "ac_cv_func_
$ac_func=no
"
5606 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5607 echo "$ac_t""yes" 1>&6
5608 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5609 cat >> confdefs.h <<EOF
5610 #define $ac_tr_func 1
5613 cat >> confdefs.h <<\EOF
5614 #define HAVE_GETHOSTBYNAME_R 1
5617 # There are two different kinds of gethostbyname_r.
5618 # We look for the one that returns `int'.
5619 # Hopefully this check is robust enough.
5620 cat > conftest.$ac_ext <<EOF
5621 #line 5622 "configure
"
5622 #include "confdefs.h
"
5625 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
5626 egrep "int.
*gethostbyname_r
" >/dev/null 2>&1; then
5629 cat >> confdefs.h <<\EOF
5630 #define GETHOSTBYNAME_R_RETURNS_INT 1
5638 *" -D_REENTRANT "*) ;;
5640 echo $ac_n "checking whether gethostbyname_r declaration requires
-D_REENTRANT""...
$ac_c" 1>&6
5641 echo "configure
:5642: checking whether gethostbyname_r declaration requires
-D_REENTRANT" >&5
5642 if eval "test \"`echo '$''{'libjava_cv_gethostbyname_r_needs_reentrant'+set}'`\" = set"; then
5643 echo $ac_n "(cached
) $ac_c" 1>&6
5647 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5648 ac_cpp='$CXXCPP $CPPFLAGS'
5649 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5650 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5651 cross_compiling=$ac_cv_prog_cxx_cross
5653 cat > conftest.$ac_ext <<EOF
5654 #line 5655 "configure
"
5655 #include "confdefs.h
"
5658 gethostbyname_r("", 0, 0);
5661 if { (eval echo configure:5662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5663 libjava_cv_gethostbyname_r_needs_reentrant=no
5665 echo "configure
: failed program was
:" >&5
5666 cat conftest.$ac_ext >&5
5668 CPPFLAGS_SAVE="$CPPFLAGS"
5669 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
5670 cat > conftest.$ac_ext <<EOF
5671 #line 5672 "configure
"
5672 #include "confdefs.h
"
5675 gethostbyname_r("", 0, 0);
5678 if { (eval echo configure:5679: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5680 libjava_cv_gethostbyname_r_needs_reentrant=yes
5682 echo "configure
: failed program was
:" >&5
5683 cat conftest.$ac_ext >&5
5685 libjava_cv_gethostbyname_r_needs_reentrant=fail
5688 CPPFLAGS="$CPPFLAGS_SAVE"
5693 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5694 ac_cpp='$CPP $CPPFLAGS'
5695 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5696 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5697 cross_compiling=$ac_cv_prog_cc_cross
5702 echo "$ac_t""$libjava_cv_gethostbyname_r_needs_reentrant" 1>&6
5703 if test "x
$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
5704 cat >> confdefs.h <<\EOF
5705 #define _REENTRANT 1
5712 echo $ac_n "checking
for struct hostent_data
""...
$ac_c" 1>&6
5713 echo "configure
:5714: checking
for struct hostent_data
" >&5
5714 if eval "test \"`echo '$''{'libjava_cv_struct_hostent_data'+set}'`\" = set"; then
5715 echo $ac_n "(cached
) $ac_c" 1>&6
5717 cat > conftest.$ac_ext <<EOF
5718 #line 5719 "configure
"
5719 #include "confdefs.h
"
5721 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
5722 # define _REENTRANT 1
5726 struct hostent_data data;
5729 if { (eval echo configure:5730: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5731 libjava_cv_struct_hostent_data=yes
5733 echo "configure
: failed program was
:" >&5
5734 cat conftest.$ac_ext >&5
5736 libjava_cv_struct_hostent_data=no
5741 echo "$ac_t""$libjava_cv_struct_hostent_data" 1>&6
5742 if test "x
$libjava_cv_struct_hostent_data" = xyes; then
5743 cat >> confdefs.h <<\EOF
5744 #define HAVE_STRUCT_HOSTENT_DATA 1
5750 echo "$ac_t""no
" 1>&6
5755 # FIXME: libjava source code expects to find a prototype for
5756 # gethostbyaddr_r in netdb.h. The outer check ensures that
5757 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
5758 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
5759 # linkage check is enough, yet C++ code requires proper prototypes.)
5760 cat > conftest.$ac_ext <<EOF
5761 #line 5762 "configure
"
5762 #include "confdefs.h
"
5765 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
5766 egrep "gethostbyaddr_r
" >/dev/null 2>&1; then
5769 for ac_func in gethostbyaddr_r
5771 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
5772 echo "configure
:5773: checking
for $ac_func" >&5
5773 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5774 echo $ac_n "(cached
) $ac_c" 1>&6
5776 cat > conftest.$ac_ext <<EOF
5777 #line 5778 "configure
"
5778 #include "confdefs.h
"
5779 /* System header to define __stub macros and hopefully few prototypes,
5780 which can conflict with char $ac_func(); below. */
5782 /* Override any gcc2 internal prototype to avoid an error. */
5783 /* We use char because int might match the return type of a gcc2
5784 builtin and then its argument prototype would still apply. */
5789 /* The GNU C library defines this for functions which it implements
5790 to always fail with ENOSYS. Some functions are actually named
5791 something starting with __ and the normal name is an alias. */
5792 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5800 if { (eval echo configure:5801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5802 eval "ac_cv_func_
$ac_func=yes"
5804 echo "configure
: failed program was
:" >&5
5805 cat conftest.$ac_ext >&5
5807 eval "ac_cv_func_
$ac_func=no
"
5812 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5813 echo "$ac_t""yes" 1>&6
5814 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5815 cat >> confdefs.h <<EOF
5816 #define $ac_tr_func 1
5819 cat >> confdefs.h <<\EOF
5820 #define HAVE_GETHOSTBYADDR_R 1
5823 # There are two different kinds of gethostbyaddr_r.
5824 # We look for the one that returns `int'.
5825 # Hopefully this check is robust enough.
5826 cat > conftest.$ac_ext <<EOF
5827 #line 5828 "configure
"
5828 #include "confdefs.h
"
5831 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
5832 egrep "int.
*gethostbyaddr_r
" >/dev/null 2>&1; then
5835 cat >> confdefs.h <<\EOF
5836 #define GETHOSTBYADDR_R_RETURNS_INT 1
5843 echo "$ac_t""no
" 1>&6
5851 for ac_func in gethostname
5853 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
5854 echo "configure
:5855: checking
for $ac_func" >&5
5855 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5856 echo $ac_n "(cached
) $ac_c" 1>&6
5858 cat > conftest.$ac_ext <<EOF
5859 #line 5860 "configure
"
5860 #include "confdefs.h
"
5861 /* System header to define __stub macros and hopefully few prototypes,
5862 which can conflict with char $ac_func(); below. */
5864 /* Override any gcc2 internal prototype to avoid an error. */
5865 /* We use char because int might match the return type of a gcc2
5866 builtin and then its argument prototype would still apply. */
5871 /* The GNU C library defines this for functions which it implements
5872 to always fail with ENOSYS. Some functions are actually named
5873 something starting with __ and the normal name is an alias. */
5874 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5882 if { (eval echo configure:5883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5884 eval "ac_cv_func_
$ac_func=yes"
5886 echo "configure
: failed program was
:" >&5
5887 cat conftest.$ac_ext >&5
5889 eval "ac_cv_func_
$ac_func=no
"
5894 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5895 echo "$ac_t""yes" 1>&6
5896 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5897 cat >> confdefs.h <<EOF
5898 #define $ac_tr_func 1
5901 cat >> confdefs.h <<\EOF
5902 #define HAVE_GETHOSTNAME 1
5905 cat > conftest.$ac_ext <<EOF
5906 #line 5907 "configure
"
5907 #include "confdefs.h
"
5910 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
5911 egrep "gethostname
" >/dev/null 2>&1; then
5914 cat >> confdefs.h <<\EOF
5915 #define HAVE_GETHOSTNAME_DECL 1
5922 echo "$ac_t""no
" 1>&6
5927 for ac_func in usleep
5929 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
5930 echo "configure
:5931: checking
for $ac_func" >&5
5931 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5932 echo $ac_n "(cached
) $ac_c" 1>&6
5934 cat > conftest.$ac_ext <<EOF
5935 #line 5936 "configure
"
5936 #include "confdefs.h
"
5937 /* System header to define __stub macros and hopefully few prototypes,
5938 which can conflict with char $ac_func(); below. */
5940 /* Override any gcc2 internal prototype to avoid an error. */
5941 /* We use char because int might match the return type of a gcc2
5942 builtin and then its argument prototype would still apply. */
5947 /* The GNU C library defines this for functions which it implements
5948 to always fail with ENOSYS. Some functions are actually named
5949 something starting with __ and the normal name is an alias. */
5950 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5958 if { (eval echo configure:5959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5960 eval "ac_cv_func_
$ac_func=yes"
5962 echo "configure
: failed program was
:" >&5
5963 cat conftest.$ac_ext >&5
5965 eval "ac_cv_func_
$ac_func=no
"
5970 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5971 echo "$ac_t""yes" 1>&6
5972 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5973 cat >> confdefs.h <<EOF
5974 #define $ac_tr_func 1
5977 cat > conftest.$ac_ext <<EOF
5978 #line 5979 "configure
"
5979 #include "confdefs.h
"
5982 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
5983 egrep "usleep" >/dev/null 2>&1; then
5986 cat >> confdefs.h <<\EOF
5987 #define HAVE_USLEEP_DECL 1
5994 echo "$ac_t""no
" 1>&6
5999 # Look for these functions in the thread library, but only bother
6000 # if using POSIX threads.
6001 if test "$THREADS" = posix; then
6003 LIBS="$LIBS $THREADLIBS"
6004 # Some POSIX thread systems don't have pthread_mutexattr_settype.
6006 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
6008 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
6009 echo "configure
:6010: checking
for $ac_func" >&5
6010 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6011 echo $ac_n "(cached
) $ac_c" 1>&6
6013 cat > conftest.$ac_ext <<EOF
6014 #line 6015 "configure
"
6015 #include "confdefs.h
"
6016 /* System header to define __stub macros and hopefully few prototypes,
6017 which can conflict with char $ac_func(); below. */
6019 /* Override any gcc2 internal prototype to avoid an error. */
6020 /* We use char because int might match the return type of a gcc2
6021 builtin and then its argument prototype would still apply. */
6026 /* The GNU C library defines this for functions which it implements
6027 to always fail with ENOSYS. Some functions are actually named
6028 something starting with __ and the normal name is an alias. */
6029 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6037 if { (eval echo configure:6038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6039 eval "ac_cv_func_
$ac_func=yes"
6041 echo "configure
: failed program was
:" >&5
6042 cat conftest.$ac_ext >&5
6044 eval "ac_cv_func_
$ac_func=no
"
6049 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6050 echo "$ac_t""yes" 1>&6
6051 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6052 cat >> confdefs.h <<EOF
6053 #define $ac_tr_func 1
6057 echo "$ac_t""no
" 1>&6
6062 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
6063 # Solaris 7 the name librt is preferred.
6064 for ac_func in sched_yield
6066 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
6067 echo "configure
:6068: checking
for $ac_func" >&5
6068 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6069 echo $ac_n "(cached
) $ac_c" 1>&6
6071 cat > conftest.$ac_ext <<EOF
6072 #line 6073 "configure
"
6073 #include "confdefs.h
"
6074 /* System header to define __stub macros and hopefully few prototypes,
6075 which can conflict with char $ac_func(); below. */
6077 /* Override any gcc2 internal prototype to avoid an error. */
6078 /* We use char because int might match the return type of a gcc2
6079 builtin and then its argument prototype would still apply. */
6084 /* The GNU C library defines this for functions which it implements
6085 to always fail with ENOSYS. Some functions are actually named
6086 something starting with __ and the normal name is an alias. */
6087 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6095 if { (eval echo configure:6096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6097 eval "ac_cv_func_
$ac_func=yes"
6099 echo "configure
: failed program was
:" >&5
6100 cat conftest.$ac_ext >&5
6102 eval "ac_cv_func_
$ac_func=no
"
6107 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6108 echo "$ac_t""yes" 1>&6
6109 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6110 cat >> confdefs.h <<EOF
6111 #define $ac_tr_func 1
6115 echo "$ac_t""no
" 1>&6
6116 echo $ac_n "checking
for sched_yield
in -lrt""...
$ac_c" 1>&6
6117 echo "configure
:6118: checking
for sched_yield
in -lrt" >&5
6118 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
6119 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6120 echo $ac_n "(cached
) $ac_c" 1>&6
6122 ac_save_LIBS="$LIBS"
6124 cat > conftest.$ac_ext <<EOF
6125 #line 6126 "configure
"
6126 #include "confdefs.h
"
6127 /* Override any gcc2 internal prototype to avoid an error. */
6128 /* We use char because int might match the return type of a gcc2
6129 builtin and then its argument prototype would still apply. */
6136 if { (eval echo configure:6137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6138 eval "ac_cv_lib_
$ac_lib_var=yes"
6140 echo "configure
: failed program was
:" >&5
6141 cat conftest.$ac_ext >&5
6143 eval "ac_cv_lib_
$ac_lib_var=no
"
6146 LIBS="$ac_save_LIBS"
6149 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6150 echo "$ac_t""yes" 1>&6
6152 cat >> confdefs.h <<\EOF
6153 #define HAVE_SCHED_YIELD 1
6156 THREADLIBS="$THREADLIBS -lrt"
6157 THREADSPEC="$THREADSPEC -lrt"
6159 echo "$ac_t""no
" 1>&6
6161 echo $ac_n "checking
for sched_yield
in -lposix4""...
$ac_c" 1>&6
6162 echo "configure
:6163: checking
for sched_yield
in -lposix4" >&5
6163 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
6164 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6165 echo $ac_n "(cached
) $ac_c" 1>&6
6167 ac_save_LIBS="$LIBS"
6168 LIBS="-lposix4 $LIBS"
6169 cat > conftest.$ac_ext <<EOF
6170 #line 6171 "configure
"
6171 #include "confdefs.h
"
6172 /* Override any gcc2 internal prototype to avoid an error. */
6173 /* We use char because int might match the return type of a gcc2
6174 builtin and then its argument prototype would still apply. */
6181 if { (eval echo configure:6182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6183 eval "ac_cv_lib_
$ac_lib_var=yes"
6185 echo "configure
: failed program was
:" >&5
6186 cat conftest.$ac_ext >&5
6188 eval "ac_cv_lib_
$ac_lib_var=no
"
6191 LIBS="$ac_save_LIBS"
6194 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6195 echo "$ac_t""yes" 1>&6
6197 cat >> confdefs.h <<\EOF
6198 #define HAVE_SCHED_YIELD 1
6201 THREADLIBS="$THREADLIBS -lposix4"
6202 THREADSPEC="$THREADSPEC -lposix4"
6204 echo "$ac_t""no
" 1>&6
6214 # We can save a little space at runtime if the mutex has m_count
6215 # or __m_count. This is a nice hack for Linux.
6216 cat > conftest.$ac_ext <<EOF
6217 #line 6218 "configure
"
6218 #include "confdefs.h
"
6219 #include <pthread.h>
6222 extern pthread_mutex_t *mutex; int q = mutex->m_count;
6226 if { (eval echo configure:6227: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6228 cat >> confdefs.h <<\EOF
6229 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
6233 echo "configure
: failed program was
:" >&5
6234 cat conftest.$ac_ext >&5
6237 cat > conftest.$ac_ext <<EOF
6238 #line 6239 "configure
"
6239 #include "confdefs.h
"
6240 #include <pthread.h>
6243 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
6247 if { (eval echo configure:6248: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6249 cat >> confdefs.h <<\EOF
6250 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
6254 echo "configure
: failed program was
:" >&5
6255 cat conftest.$ac_ext >&5
6262 # We require a way to get the time.
6264 for ac_func in gettimeofday time ftime
6266 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
6267 echo "configure
:6268: checking
for $ac_func" >&5
6268 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6269 echo $ac_n "(cached
) $ac_c" 1>&6
6271 cat > conftest.$ac_ext <<EOF
6272 #line 6273 "configure
"
6273 #include "confdefs.h
"
6274 /* System header to define __stub macros and hopefully few prototypes,
6275 which can conflict with char $ac_func(); below. */
6277 /* Override any gcc2 internal prototype to avoid an error. */
6278 /* We use char because int might match the return type of a gcc2
6279 builtin and then its argument prototype would still apply. */
6284 /* The GNU C library defines this for functions which it implements
6285 to always fail with ENOSYS. Some functions are actually named
6286 something starting with __ and the normal name is an alias. */
6287 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6295 if { (eval echo configure:6296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6297 eval "ac_cv_func_
$ac_func=yes"
6299 echo "configure
: failed program was
:" >&5
6300 cat conftest.$ac_ext >&5
6302 eval "ac_cv_func_
$ac_func=no
"
6307 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6308 echo "$ac_t""yes" 1>&6
6309 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6310 cat >> confdefs.h <<EOF
6311 #define $ac_tr_func 1
6315 echo "$ac_t""no
" 1>&6
6319 if test "$time_found" = no; then
6320 { echo "configure
: error
: no
function found to get the
time" 1>&2; exit 1; }
6323 for ac_func in memmove
6325 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
6326 echo "configure
:6327: checking
for $ac_func" >&5
6327 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6328 echo $ac_n "(cached
) $ac_c" 1>&6
6330 cat > conftest.$ac_ext <<EOF
6331 #line 6332 "configure
"
6332 #include "confdefs.h
"
6333 /* System header to define __stub macros and hopefully few prototypes,
6334 which can conflict with char $ac_func(); below. */
6336 /* Override any gcc2 internal prototype to avoid an error. */
6337 /* We use char because int might match the return type of a gcc2
6338 builtin and then its argument prototype would still apply. */
6343 /* The GNU C library defines this for functions which it implements
6344 to always fail with ENOSYS. Some functions are actually named
6345 something starting with __ and the normal name is an alias. */
6346 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6354 if { (eval echo configure:6355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6356 eval "ac_cv_func_
$ac_func=yes"
6358 echo "configure
: failed program was
:" >&5
6359 cat conftest.$ac_ext >&5
6361 eval "ac_cv_func_
$ac_func=no
"
6366 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6367 echo "$ac_t""yes" 1>&6
6368 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6369 cat >> confdefs.h <<EOF
6370 #define $ac_tr_func 1
6374 echo "$ac_t""no
" 1>&6
6379 # We require memcpy.
6381 for ac_func in memcpy
6383 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
6384 echo "configure
:6385: checking
for $ac_func" >&5
6385 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6386 echo $ac_n "(cached
) $ac_c" 1>&6
6388 cat > conftest.$ac_ext <<EOF
6389 #line 6390 "configure
"
6390 #include "confdefs.h
"
6391 /* System header to define __stub macros and hopefully few prototypes,
6392 which can conflict with char $ac_func(); below. */
6394 /* Override any gcc2 internal prototype to avoid an error. */
6395 /* We use char because int might match the return type of a gcc2
6396 builtin and then its argument prototype would still apply. */
6401 /* The GNU C library defines this for functions which it implements
6402 to always fail with ENOSYS. Some functions are actually named
6403 something starting with __ and the normal name is an alias. */
6404 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6412 if { (eval echo configure:6413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6414 eval "ac_cv_func_
$ac_func=yes"
6416 echo "configure
: failed program was
:" >&5
6417 cat conftest.$ac_ext >&5
6419 eval "ac_cv_func_
$ac_func=no
"
6424 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6425 echo "$ac_t""yes" 1>&6
6426 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6427 cat >> confdefs.h <<EOF
6428 #define $ac_tr_func 1
6432 echo "$ac_t""no
" 1>&6
6436 if test "$memcpy_found" = no; then
6437 { echo "configure
: error
: memcpy is required
" 1>&2; exit 1; }
6440 echo $ac_n "checking
for dlopen
in -ldl""...
$ac_c" 1>&6
6441 echo "configure
:6442: checking
for dlopen
in -ldl" >&5
6442 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
6443 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6444 echo $ac_n "(cached
) $ac_c" 1>&6
6446 ac_save_LIBS="$LIBS"
6448 cat > conftest.$ac_ext <<EOF
6449 #line 6450 "configure
"
6450 #include "confdefs.h
"
6451 /* Override any gcc2 internal prototype to avoid an error. */
6452 /* We use char because int might match the return type of a gcc2
6453 builtin and then its argument prototype would still apply. */
6460 if { (eval echo configure:6461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6462 eval "ac_cv_lib_
$ac_lib_var=yes"
6464 echo "configure
: failed program was
:" >&5
6465 cat conftest.$ac_ext >&5
6467 eval "ac_cv_lib_
$ac_lib_var=no
"
6470 LIBS="$ac_save_LIBS"
6473 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6474 echo "$ac_t""yes" 1>&6
6476 cat >> confdefs.h <<\EOF
6477 #define HAVE_DLOPEN 1
6481 echo "$ac_t""no
" 1>&6
6485 # Some library-finding code we stole from Tcl.
6486 #--------------------------------------------------------------------
6487 # Check for the existence of the -lsocket and -lnsl libraries.
6488 # The order here is important, so that they end up in the right
6489 # order in the command line generated by make. Here are some
6490 # special considerations:
6491 # 1. Use "connect
" and "accept
" to check for -lsocket, and
6492 # "gethostbyname
" to check for -lnsl.
6493 # 2. Use each function name only once: can't redo a check because
6494 # autoconf caches the results of the last check and won't redo it.
6495 # 3. Use -lnsl and -lsocket only if they supply procedures that
6496 # aren't already present in the normal libraries. This is because
6497 # IRIX 5.2 has libraries, but they aren't needed and they're
6498 # bogus: they goof up name resolution if used.
6499 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
6500 # To get around this problem, check for both libraries together
6501 # if -lsocket doesn't work by itself.
6502 #--------------------------------------------------------------------
6504 echo $ac_n "checking
for socket libraries
""...
$ac_c" 1>&6
6505 echo "configure
:6506: checking
for socket libraries
" >&5
6506 if eval "test \"`echo '$''{'gcj_cv_lib_sockets'+set}'`\" = set"; then
6507 echo $ac_n "(cached
) $ac_c" 1>&6
6511 unset ac_cv_func_connect
6512 echo $ac_n "checking
for connect
""...
$ac_c" 1>&6
6513 echo "configure
:6514: checking
for connect
" >&5
6514 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
6515 echo $ac_n "(cached
) $ac_c" 1>&6
6517 cat > conftest.$ac_ext <<EOF
6518 #line 6519 "configure
"
6519 #include "confdefs.h
"
6520 /* System header to define __stub macros and hopefully few prototypes,
6521 which can conflict with char connect(); below. */
6523 /* Override any gcc2 internal prototype to avoid an error. */
6524 /* We use char because int might match the return type of a gcc2
6525 builtin and then its argument prototype would still apply. */
6530 /* The GNU C library defines this for functions which it implements
6531 to always fail with ENOSYS. Some functions are actually named
6532 something starting with __ and the normal name is an alias. */
6533 #if defined (__stub_connect) || defined (__stub___connect)
6541 if { (eval echo configure:6542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6543 eval "ac_cv_func_connect
=yes"
6545 echo "configure
: failed program was
:" >&5
6546 cat conftest.$ac_ext >&5
6548 eval "ac_cv_func_connect
=no
"
6553 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
6554 echo "$ac_t""yes" 1>&6
6557 echo "$ac_t""no
" 1>&6
6561 if test "$gcj_checkSocket" = 1; then
6562 unset ac_cv_func_connect
6563 echo $ac_n "checking
for main
in -lsocket""...
$ac_c" 1>&6
6564 echo "configure
:6565: checking
for main
in -lsocket" >&5
6565 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
6566 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6567 echo $ac_n "(cached
) $ac_c" 1>&6
6569 ac_save_LIBS="$LIBS"
6570 LIBS="-lsocket $LIBS"
6571 cat > conftest.$ac_ext <<EOF
6572 #line 6573 "configure
"
6573 #include "confdefs.h
"
6579 if { (eval echo configure:6580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6581 eval "ac_cv_lib_
$ac_lib_var=yes"
6583 echo "configure
: failed program was
:" >&5
6584 cat conftest.$ac_ext >&5
6586 eval "ac_cv_lib_
$ac_lib_var=no
"
6589 LIBS="$ac_save_LIBS"
6592 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6593 echo "$ac_t""yes" 1>&6
6594 gcj_cv_lib_sockets="-lsocket"
6596 echo "$ac_t""no
" 1>&6
6601 if test "$gcj_checkBoth" = 1; then
6603 LIBS="$LIBS -lsocket -lnsl"
6604 unset ac_cv_func_accept
6605 echo $ac_n "checking
for accept
""...
$ac_c" 1>&6
6606 echo "configure
:6607: checking
for accept
" >&5
6607 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
6608 echo $ac_n "(cached
) $ac_c" 1>&6
6610 cat > conftest.$ac_ext <<EOF
6611 #line 6612 "configure
"
6612 #include "confdefs.h
"
6613 /* System header to define __stub macros and hopefully few prototypes,
6614 which can conflict with char accept(); below. */
6616 /* Override any gcc2 internal prototype to avoid an error. */
6617 /* We use char because int might match the return type of a gcc2
6618 builtin and then its argument prototype would still apply. */
6623 /* The GNU C library defines this for functions which it implements
6624 to always fail with ENOSYS. Some functions are actually named
6625 something starting with __ and the normal name is an alias. */
6626 #if defined (__stub_accept) || defined (__stub___accept)
6634 if { (eval echo configure:6635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6636 eval "ac_cv_func_accept
=yes"
6638 echo "configure
: failed program was
:" >&5
6639 cat conftest.$ac_ext >&5
6641 eval "ac_cv_func_accept
=no
"
6646 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
6647 echo "$ac_t""yes" 1>&6
6649 gcj_cv_lib_sockets="-lsocket -lnsl"
6651 echo "$ac_t""no
" 1>&6
6654 unset ac_cv_func_accept
6657 unset ac_cv_func_gethostbyname
6659 LIBS="$LIBS $gcj_cv_lib_sockets"
6660 echo $ac_n "checking
for gethostbyname
""...
$ac_c" 1>&6
6661 echo "configure
:6662: checking
for gethostbyname
" >&5
6662 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
6663 echo $ac_n "(cached
) $ac_c" 1>&6
6665 cat > conftest.$ac_ext <<EOF
6666 #line 6667 "configure
"
6667 #include "confdefs.h
"
6668 /* System header to define __stub macros and hopefully few prototypes,
6669 which can conflict with char gethostbyname(); below. */
6671 /* Override any gcc2 internal prototype to avoid an error. */
6672 /* We use char because int might match the return type of a gcc2
6673 builtin and then its argument prototype would still apply. */
6674 char gethostbyname();
6678 /* The GNU C library defines this for functions which it implements
6679 to always fail with ENOSYS. Some functions are actually named
6680 something starting with __ and the normal name is an alias. */
6681 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6689 if { (eval echo configure:6690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6691 eval "ac_cv_func_gethostbyname
=yes"
6693 echo "configure
: failed program was
:" >&5
6694 cat conftest.$ac_ext >&5
6696 eval "ac_cv_func_gethostbyname
=no
"
6701 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
6702 echo "$ac_t""yes" 1>&6
6705 echo "$ac_t""no
" 1>&6
6706 echo $ac_n "checking
for main
in -lnsl""...
$ac_c" 1>&6
6707 echo "configure
:6708: checking
for main
in -lnsl" >&5
6708 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
6709 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6710 echo $ac_n "(cached
) $ac_c" 1>&6
6712 ac_save_LIBS="$LIBS"
6714 cat > conftest.$ac_ext <<EOF
6715 #line 6716 "configure
"
6716 #include "confdefs.h
"
6722 if { (eval echo configure:6723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6724 eval "ac_cv_lib_
$ac_lib_var=yes"
6726 echo "configure
: failed program was
:" >&5
6727 cat conftest.$ac_ext >&5
6729 eval "ac_cv_lib_
$ac_lib_var=no
"
6732 LIBS="$ac_save_LIBS"
6735 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6736 echo "$ac_t""yes" 1>&6
6737 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
6739 echo "$ac_t""no
" 1>&6
6744 unset ac_cv_func_gethostbyname
6749 echo "$ac_t""$gcj_cv_lib_sockets" 1>&6
6750 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
6752 if test "$with_system_zlib" = yes; then
6753 echo $ac_n "checking
for deflate
in -lz""...
$ac_c" 1>&6
6754 echo "configure
:6755: checking
for deflate
in -lz" >&5
6755 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
6756 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6757 echo $ac_n "(cached
) $ac_c" 1>&6
6759 ac_save_LIBS="$LIBS"
6761 cat > conftest.$ac_ext <<EOF
6762 #line 6763 "configure
"
6763 #include "confdefs.h
"
6764 /* Override any gcc2 internal prototype to avoid an error. */
6765 /* We use char because int might match the return type of a gcc2
6766 builtin and then its argument prototype would still apply. */
6773 if { (eval echo configure:6774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6775 eval "ac_cv_lib_
$ac_lib_var=yes"
6777 echo "configure
: failed program was
:" >&5
6778 cat conftest.$ac_ext >&5
6780 eval "ac_cv_lib_
$ac_lib_var=no
"
6783 LIBS="$ac_save_LIBS"
6786 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6787 echo "$ac_t""yes" 1>&6
6790 echo "$ac_t""no
" 1>&6
6796 # Test for Gtk stuff, if asked for.
6797 if test "$use_gtk_awt" = yes; then
6798 # Check whether --enable-gtktest or --disable-gtktest was given.
6799 if test "${enable_gtktest+set}" = set; then
6800 enableval="$enable_gtktest"
6807 pkg_config_args=gtk+-2.0
6812 pkg_config_args="$pkg_config_args gthread-2.0
"
6819 # Extract the first word of "pkg-config
", so it can be a program name with args.
6820 set dummy pkg-config; ac_word=$2
6821 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
6822 echo "configure
:6823: checking
for $ac_word" >&5
6823 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
6824 echo $ac_n "(cached
) $ac_c" 1>&6
6826 case "$PKG_CONFIG" in
6828 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6831 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
6834 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6836 for ac_dir in $ac_dummy; do
6837 test -z "$ac_dir" && ac_dir=.
6838 if test -f $ac_dir/$ac_word; then
6839 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
6844 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
6848 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6849 if test -n "$PKG_CONFIG"; then
6850 echo "$ac_t""$PKG_CONFIG" 1>&6
6852 echo "$ac_t""no
" 1>&6
6856 if test x$PKG_CONFIG != xno ; then
6857 if pkg-config --atleast-pkgconfig-version 0.7 ; then
6860 echo *** pkg-config too old; version 0.7 or better required.
6868 min_gtk_version=2.2.0
6869 echo $ac_n "checking
for GTK
+ - version
>= $min_gtk_version""...
$ac_c" 1>&6
6870 echo "configure
:6871: checking
for GTK
+ - version
>= $min_gtk_version" >&5
6872 if test x$PKG_CONFIG != xno ; then
6873 ## don't try to run the test against uninstalled libtool libs
6874 if $PKG_CONFIG --uninstalled $pkg_config_args; then
6875 echo "Will use uninstalled version of GTK
+ found
in PKG_CONFIG_PATH
"
6879 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
6886 if test x"$no_gtk" = x ; then
6887 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
6888 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
6889 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
6890 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
6891 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
6892 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
6893 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
6894 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
6895 if test "x
$enable_gtktest" = "xyes
" ; then
6896 ac_save_CFLAGS="$CFLAGS"
6897 ac_save_LIBS="$LIBS"
6898 CFLAGS="$CFLAGS $GTK_CFLAGS"
6899 LIBS="$GTK_LIBS $LIBS"
6901 if test "$cross_compiling" = yes; then
6902 echo $ac_n "cross compiling
; assumed OK...
$ac_c"
6904 cat > conftest.$ac_ext <<EOF
6905 #line 6906 "configure
"
6906 #include "confdefs.h
"
6908 #include <gtk/gtk.h>
6915 int major, minor, micro;
6918 system ("touch conf.gtktest
");
6920 /* HP/UX 9 (%@#!) writes to sscanf strings */
6921 tmp_version = g_strdup("$min_gtk_version");
6922 if (sscanf(tmp_version, "%d.
%d.
%d
", &major, &minor, µ) != 3) {
6923 printf("%s
, bad version string
\n", "$min_gtk_version");
6927 if ((gtk_major_version != $gtk_config_major_version) ||
6928 (gtk_minor_version != $gtk_config_minor_version) ||
6929 (gtk_micro_version != $gtk_config_micro_version))
6931 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned
%d.
%d.
%d
, but GTK
+ (%d.
%d.
%d
)\n",
6932 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
6933 gtk_major_version, gtk_minor_version, gtk_micro_version);
6934 printf ("*** was found
! If pkg-config was correct
, then it is best
\n");
6935 printf ("*** to remove the old version of GTK
+. You may also be able to fix the error
\n");
6936 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable
, or by editing
\n");
6937 printf("*** /etc
/ld.so.conf. Make sure you have run ldconfig
if that is
\n");
6938 printf("*** required on your system.
\n");
6939 printf("*** If pkg-config was wrong
, set the environment variable PKG_CONFIG_PATH
\n");
6940 printf("*** to point to the correct configuration files
\n");
6942 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
6943 (gtk_minor_version != GTK_MINOR_VERSION) ||
6944 (gtk_micro_version != GTK_MICRO_VERSION))
6946 printf("*** GTK
+ header files
(version
%d.
%d.
%d
) do not match
\n",
6947 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
6948 printf("*** library
(version
%d.
%d.
%d
)\n",
6949 gtk_major_version, gtk_minor_version, gtk_micro_version);
6953 if ((gtk_major_version > major) ||
6954 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
6955 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
6961 printf("\n*** An old version of GTK
+ (%d.
%d.
%d
) was found.
\n",
6962 gtk_major_version, gtk_minor_version, gtk_micro_version);
6963 printf("*** You need a version of GTK
+ newer than
%d.
%d.
%d. The latest version of
\n",
6964 major, minor, micro);
6965 printf("*** GTK
+ is always available from
ftp://ftp.gtk.org.
\n");
6967 printf("*** If you have already installed a sufficiently new version
, this error
\n");
6968 printf("*** probably means that the wrong copy of the pkg-config shell
script is
\n");
6969 printf("*** being found. The easiest way to fix this is to remove the old version
\n");
6970 printf("*** of GTK
+, but you can also
set the PKG_CONFIG environment to point to the
\n");
6971 printf("*** correct copy of pkg-config.
(In this
case, you will have to
\n");
6972 printf("*** modify your LD_LIBRARY_PATH enviroment variable
, or edit
/etc
/ld.so.conf
\n");
6973 printf("*** so that the correct libraries are found
at run-time
))\n");
6980 if { (eval echo configure:6981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6984 echo "configure
: failed program was
:" >&5
6985 cat conftest.$ac_ext >&5
6992 CFLAGS="$ac_save_CFLAGS"
6993 LIBS="$ac_save_LIBS"
6996 if test "x
$no_gtk" = x ; then
6997 echo "$ac_t""yes (version
$gtk_config_major_version.
$gtk_config_minor_version.
$gtk_config_micro_version)" 1>&6
7000 echo "$ac_t""no
" 1>&6
7001 if test "$PKG_CONFIG" = "no
" ; then
7002 echo "*** A new enough version of pkg-config was not found.
"
7003 echo "*** See http
://pkgconfig.sourceforge.net
"
7005 if test -f conf.gtktest ; then
7008 echo "*** Could not run GTK
+ test program
, checking why...
"
7009 ac_save_CFLAGS="$CFLAGS"
7010 ac_save_LIBS="$LIBS"
7011 CFLAGS="$CFLAGS $GTK_CFLAGS"
7012 LIBS="$LIBS $GTK_LIBS"
7013 cat > conftest.$ac_ext <<EOF
7014 #line 7015 "configure
"
7015 #include "confdefs.h
"
7017 #include <gtk/gtk.h>
7021 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
7024 if { (eval echo configure:7025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7026 echo "*** The
test program compiled
, but did not run. This usually means
"
7027 echo "*** that the run-time linker is not finding GTK
+ or finding the wrong
"
7028 echo "*** version of GTK
+. If it is not finding GTK
+, you
'll need to set your"
7029 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
7030 echo "*** to the installed location Also, make sure you have run ldconfig if that"
7031 echo "*** is required on your system"
7033 echo "*** If you have an old version installed, it is best to remove it, although"
7034 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
7036 echo "configure: failed program was:" >&5
7037 cat conftest.$ac_ext >&5
7039 echo "*** The test program failed to compile or link. See the file config.log for the"
7040 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
7043 CFLAGS="$ac_save_CFLAGS"
7044 LIBS="$ac_save_LIBS"
7055 # Check whether --enable-glibtest or --disable-glibtest was given.
7056 if test "${enable_glibtest+set}" = set; then
7057 enableval="$enable_glibtest"
7064 pkg_config_args=glib-2.0
7065 for module in . gthread
7069 pkg_config_args="$pkg_config_args gmodule-2.0"
7072 pkg_config_args="$pkg_config_args gobject-2.0"
7075 pkg_config_args="$pkg_config_args gthread-2.0"
7080 # Extract the first word of "pkg-config", so it can be a program name with args.
7081 set dummy pkg-config; ac_word=$2
7082 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7083 echo "configure:7084: checking for $ac_word" >&5
7084 if eval "test \"`echo '$
''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
7085 echo $ac_n "(cached) $ac_c" 1>&6
7087 case "$PKG_CONFIG" in
7089 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7092 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
7095 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7097 for ac_dir in $ac_dummy; do
7098 test -z "$ac_dir" && ac_dir=.
7099 if test -f $ac_dir/$ac_word; then
7100 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
7105 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7109 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7110 if test -n "$PKG_CONFIG"; then
7111 echo "$ac_t""$PKG_CONFIG" 1>&6
7113 echo "$ac_t""no" 1>&6
7119 if test x$PKG_CONFIG != xno ; then
7120 if $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then
7123 echo *** pkg-config too old; version 0.7 or better required.
7131 min_glib_version=2.2.0
7132 echo $ac_n "checking for GLIB - version >= $min_glib_version""... $ac_c" 1>&6
7133 echo "configure:7134: checking for GLIB - version >= $min_glib_version" >&5
7135 if test x$PKG_CONFIG != xno ; then
7136 ## don't try to run the
test against uninstalled libtool libs
7137 if $PKG_CONFIG --uninstalled $pkg_config_args; then
7138 echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
7142 if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
7149 if test x
"$no_glib" = x
; then
7150 GLIB_GENMARSHAL
=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
7151 GOBJECT_QUERY
=`$PKG_CONFIG --variable=gobject_query glib-2.0`
7152 GLIB_MKENUMS
=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
7154 GLIB_CFLAGS
=`$PKG_CONFIG --cflags $pkg_config_args`
7155 GLIB_LIBS
=`$PKG_CONFIG --libs $pkg_config_args`
7156 glib_config_major_version
=`$PKG_CONFIG --modversion glib-2.0 | \
7157 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7158 glib_config_minor_version
=`$PKG_CONFIG --modversion glib-2.0 | \
7159 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7160 glib_config_micro_version
=`$PKG_CONFIG --modversion glib-2.0 | \
7161 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7162 if test "x$enable_glibtest" = "xyes" ; then
7163 ac_save_CFLAGS
="$CFLAGS"
7164 ac_save_LIBS
="$LIBS"
7165 CFLAGS
="$CFLAGS $GLIB_CFLAGS"
7166 LIBS
="$GLIB_LIBS $LIBS"
7168 if test "$cross_compiling" = yes; then
7169 echo $ac_n "cross compiling; assumed OK... $ac_c"
7171 cat > conftest.
$ac_ext <<EOF
7172 #line 7173 "configure"
7173 #include "confdefs.h"
7182 int major, minor, micro;
7185 system ("touch conf.glibtest");
7187 /* HP/UX 9 (%@#!) writes to sscanf strings */
7188 tmp_version = g_strdup("$min_glib_version");
7189 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
7190 printf("%s, bad version string\n", "$min_glib_version");
7194 if ((glib_major_version != $glib_config_major_version) ||
7195 (glib_minor_version != $glib_config_minor_version) ||
7196 (glib_micro_version != $glib_config_micro_version))
7198 printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
7199 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
7200 glib_major_version, glib_minor_version, glib_micro_version);
7201 printf ("*** was found! If pkg-config was correct, then it is best\n");
7202 printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
7203 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
7204 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
7205 printf("*** required on your system.\n");
7206 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
7207 printf("*** to point to the correct configuration files\n");
7209 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
7210 (glib_minor_version != GLIB_MINOR_VERSION) ||
7211 (glib_micro_version != GLIB_MICRO_VERSION))
7213 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
7214 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
7215 printf("*** library (version %d.%d.%d)\n",
7216 glib_major_version, glib_minor_version, glib_micro_version);
7220 if ((glib_major_version > major) ||
7221 ((glib_major_version == major) && (glib_minor_version > minor)) ||
7222 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
7228 printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
7229 glib_major_version, glib_minor_version, glib_micro_version);
7230 printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
7231 major, minor, micro);
7232 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
7234 printf("*** If you have already installed a sufficiently new version, this error\n");
7235 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
7236 printf("*** being found. The easiest way to fix this is to remove the old version\n");
7237 printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
7238 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
7239 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
7240 printf("*** so that the correct libraries are found at run-time))\n");
7247 if { (eval echo configure
:7248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7251 echo "configure: failed program was:" >&5
7252 cat conftest.
$ac_ext >&5
7259 CFLAGS
="$ac_save_CFLAGS"
7260 LIBS
="$ac_save_LIBS"
7263 if test "x$no_glib" = x
; then
7264 echo "$ac_t""yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" 1>&6
7267 echo "$ac_t""no" 1>&6
7268 if test "$PKG_CONFIG" = "no" ; then
7269 echo "*** A new enough version of pkg-config was not found."
7270 echo "*** See http://www.freedesktop.org/software/pkgconfig/"
7272 if test -f conf.glibtest
; then
7275 echo "*** Could not run GLIB test program, checking why..."
7276 ac_save_CFLAGS
="$CFLAGS"
7277 ac_save_LIBS
="$LIBS"
7278 CFLAGS
="$CFLAGS $GLIB_CFLAGS"
7279 LIBS
="$LIBS $GLIB_LIBS"
7280 cat > conftest.
$ac_ext <<EOF
7281 #line 7282 "configure"
7282 #include "confdefs.h"
7288 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
7291 if { (eval echo configure
:7292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7293 echo "*** The test program compiled, but did not run. This usually means"
7294 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
7295 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
7296 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
7297 echo "*** to the installed location Also, make sure you have run ldconfig if that"
7298 echo "*** is required on your system"
7300 echo "*** If you have an old version installed, it is best to remove it, although"
7301 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
7303 echo "configure: failed program was:" >&5
7304 cat conftest.
$ac_ext >&5
7306 echo "*** The test program failed to compile or link. See the file config.log for the"
7307 echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
7310 CFLAGS
="$ac_save_CFLAGS"
7311 LIBS
="$ac_save_LIBS"
7328 enable_libarttest
=no
7329 # Check whether --with-libart-prefix or --without-libart-prefix was given.
7330 if test "${with_libart_prefix+set}" = set; then
7331 withval
="$with_libart_prefix"
7332 libart_prefix
="$withval"
7337 # Check whether --with-libart-exec-prefix or --without-libart-exec-prefix was given.
7338 if test "${with_libart_exec_prefix+set}" = set; then
7339 withval
="$with_libart_exec_prefix"
7340 libart_exec_prefix
="$withval"
7342 libart_exec_prefix
=""
7345 # Check whether --enable-libarttest or --disable-libarttest was given.
7346 if test "${enable_libarttest+set}" = set; then
7347 enableval
="$enable_libarttest"
7350 enable_libarttest
=yes
7354 if test x
$libart_exec_prefix != x
; then
7355 libart_args
="$libart_args --exec-prefix=$libart_exec_prefix"
7356 if test x
${LIBART_CONFIG+set} != xset
; then
7357 LIBART_CONFIG
=$libart_exec_prefix/bin
/libart-config
7360 if test x
$libart_prefix != x
; then
7361 libart_args
="$libart_args --prefix=$libart_prefix"
7362 if test x
${LIBART_CONFIG+set} != xset
; then
7363 LIBART_CONFIG
=$libart_prefix/bin
/libart-config
7367 # Extract the first word of "libart2-config", so it can be a program name with args.
7368 set dummy libart2-config
; ac_word
=$2
7369 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7370 echo "configure:7371: checking for $ac_word" >&5
7371 if eval "test \"`echo '$''{'ac_cv_path_LIBART_CONFIG'+set}'`\" = set"; then
7372 echo $ac_n "(cached) $ac_c" 1>&6
7374 case "$LIBART_CONFIG" in
7376 ac_cv_path_LIBART_CONFIG
="$LIBART_CONFIG" # Let the user override the test with a path.
7379 ac_cv_path_LIBART_CONFIG
="$LIBART_CONFIG" # Let the user override the test with a dos path.
7382 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7384 for ac_dir
in $ac_dummy; do
7385 test -z "$ac_dir" && ac_dir
=.
7386 if test -f $ac_dir/$ac_word; then
7387 ac_cv_path_LIBART_CONFIG
="$ac_dir/$ac_word"
7392 test -z "$ac_cv_path_LIBART_CONFIG" && ac_cv_path_LIBART_CONFIG
="no"
7396 LIBART_CONFIG
="$ac_cv_path_LIBART_CONFIG"
7397 if test -n "$LIBART_CONFIG"; then
7398 echo "$ac_t""$LIBART_CONFIG" 1>&6
7400 echo "$ac_t""no" 1>&6
7403 if test "$LIBART_CONFIG" = "no" ; then
7404 # Extract the first word of "libart-config", so it can be a program name with args.
7405 set dummy libart-config
; ac_word
=$2
7406 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7407 echo "configure:7408: checking for $ac_word" >&5
7408 if eval "test \"`echo '$''{'ac_cv_path_LIBART_CONFIG'+set}'`\" = set"; then
7409 echo $ac_n "(cached) $ac_c" 1>&6
7411 case "$LIBART_CONFIG" in
7413 ac_cv_path_LIBART_CONFIG
="$LIBART_CONFIG" # Let the user override the test with a path.
7416 ac_cv_path_LIBART_CONFIG
="$LIBART_CONFIG" # Let the user override the test with a dos path.
7419 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7421 for ac_dir
in $ac_dummy; do
7422 test -z "$ac_dir" && ac_dir
=.
7423 if test -f $ac_dir/$ac_word; then
7424 ac_cv_path_LIBART_CONFIG
="$ac_dir/$ac_word"
7429 test -z "$ac_cv_path_LIBART_CONFIG" && ac_cv_path_LIBART_CONFIG
="no"
7433 LIBART_CONFIG
="$ac_cv_path_LIBART_CONFIG"
7434 if test -n "$LIBART_CONFIG"; then
7435 echo "$ac_t""$LIBART_CONFIG" 1>&6
7437 echo "$ac_t""no" 1>&6
7441 min_libart_version
=2.1.0
7442 echo $ac_n "checking for LIBART - version >= $min_libart_version""... $ac_c" 1>&6
7443 echo "configure:7444: checking for LIBART - version >= $min_libart_version" >&5
7445 if test "$LIBART_CONFIG" = "no" ; then
7448 LIBART_CFLAGS
=`$LIBART_CONFIG $libartconf_args --cflags`
7449 LIBART_LIBS
=`$LIBART_CONFIG $libartconf_args --libs`
7451 libart_major_version
=`$LIBART_CONFIG $libart_args --version | \
7452 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7453 libart_minor_version
=`$LIBART_CONFIG $libart_args --version | \
7454 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7455 libart_micro_version
=`$LIBART_CONFIG $libart_config_args --version | \
7456 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7457 if test "x$enable_libarttest" = "xyes" ; then
7458 ac_save_CFLAGS
="$CFLAGS"
7459 ac_save_LIBS
="$LIBS"
7460 CFLAGS
="$CFLAGS $LIBART_CFLAGS"
7461 LIBS
="$LIBS $LIBART_LIBS"
7462 rm -f conf.libarttest
7463 if test "$cross_compiling" = yes; then
7464 echo $ac_n "cross compiling; assumed OK... $ac_c"
7466 cat > conftest.
$ac_ext <<EOF
7467 #line 7468 "configure"
7468 #include "confdefs.h"
7473 #include <libart_lgpl/libart.h>
7476 my_strdup (char *str)
7482 new_str = malloc ((strlen (str) + 1) * sizeof(char));
7483 strcpy (new_str, str);
7493 int major, minor, micro;
7496 system ("touch conf.libarttest");
7498 /* HP/UX 9 (%@#!) writes to sscanf strings */
7499 tmp_version = my_strdup("$min_libart_version");
7500 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
7501 printf("%s, bad version string\n", "$min_libart_version");
7505 if (($libart_major_version > major) ||
7506 (($libart_major_version == major) && ($libart_minor_version > minor)) ||
7507 (($libart_major_version == major) && ($libart_minor_version == minor) && ($libart_micro_version >= micro)))
7513 printf("\n*** 'libart-config --version' returned %d.%d.%d, but the minimum version\n", $libart_major_version, $libart_minor_version, $libart_micro_version);
7514 printf("*** of LIBART required is %d.%d.%d. If libart-config is correct, then it is\n", major, minor, micro);
7515 printf("*** best to upgrade to the required version.\n");
7516 printf("*** If libart-config was wrong, set the environment variable LIBART_CONFIG\n");
7517 printf("*** to point to the correct copy of libart-config, and remove the file\n");
7518 printf("*** config.cache before re-running configure\n");
7525 if { (eval echo configure
:7526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7529 echo "configure: failed program was:" >&5
7530 cat conftest.
$ac_ext >&5
7537 CFLAGS
="$ac_save_CFLAGS"
7538 LIBS
="$ac_save_LIBS"
7541 if test "x$no_libart" = x
; then
7542 echo "$ac_t""yes" 1>&6
7545 echo "$ac_t""no" 1>&6
7546 if test "$LIBART_CONFIG" = "no" ; then
7547 echo "*** The libart-config script installed by LIBART could not be found"
7548 echo "*** If LIBART was installed in PREFIX, make sure PREFIX/bin is in"
7549 echo "*** your path, or set the LIBART_CONFIG environment variable to the"
7550 echo "*** full path to libart-config."
7552 if test -f conf.libarttest
; then
7555 echo "*** Could not run LIBART test program, checking why..."
7556 CFLAGS
="$CFLAGS $LIBART_CFLAGS"
7557 LIBS
="$LIBS $LIBART_LIBS"
7558 cat > conftest.
$ac_ext <<EOF
7559 #line 7560 "configure"
7560 #include "confdefs.h"
7563 #include <libart_lgpl/libart.h>
7569 if { (eval echo configure
:7570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7571 echo "*** The test program compiled, but did not run. This usually means"
7572 echo "*** that the run-time linker is not finding LIBART or finding the wrong"
7573 echo "*** version of LIBART. If it is not finding LIBART, you'll need to set your"
7574 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
7575 echo "*** to the installed location Also, make sure you have run ldconfig if that"
7576 echo "*** is required on your system"
7578 echo "*** If you have an old version installed, it is best to remove it, although"
7579 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
7581 echo "configure: failed program was:" >&5
7582 cat conftest.
$ac_ext >&5
7584 echo "*** The test program failed to compile or link. See the file config.log for the"
7585 echo "*** exact error that occured. This usually means LIBART was incorrectly installed"
7586 echo "*** or that you have moved LIBART since it was installed. In the latter case, you"
7587 echo "*** may want to edit the libart-config script: $LIBART_CONFIG"
7590 CFLAGS
="$ac_save_CFLAGS"
7591 LIBS
="$ac_save_LIBS"
7600 rm -f conf.libarttest
7604 # On Solaris, and maybe other architectures, the Boehm collector
7606 if test "$GC" = boehm
; then
7607 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
7608 echo "configure:7609: checking for main in -ldl" >&5
7609 ac_lib_var
=`echo dl'_'main | sed 'y%./+-%__p_%'`
7610 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7611 echo $ac_n "(cached) $ac_c" 1>&6
7613 ac_save_LIBS
="$LIBS"
7615 cat > conftest.
$ac_ext <<EOF
7616 #line 7617 "configure"
7617 #include "confdefs.h"
7623 if { (eval echo configure
:7624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7625 eval "ac_cv_lib_$ac_lib_var=yes"
7627 echo "configure: failed program was:" >&5
7628 cat conftest.
$ac_ext >&5
7630 eval "ac_cv_lib_$ac_lib_var=no"
7633 LIBS
="$ac_save_LIBS"
7636 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7637 echo "$ac_t""yes" 1>&6
7638 SYSTEMSPEC
="$SYSTEMSPEC -ldl"
7640 echo "$ac_t""no" 1>&6
7646 if test -z "${with_multisubdir}"; then
7650 builddotdot
=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
7654 # Which gcj do we use?
7656 built_gcc_dir
="`cd ${builddotdot}/../../gcc && ${PWDCMD-pwd}`"
7657 if test -n "${with_cross_host}"; then
7658 # We are being configured with a cross compiler. We can't
7659 # use ac_exeext, because that is for the target platform.
7662 case "${with_cross_host}" in
7664 cross_host_exeext
=.exe
7667 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
7668 if test x
"$build_alias" = x
"$with_cross_host"; then
7669 # Ordinary cross (host!=target and host=build)
7672 # Canadian cross (host!=target and host!=build)
7679 # We are being configured with a native or crossed-native compiler
7680 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
7681 if test x
"$build" = x
"$host"; then
7682 # True native build (host=target and host=build)
7685 # Crossed-native build (host=target and host!=build)
7692 case "${which_gcj}" in
7694 GCJ
="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
7697 # See the comment in Makefile.am about CANADIAN being a misnomer
7700 if test "x${with_newlib}" = "xyes"; then
7701 # FIXME (comment): Why is this needed?
7703 GCJ
="${target_alias}-gcj"
7705 GCJ
="${target_alias}-gcj -B`${PWDCMD-pwd}`/"
7709 # See the comment in Makefile.am about CANADIAN being a misnomer
7712 GCJ
="gcj -B`${PWDCMD-pwd}`/"
7716 # Create it, so that compile/link tests don't fail
7717 test -f libgcj.spec ||
touch libgcj.spec
7719 # We must search the source tree for java.lang, since we still don't
7720 # have libgcj.jar nor java/lang/*.class
7721 GCJ_SAVE_CPPFLAGS
=$CPPFLAGS
7722 CPPFLAGS
="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
7724 # Since some classes depend on this one, we need its source available
7725 # before we can do any GCJ compilation test :-(
7726 if test ! -f gnu
/classpath
/Configuration.java
; then
7727 test -d gnu || mkdir gnu
7728 test -d gnu
/classpath || mkdir gnu
/classpath
7729 sed -e 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
7730 -e 's,@TOOLKIT@,$TOOLKIT,' \
7731 < $srcdir/gnu
/classpath
/Configuration.java.
in \
7732 > gnu
/classpath
/Configuration.java
7733 # We do not want to redirect the output of the grep below to /dev/null,
7734 # but we add /dev/null to the input list so that grep will print the
7735 # filename of Configuration.java in case it finds any matches.
7736 if grep @ gnu
/classpath
/Configuration.java
/dev
/null
; then
7737 { echo "configure: error: configure.in is missing the substitutions above" 1>&2; exit 1; }
7741 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
7742 set dummy
${ac_tool_prefix}gcj
; ac_word
=$2
7743 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7744 echo "configure:7745: checking for $ac_word" >&5
7745 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
7746 echo $ac_n "(cached) $ac_c" 1>&6
7748 if test -n "$GCJ"; then
7749 ac_cv_prog_GCJ
="$GCJ" # Let the user override the test.
7751 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7753 for ac_dir
in $ac_dummy; do
7754 test -z "$ac_dir" && ac_dir
=.
7755 if test -f $ac_dir/$ac_word; then
7756 ac_cv_prog_GCJ
="${ac_tool_prefix}gcj"
7763 GCJ
="$ac_cv_prog_GCJ"
7764 if test -n "$GCJ"; then
7765 echo "$ac_t""$GCJ" 1>&6
7767 echo "$ac_t""no" 1>&6
7771 if test -z "$ac_cv_prog_GCJ"; then
7772 if test -n "$ac_tool_prefix"; then
7773 # Extract the first word of "gcj", so it can be a program name with args.
7774 set dummy gcj
; ac_word
=$2
7775 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7776 echo "configure:7777: checking for $ac_word" >&5
7777 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
7778 echo $ac_n "(cached) $ac_c" 1>&6
7780 if test -n "$GCJ"; then
7781 ac_cv_prog_GCJ
="$GCJ" # Let the user override the test.
7783 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7785 for ac_dir
in $ac_dummy; do
7786 test -z "$ac_dir" && ac_dir
=.
7787 if test -f $ac_dir/$ac_word; then
7788 ac_cv_prog_GCJ
="gcj"
7793 test -z "$ac_cv_prog_GCJ" && ac_cv_prog_GCJ
="no"
7796 GCJ
="$ac_cv_prog_GCJ"
7797 if test -n "$GCJ"; then
7798 echo "$ac_t""$GCJ" 1>&6
7800 echo "$ac_t""no" 1>&6
7808 test "x${GCJFLAGS+set}" = xset || GCJFLAGS
="-g -O2"
7812 LIBTOOL_DEPS
=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
7814 lt_save_CFLAGS
="$CFLAGS"
7815 AR
="$AR" LTCC
="$CC" CC
="$GCJ" CFLAGS
="$GCJFLAGS" CPPFLAGS
="$CPPFLAGS" \
7816 MAGIC_CMD
="$MAGIC_CMD" LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
7817 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
7818 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
7819 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
7820 deplibs_check_method
="$deplibs_check_method" \
7821 file_magic_cmd
="$file_magic_cmd" \
7822 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
-o libtool
$libtool_flags \
7823 --build="$build" --add-tag=GCJ
$ac_aux_dir/ltcf-gcj.sh
$host \
7824 ||
{ echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
7826 CFLAGS
="$lt_save_CFLAGS"
7828 # Redirect the config.log output again, so that the ltconfig log is not
7829 # clobbered by the next message.
7830 exec 5>>.
/config.log
7835 CPPFLAGS
=$GCJ_SAVE_CPPFLAGS
7837 echo $ac_n "checking size of void *""... $ac_c" 1>&6
7838 echo "configure:7839: checking size of void *" >&5
7839 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
7840 echo $ac_n "(cached) $ac_c" 1>&6
7842 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
7843 cat > conftest.
$ac_ext <<EOF
7844 #line 7845 "configure"
7845 #include "confdefs.h"
7846 #include "confdefs.h"
7847 #include <sys/types.h>
7851 switch (0) case 0: case (sizeof (void *) == $ac_size):;
7854 if { (eval echo configure
:7855: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7856 ac_cv_sizeof_void_p
=$ac_size
7858 echo "configure: failed program was:" >&5
7859 cat conftest.
$ac_ext >&5
7862 if test x
$ac_cv_sizeof_void_p != x
; then break; fi
7867 if test x
$ac_cv_sizeof_void_p = x
; then
7868 { echo "configure: error: cannot determine a size for void *" 1>&2; exit 1; }
7870 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
7871 cat >> confdefs.h
<<EOF
7872 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7881 if test -z "$ZLIBSPEC"; then
7882 # Use zlib from the GCC tree.
7883 ZINCS
='-I$(top_srcdir)/../zlib'
7884 ZLIBS
=..
/zlib
/libzgcj_convenience.la
7887 SYS_ZLIBS
="$ZLIBSPEC"
7899 if test "$CANADIAN" = yes; then
7908 if test "$NULL_TARGET" = yes; then
7910 NULL_TARGET_FALSE
='#'
7912 NULL_TARGET_TRUE
='#'
7917 if test "$NATIVE" = yes ||
test "$NULL_TARGET" = yes; then
7926 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
7927 NEEDS_DATA_START_TRUE
=
7928 NEEDS_DATA_START_FALSE
='#'
7930 NEEDS_DATA_START_TRUE
='#'
7931 NEEDS_DATA_START_FALSE
=
7935 if test -n "$with_cross_host" &&
7936 test x
"$with_cross_host" != x
"no"; then
7937 toolexecdir
='$(exec_prefix)/$(target_alias)'
7938 toolexecmainlibdir
='$(toolexecdir)/lib'
7940 toolexecdir
='$(libdir)/gcc-lib/$(target_alias)'
7941 toolexecmainlibdir
='$(libdir)'
7943 multi_os_directory
=`$CC -print-multi-os-directory`
7944 case $multi_os_directory in
7945 .
) toolexeclibdir
=$toolexecmainlibdir ;; # Avoid trailing /.
7946 *) toolexeclibdir
=$toolexecmainlibdir/$multi_os_directory ;;
7952 # Determine gcj version number.
7954 gcjversion
=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
7956 GCJVERSION
=$gcjversion
7958 cat >> confdefs.h
<<EOF
7959 #define GCJVERSION "$GCJVERSION"
7963 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
7965 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7966 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7967 echo "configure:7968: checking for $ac_hdr" >&5
7968 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7969 echo $ac_n "(cached) $ac_c" 1>&6
7971 cat > conftest.
$ac_ext <<EOF
7972 #line 7973 "configure"
7973 #include "confdefs.h"
7976 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7977 { (eval echo configure
:7978: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7978 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7979 if test -z "$ac_err"; then
7981 eval "ac_cv_header_$ac_safe=yes"
7984 echo "configure: failed program was:" >&5
7985 cat conftest.
$ac_ext >&5
7987 eval "ac_cv_header_$ac_safe=no"
7991 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7992 echo "$ac_t""yes" 1>&6
7993 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7994 cat >> confdefs.h
<<EOF
7995 #define $ac_tr_hdr 1
7999 echo "$ac_t""no" 1>&6
8003 for ac_hdr
in dirent.h
8005 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8006 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8007 echo "configure:8008: checking for $ac_hdr" >&5
8008 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8009 echo $ac_n "(cached) $ac_c" 1>&6
8011 cat > conftest.
$ac_ext <<EOF
8012 #line 8013 "configure"
8013 #include "confdefs.h"
8016 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8017 { (eval echo configure
:8018: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8018 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8019 if test -z "$ac_err"; then
8021 eval "ac_cv_header_$ac_safe=yes"
8024 echo "configure: failed program was:" >&5
8025 cat conftest.
$ac_ext >&5
8027 eval "ac_cv_header_$ac_safe=no"
8031 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8032 echo "$ac_t""yes" 1>&6
8033 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8034 cat >> confdefs.h
<<EOF
8035 #define $ac_tr_hdr 1
8039 echo "$ac_t""no" 1>&6
8043 for ac_hdr
in inttypes.h
8045 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8046 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8047 echo "configure:8048: checking for $ac_hdr" >&5
8048 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8049 echo $ac_n "(cached) $ac_c" 1>&6
8051 cat > conftest.
$ac_ext <<EOF
8052 #line 8053 "configure"
8053 #include "confdefs.h"
8056 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8057 { (eval echo configure
:8058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8058 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8059 if test -z "$ac_err"; then
8061 eval "ac_cv_header_$ac_safe=yes"
8064 echo "configure: failed program was:" >&5
8065 cat conftest.
$ac_ext >&5
8067 eval "ac_cv_header_$ac_safe=no"
8071 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8072 echo "$ac_t""yes" 1>&6
8073 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8074 cat >> confdefs.h
<<EOF
8075 #define $ac_tr_hdr 1
8078 cat >> confdefs.h
<<\EOF
8079 #define HAVE_INTTYPES_H 1
8082 cat >> confdefs.h
<<\EOF
8083 #define JV_HAVE_INTTYPES_H 1
8088 echo "$ac_t""no" 1>&6
8092 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
8093 echo "configure:8094: checking for sys/wait.h that is POSIX.1 compatible" >&5
8094 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
8095 echo $ac_n "(cached) $ac_c" 1>&6
8097 cat > conftest.
$ac_ext <<EOF
8098 #line 8099 "configure"
8099 #include "confdefs.h"
8100 #include <sys/types.h>
8101 #include <sys/wait.h>
8103 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8106 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8111 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8114 if { (eval echo configure
:8115: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8116 ac_cv_header_sys_wait_h
=yes
8118 echo "configure: failed program was:" >&5
8119 cat conftest.
$ac_ext >&5
8121 ac_cv_header_sys_wait_h
=no
8126 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
8127 if test $ac_cv_header_sys_wait_h = yes; then
8128 cat >> confdefs.h
<<\EOF
8129 #define HAVE_SYS_WAIT_H 1
8135 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8136 echo "configure:8137: checking for ANSI C header files" >&5
8137 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
8138 echo $ac_n "(cached) $ac_c" 1>&6
8140 cat > conftest.
$ac_ext <<EOF
8141 #line 8142 "configure"
8142 #include "confdefs.h"
8148 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8149 { (eval echo configure
:8150: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8150 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8151 if test -z "$ac_err"; then
8153 ac_cv_header_stdc
=yes
8156 echo "configure: failed program was:" >&5
8157 cat conftest.
$ac_ext >&5
8159 ac_cv_header_stdc
=no
8163 if test $ac_cv_header_stdc = yes; then
8164 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8165 cat > conftest.
$ac_ext <<EOF
8166 #line 8167 "configure"
8167 #include "confdefs.h"
8170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8171 egrep "memchr" >/dev
/null
2>&1; then
8175 ac_cv_header_stdc
=no
8181 if test $ac_cv_header_stdc = yes; then
8182 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8183 cat > conftest.
$ac_ext <<EOF
8184 #line 8185 "configure"
8185 #include "confdefs.h"
8188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8189 egrep "free" >/dev
/null
2>&1; then
8193 ac_cv_header_stdc
=no
8199 if test $ac_cv_header_stdc = yes; then
8200 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8201 if test "$cross_compiling" = yes; then
8204 cat > conftest.
$ac_ext <<EOF
8205 #line 8206 "configure"
8206 #include "confdefs.h"
8208 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8209 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8210 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8211 int main () { int i; for (i = 0; i < 256; i++)
8212 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8216 if { (eval echo configure
:8217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8220 echo "configure: failed program was:" >&5
8221 cat conftest.
$ac_ext >&5
8223 ac_cv_header_stdc
=no
8231 echo "$ac_t""$ac_cv_header_stdc" 1>&6
8232 if test $ac_cv_header_stdc = yes; then
8233 cat >> confdefs.h
<<\EOF
8234 #define STDC_HEADERS 1
8239 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
8240 echo "configure:8241: checking for ssize_t" >&5
8241 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
8242 echo $ac_n "(cached) $ac_c" 1>&6
8244 cat > conftest.
$ac_ext <<EOF
8245 #line 8246 "configure"
8246 #include "confdefs.h"
8247 #include <sys/types.h>
8253 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8254 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
8256 ac_cv_type_ssize_t
=yes
8259 ac_cv_type_ssize_t
=no
8264 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
8265 if test $ac_cv_type_ssize_t = no
; then
8266 cat >> confdefs.h
<<\EOF
8273 echo $ac_n "checking for in_addr_t""... $ac_c" 1>&6
8274 echo "configure:8275: checking for in_addr_t" >&5
8275 cat > conftest.
$ac_ext <<EOF
8276 #line 8277 "configure"
8277 #include "confdefs.h"
8278 #include <sys/types.h>
8283 #if HAVE_NETINET_IN_H
8284 #include <netinet/in.h>
8290 if { (eval echo configure
:8291: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8292 cat >> confdefs.h
<<\EOF
8293 #define HAVE_IN_ADDR_T 1
8296 echo "$ac_t""yes" 1>&6
8298 echo "configure: failed program was:" >&5
8299 cat conftest.
$ac_ext >&5
8301 echo "$ac_t""no" 1>&6
8305 echo $ac_n "checking whether struct ip_mreq is in netinet/in.h""... $ac_c" 1>&6
8306 echo "configure:8307: checking whether struct ip_mreq is in netinet/in.h" >&5
8307 cat > conftest.
$ac_ext <<EOF
8308 #line 8309 "configure"
8309 #include "confdefs.h"
8310 #include <netinet/in.h>
8312 struct ip_mreq mreq;
8315 if { (eval echo configure
:8316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8317 cat >> confdefs.h
<<\EOF
8318 #define HAVE_STRUCT_IP_MREQ 1
8321 echo "$ac_t""yes" 1>&6
8323 echo "configure: failed program was:" >&5
8324 cat conftest.
$ac_ext >&5
8326 echo "$ac_t""no" 1>&6
8330 echo $ac_n "checking whether struct ipv6_mreq is in netinet/in.h""... $ac_c" 1>&6
8331 echo "configure:8332: checking whether struct ipv6_mreq is in netinet/in.h" >&5
8332 cat > conftest.
$ac_ext <<EOF
8333 #line 8334 "configure"
8334 #include "confdefs.h"
8335 #include <netinet/in.h>
8337 struct ipv6_mreq mreq6;
8340 if { (eval echo configure
:8341: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8342 cat >> confdefs.h
<<\EOF
8343 #define HAVE_STRUCT_IPV6_MREQ 1
8346 echo "$ac_t""yes" 1>&6
8348 echo "configure: failed program was:" >&5
8349 cat conftest.
$ac_ext >&5
8351 echo "$ac_t""no" 1>&6
8355 echo $ac_n "checking whether struct sockaddr_in6 is in netinet/in.h""... $ac_c" 1>&6
8356 echo "configure:8357: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
8357 cat > conftest.
$ac_ext <<EOF
8358 #line 8359 "configure"
8359 #include "confdefs.h"
8360 #include <netinet/in.h>
8362 struct sockaddr_in6 addr6;
8365 if { (eval echo configure
:8366: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8367 cat >> confdefs.h
<<\EOF
8368 #define HAVE_INET6 1
8371 echo "$ac_t""yes" 1>&6
8373 echo "configure: failed program was:" >&5
8374 cat conftest.
$ac_ext >&5
8376 echo "$ac_t""no" 1>&6
8380 echo $ac_n "checking for socklen_t in sys/socket.h""... $ac_c" 1>&6
8381 echo "configure:8382: checking for socklen_t in sys/socket.h" >&5
8382 cat > conftest.
$ac_ext <<EOF
8383 #line 8384 "configure"
8384 #include "confdefs.h"
8385 #define _POSIX_PII_SOCKET
8386 #include <sys/types.h>
8387 #include <sys/socket.h>
8392 if { (eval echo configure
:8393: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8394 cat >> confdefs.h
<<\EOF
8395 #define HAVE_SOCKLEN_T 1
8398 echo "$ac_t""yes" 1>&6
8400 echo "configure: failed program was:" >&5
8401 cat conftest.
$ac_ext >&5
8403 echo "$ac_t""no" 1>&6
8407 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
8408 echo "configure:8409: checking for tm_gmtoff in struct tm" >&5
8409 cat > conftest.
$ac_ext <<EOF
8410 #line 8411 "configure"
8411 #include "confdefs.h"
8414 struct tm tim; tim.tm_gmtoff = 0;
8417 if { (eval echo configure
:8418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8419 cat >> confdefs.h
<<\EOF
8420 #define STRUCT_TM_HAS_GMTOFF 1
8423 echo "$ac_t""yes" 1>&6
8425 echo "configure: failed program was:" >&5
8426 cat conftest.
$ac_ext >&5
8428 echo "$ac_t""no" 1>&6
8429 echo $ac_n "checking for global timezone variable""... $ac_c" 1>&6
8430 echo "configure:8431: checking for global timezone variable" >&5
8431 cat > conftest.
$ac_ext <<EOF
8432 #line 8433 "configure"
8433 #include "confdefs.h"
8436 void i(){long z2 = 2*timezone;}
8439 if { (eval echo configure
:8440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8441 cat >> confdefs.h
<<\EOF
8442 #define HAVE_TIMEZONE 1
8445 echo "$ac_t""yes" 1>&6
8447 echo "configure: failed program was:" >&5
8448 cat conftest.
$ac_ext >&5
8450 echo "$ac_t""no" 1>&6
8451 echo $ac_n "checking for global _timezone variable""... $ac_c" 1>&6
8452 echo "configure:8453: checking for global _timezone variable" >&5
8453 cat > conftest.
$ac_ext <<EOF
8454 #line 8455 "configure"
8455 #include "confdefs.h"
8458 long z2 = _timezone;
8461 if { (eval echo configure
:8462: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8463 cat >> confdefs.h
<<\EOF
8464 #define HAVE_UNDERSCORE_TIMEZONE 1
8467 echo "$ac_t""yes" 1>&6
8469 echo "configure: failed program was:" >&5
8470 cat conftest.
$ac_ext >&5
8472 echo "$ac_t""no" 1>&6
8480 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8481 # for constant arguments. Useless!
8482 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
8483 echo "configure:8484: checking for working alloca.h" >&5
8484 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
8485 echo $ac_n "(cached) $ac_c" 1>&6
8487 cat > conftest.
$ac_ext <<EOF
8488 #line 8489 "configure"
8489 #include "confdefs.h"
8492 char *p = alloca(2 * sizeof(int));
8495 if { (eval echo configure
:8496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8497 ac_cv_header_alloca_h
=yes
8499 echo "configure: failed program was:" >&5
8500 cat conftest.
$ac_ext >&5
8502 ac_cv_header_alloca_h
=no
8507 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
8508 if test $ac_cv_header_alloca_h = yes; then
8509 cat >> confdefs.h
<<\EOF
8510 #define HAVE_ALLOCA_H 1
8515 echo $ac_n "checking for alloca""... $ac_c" 1>&6
8516 echo "configure:8517: checking for alloca" >&5
8517 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
8518 echo $ac_n "(cached) $ac_c" 1>&6
8520 cat > conftest.
$ac_ext <<EOF
8521 #line 8522 "configure"
8522 #include "confdefs.h"
8525 # define alloca __builtin_alloca
8528 # include <malloc.h>
8529 # define alloca _alloca
8532 # include <alloca.h>
8537 # ifndef alloca /* predefined by HP cc +Olibcalls */
8546 char *p = (char *) alloca(1);
8549 if { (eval echo configure
:8550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8551 ac_cv_func_alloca_works
=yes
8553 echo "configure: failed program was:" >&5
8554 cat conftest.
$ac_ext >&5
8556 ac_cv_func_alloca_works
=no
8561 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
8562 if test $ac_cv_func_alloca_works = yes; then
8563 cat >> confdefs.h
<<\EOF
8564 #define HAVE_ALLOCA 1
8569 if test $ac_cv_func_alloca_works = no
; then
8570 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8571 # that cause trouble. Some versions do not even contain alloca or
8572 # contain a buggy version. If you still want to use their alloca,
8573 # use ar to extract alloca.o from them instead of compiling alloca.c.
8574 ALLOCA
=alloca.
${ac_objext}
8575 cat >> confdefs.h
<<\EOF
8580 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
8581 echo "configure:8582: checking whether alloca needs Cray hooks" >&5
8582 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
8583 echo $ac_n "(cached) $ac_c" 1>&6
8585 cat > conftest.
$ac_ext <<EOF
8586 #line 8587 "configure"
8587 #include "confdefs.h"
8588 #if defined(CRAY) && ! defined(CRAY2)
8595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8596 egrep "webecray" >/dev
/null
2>&1; then
8607 echo "$ac_t""$ac_cv_os_cray" 1>&6
8608 if test $ac_cv_os_cray = yes; then
8609 for ac_func
in _getb67 GETB67 getb67
; do
8610 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8611 echo "configure:8612: checking for $ac_func" >&5
8612 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8613 echo $ac_n "(cached) $ac_c" 1>&6
8615 cat > conftest.
$ac_ext <<EOF
8616 #line 8617 "configure"
8617 #include "confdefs.h"
8618 /* System header to define __stub macros and hopefully few prototypes,
8619 which can conflict with char $ac_func(); below. */
8621 /* Override any gcc2 internal prototype to avoid an error. */
8622 /* We use char because int might match the return type of a gcc2
8623 builtin and then its argument prototype would still apply. */
8628 /* The GNU C library defines this for functions which it implements
8629 to always fail with ENOSYS. Some functions are actually named
8630 something starting with __ and the normal name is an alias. */
8631 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8639 if { (eval echo configure
:8640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8641 eval "ac_cv_func_$ac_func=yes"
8643 echo "configure: failed program was:" >&5
8644 cat conftest.
$ac_ext >&5
8646 eval "ac_cv_func_$ac_func=no"
8651 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8652 echo "$ac_t""yes" 1>&6
8653 cat >> confdefs.h
<<EOF
8654 #define CRAY_STACKSEG_END $ac_func
8659 echo "$ac_t""no" 1>&6
8665 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
8666 echo "configure:8667: checking stack direction for C alloca" >&5
8667 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
8668 echo $ac_n "(cached) $ac_c" 1>&6
8670 if test "$cross_compiling" = yes; then
8671 ac_cv_c_stack_direction
=0
8673 cat > conftest.
$ac_ext <<EOF
8674 #line 8675 "configure"
8675 #include "confdefs.h"
8676 find_stack_direction ()
8678 static char *addr = 0;
8683 return find_stack_direction ();
8686 return (&dummy > addr) ? 1 : -1;
8690 exit (find_stack_direction() < 0);
8693 if { (eval echo configure
:8694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8695 ac_cv_c_stack_direction
=1
8697 echo "configure: failed program was:" >&5
8698 cat conftest.
$ac_ext >&5
8700 ac_cv_c_stack_direction
=-1
8707 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
8708 cat >> confdefs.h
<<EOF
8709 #define STACK_DIRECTION $ac_cv_c_stack_direction
8714 for ac_hdr
in unistd.h
8716 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8717 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8718 echo "configure:8719: checking for $ac_hdr" >&5
8719 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8720 echo $ac_n "(cached) $ac_c" 1>&6
8722 cat > conftest.
$ac_ext <<EOF
8723 #line 8724 "configure"
8724 #include "confdefs.h"
8727 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8728 { (eval echo configure
:8729: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8729 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8730 if test -z "$ac_err"; then
8732 eval "ac_cv_header_$ac_safe=yes"
8735 echo "configure: failed program was:" >&5
8736 cat conftest.
$ac_ext >&5
8738 eval "ac_cv_header_$ac_safe=no"
8742 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8743 echo "$ac_t""yes" 1>&6
8744 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8745 cat >> confdefs.h
<<EOF
8746 #define $ac_tr_hdr 1
8750 echo "$ac_t""no" 1>&6
8754 for ac_func
in getpagesize
8756 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8757 echo "configure:8758: checking for $ac_func" >&5
8758 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8759 echo $ac_n "(cached) $ac_c" 1>&6
8761 cat > conftest.
$ac_ext <<EOF
8762 #line 8763 "configure"
8763 #include "confdefs.h"
8764 /* System header to define __stub macros and hopefully few prototypes,
8765 which can conflict with char $ac_func(); below. */
8767 /* Override any gcc2 internal prototype to avoid an error. */
8768 /* We use char because int might match the return type of a gcc2
8769 builtin and then its argument prototype would still apply. */
8774 /* The GNU C library defines this for functions which it implements
8775 to always fail with ENOSYS. Some functions are actually named
8776 something starting with __ and the normal name is an alias. */
8777 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8785 if { (eval echo configure
:8786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8787 eval "ac_cv_func_$ac_func=yes"
8789 echo "configure: failed program was:" >&5
8790 cat conftest.
$ac_ext >&5
8792 eval "ac_cv_func_$ac_func=no"
8797 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8798 echo "$ac_t""yes" 1>&6
8799 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8800 cat >> confdefs.h
<<EOF
8801 #define $ac_tr_func 1
8805 echo "$ac_t""no" 1>&6
8809 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
8810 echo "configure:8811: checking for working mmap" >&5
8811 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
8812 echo $ac_n "(cached) $ac_c" 1>&6
8814 if test "$cross_compiling" = yes; then
8815 ac_cv_func_mmap_fixed_mapped
=no
8817 cat > conftest.
$ac_ext <<EOF
8818 #line 8819 "configure"
8819 #include "confdefs.h"
8821 /* Thanks to Mike Haertel and Jim Avera for this test.
8822 Here is a matrix of mmap possibilities:
8823 mmap private not fixed
8824 mmap private fixed at somewhere currently unmapped
8825 mmap private fixed at somewhere already mapped
8826 mmap shared not fixed
8827 mmap shared fixed at somewhere currently unmapped
8828 mmap shared fixed at somewhere already mapped
8829 For private mappings, we should verify that changes cannot be read()
8830 back from the file, nor mmap's back from the file at a different
8831 address. (There have been systems where private was not correctly
8832 implemented like the infamous i386 svr4.0, and systems where the
8833 VM page cache was not coherent with the filesystem buffer cache
8834 like early versions of FreeBSD and possibly contemporary NetBSD.)
8835 For shared mappings, we should conversely verify that changes get
8836 propogated back to all the places they're supposed to be.
8838 Grep wants private fixed already mapped.
8839 The main things grep needs to know about mmap are:
8840 * does it exist and is it safe to write into the mmap'd area
8841 * how to use it (BSD variants) */
8842 #include <sys/types.h>
8844 #include <sys/mman.h>
8846 /* This mess was copied from the GNU getpagesize.h. */
8847 #ifndef HAVE_GETPAGESIZE
8848 # ifdef HAVE_UNISTD_H
8849 # include <unistd.h>
8852 /* Assume that all systems that can run configure have sys/param.h. */
8853 # ifndef HAVE_SYS_PARAM_H
8854 # define HAVE_SYS_PARAM_H 1
8857 # ifdef _SC_PAGESIZE
8858 # define getpagesize() sysconf(_SC_PAGESIZE)
8859 # else /* no _SC_PAGESIZE */
8860 # ifdef HAVE_SYS_PARAM_H
8861 # include <sys/param.h>
8862 # ifdef EXEC_PAGESIZE
8863 # define getpagesize() EXEC_PAGESIZE
8864 # else /* no EXEC_PAGESIZE */
8866 # define getpagesize() NBPG * CLSIZE
8869 # endif /* no CLSIZE */
8870 # else /* no NBPG */
8872 # define getpagesize() NBPC
8873 # else /* no NBPC */
8875 # define getpagesize() PAGESIZE
8876 # endif /* PAGESIZE */
8877 # endif /* no NBPC */
8878 # endif /* no NBPG */
8879 # endif /* no EXEC_PAGESIZE */
8880 # else /* no HAVE_SYS_PARAM_H */
8881 # define getpagesize() 8192 /* punt totally */
8882 # endif /* no HAVE_SYS_PARAM_H */
8883 # endif /* no _SC_PAGESIZE */
8885 #endif /* no HAVE_GETPAGESIZE */
8888 extern "C" { void *malloc(unsigned); }
8896 char *data, *data2, *data3;
8900 pagesize = getpagesize();
8903 * First, make a file with some known garbage in it.
8905 data = malloc(pagesize);
8908 for (i = 0; i < pagesize; ++i)
8909 *(data + i) = rand();
8911 fd = creat("conftestmmap", 0600);
8914 if (write(fd, data, pagesize) != pagesize)
8919 * Next, try to mmap the file at a fixed address which
8920 * already has something else allocated at it. If we can,
8921 * also make sure that we see the same garbage.
8923 fd = open("conftestmmap", O_RDWR);
8926 data2 = malloc(2 * pagesize);
8929 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
8930 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
8931 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8933 for (i = 0; i < pagesize; ++i)
8934 if (*(data + i) != *(data2 + i))
8938 * Finally, make sure that changes to the mapped area
8939 * do not percolate back to the file as seen by read().
8940 * (This is a bug on some variants of i386 svr4.0.)
8942 for (i = 0; i < pagesize; ++i)
8943 *(data2 + i) = *(data2 + i) + 1;
8944 data3 = malloc(pagesize);
8947 if (read(fd, data3, pagesize) != pagesize)
8949 for (i = 0; i < pagesize; ++i)
8950 if (*(data + i) != *(data3 + i))
8953 unlink("conftestmmap");
8958 if { (eval echo configure
:8959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8960 ac_cv_func_mmap_fixed_mapped
=yes
8962 echo "configure: failed program was:" >&5
8963 cat conftest.
$ac_ext >&5
8965 ac_cv_func_mmap_fixed_mapped
=no
8972 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
8973 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8974 cat >> confdefs.h
<<\EOF
8983 # Extract the first word of "$ac_prog", so it can be a program name with args.
8984 set dummy
$ac_prog; ac_word
=$2
8985 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8986 echo "configure:8987: checking for $ac_word" >&5
8987 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
8988 echo $ac_n "(cached) $ac_c" 1>&6
8990 if test -n "$PERL"; then
8991 ac_cv_prog_PERL
="$PERL" # Let the user override the test.
8993 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
8995 for ac_dir
in $ac_dummy; do
8996 test -z "$ac_dir" && ac_dir
=.
8997 if test -f $ac_dir/$ac_word; then
8998 ac_cv_prog_PERL
="$ac_prog"
9005 PERL
="$ac_cv_prog_PERL"
9006 if test -n "$PERL"; then
9007 echo "$ac_t""$PERL" 1>&6
9009 echo "$ac_t""no" 1>&6
9012 test -n "$PERL" && break
9014 test -n "$PERL" || PERL
="false"
9022 SIGNAL_HANDLER
=include
/i386-signal.h
9024 sparc
*-sun-solaris*)
9025 SIGNAL_HANDLER
=include
/sparc-signal.h
9028 # SYSDEP_SOURCES=sysdep/ia64.c
9029 # test -d sysdep || mkdir sysdep
9032 SIGNAL_HANDLER
=include
/dwarf2-signal.h
9035 SIGNAL_HANDLER
=include
/powerpc-signal.h
9038 SIGNAL_HANDLER
=include
/dwarf2-signal.h
9041 SIGNAL_HANDLER
=include
/s390-signal.h
9044 SIGNAL_HANDLER
=include
/x86_64-signal.h
9045 SIGNAL_HANDLER_AUX
=include
/i386-signal.h
9048 SIGNAL_HANDLER
=include
/dwarf2-signal.h
9050 sh-
*-linux* | sh
[34]*-*-linux*)
9051 SIGNAL_HANDLER
=include
/dwarf2-signal.h
9054 SIGNAL_HANDLER
=include
/win32-signal.h
9057 SIGNAL_HANDLER
=include
/mips-signal.h
9060 SIGNAL_HANDLER
=include
/default-signal.h
9064 # If we're using sjlj exceptions, forget what we just learned.
9065 if test "$enable_sjlj_exceptions" = yes; then
9066 SIGNAL_HANDLER
=include
/default-signal.h
9070 # Define here any compiler flags that you need in order to make backtrace() work.
9074 BACKTRACESPEC
=-fno-omit-frame-pointer
9081 if test -z "$SIGNAL_HANDLER_AUX"; then
9082 SIGNAL_HANDLER_AUX
=$SIGNAL_HANDLER
9087 if test "${multilib}" = "yes"; then
9088 multilib_arg
="--enable-multilib"
9095 here
=`${PWDCMD-pwd}`
9098 # We get this from the environment.
9102 cat > confcache
<<\EOF
9103 # This file is a shell script that caches the results of configure
9104 # tests run on this system so they can be shared between configure
9105 # scripts and configure runs. It is not useful on other systems.
9106 # If it contains results you don't want to keep, you may remove or edit it.
9108 # By default, configure uses ./config.cache as the cache file,
9109 # creating it if it does not exist already. You can give configure
9110 # the --cache-file=FILE option to use a different cache file; that is
9111 # what configure does when it calls configure scripts in
9112 # subdirectories, so they share the cache.
9113 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9114 # config.status only pays attention to the cache file if you give it the
9115 # --recheck option to rerun configure.
9118 # The following way of writing the cache mishandles newlines in values,
9119 # but we know of no workaround that is simple, portable, and efficient.
9120 # So, don't put newlines in cache variables' values.
9121 # Ultrix sh set writes to stderr and can't be redirected directly,
9122 # and sets the high bit in the cache file unless we assign to the vars.
9124 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9126 # `set' does not quote correctly, so add quotes (double-quote substitution
9127 # turns \\\\ into \\, and sed turns \\ into \).
9129 -e "s/'/'\\\\''/g" \
9130 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9133 # `set' quotes correctly as required by POSIX, so do not add quotes.
9134 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9137 if cmp -s $cache_file confcache
; then
9140 if test -w $cache_file; then
9141 echo "updating cache $cache_file"
9142 cat confcache
> $cache_file
9144 echo "not updating unwritable cache $cache_file"
9149 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9151 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
9152 # Let make expand exec_prefix.
9153 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9155 # Any assignment to VPATH causes Sun make to only execute
9156 # the first set of double-colon rules, so remove it if not needed.
9157 # If there is a colon in the path, we need to keep it.
9158 if test "x$srcdir" = x.
; then
9159 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
9162 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9164 DEFS
=-DHAVE_CONFIG_H
9166 # Without the "./", some shells look in PATH for config.status.
9167 : ${CONFIG_STATUS=./config.status}
9169 echo creating
$CONFIG_STATUS
9170 rm -f $CONFIG_STATUS
9171 cat > $CONFIG_STATUS <<EOF
9173 # Generated automatically by configure.
9174 # Run this file to recreate the current configuration.
9175 # This directory was configured as follows,
9176 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9178 # $0 $ac_configure_args
9180 # Compiler output produced by configure, useful for debugging
9181 # configure, is in ./config.log if it exists.
9183 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9186 case "\$ac_option" in
9187 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9188 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9189 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9190 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9191 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9193 -help | --help | --hel | --he | --h)
9194 echo "\$ac_cs_usage"; exit 0 ;;
9195 *) echo "\$ac_cs_usage"; exit 1 ;;
9199 ac_given_srcdir=$srcdir
9200 ac_given_INSTALL="$INSTALL"
9202 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
9204 cat >> $CONFIG_STATUS <<EOF
9206 # Protect against being on the right side of a sed subst in config.status.
9207 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9208 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9212 s%@CFLAGS@%$CFLAGS%g
9213 s%@CPPFLAGS@%$CPPFLAGS%g
9214 s%@CXXFLAGS@%$CXXFLAGS%g
9215 s%@FFLAGS@%$FFLAGS%g
9217 s%@LDFLAGS@%$LDFLAGS%g
9219 s%@exec_prefix@%$exec_prefix%g
9220 s%@prefix@%$prefix%g
9221 s%@program_transform_name@%$program_transform_name%g
9222 s%@bindir@%$bindir%g
9223 s%@sbindir@%$sbindir%g
9224 s%@libexecdir@%$libexecdir%g
9225 s%@datadir@%$datadir%g
9226 s%@sysconfdir@%$sysconfdir%g
9227 s%@sharedstatedir@%$sharedstatedir%g
9228 s%@localstatedir@%$localstatedir%g
9229 s%@libdir@%$libdir%g
9230 s%@includedir@%$includedir%g
9231 s%@oldincludedir@%$oldincludedir%g
9232 s%@infodir@%$infodir%g
9233 s%@mandir@%$mandir%g
9235 s%@libgcj_basedir@%$libgcj_basedir%g
9236 s%@mkinstalldirs@%$mkinstalldirs%g
9238 s%@host_alias@%$host_alias%g
9239 s%@host_cpu@%$host_cpu%g
9240 s%@host_vendor@%$host_vendor%g
9241 s%@host_os@%$host_os%g
9242 s%@target@%$target%g
9243 s%@target_alias@%$target_alias%g
9244 s%@target_cpu@%$target_cpu%g
9245 s%@target_vendor@%$target_vendor%g
9246 s%@target_os@%$target_os%g
9248 s%@build_alias@%$build_alias%g
9249 s%@build_cpu@%$build_cpu%g
9250 s%@build_vendor@%$build_vendor%g
9251 s%@build_os@%$build_os%g
9253 s%@glibjava_CXX@%$glibjava_CXX%g
9255 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9256 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
9257 s%@INSTALL_DATA@%$INSTALL_DATA%g
9258 s%@PACKAGE@%$PACKAGE%g
9259 s%@VERSION@%$VERSION%g
9260 s%@ACLOCAL@%$ACLOCAL%g
9261 s%@AUTOCONF@%$AUTOCONF%g
9262 s%@AUTOMAKE@%$AUTOMAKE%g
9263 s%@AUTOHEADER@%$AUTOHEADER%g
9264 s%@MAKEINFO@%$MAKEINFO%g
9265 s%@SET_MAKE@%$SET_MAKE%g
9268 s%@RANLIB@%$RANLIB%g
9269 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
9270 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
9272 s%@EXEEXT@%$EXEEXT%g
9273 s%@LIBGCJ_CFLAGS@%$LIBGCJ_CFLAGS%g
9274 s%@LIBGCJ_CXXFLAGS@%$LIBGCJ_CXXFLAGS%g
9275 s%@LIBGCJ_JAVAFLAGS@%$LIBGCJ_JAVAFLAGS%g
9276 s%@INCLTDL@%$INCLTDL%g
9277 s%@LIBLTDL@%$LIBLTDL%g
9278 s%@DIRLTDL@%$DIRLTDL%g
9279 s%@OBJEXT@%$OBJEXT%g
9281 s%@LIBTOOL@%$LIBTOOL%g
9282 s%@CXXCPP@%$CXXCPP%g
9283 s%@subdirs@%$subdirs%g
9284 s%@COMPPATH@%$COMPPATH%g
9285 s%@TESTSUBDIR_TRUE@%$TESTSUBDIR_TRUE%g
9286 s%@TESTSUBDIR_FALSE@%$TESTSUBDIR_FALSE%g
9287 s%@ONESTEP_TRUE@%$ONESTEP_TRUE%g
9288 s%@ONESTEP_FALSE@%$ONESTEP_FALSE%g
9289 s%@LIBGCJDEBUG@%$LIBGCJDEBUG%g
9290 s%@INTERPRETER@%$INTERPRETER%g
9291 s%@LIBFFI@%$LIBFFI%g
9292 s%@LIBFFIINCS@%$LIBFFIINCS%g
9293 s%@EXTRA_CC_FILES@%$EXTRA_CC_FILES%g
9294 s%@PLATFORMOBJS@%$PLATFORMOBJS%g
9296 s%@SYSTEMSPEC@%$SYSTEMSPEC%g
9297 s%@LIBGCJTESTSPEC@%$LIBGCJTESTSPEC%g
9298 s%@ZLIBSPEC@%$ZLIBSPEC%g
9299 s%@ZLIBTESTSPEC@%$ZLIBTESTSPEC%g
9300 s%@X_CFLAGS@%$X_CFLAGS%g
9301 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
9302 s%@X_LIBS@%$X_LIBS%g
9303 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
9304 s%@TOOLKIT@%$TOOLKIT%g
9305 s%@XLIB_AWT_TRUE@%$XLIB_AWT_TRUE%g
9306 s%@XLIB_AWT_FALSE@%$XLIB_AWT_FALSE%g
9307 s%@GTK_AWT_TRUE@%$GTK_AWT_TRUE%g
9308 s%@GTK_AWT_FALSE@%$GTK_AWT_FALSE%g
9309 s%@GTK_CAIRO_TRUE@%$GTK_CAIRO_TRUE%g
9310 s%@GTK_CAIRO_FALSE@%$GTK_CAIRO_FALSE%g
9311 s%@PKG_CONFIG@%$PKG_CONFIG%g
9312 s%@CAIRO_CFLAGS@%$CAIRO_CFLAGS%g
9313 s%@CAIRO_LIBS@%$CAIRO_LIBS%g
9314 s%@PANGOFT2_CFLAGS@%$PANGOFT2_CFLAGS%g
9315 s%@PANGOFT2_LIBS@%$PANGOFT2_LIBS%g
9316 s%@GCLIBS@%$GCLIBS%g
9317 s%@GCINCS@%$GCINCS%g
9318 s%@GCDEPS@%$GCDEPS%g
9319 s%@GCOBJS@%$GCOBJS%g
9320 s%@GCSPEC@%$GCSPEC%g
9321 s%@JC1GCSPEC@%$JC1GCSPEC%g
9322 s%@GCTESTSPEC@%$GCTESTSPEC%g
9323 s%@THREADLIBS@%$THREADLIBS%g
9324 s%@THREADINCS@%$THREADINCS%g
9325 s%@THREADDEPS@%$THREADDEPS%g
9326 s%@THREADOBJS@%$THREADOBJS%g
9327 s%@THREADSPEC@%$THREADSPEC%g
9328 s%@THREADLDFLAGS@%$THREADLDFLAGS%g
9329 s%@THREADCXXFLAGS@%$THREADCXXFLAGS%g
9330 s%@HASH_SYNC_SPEC@%$HASH_SYNC_SPEC%g
9331 s%@USING_GCC_TRUE@%$USING_GCC_TRUE%g
9332 s%@USING_GCC_FALSE@%$USING_GCC_FALSE%g
9333 s%@tool_include_dir@%$tool_include_dir%g
9334 s%@gcc_version@%$gcc_version%g
9335 s%@LIBICONV@%$LIBICONV%g
9336 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
9337 s%@GTK_LIBS@%$GTK_LIBS%g
9338 s%@GLIB_CFLAGS@%$GLIB_CFLAGS%g
9339 s%@GLIB_LIBS@%$GLIB_LIBS%g
9340 s%@GLIB_GENMARSHAL@%$GLIB_GENMARSHAL%g
9341 s%@GOBJECT_QUERY@%$GOBJECT_QUERY%g
9342 s%@GLIB_MKENUMS@%$GLIB_MKENUMS%g
9343 s%@LIBART_CONFIG@%$LIBART_CONFIG%g
9344 s%@LIBART_CFLAGS@%$LIBART_CFLAGS%g
9345 s%@LIBART_LIBS@%$LIBART_LIBS%g
9347 s%@GCJFLAGS@%$GCJFLAGS%g
9349 s%@SYS_ZLIBS@%$SYS_ZLIBS%g
9351 s%@DIVIDESPEC@%$DIVIDESPEC%g
9352 s%@CHECKREFSPEC@%$CHECKREFSPEC%g
9353 s%@EXCEPTIONSPEC@%$EXCEPTIONSPEC%g
9354 s%@IEEESPEC@%$IEEESPEC%g
9355 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
9356 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
9357 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
9358 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
9359 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
9360 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
9361 s%@NEEDS_DATA_START_TRUE@%$NEEDS_DATA_START_TRUE%g
9362 s%@NEEDS_DATA_START_FALSE@%$NEEDS_DATA_START_FALSE%g
9363 s%@GCC_UNWIND_INCLUDE@%$GCC_UNWIND_INCLUDE%g
9364 s%@toolexecdir@%$toolexecdir%g
9365 s%@toolexecmainlibdir@%$toolexecmainlibdir%g
9366 s%@toolexeclibdir@%$toolexeclibdir%g
9367 s%@GCJVERSION@%$GCJVERSION%g
9368 s%@ALLOCA@%$ALLOCA%g
9370 s%@BACKTRACESPEC@%$BACKTRACESPEC%g
9371 s%@SYSDEP_SOURCES@%$SYSDEP_SOURCES%g
9377 cat >> $CONFIG_STATUS <<\EOF
9379 # Split the substitutions into bite-sized pieces for seds with
9380 # small command number limits, like on Digital OSF/1 and HP-UX.
9381 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
9382 ac_file
=1 # Number of current file.
9383 ac_beg
=1 # First line for current file.
9384 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
9387 while $ac_more_lines; do
9388 if test $ac_beg -gt 1; then
9389 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
9391 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
9393 if test ! -s conftest.s
$ac_file; then
9395 rm -f conftest.s
$ac_file
9397 if test -z "$ac_sed_cmds"; then
9398 ac_sed_cmds
="sed -f conftest.s$ac_file"
9400 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
9402 ac_file
=`expr $ac_file + 1`
9404 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
9407 if test -z "$ac_sed_cmds"; then
9412 cat >> $CONFIG_STATUS <<EOF
9414 CONFIG_FILES=\${CONFIG_FILES-"Makefile libgcj.pc libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile"}
9416 cat >> $CONFIG_STATUS <<\EOF
9417 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
9418 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9420 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
9421 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9422 *) ac_file_in
="${ac_file}.in" ;;
9425 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9427 # Remove last slash and all that follows it. Not all systems have dirname.
9428 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9429 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
9430 # The file is in a subdirectory.
9431 test ! -d "$ac_dir" && mkdir
"$ac_dir"
9432 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
9433 # A "../" for each directory in $ac_dir_suffix.
9434 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9436 ac_dir_suffix
= ac_dots
=
9439 case "$ac_given_srcdir" in
9441 if test -z "$ac_dots"; then top_srcdir
=.
9442 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9443 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
9445 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9446 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
9449 case "$ac_given_INSTALL" in
9450 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
9451 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
9454 echo creating
"$ac_file"
9456 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9458 *Makefile
*) ac_comsub
="1i\\
9459 # $configure_input" ;;
9463 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9465 s%@configure_input@%$configure_input%g
9466 s%@srcdir@%$srcdir%g
9467 s%@top_srcdir@%$top_srcdir%g
9468 s%@INSTALL@%$INSTALL%g
9469 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
9473 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9474 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9476 # ac_d sets the value in "#define NAME VALUE" lines.
9477 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9478 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
9481 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9482 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9483 ac_uB
='\([ ]\)%\1#\2define\3'
9486 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9487 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9488 ac_eB
='$%\1#\2define\3'
9492 if test "${CONFIG_HEADERS+set}" != set; then
9494 cat >> $CONFIG_STATUS <<EOF
9495 CONFIG_HEADERS="include/config.h gcj/libgcj-config.h"
9497 cat >> $CONFIG_STATUS <<\EOF
9499 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
9500 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9502 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
9503 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9504 *) ac_file_in
="${ac_file}.in" ;;
9507 echo creating
$ac_file
9509 rm -f conftest.frag conftest.
in conftest.out
9510 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9511 cat $ac_file_inputs > conftest.
in
9515 # Transform confdefs.h into a sed script conftest.vals that substitutes
9516 # the proper values into config.h.in to produce config.h. And first:
9517 # Protect against being on the right side of a sed subst in config.status.
9518 # Protect against being in an unquoted here document in config.status.
9520 cat > conftest.hdr
<<\EOF
9523 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9527 sed -n -f conftest.hdr confdefs.h > conftest.vals
9530 # This sed command replaces #undef with comments. This is necessary, for
9531 # example, in the case of _POSIX_SOURCE, which is predefined and required
9532 # on some systems where configure will not decide to define it.
9533 cat >> conftest.vals <<\EOF
9534 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9537 # Break up conftest.vals because some shells have a limit on
9538 # the size of here documents, and old seds have small limits too.
9543 ac_lines=`grep -c . conftest.vals
`
9544 # grep -c gives empty output for an empty file on some AIX systems.
9545 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9546 # Write a limited-size here document to conftest.frag.
9547 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9548 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9550 sed -f conftest.frag conftest.in > conftest.out
9552 mv conftest.out conftest.in
9554 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9556 mv conftest.tail conftest.vals
9560 cat >> $CONFIG_STATUS <<\EOF
9561 rm -f conftest.frag conftest.h
9562 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9563 cat conftest.in >> conftest.h
9565 if cmp -s $ac_file conftest.h 2>/dev/null; then
9566 echo "$ac_file is unchanged"
9569 # Remove last slash and all that follows it. Not all systems have dirname.
9570 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
9571 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9572 # The file is in a subdirectory.
9573 test ! -d "$ac_dir" && mkdir "$ac_dir"
9576 mv conftest.h $ac_file
9582 cat >> $CONFIG_STATUS <<EOF
9583 ac_sources="include/$PLATFORMH java/io/natFile${FILE-${PLATFORM}}.cc java/io/natFileDescriptor${FILE-${PLATFORM}}.cc java/lang/${PLATFORM}Process.java java/lang/nat${PLATFORM}Process.cc java/net/natInetAddress${PLATFORMNET}.cc java/net/natNetworkInterface${PLATFORMNET}.cc gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc gnu/java/nio/natPipeImpl${PLATFORM}.cc gnu/java/nio/natSelectorImpl${PLATFORM}.cc include/$GCHDR include/$THREADH sysdep/$sysdeps_dir/locks.h $SIGNAL_HANDLER $SIGNAL_HANDLER_AUX"
9584 ac_dests="include/platform.h java/io/natFile.cc java/io/natFileDescriptor.cc java/lang/ConcreteProcess.java java/lang/natConcreteProcess.cc java/net/natInetAddress.cc java/net/natNetworkInterface.cc gnu/java/net/natPlainSocketImpl.cc gnu/java/net/natPlainDatagramSocketImpl.cc gnu/java/nio/natPipeImpl.cc gnu/java/nio/natSelectorImpl.cc include/java-gc.h include/java-threads.h sysdep/locks.h include/java-signal.h include/java-signal-aux.h"
9587 cat >> $CONFIG_STATUS <<\EOF
9588 srcdir=$ac_given_srcdir
9589 while test -n "$ac_sources"; do
9590 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
9591 set $ac_sources; ac_source=$1; shift; ac_sources=$*
9593 echo "linking $srcdir/$ac_source to $ac_dest"
9595 if test ! -r $srcdir/$ac_source; then
9596 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
9600 # Make relative symlinks.
9601 # Remove last slash and all that follows it. Not all systems have dirname.
9602 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
9603 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
9604 # The dest file is in a subdirectory.
9605 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
9606 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
9607 # A "../" for each directory in $ac_dest_dir_suffix.
9608 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
9610 ac_dest_dir_suffix= ac_dots=
9614 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
9615 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
9618 # Make a symlink if possible; otherwise try a hard link.
9619 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9620 ln $srcdir/$ac_source $ac_dest; then :
9622 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
9626 cat >> $CONFIG_STATUS <<EOF
9631 with_multisubdir=${with_multisubdir}
9632 ac_configure_args="${multilib_arg} ${ac_configure_args}"
9633 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
9634 libgcj_basedir=${libgcj_basedir}
9637 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
9640 cat >> $CONFIG_STATUS <<\EOF
9642 for am_file in include/config.h gcj/libgcj-config.h; do
9643 case " $CONFIG_HEADERS " in
9645 echo timestamp > `echo $am_file |
sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
9648 am_indx=`expr "$am_indx" + 1`
9650 # Only add multilib support code if we just rebuilt top-level Makefile.
9651 case " $CONFIG_FILES " in
9653 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
9654 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
9658 # Make subdirectories and `.d
' files. Look in both srcdir and
9659 # builddir for the .java files.
9662 ( (cd $srcdir && find . \( -name '*.java
' -o -name '*.cc
' -o -name '*.c
' \) -print) ;
9663 find . \( -name '*.java
' -o -name '*.cc
' -o -name '*.c
' \) -print) | \
9664 fgrep -v testsuite | \
9665 sed -e 's
/\.java
/.d
/'\;'s
/\.cc
/.d
/'\;'s
/\.c
/.d
/' | \
9667 echo "include $f" >> deps.mk
9670 d=`echo $f | sed -e 's
,/[^
/]*$
,,'`
9672 if test ! -d $d; then
9673 $libgcj_basedir/../mkinstalldirs $d
9681 chmod +x $CONFIG_STATUS
9682 rm -fr confdefs* $ac_clean_files
9683 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
9685 if test "$no_recursion" != yes; then
9687 # Remove --cache-file and --srcdir arguments so they do not pile up.
9688 ac_sub_configure_args=
9690 for ac_arg in $ac_configure_args; do
9691 if test -n "$ac_prev"; then
9696 -cache-file | --cache-file | --cache-fil | --cache-fi \
9697 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
9698 ac_prev=cache_file ;;
9699 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
9700 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
9702 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
9704 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
9706 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
9710 for ac_config_dir in $DIRLTDL; do
9712 # Do not complain, so a configure script can configure whichever
9713 # parts of a large source tree are present.
9714 if test ! -d $srcdir/$ac_config_dir; then
9718 echo configuring in $ac_config_dir
9723 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
9725 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
9733 # A "../" for each directory in /$ac_config_dir.
9734 ac_dots=`echo $ac_config_dir|sed -e 's
%^\.
/%%' -e 's
%[^
/]$
%&/%' -e 's
%[^
/]*/%..
/%g
'`
9737 .) # No --srcdir option. We are building in place.
9738 ac_sub_srcdir=$srcdir ;;
9739 /*) # Absolute path.
9740 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
9742 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
9745 # Check for guested configure; otherwise get Cygnus style configure.
9746 if test -f $ac_sub_srcdir/configure; then
9747 ac_sub_configure=$ac_sub_srcdir/configure
9748 elif test -f $ac_sub_srcdir/configure.in; then
9749 ac_sub_configure=$ac_configure
9751 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
9755 # The recursion is here.
9756 if test -n "$ac_sub_configure"; then
9758 # Make the cache file name correct relative to the subdirectory.
9759 case "$cache_file" in
9760 /*) ac_sub_cache_file=$cache_file ;;
9762 ac_sub_cache_file="$ac_dots$cache_file" ;;
9764 case "$ac_given_INSTALL" in
9765 [/$]*) INSTALL="$ac_given_INSTALL" ;;
9766 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9769 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
9770 # The eval makes quoting arguments work.
9771 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
9774 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }