3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --with-target-subdir=SUBDIR
16 configuring in a subdirectory"
18 --with-cross-host=HOST configuring with a cross compiler"
20 --enable-multilib build many library versions (default)"
22 --disable-dependency-tracking Speeds up one-time builds
23 --enable-dependency-tracking Do not reject slow dependency extractors"
25 --enable-maintainer-mode enable make rules and dependencies not useful
26 (and sometimes confusing) to the casual installer"
28 --enable-shared[=PKGS] build shared libraries [default=yes]"
30 --enable-static[=PKGS] build static libraries [default=yes]"
32 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
34 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
36 --disable-libtool-lock avoid locking (might break parallel builds)"
38 --with-pic try to use only PIC/non-PIC objects [default=use both]"
40 --enable-fast-character prefer speed over size for Character"
42 --disable-getenv-properties
43 don't set system properties from GCJ_PROPERTIES"
45 --enable-hash-synchronization
46 Use global hash table for monitor locks"
48 --enable-libgcj-debug enable runtime debugging code"
50 --enable-interpreter enable interpreter"
52 --enable-sjlj-exceptions force use of builtin_setjmp for exceptions"
54 --disable-java-net disable java.net"
56 --without-libffi don't use libffi"
58 --disable-jvmpi disable JVMPI support"
60 --with-ecos enable runtime eCos target support"
62 --with-system-zlib use installed libz"
64 --enable-java-gc=TYPE choose garbage collector [boehm]"
66 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
68 --with-x use the X Window System"
70 --enable-java-awt list of AWT peer implementations to be built"
72 # Initialize some variables set by options.
73 # The variables have the same names as the options, with
74 # dashes changed to underlines.
76 cache_file
=.
/config.cache
85 program_transform_name
=s
,x
,x
,
93 bindir
='${exec_prefix}/bin'
94 sbindir
='${exec_prefix}/sbin'
95 libexecdir
='${exec_prefix}/libexec'
96 datadir
='${prefix}/share'
97 sysconfdir
='${prefix}/etc'
98 sharedstatedir
='${prefix}/com'
99 localstatedir
='${prefix}/var'
100 libdir
='${exec_prefix}/lib'
101 includedir
='${prefix}/include'
102 oldincludedir
='/usr/include'
103 infodir
='${prefix}/info'
104 mandir
='${prefix}/man'
106 # Initialize some other variables.
109 SHELL
=${CONFIG_SHELL-/bin/sh}
110 # Maximum number of lines to put in a shell here document.
117 # If the previous option needs an argument, assign it.
118 if test -n "$ac_prev"; then
119 eval "$ac_prev=\$ac_option"
125 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
129 # Accept the important Cygnus configure options, so we can diagnose typos.
133 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
135 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
136 bindir
="$ac_optarg" ;;
138 -build |
--build |
--buil |
--bui |
--bu)
140 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
141 build
="$ac_optarg" ;;
143 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
144 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
145 ac_prev
=cache_file
;;
146 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
147 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
148 cache_file
="$ac_optarg" ;;
150 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
152 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
154 datadir
="$ac_optarg" ;;
156 -disable-* |
--disable-*)
157 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
158 # Reject names that are not valid shell variable names.
159 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
160 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
162 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
163 eval "enable_${ac_feature}=no" ;;
165 -enable-* |
--enable-*)
166 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
167 # Reject names that are not valid shell variable names.
168 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
169 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
171 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
176 eval "enable_${ac_feature}='$ac_optarg'" ;;
178 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
179 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
180 |
--exec |
--exe |
--ex)
181 ac_prev
=exec_prefix
;;
182 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
183 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
184 |
--exec=* |
--exe=* |
--ex=*)
185 exec_prefix
="$ac_optarg" ;;
187 -gas |
--gas |
--ga |
--g)
188 # Obsolete; use --with-gas.
191 -help |
--help |
--hel |
--he)
192 # Omit some internal or obsolete options to make the list less imposing.
193 # This message is too long to be a string in the A/UX 3.1 sh.
195 Usage: configure [options] [host]
196 Options: [defaults in brackets after descriptions]
198 --cache-file=FILE cache test results in FILE
199 --help print this message
200 --no-create do not create output files
201 --quiet, --silent do not print \`checking...' messages
202 --version print the version of autoconf that created configure
203 Directory and file names:
204 --prefix=PREFIX install architecture-independent files in PREFIX
206 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
208 --bindir=DIR user executables in DIR [EPREFIX/bin]
209 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
210 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
211 --datadir=DIR read-only architecture-independent data in DIR
213 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
214 --sharedstatedir=DIR modifiable architecture-independent data in DIR
216 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
217 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
218 --includedir=DIR C header files in DIR [PREFIX/include]
219 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
220 --infodir=DIR info documentation in DIR [PREFIX/info]
221 --mandir=DIR man documentation in DIR [PREFIX/man]
222 --srcdir=DIR find the sources in DIR [configure dir or ..]
223 --program-prefix=PREFIX prepend PREFIX to installed program names
224 --program-suffix=SUFFIX append SUFFIX to installed program names
225 --program-transform-name=PROGRAM
226 run sed PROGRAM on installed program names
230 --build=BUILD configure for building on BUILD [BUILD=HOST]
231 --host=HOST configure for HOST [guessed]
232 --target=TARGET configure for TARGET [TARGET=HOST]
233 Features and packages:
234 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
235 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
236 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
237 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
238 --x-includes=DIR X include files are in DIR
239 --x-libraries=DIR X library files are in DIR
241 if test -n "$ac_help"; then
242 echo "--enable and --with options recognized:$ac_help"
246 -host |
--host |
--hos |
--ho)
248 -host=* |
--host=* |
--hos=* |
--ho=*)
251 -includedir |
--includedir |
--includedi |
--included |
--include \
252 |
--includ |
--inclu |
--incl |
--inc)
253 ac_prev
=includedir
;;
254 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
255 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
256 includedir
="$ac_optarg" ;;
258 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
260 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
261 infodir
="$ac_optarg" ;;
263 -libdir |
--libdir |
--libdi |
--libd)
265 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
266 libdir
="$ac_optarg" ;;
268 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
269 |
--libexe |
--libex |
--libe)
270 ac_prev
=libexecdir
;;
271 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
272 |
--libexe=* |
--libex=* |
--libe=*)
273 libexecdir
="$ac_optarg" ;;
275 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
276 |
--localstate |
--localstat |
--localsta |
--localst \
277 |
--locals |
--local |
--loca |
--loc |
--lo)
278 ac_prev
=localstatedir
;;
279 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
280 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
281 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
282 localstatedir
="$ac_optarg" ;;
284 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
286 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
287 mandir
="$ac_optarg" ;;
290 # Obsolete; use --without-fp.
293 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
297 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
298 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
301 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
302 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
303 |
--oldin |
--oldi |
--old |
--ol |
--o)
304 ac_prev
=oldincludedir
;;
305 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
306 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
307 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
308 oldincludedir
="$ac_optarg" ;;
310 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
312 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
313 prefix
="$ac_optarg" ;;
315 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
316 |
--program-pre |
--program-pr |
--program-p)
317 ac_prev
=program_prefix
;;
318 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
319 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
320 program_prefix
="$ac_optarg" ;;
322 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
323 |
--program-suf |
--program-su |
--program-s)
324 ac_prev
=program_suffix
;;
325 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
326 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
327 program_suffix
="$ac_optarg" ;;
329 -program-transform-name |
--program-transform-name \
330 |
--program-transform-nam |
--program-transform-na \
331 |
--program-transform-n |
--program-transform- \
332 |
--program-transform |
--program-transfor \
333 |
--program-transfo |
--program-transf \
334 |
--program-trans |
--program-tran \
335 |
--progr-tra |
--program-tr |
--program-t)
336 ac_prev
=program_transform_name
;;
337 -program-transform-name=* |
--program-transform-name=* \
338 |
--program-transform-nam=* |
--program-transform-na=* \
339 |
--program-transform-n=* |
--program-transform-=* \
340 |
--program-transform=* |
--program-transfor=* \
341 |
--program-transfo=* |
--program-transf=* \
342 |
--program-trans=* |
--program-tran=* \
343 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
344 program_transform_name
="$ac_optarg" ;;
346 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
347 |
-silent |
--silent |
--silen |
--sile |
--sil)
350 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
352 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
354 sbindir
="$ac_optarg" ;;
356 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
357 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
358 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
360 ac_prev
=sharedstatedir
;;
361 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
362 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
363 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
365 sharedstatedir
="$ac_optarg" ;;
367 -site |
--site |
--sit)
369 -site=* |
--site=* |
--sit=*)
372 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
374 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
375 srcdir
="$ac_optarg" ;;
377 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
378 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
379 ac_prev
=sysconfdir
;;
380 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
381 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
382 sysconfdir
="$ac_optarg" ;;
384 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
386 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
387 target
="$ac_optarg" ;;
389 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
392 -version |
--version |
--versio |
--versi |
--vers)
393 echo "configure generated by autoconf version 2.13"
397 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
398 # Reject names that are not valid shell variable names.
399 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
400 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
402 ac_package
=`echo $ac_package| sed 's/-/_/g'`
407 eval "with_${ac_package}='$ac_optarg'" ;;
409 -without-* |
--without-*)
410 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
411 # Reject names that are not valid shell variable names.
412 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
413 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
415 ac_package
=`echo $ac_package| sed 's/-/_/g'`
416 eval "with_${ac_package}=no" ;;
419 # Obsolete; use --with-x.
422 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
423 |
--x-incl |
--x-inc |
--x-in |
--x-i)
424 ac_prev
=x_includes
;;
425 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
426 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
427 x_includes
="$ac_optarg" ;;
429 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
430 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
431 ac_prev
=x_libraries
;;
432 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
433 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
434 x_libraries
="$ac_optarg" ;;
436 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
440 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
441 echo "configure: warning: $ac_option: invalid host type" 1>&2
443 if test "x$nonopt" != xNONE
; then
444 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
452 if test -n "$ac_prev"; then
453 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
456 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
458 # File descriptor usage:
461 # 2 errors and warnings
462 # 3 some systems may open it to /dev/tty
463 # 4 used on the Kubota Titan
464 # 6 checking for... messages and results
465 # 5 compiler messages saved in config.log
466 if test "$silent" = yes; then
474 This file contains any messages produced by compilers while
475 running configure, to aid debugging if configure makes a mistake.
478 # Strip out --no-create and --no-recursion so they do not pile up.
479 # Also quote any args containing shell metacharacters.
484 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
485 |
--no-cr |
--no-c) ;;
486 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
487 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
488 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
489 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
490 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
495 # Only set these to C if already set. These must not be set unconditionally
496 # because not all systems understand e.g. LANG=C (notably SCO).
497 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
498 # Non-C LC_CTYPE values break the ctype check.
499 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
500 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
501 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
502 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
504 # confdefs.h avoids OS command line length limits that DEFS can exceed.
505 rm -rf conftest
* confdefs.h
506 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
509 # A filename unique to this package, relative to the directory that
510 # configure is in, which we can look for to find out if srcdir is correct.
511 ac_unique_file
=java
/lang
/System.java
513 # Find the source files, if location was not specified.
514 if test -z "$srcdir"; then
515 ac_srcdir_defaulted
=yes
516 # Try the directory containing this script, then its parent.
518 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
519 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
521 if test ! -r $srcdir/$ac_unique_file; then
525 ac_srcdir_defaulted
=no
527 if test ! -r $srcdir/$ac_unique_file; then
528 if test "$ac_srcdir_defaulted" = yes; then
529 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
531 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
534 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
536 # Prefer explicitly selected file to automatically selected ones.
537 if test -z "$CONFIG_SITE"; then
538 if test "x$prefix" != xNONE
; then
539 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
541 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
544 for ac_site_file
in $CONFIG_SITE; do
545 if test -r "$ac_site_file"; then
546 echo "loading site script $ac_site_file"
551 if test -r "$cache_file"; then
552 echo "loading cache $cache_file"
555 echo "creating cache $cache_file"
560 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
561 ac_cpp
='$CPP $CPPFLAGS'
562 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
563 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
564 cross_compiling
=$ac_cv_prog_cc_cross
568 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
569 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
570 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
577 ac_n
= ac_c
='\c' ac_t
=
582 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
583 echo "configure:584: checking whether ln -s works" >&5
584 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
585 echo $ac_n "(cached) $ac_c" 1>&6
588 if ln -s X conftestdata
2>/dev
/null
591 ac_cv_prog_LN_S
="ln -s"
596 LN_S
="$ac_cv_prog_LN_S"
597 if test "$ac_cv_prog_LN_S" = "ln -s"; then
598 echo "$ac_t""yes" 1>&6
600 echo "$ac_t""no" 1>&6
604 # Check whether --with-target-subdir or --without-target-subdir was given.
605 if test "${with_target_subdir+set}" = set; then
606 withval
="$with_target_subdir"
610 # Check whether --with-cross-host or --without-cross-host was given.
611 if test "${with_cross_host+set}" = set; then
612 withval
="$with_cross_host"
618 # expand $ac_aux_dir to an absolute path
619 am_aux_dir
=`CDPATH=:; cd $ac_aux_dir && pwd`
621 # Find a good install program. We prefer a C program (faster),
622 # so one script is as good as another. But avoid the broken or
623 # incompatible versions:
624 # SysV /etc/install, /usr/sbin/install
625 # SunOS /usr/etc/install
628 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
629 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
630 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
631 # ./install, which can be erroneously created by make from ./install.sh.
632 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
633 echo "configure:634: checking for a BSD compatible install" >&5
634 if test -z "$INSTALL"; then
635 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
636 echo $ac_n "(cached) $ac_c" 1>&6
638 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
639 for ac_dir
in $PATH; do
640 # Account for people who put trailing slashes in PATH elements.
642 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
644 # OSF1 and SCO ODT 3.0 have their own names for install.
645 # Don't use installbsd from OSF since it installs stuff as root
647 for ac_prog
in ginstall scoinst
install; do
648 if test -f $ac_dir/$ac_prog; then
649 if test $ac_prog = install &&
650 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
651 # AIX install. It has an incompatible calling convention.
654 ac_cv_path_install
="$ac_dir/$ac_prog -c"
665 if test "${ac_cv_path_install+set}" = set; then
666 INSTALL
="$ac_cv_path_install"
668 # As a last resort, use the slow shell script. We don't cache a
669 # path for INSTALL within a source directory, because that will
670 # break other packages using the cache if that directory is
671 # removed, or if the path is relative.
672 INSTALL
="$ac_install_sh"
675 echo "$ac_t""$INSTALL" 1>&6
677 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
678 # It thinks the first close brace ends the variable substitution.
679 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
681 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
683 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
685 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
686 echo "configure:687: checking whether build environment is sane" >&5
689 echo timestamp
> conftest.
file
690 # Do `set' in a subshell so we don't clobber the current shell's
691 # arguments. Must try -L first in case configure is actually a
692 # symlink; some systems play weird games with the mod time of symlinks
693 # (eg FreeBSD returns the mod time of the symlink's containing
696 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
697 if test "$*" = "X"; then
699 set X
`ls -t $srcdir/configure conftest.file`
702 if test "$*" != "X $srcdir/configure conftest.file" \
703 && test "$*" != "X conftest.file $srcdir/configure"; then
705 # If neither matched, then we have a broken ls. This can happen
706 # if, for instance, CONFIG_SHELL is bash and it inherits a
707 # broken ls alias from the environment. This has actually
708 # happened. Such a system could not be considered "sane".
709 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
710 alias in your environment" 1>&2; exit 1; }
713 test "$2" = conftest.
file
719 { echo "configure: error: newly created file is older than distributed files!
720 Check your system clock" 1>&2; exit 1; }
722 echo "$ac_t""yes" 1>&6
723 if test "$program_transform_name" = s
,x
,x
,; then
724 program_transform_name
=
726 # Double any \ or $. echo might interpret backslashes.
727 cat <<\EOF_SED
> conftestsed
728 s
,\\,\\\\,g
; s
,\$
,$$
,g
730 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
733 test "$program_prefix" != NONE
&&
734 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
735 # Use a double $ so make ignores it.
736 test "$program_suffix" != NONE
&&
737 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
739 # sed with no file args requires a program.
740 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
742 test x
"${MISSING+set}" = xset || MISSING
="\${SHELL} $am_aux_dir/missing"
743 # Use eval to expand $SHELL
744 if eval "$MISSING --run true"; then
745 am_missing_run
="$MISSING --run "
749 echo "configure: warning: ${am_backtick}missing' script is too old or missing" 1>&2
752 for ac_prog
in gawk mawk nawk
awk
754 # Extract the first word of "$ac_prog", so it can be a program name with args.
755 set dummy
$ac_prog; ac_word
=$2
756 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
757 echo "configure:758: checking for $ac_word" >&5
758 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
759 echo $ac_n "(cached) $ac_c" 1>&6
761 if test -n "$AWK"; then
762 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
764 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
766 for ac_dir
in $ac_dummy; do
767 test -z "$ac_dir" && ac_dir
=.
768 if test -f $ac_dir/$ac_word; then
769 ac_cv_prog_AWK
="$ac_prog"
776 AWK
="$ac_cv_prog_AWK"
777 if test -n "$AWK"; then
778 echo "$ac_t""$AWK" 1>&6
780 echo "$ac_t""no" 1>&6
783 test -n "$AWK" && break
786 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
787 echo "configure:788: checking whether ${MAKE-make} sets \${MAKE}" >&5
788 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
789 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
790 echo $ac_n "(cached) $ac_c" 1>&6
792 cat > conftestmake
<<\EOF
794 @
echo 'ac_maketemp="${MAKE}"'
796 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
797 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
798 if test -n "$ac_maketemp"; then
799 eval ac_cv_prog_make_
${ac_make}_set
=yes
801 eval ac_cv_prog_make_
${ac_make}_set
=no
805 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
806 echo "$ac_t""yes" 1>&6
809 echo "$ac_t""no" 1>&6
810 SET_MAKE
="MAKE=${MAKE-make}"
813 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
814 if test "${enable_dependency_tracking+set}" = set; then
815 enableval
="$enable_dependency_tracking"
819 if test "x$enable_dependency_tracking" != xno
; then
820 am_depcomp
="$ac_aux_dir/depcomp"
825 if test "x$enable_dependency_tracking" != xno; then
836 rm -f .deps
2>/dev
/null
837 mkdir .deps
2>/dev
/null
838 if test -d .deps
; then
841 # MS-DOS does not allow filenames that begin with a dot.
844 rmdir .deps
2>/dev
/null
850 cat > confinc
<< 'END'
854 # If we don't find an include directive, just comment out the code.
855 echo $ac_n "checking for style of include used by $am_make""... $ac_c" 1>&6
856 echo "configure:857: checking for style of include used by $am_make" >&5
860 # First try GNU make style include.
861 echo "include confinc" > confmf
862 # We grep out `Entering directory' and `Leaving directory'
863 # messages which can occur if `w' ends up in MAKEFLAGS.
864 # In particular we don't look at `^make:' because GNU make might
865 # be invoked under some other name (usually "gmake"), in which
866 # case it prints its new name instead of `make'.
867 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
872 # Now try BSD make style include.
873 if test "$am__include" = "#"; then
874 echo '.include "confinc"' > confmf
875 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
883 echo "$ac_t""$_am_result" 1>&6
886 if test $host != $build; then
887 ac_tool_prefix
=${host_alias}-
892 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
893 echo "configure:894: checking for Cygwin environment" >&5
894 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
895 echo $ac_n "(cached) $ac_c" 1>&6
897 cat > conftest.
$ac_ext <<EOF
898 #line 899 "configure"
899 #include "confdefs.h"
904 #define __CYGWIN__ __CYGWIN32__
909 if { (eval echo configure
:910: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
913 echo "configure: failed program was:" >&5
914 cat conftest.
$ac_ext >&5
922 echo "$ac_t""$ac_cv_cygwin" 1>&6
924 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
925 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
926 echo "configure:927: checking for mingw32 environment" >&5
927 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
928 echo $ac_n "(cached) $ac_c" 1>&6
930 cat > conftest.
$ac_ext <<EOF
931 #line 932 "configure"
932 #include "confdefs.h"
938 if { (eval echo configure
:939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
942 echo "configure: failed program was:" >&5
943 cat conftest.
$ac_ext >&5
951 echo "$ac_t""$ac_cv_mingw32" 1>&6
953 test "$ac_cv_mingw32" = yes && MINGW32
=yes
955 # Check whether --enable-multilib or --disable-multilib was given.
956 if test "${enable_multilib+set}" = set; then
957 enableval
="$enable_multilib"
958 case "${enableval}" in
961 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
968 # When building with srcdir == objdir, links to the source files will
969 # be created in directories within the target_subdir. We have to
970 # adjust toplevel_srcdir accordingly, so that configure finds
971 # install-sh and other auxiliary files that live in the top-level
973 if test "${srcdir}" = "."; then
974 if test -z "${with_target_subdir}"; then
977 if test "${with_target_subdir}" != "."; then
978 toprel
="${with_multisrctop}../.."
980 toprel
="${with_multisrctop}.."
987 libgcj_basedir
=$srcdir/$toprel/.
/libjava
991 for ac_dir
in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
992 if test -f $ac_dir/install-sh
; then
994 ac_install_sh
="$ac_aux_dir/install-sh -c"
996 elif test -f $ac_dir/install.sh
; then
998 ac_install_sh
="$ac_aux_dir/install.sh -c"
1002 if test -z "$ac_aux_dir"; then
1003 { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
1005 ac_config_guess=$ac_aux_dir/config.guess
1006 ac_config_sub=$ac_aux_dir/config.sub
1007 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1010 # This overrides the previous occurrence for automake, but not for
1011 # autoconf, which is exactly what we want.
1013 for ac_dir in .. $srcdir/..; do
1014 if test -f $ac_dir/install-sh; then
1016 ac_install_sh="$ac_aux_dir/install-sh
-c"
1018 elif test -f $ac_dir/install.sh; then
1020 ac_install_sh="$ac_aux_dir/install.sh
-c"
1024 if test -z "$ac_aux_dir"; then
1025 { echo "configure
: error
: can not
find install-sh or
install.sh
in ..
$srcdir/..
" 1>&2; exit 1; }
1027 ac_config_guess=$ac_aux_dir/config.guess
1028 ac_config_sub=$ac_aux_dir/config.sub
1029 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1033 # This works around an automake problem.
1034 mkinstalldirs="`cd $ac_aux_dir && pwd`/mkinstalldirs
"
1038 # Do some error checking and defaulting for the host and target type.
1040 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1043 # 1. You are not allowed to specify --host, --target, and nonopt at the
1045 # 2. Host defaults to nonopt.
1046 # 3. If nonopt is not specified, then host defaults to the current host,
1047 # as determined by config.guess.
1048 # 4. Target and build default to nonopt.
1049 # 5. If nonopt is not specified, then target and build default to host.
1051 # The aliases save the names the user supplied, while $host etc.
1052 # will get canonicalized.
1053 case $host---$target---$nonopt in
1054 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1055 *) { echo "configure
: error
: can only configure
for one
host and one target
at a
time" 1>&2; exit 1; } ;;
1059 # Make sure we can run config.sub.
1060 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1061 else { echo "configure
: error
: can not run
$ac_config_sub" 1>&2; exit 1; }
1064 echo $ac_n "checking
host system
type""...
$ac_c" 1>&6
1065 echo "configure
:1066: checking
host system
type" >&5
1068 case "$host_alias" in
1072 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1073 else { echo "configure
: error
: can not guess
host type; you must specify one
" 1>&2; exit 1; }
1075 *) host_alias=$nonopt ;;
1079 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1080 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1081 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1082 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1083 echo "$ac_t""$host" 1>&6
1085 echo $ac_n "checking target system
type""...
$ac_c" 1>&6
1086 echo "configure
:1087: checking target system
type" >&5
1088 target_alias=$target
1089 case "$target_alias" in
1092 NONE) target_alias=$host_alias ;;
1093 *) target_alias=$nonopt ;;
1097 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1098 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1099 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1100 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1101 echo "$ac_t""$target" 1>&6
1103 echo $ac_n "checking build system
type""...
$ac_c" 1>&6
1104 echo "configure
:1105: checking build system
type" >&5
1107 case "$build_alias" in
1110 NONE) build_alias=$host_alias ;;
1111 *) build_alias=$nonopt ;;
1115 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1116 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1117 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1118 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1119 echo "$ac_t""$build" 1>&6
1121 test "$host_alias" != "$target_alias" &&
1122 test "$program_prefix$program_suffix$program_transform_name" = \
1124 program_prefix=${target_alias}-
1130 # Extract the first word of "gcc
", so it can be a program name with args.
1131 set dummy gcc; ac_word=$2
1132 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1133 echo "configure
:1134: checking
for $ac_word" >&5
1134 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1135 echo $ac_n "(cached
) $ac_c" 1>&6
1137 if test -n "$CC"; then
1138 ac_cv_prog_CC="$CC" # Let the user override the test.
1140 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1142 for ac_dir in $ac_dummy; do
1143 test -z "$ac_dir" && ac_dir=.
1144 if test -f $ac_dir/$ac_word; then
1153 if test -n "$CC"; then
1154 echo "$ac_t""$CC" 1>&6
1156 echo "$ac_t""no
" 1>&6
1159 if test -z "$CC"; then
1160 # Extract the first word of "cc
", so it can be a program name with args.
1161 set dummy cc; ac_word=$2
1162 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1163 echo "configure
:1164: checking
for $ac_word" >&5
1164 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1165 echo $ac_n "(cached
) $ac_c" 1>&6
1167 if test -n "$CC"; then
1168 ac_cv_prog_CC="$CC" # Let the user override the test.
1170 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1173 for ac_dir in $ac_dummy; do
1174 test -z "$ac_dir" && ac_dir=.
1175 if test -f $ac_dir/$ac_word; then
1176 if test "$ac_dir/$ac_word" = "/usr
/ucb
/cc
"; then
1177 ac_prog_rejected=yes
1185 if test $ac_prog_rejected = yes; then
1186 # We found a bogon in the path, so make sure we never use it.
1187 set dummy $ac_cv_prog_CC
1189 if test $# -gt 0; then
1190 # We chose a different compiler from the bogus one.
1191 # However, it has the same basename, so the bogon will be chosen
1192 # first if we set CC to just the basename; use the full file name.
1194 set dummy "$ac_dir/$ac_word" "$@
"
1202 if test -n "$CC"; then
1203 echo "$ac_t""$CC" 1>&6
1205 echo "$ac_t""no
" 1>&6
1208 if test -z "$CC"; then
1209 case "`uname -s`" in
1211 # Extract the first word of "cl
", so it can be a program name with args.
1212 set dummy cl; ac_word=$2
1213 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1214 echo "configure
:1215: checking
for $ac_word" >&5
1215 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1216 echo $ac_n "(cached
) $ac_c" 1>&6
1218 if test -n "$CC"; then
1219 ac_cv_prog_CC="$CC" # Let the user override the test.
1221 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1223 for ac_dir in $ac_dummy; do
1224 test -z "$ac_dir" && ac_dir=.
1225 if test -f $ac_dir/$ac_word; then
1234 if test -n "$CC"; then
1235 echo "$ac_t""$CC" 1>&6
1237 echo "$ac_t""no
" 1>&6
1242 test -z "$CC" && { echo "configure
: error
: no acceptable cc found
in \
$PATH" 1>&2; exit 1; }
1246 echo $ac_n "checking whether we are using GNU C
""...
$ac_c" 1>&6
1247 echo "configure
:1248: checking whether we are using GNU C
" >&5
1248 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1249 echo $ac_n "(cached
) $ac_c" 1>&6
1251 cat > conftest.c <<EOF
1256 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1257: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1263 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1265 if test $ac_cv_prog_gcc = yes; then
1271 ac_test_CFLAGS="${CFLAGS+set}"
1272 ac_save_CFLAGS="$CFLAGS"
1274 echo $ac_n "checking whether
${CC-cc} accepts
-g""...
$ac_c" 1>&6
1275 echo "configure
:1276: checking whether
${CC-cc} accepts
-g" >&5
1276 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1277 echo $ac_n "(cached
) $ac_c" 1>&6
1279 echo 'void f(){}' > conftest.c
1280 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1289 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1290 if test "$ac_test_CFLAGS" = set; then
1291 CFLAGS="$ac_save_CFLAGS"
1292 elif test $ac_cv_prog_cc_g = yes; then
1293 if test "$GCC" = yes; then
1299 if test "$GCC" = yes; then
1306 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1308 # Extract the first word of "$ac_prog", so it can be a program name with args.
1309 set dummy $ac_prog; ac_word=$2
1310 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1311 echo "configure
:1312: checking
for $ac_word" >&5
1312 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1313 echo $ac_n "(cached
) $ac_c" 1>&6
1315 if test -n "$CXX"; then
1316 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1318 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1320 for ac_dir in $ac_dummy; do
1321 test -z "$ac_dir" && ac_dir=.
1322 if test -f $ac_dir/$ac_word; then
1323 ac_cv_prog_CXX="$ac_prog"
1330 CXX="$ac_cv_prog_CXX"
1331 if test -n "$CXX"; then
1332 echo "$ac_t""$CXX" 1>&6
1334 echo "$ac_t""no
" 1>&6
1337 test -n "$CXX" && break
1339 test -n "$CXX" || CXX="gcc
"
1343 echo $ac_n "checking whether we are using GNU C
++""...
$ac_c" 1>&6
1344 echo "configure
:1345: checking whether we are using GNU C
++" >&5
1345 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1346 echo $ac_n "(cached
) $ac_c" 1>&6
1348 cat > conftest.C <<EOF
1353 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1354: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1360 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1362 if test $ac_cv_prog_gxx = yes; then
1368 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1369 ac_save_CXXFLAGS="$CXXFLAGS"
1371 echo $ac_n "checking whether
${CXX-g++} accepts
-g""...
$ac_c" 1>&6
1372 echo "configure
:1373: checking whether
${CXX-g++} accepts
-g" >&5
1373 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1374 echo $ac_n "(cached
) $ac_c" 1>&6
1376 echo 'void f(){}' > conftest.cc
1377 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1378 ac_cv_prog_cxx_g=yes
1386 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1387 if test "$ac_test_CXXFLAGS" = set; then
1388 CXXFLAGS="$ac_save_CXXFLAGS"
1389 elif test $ac_cv_prog_cxx_g = yes; then
1390 if test "$GXX" = yes; then
1396 if test "$GXX" = yes; then
1405 # test to see if srcdir already configured
1406 if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
1407 test -f $srcdir/config.status; then
1408 { echo "configure
: error
: source directory already configured
; run
\"make distclean
\" there first
" 1>&2; exit 1; }
1411 # Define the identity of the package.
1414 cat >> confdefs.h <<EOF
1415 #define PACKAGE "$PACKAGE"
1418 cat >> confdefs.h <<EOF
1419 #define VERSION "$VERSION"
1423 # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
1424 # the ones we care about.
1426 # Autoconf 2.50 always computes EXEEXT. However we need to be
1427 # compatible with 2.13, for now. So we always define EXEEXT, but we
1430 # Similar for OBJEXT -- only we only use OBJEXT if the user actually
1431 # requests that it be used. This is a bit dumb.
1435 # Some tools Automake needs.
1437 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
1440 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1443 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
1446 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1449 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1452 AMTAR=${AMTAR-"${am_missing_run}tar"}
1454 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1456 INSTALL_STRIP_PROGRAM="\
${SHELL} \$
(install_sh
) -c -s"
1458 # We need awk for the "check
" target. The system "awk" is bad on
1461 depcc="$CC" am_compiler_list=
1463 echo $ac_n "checking dependency style of
$depcc""...
$ac_c" 1>&6
1464 echo "configure
:1465: checking dependency style of
$depcc" >&5
1465 if eval "test \"`echo '$''{'am_cv_CC_dependencies_compiler_type'+set}'`\" = set"; then
1466 echo $ac_n "(cached
) $ac_c" 1>&6
1468 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
1469 # We make a subdir and do the tests there. Otherwise we can end up
1470 # making bogus files that we don't know about and never remove. For
1471 # instance it was reported that on HP-UX the gcc test will end up
1472 # making a dummy file named `D' -- because `-MD' means `put the output
1475 # Copy depcomp to subdir because otherwise we won't find it if we're
1476 # using a relative directory.
1477 cp "$am_depcomp" conftest.dir
1480 am_cv_CC_dependencies_compiler_type=none
1481 if test "$am_compiler_list" = ""; then
1482 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
1484 for depmode in $am_compiler_list; do
1485 # We need to recreate these files for each test, as the compiler may
1486 # overwrite some of them when testing with obscure command lines.
1487 # This happens at least with the AIX C compiler.
1488 echo '#include "conftest.h
"' > conftest.c
1489 echo 'int i;' > conftest.h
1490 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
1494 # after this tag, mechanisms are not by side-effect, so they'll
1495 # only be used when explicitly requested
1496 if test "x
$enable_dependency_tracking" = xyes; then
1504 # We check with `-c' and `-o' for the sake of the "dashmstdout
"
1505 # mode. It turns out that the SunPro C++ compiler does not properly
1506 # handle `-M -o', and we need to detect this.
1507 if depmode=$depmode \
1508 source=conftest.c object=conftest.o \
1509 depfile=conftest.Po tmpdepfile=conftest.TPo \
1510 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
1511 grep conftest.h conftest.Po > /dev/null 2>&1 &&
1512 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1513 am_cv_CC_dependencies_compiler_type=$depmode
1521 am_cv_CC_dependencies_compiler_type=none
1526 echo "$ac_t""$am_cv_CC_dependencies_compiler_type" 1>&6
1527 CCDEPMODE="depmode
=$am_cv_CC_dependencies_compiler_type"
1530 depcc="$CXX" am_compiler_list=
1532 echo $ac_n "checking dependency style of
$depcc""...
$ac_c" 1>&6
1533 echo "configure
:1534: checking dependency style of
$depcc" >&5
1534 if eval "test \"`echo '$''{'am_cv_CXX_dependencies_compiler_type'+set}'`\" = set"; then
1535 echo $ac_n "(cached
) $ac_c" 1>&6
1537 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
1538 # We make a subdir and do the tests there. Otherwise we can end up
1539 # making bogus files that we don't know about and never remove. For
1540 # instance it was reported that on HP-UX the gcc test will end up
1541 # making a dummy file named `D' -- because `-MD' means `put the output
1544 # Copy depcomp to subdir because otherwise we won't find it if we're
1545 # using a relative directory.
1546 cp "$am_depcomp" conftest.dir
1549 am_cv_CXX_dependencies_compiler_type=none
1550 if test "$am_compiler_list" = ""; then
1551 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
1553 for depmode in $am_compiler_list; do
1554 # We need to recreate these files for each test, as the compiler may
1555 # overwrite some of them when testing with obscure command lines.
1556 # This happens at least with the AIX C compiler.
1557 echo '#include "conftest.h
"' > conftest.c
1558 echo 'int i;' > conftest.h
1559 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
1563 # after this tag, mechanisms are not by side-effect, so they'll
1564 # only be used when explicitly requested
1565 if test "x
$enable_dependency_tracking" = xyes; then
1573 # We check with `-c' and `-o' for the sake of the "dashmstdout
"
1574 # mode. It turns out that the SunPro C++ compiler does not properly
1575 # handle `-M -o', and we need to detect this.
1576 if depmode=$depmode \
1577 source=conftest.c object=conftest.o \
1578 depfile=conftest.Po tmpdepfile=conftest.TPo \
1579 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
1580 grep conftest.h conftest.Po > /dev/null 2>&1 &&
1581 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1582 am_cv_CXX_dependencies_compiler_type=$depmode
1590 am_cv_CXX_dependencies_compiler_type=none
1595 echo "$ac_t""$am_cv_CXX_dependencies_compiler_type" 1>&6
1596 CXXDEPMODE="depmode
=$am_cv_CXX_dependencies_compiler_type"
1600 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we dont
1601 # run it explicitly here, it will be run implicitly before
1602 # LIBGCJ_CONFIGURE, which doesn't work because that means that it will
1603 # be run before AC_CANONICAL_HOST.
1604 echo $ac_n "checking build system
type""...
$ac_c" 1>&6
1605 echo "configure
:1606: checking build system
type" >&5
1608 case "$build_alias" in
1611 NONE) build_alias=$host_alias ;;
1612 *) build_alias=$nonopt ;;
1616 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1617 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1618 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1619 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1620 echo "$ac_t""$build" 1>&6
1623 # Extract the first word of "${ac_tool_prefix}as
", so it can be a program name with args.
1624 set dummy ${ac_tool_prefix}as; ac_word=$2
1625 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1626 echo "configure
:1627: checking
for $ac_word" >&5
1627 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1628 echo $ac_n "(cached
) $ac_c" 1>&6
1630 if test -n "$AS"; then
1631 ac_cv_prog_AS="$AS" # Let the user override the test.
1633 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1635 for ac_dir in $ac_dummy; do
1636 test -z "$ac_dir" && ac_dir=.
1637 if test -f $ac_dir/$ac_word; then
1638 ac_cv_prog_AS="${ac_tool_prefix}as
"
1643 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as
"
1647 if test -n "$AS"; then
1648 echo "$ac_t""$AS" 1>&6
1650 echo "$ac_t""no
" 1>&6
1655 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1656 set dummy ${ac_tool_prefix}ar; ac_word=$2
1657 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1658 echo "configure
:1659: checking
for $ac_word" >&5
1659 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1660 echo $ac_n "(cached
) $ac_c" 1>&6
1662 if test -n "$AR"; then
1663 ac_cv_prog_AR="$AR" # Let the user override the test.
1665 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1667 for ac_dir in $ac_dummy; do
1668 test -z "$ac_dir" && ac_dir=.
1669 if test -f $ac_dir/$ac_word; then
1670 ac_cv_prog_AR="${ac_tool_prefix}ar"
1675 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1679 if test -n "$AR"; then
1680 echo "$ac_t""$AR" 1>&6
1682 echo "$ac_t""no
" 1>&6
1687 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
1688 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1689 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1690 echo "configure
:1691: checking
for $ac_word" >&5
1691 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1692 echo $ac_n "(cached
) $ac_c" 1>&6
1694 if test -n "$RANLIB"; then
1695 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1697 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1699 for ac_dir in $ac_dummy; do
1700 test -z "$ac_dir" && ac_dir=.
1701 if test -f $ac_dir/$ac_word; then
1702 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
1709 RANLIB="$ac_cv_prog_RANLIB"
1710 if test -n "$RANLIB"; then
1711 echo "$ac_t""$RANLIB" 1>&6
1713 echo "$ac_t""no
" 1>&6
1717 if test -z "$ac_cv_prog_RANLIB"; then
1718 if test -n "$ac_tool_prefix"; then
1719 # Extract the first word of "ranlib
", so it can be a program name with args.
1720 set dummy ranlib; ac_word=$2
1721 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1722 echo "configure
:1723: checking
for $ac_word" >&5
1723 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1724 echo $ac_n "(cached
) $ac_c" 1>&6
1726 if test -n "$RANLIB"; then
1727 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1729 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1731 for ac_dir in $ac_dummy; do
1732 test -z "$ac_dir" && ac_dir=.
1733 if test -f $ac_dir/$ac_word; then
1734 ac_cv_prog_RANLIB="ranlib
"
1739 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1742 RANLIB="$ac_cv_prog_RANLIB"
1743 if test -n "$RANLIB"; then
1744 echo "$ac_t""$RANLIB" 1>&6
1746 echo "$ac_t""no
" 1>&6
1755 # Find a good install program. We prefer a C program (faster),
1756 # so one script is as good as another. But avoid the broken or
1757 # incompatible versions:
1758 # SysV /etc/install, /usr/sbin/install
1759 # SunOS /usr/etc/install
1760 # IRIX /sbin/install
1762 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1763 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1764 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff
"
1765 # ./install, which can be erroneously created by make from ./install.sh.
1766 echo $ac_n "checking
for a BSD compatible
install""...
$ac_c" 1>&6
1767 echo "configure
:1768: checking
for a BSD compatible
install" >&5
1768 if test -z "$INSTALL"; then
1769 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1770 echo $ac_n "(cached
) $ac_c" 1>&6
1772 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1773 for ac_dir in $PATH; do
1774 # Account for people who put trailing slashes in PATH elements.
1776 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1778 # OSF1 and SCO ODT 3.0 have their own names for install.
1779 # Don't use installbsd from OSF since it installs stuff as root
1781 for ac_prog in ginstall scoinst install; do
1782 if test -f $ac_dir/$ac_prog; then
1783 if test $ac_prog = install &&
1784 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1785 # AIX install. It has an incompatible calling convention.
1788 ac_cv_path_install="$ac_dir/$ac_prog -c"
1799 if test "${ac_cv_path_install+set}" = set; then
1800 INSTALL="$ac_cv_path_install"
1802 # As a last resort, use the slow shell script. We don't cache a
1803 # path for INSTALL within a source directory, because that will
1804 # break other packages using the cache if that directory is
1805 # removed, or if the path is relative.
1806 INSTALL="$ac_install_sh"
1809 echo "$ac_t""$INSTALL" 1>&6
1811 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1812 # It thinks the first close brace ends the variable substitution.
1813 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1815 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1817 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1820 echo $ac_n "checking whether to
enable maintainer-specific portions of Makefiles
""...
$ac_c" 1>&6
1821 echo "configure
:1822: checking whether to
enable maintainer-specific portions of Makefiles
" >&5
1822 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1823 if test "${enable_maintainer_mode+set}" = set; then
1824 enableval="$enable_maintainer_mode"
1825 USE_MAINTAINER_MODE=$enableval
1827 USE_MAINTAINER_MODE=no
1830 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1833 if test $USE_MAINTAINER_MODE = yes; then
1834 MAINTAINER_MODE_TRUE=
1835 MAINTAINER_MODE_FALSE='#'
1837 MAINTAINER_MODE_TRUE='#'
1838 MAINTAINER_MODE_FALSE=
1840 MAINT=$MAINTAINER_MODE_TRUE
1844 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1845 # at least currently, we never actually build a program, so we never
1846 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1847 # fails, because we are probably configuring with a cross compiler
1848 # which cant create executables. So we include AC_EXEEXT to keep
1849 # automake happy, but we dont execute it, since we dont care about
1852 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1853 # to nothing, so nothing would remain between `then' and `fi' if it
1854 # were not for the `:' below.
1858 echo $ac_n "checking
for executable suffix
""...
$ac_c" 1>&6
1859 echo "configure
:1860: checking
for executable suffix
" >&5
1860 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1861 echo $ac_n "(cached
) $ac_c" 1>&6
1863 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1867 echo 'int main () { return 0; }' > conftest.$ac_ext
1869 if { (eval echo configure:1870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1870 for file in conftest.*; do
1872 *.c | *.o | *.obj) ;;
1873 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1877 { echo "configure
: error
: installation or configuration problem
: compiler cannot create executables.
" 1>&2; exit 1; }
1880 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1885 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1886 echo "$ac_t""${ac_cv_exeext}" 1>&6
1891 # configure.host sets the following important variables
1892 # libgcj_cflags - host specific C compiler flags
1893 # libgcj_cxxflags - host specific C++ compiler flags
1894 # libgcj_javaflags - host specific Java compiler flags
1900 . ${srcdir}/configure.host
1902 LIBGCJ_CFLAGS="${libgcj_cflags}"
1903 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
1904 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
1914 # Only use libltdl for native builds.
1915 if test -z "${with_cross_host}"; then
1916 case $enable_ltdl_convenience in
1917 no) { echo "configure
: error
: this package needs a convenience libltdl
" 1>&2; exit 1; } ;;
1918 "") enable_ltdl_convenience=yes
1919 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
1921 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
1922 INCLTDL='-I${top_srcdir}/''libltdl'
1926 cat >> confdefs.h <<\EOF
1930 # Sigh. Libtool's macro doesn't do the right thing.
1931 INCLTDL="-I\$
(top_srcdir
)/libltdl
$INCLTDL"
1932 # FIXME: this is a hack.
1933 sub_auxdir="`cd $ac_aux_dir && pwd`"
1934 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
1939 # Check whether --enable-shared or --disable-shared was given.
1940 if test "${enable_shared+set}" = set; then
1941 enableval="$enable_shared"
1942 p=${PACKAGE-default}
1944 yes) enable_shared=yes ;;
1945 no) enable_shared=no ;;
1948 # Look at the argument we got. We use all the common list separators.
1949 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1950 for pkg in $enableval; do
1951 if test "X
$pkg" = "X
$p"; then
1962 # Check whether --enable-static or --disable-static was given.
1963 if test "${enable_static+set}" = set; then
1964 enableval="$enable_static"
1965 p=${PACKAGE-default}
1967 yes) enable_static=yes ;;
1968 no) enable_static=no ;;
1971 # Look at the argument we got. We use all the common list separators.
1972 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1973 for pkg in $enableval; do
1974 if test "X
$pkg" = "X
$p"; then
1985 # Check whether --enable-fast-install or --disable-fast-install was given.
1986 if test "${enable_fast_install+set}" = set; then
1987 enableval="$enable_fast_install"
1988 p=${PACKAGE-default}
1990 yes) enable_fast_install=yes ;;
1991 no) enable_fast_install=no ;;
1993 enable_fast_install=no
1994 # Look at the argument we got. We use all the common list separators.
1995 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1996 for pkg in $enableval; do
1997 if test "X
$pkg" = "X
$p"; then
1998 enable_fast_install=yes
2005 enable_fast_install=yes
2008 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2009 if test "${with_gnu_ld+set}" = set; then
2010 withval="$with_gnu_ld"
2011 test "$withval" = no || with_gnu_ld=yes
2017 if test "$GCC" = yes; then
2018 # Check if gcc -print-prog-name=ld gives a path.
2019 echo $ac_n "checking
for ld used by GCC
""...
$ac_c" 1>&6
2020 echo "configure
:2021: checking
for ld used by GCC
" >&5
2023 # gcc leaves a trailing carriage return which upsets mingw
2024 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2026 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2029 # Accept absolute paths.
2030 [\\/]* | [A-Za-z]:[\\/]*)
2031 re_direlt='/[^/][^/]*/\.\./'
2032 # Canonicalize the path of ld
2033 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2034 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2035 ac_prog=`echo $ac_prog| sed "s
%$re_direlt%/%"`
2037 test -z "$LD" && LD="$ac_prog"
2040 # If it fails, then pretend we aren't using GCC.
2044 # If it is relative, then search for the first ld in PATH.
2048 elif test "$with_gnu_ld" = yes; then
2049 echo $ac_n "checking
for GNU ld
""...
$ac_c" 1>&6
2050 echo "configure
:2051: checking
for GNU ld
" >&5
2052 echo $ac_n "checking
for non-GNU ld
""...
$ac_c" 1>&6
2053 echo "configure
:2054: checking
for non-GNU ld
" >&5
2055 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
2056 echo $ac_n "(cached
) $ac_c" 1>&6
2058 if test -z "$LD"; then
2059 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2060 for ac_dir in $PATH; do
2061 test -z "$ac_dir" && ac_dir=.
2062 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2063 lt_cv_path_LD="$ac_dir/$ac_prog"
2064 # Check to see if the program is GNU ld. I'd rather use --version,
2065 # but apparently some GNU ld's only accept -v.
2066 # Break only if it was the GNU/non-GNU ld that we prefer.
2067 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2068 test "$with_gnu_ld" != no && break
2070 test "$with_gnu_ld" != yes && break
2076 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2081 if test -n "$LD"; then
2082 echo "$ac_t""$LD" 1>&6
2084 echo "$ac_t""no
" 1>&6
2086 test -z "$LD" && { echo "configure
: error
: no acceptable ld found
in \
$PATH" 1>&2; exit 1; }
2087 echo $ac_n "checking
if the linker
($LD) is GNU ld
""...
$ac_c" 1>&6
2088 echo "configure
:2089: checking
if the linker
($LD) is GNU ld
" >&5
2089 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
2090 echo $ac_n "(cached
) $ac_c" 1>&6
2092 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2093 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2094 lt_cv_prog_gnu_ld=yes
2096 lt_cv_prog_gnu_ld=no
2100 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
2101 with_gnu_ld=$lt_cv_prog_gnu_ld
2104 echo $ac_n "checking
for $LD option to reload object files
""...
$ac_c" 1>&6
2105 echo "configure
:2106: checking
for $LD option to reload object files
" >&5
2106 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
2107 echo $ac_n "(cached
) $ac_c" 1>&6
2109 lt_cv_ld_reload_flag='-r'
2112 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
2113 reload_flag=$lt_cv_ld_reload_flag
2114 test -n "$reload_flag" && reload_flag=" $reload_flag"
2116 echo $ac_n "checking
for BSD-compatible nm
""...
$ac_c" 1>&6
2117 echo "configure
:2118: checking
for BSD-compatible nm
" >&5
2118 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
2119 echo $ac_n "(cached
) $ac_c" 1>&6
2121 if test -n "$NM"; then
2122 # Let the user override the test.
2125 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2126 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2127 test -z "$ac_dir" && ac_dir=.
2128 tmp_nm=$ac_dir/${ac_tool_prefix}nm
2129 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
2130 # Check to see if the nm accepts a BSD-compat flag.
2131 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2132 # nm: unknown option "B
" ignored
2133 # Tru64's nm complains that /dev/null is an invalid object file
2134 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
2135 lt_cv_path_NM="$tmp_nm -B"
2137 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2138 lt_cv_path_NM="$tmp_nm -p"
2141 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2142 continue # so that we can try to find one that supports BSD flags
2147 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2152 echo "$ac_t""$NM" 1>&6
2154 echo $ac_n "checking how to recognise dependant libraries
""...
$ac_c" 1>&6
2155 echo "configure
:2156: checking how to recognise dependant libraries
" >&5
2156 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
2157 echo $ac_n "(cached
) $ac_c" 1>&6
2159 lt_cv_file_magic_cmd='$MAGIC_CMD'
2160 lt_cv_file_magic_test_file=
2161 lt_cv_deplibs_check_method='unknown'
2162 # Need to set the preceding variable on all platforms that support
2163 # interlibrary dependencies.
2164 # 'none' -- dependencies not supported.
2165 # `unknown' -- same as none, but documents that we really don't know.
2166 # 'pass_all' -- all dependencies passed with no checks.
2167 # 'test_compile' -- check by making test program.
2168 # 'file_magic [regex]' -- check by looking for files in library path
2169 # which responds to the $file_magic_cmd with a given egrep regex.
2170 # If you have `file' or equivalent on your system and you're not sure
2171 # whether `pass_all' will *always* work, you probably want this one.
2175 lt_cv_deplibs_check_method=pass_all
2179 lt_cv_deplibs_check_method=pass_all
2183 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2184 lt_cv_file_magic_cmd='/usr/bin/file -L'
2185 lt_cv_file_magic_test_file=/shlib/libc.so
2188 cygwin* | mingw* |pw32*)
2189 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2190 lt_cv_file_magic_cmd='$OBJDUMP -f'
2193 darwin* | rhapsody*)
2194 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2195 lt_cv_file_magic_cmd='/usr/bin/file -L'
2197 rhapsody* | darwin1.012)
2198 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
2201 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2207 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2210 # Not sure whether the presence of OpenBSD here was a mistake.
2211 # Let's accept both of them until this is cleared up.
2212 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2213 lt_cv_file_magic_cmd=/usr/bin/file
2214 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2218 lt_cv_deplibs_check_method=pass_all
2223 lt_cv_deplibs_check_method=pass_all
2227 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2228 lt_cv_file_magic_cmd=/usr/bin/file
2229 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2235 # this will be overridden with pass_all, but let us keep it just in case
2236 lt_cv_deplibs_check_method="file_magic ELF
32-bit MSB dynamic lib MIPS
- version
1"
2240 *-32|*"-32 ") libmagic=32-bit;;
2241 *-n32|*"-n32 ") libmagic=N32;;
2242 *-64|*"-64 ") libmagic=64-bit;;
2243 *) libmagic=never-match;;
2245 # this will be overridden with pass_all, but let us keep it just in case
2246 lt_cv_deplibs_check_method="file_magic ELF
${libmagic} MSB mips-
[1234] dynamic lib MIPS
- version
1"
2249 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2250 lt_cv_deplibs_check_method=pass_all
2253 # This must be Linux ELF.
2256 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2257 lt_cv_deplibs_check_method=pass_all ;;
2259 # glibc up to 2.1.1 does not perform some relocations on ARM
2260 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2262 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2266 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2267 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2269 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2274 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2275 lt_cv_file_magic_cmd=/usr/bin/file
2276 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2279 osf3* | osf4* | osf5*)
2280 # this will be overridden with pass_all, but let us keep it just in case
2281 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2282 lt_cv_file_magic_test_file=/shlib/libc.so
2283 lt_cv_deplibs_check_method=pass_all
2287 lt_cv_deplibs_check_method=pass_all
2291 lt_cv_deplibs_check_method=pass_all
2292 lt_cv_file_magic_test_file=/lib/libc.so
2295 sysv5uw[78]* | sysv4*uw2*)
2296 lt_cv_deplibs_check_method=pass_all
2299 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2300 case $host_vendor in
2302 lt_cv_deplibs_check_method=pass_all
2305 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]'
2306 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2314 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2315 file_magic_cmd=$lt_cv_file_magic_cmd
2316 deplibs_check_method=$lt_cv_deplibs_check_method
2318 echo $ac_n "checking
for object suffix
""...
$ac_c" 1>&6
2319 echo "configure
:2320: checking
for object suffix
" >&5
2320 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2321 echo $ac_n "(cached
) $ac_c" 1>&6
2324 echo 'int i = 1;' > conftest.$ac_ext
2325 if { (eval echo configure:2326: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2326 for ac_file in conftest.*; do
2329 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2333 { echo "configure
: error
: installation or configuration problem
; compiler does not work
" 1>&2; exit 1; }
2338 echo "$ac_t""$ac_cv_objext" 1>&6
2339 OBJEXT=$ac_cv_objext
2340 ac_objext=$ac_cv_objext
2342 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2344 # Only perform the check for file, if the check method requires it
2345 case $deplibs_check_method in
2347 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2348 echo $ac_n "checking
for ${ac_tool_prefix}file""...
$ac_c" 1>&6
2349 echo "configure
:2350: checking
for ${ac_tool_prefix}file" >&5
2350 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2351 echo $ac_n "(cached
) $ac_c" 1>&6
2355 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2358 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2361 ac_save_MAGIC_CMD="$MAGIC_CMD"
2362 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2363 ac_dummy="/usr
/bin
:$PATH"
2364 for ac_dir in $ac_dummy; do
2365 test -z "$ac_dir" && ac_dir=.
2366 if test -f $ac_dir/${ac_tool_prefix}file; then
2367 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2368 if test -n "$file_magic_test_file"; then
2369 case $deplibs_check_method in
2371 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2372 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2373 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2374 egrep "$file_magic_regex" > /dev/null; then
2379 *** Warning: the command libtool uses to detect shared libraries,
2380 *** $file_magic_cmd, produces output that libtool cannot recognize.
2381 *** The result is that libtool may fail to recognize shared libraries
2382 *** as such. This will affect the creation of libtool libraries that
2383 *** depend on shared libraries, but programs linked with such libtool
2384 *** libraries will work regardless of this problem. Nevertheless, you
2385 *** may want to report the problem to your system manager and/or to
2386 *** bug-libtool@gnu.org
2396 MAGIC_CMD="$ac_save_MAGIC_CMD"
2401 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2402 if test -n "$MAGIC_CMD"; then
2403 echo "$ac_t""$MAGIC_CMD" 1>&6
2405 echo "$ac_t""no
" 1>&6
2408 if test -z "$lt_cv_path_MAGIC_CMD"; then
2409 if test -n "$ac_tool_prefix"; then
2410 echo $ac_n "checking
for file""...
$ac_c" 1>&6
2411 echo "configure
:2412: checking
for file" >&5
2412 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2413 echo $ac_n "(cached
) $ac_c" 1>&6
2417 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2420 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2423 ac_save_MAGIC_CMD="$MAGIC_CMD"
2424 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2425 ac_dummy="/usr
/bin
:$PATH"
2426 for ac_dir in $ac_dummy; do
2427 test -z "$ac_dir" && ac_dir=.
2428 if test -f $ac_dir/file; then
2429 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2430 if test -n "$file_magic_test_file"; then
2431 case $deplibs_check_method in
2433 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2434 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2435 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2436 egrep "$file_magic_regex" > /dev/null; then
2441 *** Warning: the command libtool uses to detect shared libraries,
2442 *** $file_magic_cmd, produces output that libtool cannot recognize.
2443 *** The result is that libtool may fail to recognize shared libraries
2444 *** as such. This will affect the creation of libtool libraries that
2445 *** depend on shared libraries, but programs linked with such libtool
2446 *** libraries will work regardless of this problem. Nevertheless, you
2447 *** may want to report the problem to your system manager and/or to
2448 *** bug-libtool@gnu.org
2458 MAGIC_CMD="$ac_save_MAGIC_CMD"
2463 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2464 if test -n "$MAGIC_CMD"; then
2465 echo "$ac_t""$MAGIC_CMD" 1>&6
2467 echo "$ac_t""no
" 1>&6
2479 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
2480 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2481 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2482 echo "configure
:2483: checking
for $ac_word" >&5
2483 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2484 echo $ac_n "(cached
) $ac_c" 1>&6
2486 if test -n "$RANLIB"; then
2487 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2489 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2491 for ac_dir in $ac_dummy; do
2492 test -z "$ac_dir" && ac_dir=.
2493 if test -f $ac_dir/$ac_word; then
2494 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
2501 RANLIB="$ac_cv_prog_RANLIB"
2502 if test -n "$RANLIB"; then
2503 echo "$ac_t""$RANLIB" 1>&6
2505 echo "$ac_t""no
" 1>&6
2509 if test -z "$ac_cv_prog_RANLIB"; then
2510 if test -n "$ac_tool_prefix"; then
2511 # Extract the first word of "ranlib
", so it can be a program name with args.
2512 set dummy ranlib; ac_word=$2
2513 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2514 echo "configure
:2515: checking
for $ac_word" >&5
2515 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2516 echo $ac_n "(cached
) $ac_c" 1>&6
2518 if test -n "$RANLIB"; then
2519 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2521 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2523 for ac_dir in $ac_dummy; do
2524 test -z "$ac_dir" && ac_dir=.
2525 if test -f $ac_dir/$ac_word; then
2526 ac_cv_prog_RANLIB="ranlib
"
2531 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2534 RANLIB="$ac_cv_prog_RANLIB"
2535 if test -n "$RANLIB"; then
2536 echo "$ac_t""$RANLIB" 1>&6
2538 echo "$ac_t""no
" 1>&6
2546 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
2547 set dummy ${ac_tool_prefix}strip; ac_word=$2
2548 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2549 echo "configure
:2550: checking
for $ac_word" >&5
2550 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2551 echo $ac_n "(cached
) $ac_c" 1>&6
2553 if test -n "$STRIP"; then
2554 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2556 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2558 for ac_dir in $ac_dummy; do
2559 test -z "$ac_dir" && ac_dir=.
2560 if test -f $ac_dir/$ac_word; then
2561 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
2568 STRIP="$ac_cv_prog_STRIP"
2569 if test -n "$STRIP"; then
2570 echo "$ac_t""$STRIP" 1>&6
2572 echo "$ac_t""no
" 1>&6
2576 if test -z "$ac_cv_prog_STRIP"; then
2577 if test -n "$ac_tool_prefix"; then
2578 # Extract the first word of "strip
", so it can be a program name with args.
2579 set dummy strip; ac_word=$2
2580 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2581 echo "configure
:2582: checking
for $ac_word" >&5
2582 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2583 echo $ac_n "(cached
) $ac_c" 1>&6
2585 if test -n "$STRIP"; then
2586 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2588 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2590 for ac_dir in $ac_dummy; do
2591 test -z "$ac_dir" && ac_dir=.
2592 if test -f $ac_dir/$ac_word; then
2593 ac_cv_prog_STRIP="strip
"
2598 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2601 STRIP="$ac_cv_prog_STRIP"
2602 if test -n "$STRIP"; then
2603 echo "$ac_t""$STRIP" 1>&6
2605 echo "$ac_t""no
" 1>&6
2614 # Check for any special flags to pass to ltconfig.
2615 libtool_flags="--cache-file=$cache_file"
2616 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2617 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2618 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2619 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2620 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2621 libtool_flags="$libtool_flags --enable-dlopen"
2623 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2624 if test "${enable_libtool_lock+set}" = set; then
2625 enableval="$enable_libtool_lock"
2629 test "x
$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2630 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2632 # Check whether --with-pic or --without-pic was given.
2633 if test "${with_pic+set}" = set; then
2640 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2641 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2643 # Some flags need to be propagated to the compiler or linker for good
2647 # Find out which ABI we are using.
2648 echo '#line 2649 "configure
"' > conftest.$ac_ext
2649 if { (eval echo configure:2650: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2650 case `/usr/bin/file conftest.$ac_objext` in
2666 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2667 SAVE_CFLAGS="$CFLAGS"
2668 CFLAGS="$CFLAGS -belf"
2669 echo $ac_n "checking whether the C compiler needs
-belf""...
$ac_c" 1>&6
2670 echo "configure
:2671: checking whether the C compiler needs
-belf" >&5
2671 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2672 echo $ac_n "(cached
) $ac_c" 1>&6
2676 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2677 ac_cpp='$CPP $CPPFLAGS'
2678 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2679 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2680 cross_compiling=$ac_cv_prog_cc_cross
2682 cat > conftest.$ac_ext <<EOF
2683 #line 2684 "configure
"
2684 #include "confdefs.h
"
2690 if { (eval echo configure:2691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2692 lt_cv_cc_needs_belf=yes
2694 echo "configure
: failed program was
:" >&5
2695 cat conftest.$ac_ext >&5
2697 lt_cv_cc_needs_belf=no
2701 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2702 ac_cpp='$CPP $CPPFLAGS'
2703 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2704 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2705 cross_compiling=$ac_cv_prog_cc_cross
2709 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2710 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2711 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2712 CFLAGS="$SAVE_CFLAGS"
2719 echo $ac_n "checking how to run the C
++ preprocessor
""...
$ac_c" 1>&6
2720 echo "configure
:2721: checking how to run the C
++ preprocessor
" >&5
2721 if test -z "$CXXCPP"; then
2722 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2723 echo $ac_n "(cached
) $ac_c" 1>&6
2726 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2727 ac_cpp='$CXXCPP $CPPFLAGS'
2728 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2729 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2730 cross_compiling=$ac_cv_prog_cxx_cross
2731 CXXCPP="${CXX-g++} -E"
2732 cat > conftest.$ac_ext <<EOF
2733 #line 2734 "configure
"
2734 #include "confdefs.h
"
2737 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
2738 { (eval echo configure:2739: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2739 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
2740 if test -z "$ac_err"; then
2744 echo "configure
: failed program was
:" >&5
2745 cat conftest.$ac_ext >&5
2750 ac_cv_prog_CXXCPP="$CXXCPP"
2752 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2753 ac_cpp='$CPP $CPPFLAGS'
2754 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2755 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2756 cross_compiling=$ac_cv_prog_cc_cross
2759 CXXCPP="$ac_cv_prog_CXXCPP"
2760 echo "$ac_t""$CXXCPP" 1>&6
2763 # Save cache, so that ltconfig can load it
2764 cat > confcache <<\EOF
2765 # This file is a shell script that caches the results of configure
2766 # tests run on this system so they can be shared between configure
2767 # scripts and configure runs. It is not useful on other systems.
2768 # If it contains results you don't want to keep, you may remove or edit it.
2770 # By default, configure uses ./config.cache as the cache file,
2771 # creating it if it does not exist already. You can give configure
2772 # the --cache-file=FILE option to use a different cache file; that is
2773 # what configure does when it calls configure scripts in
2774 # subdirectories, so they share the cache.
2775 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2776 # config.status only pays attention to the cache file if you give it the
2777 # --recheck option to rerun configure.
2780 # The following way of writing the cache mishandles newlines in values,
2781 # but we know of no workaround that is simple, portable, and efficient.
2782 # So, don't put newlines in cache variables' values.
2783 # Ultrix sh set writes to stderr and can't be redirected directly,
2784 # and sets the high bit in the cache file unless we assign to the vars.
2786 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2788 # `set' does not quote correctly, so add quotes (double-quote substitution
2789 # turns \\\\ into \\, and sed turns \\ into \).
2791 -e "s
/'/'\\\\''/g
" \
2792 -e "s
/^
\\([a-zA-Z0-9_
]*_cv_
[a-zA-Z0-9_
]*\\)=\\(.
*\\)/\\1=\
${\\1='\\2'}/p
"
2795 # `set' quotes correctly as required by POSIX, so do not add quotes.
2796 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2799 if cmp -s $cache_file confcache; then
2802 if test -w $cache_file; then
2803 echo "updating cache
$cache_file"
2804 cat confcache > $cache_file
2806 echo "not updating unwritable cache
$cache_file"
2812 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2813 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2814 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2815 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2816 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2817 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2818 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2819 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2820 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2821 || { echo "configure
: error
: libtool configure failed
" 1>&2; exit 1; }
2823 # Reload cache, that may have been modified by ltconfig
2824 if test -r "$cache_file"; then
2825 echo "loading cache
$cache_file"
2828 echo "creating cache
$cache_file"
2833 # This can be used to rebuild libtool when needed
2834 LIBTOOL_DEPS="$ac_aux_dir/ltconfig
$ac_aux_dir/ltmain.sh
$ac_aux_dir/ltcf-c.sh
"
2836 # Always use our own libtool.
2837 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2839 # Redirect the config.log output again, so that the ltconfig log is not
2840 # clobbered by the next message.
2841 exec 5>>./config.log
2845 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh
"
2847 lt_save_CFLAGS="$CFLAGS"
2848 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2849 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2850 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2851 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2852 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2853 deplibs_check_method="$deplibs_check_method" \
2854 file_magic_cmd="$file_magic_cmd" \
2855 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2856 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2857 || { echo "configure
: error
: libtool tag configuration failed
" 1>&2; exit 1; }
2859 CFLAGS="$lt_save_CFLAGS"
2861 # Redirect the config.log output again, so that the ltconfig log is not
2862 # clobbered by the next message.
2863 exec 5>>./config.log
2873 if test -z "$with_target_subdir" || test "$with_target_subdir" = ".
"; then
2882 if test -d $srcdir/testsuite; then
2884 TESTSUBDIR_FALSE='#'
2890 # Check whether --enable-fast-character or --disable-fast-character was given.
2891 if test "${enable_fast_character+set}" = set; then
2892 enableval="$enable_fast_character"
2896 cat >> confdefs.h <<\EOF
2897 #define COMPACT_CHARACTER 1
2903 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
2904 if test "${enable_getenv_properties+set}" = set; then
2905 enableval="$enable_getenv_properties"
2910 if test -z "$enable_getenv_properties"; then
2911 enable_getenv_properties=${enable_getenv_properties_default-yes}
2913 if test "$enable_getenv_properties" = no; then
2914 cat >> confdefs.h <<\EOF
2915 #define DISABLE_GETENV_PROPERTIES 1
2921 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
2922 if test "${enable_hash_synchronization+set}" = set; then
2923 enableval="$enable_hash_synchronization"
2928 if test -z "$enable_hash_synchronization"; then
2929 enable_hash_synchronization=$enable_hash_synchronization_default
2935 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
2936 if test "${enable_libgcj_debug+set}" = set; then
2937 enableval="$enable_libgcj_debug"
2938 if test "$enable_libgcj_debug" = yes; then
2939 cat >> confdefs.h <<\EOF
2948 # Check whether --enable-interpreter or --disable-interpreter was given.
2949 if test "${enable_interpreter+set}" = set; then
2950 enableval="$enable_interpreter"
2951 if test "$enable_interpreter" = yes; then
2952 # This can also be set in configure.host.
2953 libgcj_interpreter=yes
2954 elif test "$enable_interpreter" = no; then
2955 libgcj_interpreter=no
2960 if test "$libgcj_interpreter" = yes; then
2961 cat >> confdefs.h <<\EOF
2962 #define INTERPRETER 1
2967 echo $ac_n "checking
for exception model to use
""...
$ac_c" 1>&6
2968 echo "configure
:2969: checking
for exception model to use
" >&5
2971 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2972 ac_cpp='$CXXCPP $CPPFLAGS'
2973 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2974 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2975 cross_compiling=$ac_cv_prog_cxx_cross
2977 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
2978 if test "${enable_sjlj_exceptions+set}" = set; then
2979 enableval="$enable_sjlj_exceptions"
2982 cat > conftest.$ac_ext << EOF
2983 #line 2984 "configure
"
2992 old_CXXFLAGS="$CXXFLAGS"
2994 if { (eval echo configure:2995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2995 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
2996 enable_sjlj_exceptions=yes
2997 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
2998 enable_sjlj_exceptions=no
3001 CXXFLAGS="$old_CXXFLAGS"
3005 if test x$enable_sjlj_exceptions = xyes; then
3006 cat >> confdefs.h <<\EOF
3007 #define SJLJ_EXCEPTIONS 1
3010 ac_exception_model_name=sjlj
3011 elif test x$enable_sjlj_exceptions = xno; then
3012 ac_exception_model_name="call frame
"
3014 { echo "configure
: error
: unable to detect exception model
" 1>&2; exit 1; }
3017 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3018 ac_cpp='$CPP $CPPFLAGS'
3019 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3020 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3021 cross_compiling=$ac_cv_prog_cc_cross
3023 echo "$ac_t""$ac_exception_model_name" 1>&6
3025 # Check whether --enable-java-net or --disable-java-net was given.
3026 if test "${enable_java_net+set}" = set; then
3027 enableval="$enable_java_net"
3032 if test -z "$enable_java_net"; then
3033 enable_java_net=${enable_java_net_default-yes}
3035 if test "$enable_java_net" = no; then
3036 cat >> confdefs.h <<\EOF
3037 #define DISABLE_JAVA_NET 1
3042 # Check whether --with-libffi or --without-libffi was given.
3043 if test "${with_libffi+set}" = set; then
3044 withval="$with_libffi"
3047 with_libffi=${with_libffi_default-yes}
3053 if test "$with_libffi" != no; then
3054 cat >> confdefs.h <<\EOF
3055 #define USE_LIBFFI 1
3058 LIBFFI=../libffi/libfficonvenience.la
3059 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I$(MULTIBUILDTOP)../libffi/include'
3064 # Check whether --enable-jvmpi or --disable-jvmpi was given.
3065 if test "${enable_jvmpi+set}" = set; then
3066 enableval="$enable_jvmpi"
3071 if test "$enable_jvmpi" != no; then
3072 cat >> confdefs.h <<\EOF
3073 #define ENABLE_JVMPI 1
3079 # Check whether --with-ecos or --without-ecos was given.
3080 if test "${with_ecos+set}" = set; then
3081 withval="$with_ecos"
3082 TARGET_ECOS="$with_ecos"
3087 case "$TARGET_ECOS" in
3089 FILE_DESCRIPTOR=natFileDescriptorPosix.cc
3090 PROCESS=${PROCESS-Posix}
3093 FILE_DESCRIPTOR=natFileDescriptorEcos.cc
3095 cat >> confdefs.h <<\EOF
3102 echo $ac_n "checking how to run the C preprocessor
""...
$ac_c" 1>&6
3103 echo "configure
:3104: checking how to run the C preprocessor
" >&5
3104 # On Suns, sometimes $CPP names a directory.
3105 if test -n "$CPP" && test -d "$CPP"; then
3108 if test -z "$CPP"; then
3109 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
3110 echo $ac_n "(cached
) $ac_c" 1>&6
3112 # This must be in double quotes, not single quotes, because CPP may get
3113 # substituted into the Makefile and "${CC-cc}" will confuse make.
3115 # On the NeXT, cc -E runs the code through the compiler's parser,
3116 # not just through cpp.
3117 cat > conftest.$ac_ext <<EOF
3118 #line 3119 "configure
"
3119 #include "confdefs.h
"
3123 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
3124 { (eval echo configure:3125: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3125 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
3126 if test -z "$ac_err"; then
3130 echo "configure
: failed program was
:" >&5
3131 cat conftest.$ac_ext >&5
3133 CPP="${CC-cc} -E -traditional-cpp"
3134 cat > conftest.$ac_ext <<EOF
3135 #line 3136 "configure
"
3136 #include "confdefs.h
"
3140 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
3141 { (eval echo configure:3142: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3142 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
3143 if test -z "$ac_err"; then
3147 echo "configure
: failed program was
:" >&5
3148 cat conftest.$ac_ext >&5
3150 CPP="${CC-cc} -nologo -E"
3151 cat > conftest.$ac_ext <<EOF
3152 #line 3153 "configure
"
3153 #include "confdefs.h
"
3157 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
3158 { (eval echo configure:3159: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3159 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
3160 if test -z "$ac_err"; then
3164 echo "configure
: failed program was
:" >&5
3165 cat conftest.$ac_ext >&5
3174 ac_cv_prog_CPP="$CPP"
3176 CPP="$ac_cv_prog_CPP"
3178 ac_cv_prog_CPP="$CPP"
3180 echo "$ac_t""$CPP" 1>&6
3182 cat > conftest.$ac_ext <<EOF
3183 #line 3184 "configure
"
3184 #include "confdefs.h
"
3187 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3188 egrep "uint32_t
" >/dev/null 2>&1; then
3190 cat >> confdefs.h <<\EOF
3191 #define HAVE_INT32_DEFINED 1
3197 cat > conftest.$ac_ext <<EOF
3198 #line 3199 "configure
"
3199 #include "confdefs.h
"
3200 #include <inttypes.h>
3202 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3203 egrep "uint32_t
" >/dev/null 2>&1; then
3205 cat >> confdefs.h <<\EOF
3206 #define HAVE_INT32_DEFINED 1
3212 cat > conftest.$ac_ext <<EOF
3213 #line 3214 "configure
"
3214 #include "confdefs.h
"
3215 #include <sys/types.h>
3217 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3218 egrep "u_int32_t
" >/dev/null 2>&1; then
3220 cat >> confdefs.h <<\EOF
3221 #define HAVE_BSD_INT32_DEFINED 1
3227 cat > conftest.$ac_ext <<EOF
3228 #line 3229 "configure
"
3229 #include "confdefs.h
"
3230 #include <sys/config.h>
3232 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3233 egrep "u_int32_t
" >/dev/null 2>&1; then
3235 cat >> confdefs.h <<\EOF
3236 #define HAVE_BSD_INT32_DEFINED 1
3244 cat > conftest.$ac_ext <<EOF
3245 #line 3246 "configure
"
3246 #include "confdefs.h
"
3249 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3250 egrep "mktime
" >/dev/null 2>&1; then
3252 cat >> confdefs.h <<\EOF
3253 #define HAVE_MKTIME 1
3259 cat > conftest.$ac_ext <<EOF
3260 #line 3261 "configure
"
3261 #include "confdefs.h
"
3264 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3265 egrep "localtime
" >/dev/null 2>&1; then
3267 cat >> confdefs.h <<\EOF
3268 #define HAVE_LOCALTIME 1
3275 test -d java || mkdir java
3276 test -d java/io || mkdir java/io
3277 test -d gnu || mkdir gnu
3280 test -d java/lang || mkdir java/lang
3287 LIBGCJTESTSPEC="-L`pwd`/.libs
-rpath `pwd`/.libs
"
3290 # Check whether --with-system-zlib or --without-system-zlib was given.
3291 if test "${with_system_zlib+set}" = set; then
3292 withval="$with_system_zlib"
3303 echo $ac_n "checking
for garbage collector to use
""...
$ac_c" 1>&6
3304 echo "configure
:3305: checking
for garbage collector to use
" >&5
3305 # Check whether --enable-java-gc or --disable-java-gc was given.
3306 if test "${enable_java_gc+set}" = set; then
3307 enableval="$enable_java_gc"
3323 echo "$ac_t""boehm
" 1>&6
3324 GCDEPS='$(top_builddir)/../boehm-gc/libgcjgc.la'
3325 # We include the path to the boehm-gc build directory.
3326 # See Makefile.am to understand why.
3327 GCLIBS="$GCDEPS -L\$
(here
)/..
/boehm-gc
/$libsubdir"
3328 GCINCS='-I$(top_srcdir)/../boehm-gc/include'
3330 JC1GCSPEC='-fuse-boehm-gc'
3331 GCTESTSPEC="-L`pwd`/..
/boehm-gc
/.libs
-rpath `pwd`/..
/boehm-gc
/.libs
"
3332 GCINCS="$GCINCS `cat ../boehm-gc/boehm-cflags`"
3335 cat >> confdefs.h <<\EOF
3336 #define HAVE_BOEHM_GC 1
3341 echo "$ac_t""none
" 1>&6
3346 { echo "configure
: error
: unrecognized collector
\"$GC\"" 1>&2; exit 1; }
3359 echo $ac_n "checking
for thread model used by GCC
""...
$ac_c" 1>&6
3360 echo "configure
:3361: checking
for thread model used by GCC
" >&5
3361 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3362 echo "$ac_t""$THREADS" 1>&6
3372 cat >> confdefs.h <<\EOF
3373 #define LINUX_THREADS 1
3379 decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks)
3380 { echo "configure
: error
: thread package
$THREADS not yet supported
" 1>&2; exit 1; }
3383 { echo "configure
: error
: $THREADS is an unknown thread package
" 1>&2; exit 1; }
3397 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
3400 THREADLIBS=-lpthread
3401 THREADSPEC=-lpthread
3404 THREADOBJS=posix-threads.lo
3405 THREADH=posix-threads.h
3406 # MIT pthreads doesn't seem to have the mutexattr functions.
3407 # But for now we don't check for it. We just assume you aren't
3408 # using MIT pthreads.
3409 cat >> confdefs.h <<\EOF
3410 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
3414 # If we're using the Boehm GC, then we happen to know that it
3415 # defines _REENTRANT, so we don't bother. Eww.
3416 if test "$GC" != boehm; then
3417 cat >> confdefs.h <<\EOF
3418 #define _REENTRANT 1
3422 cat >> confdefs.h <<\EOF
3423 #define _POSIX_PTHREAD_SEMANTICS 1
3429 THREADOBJS=no-threads.lo
3430 THREADH=no-threads.h
3441 # Hash synchronization is only useful with posix threads right now.
3442 if test "$enable_hash_synchronization" = yes && test "$THREADS" = "posix
"; then
3443 HASH_SYNC_SPEC=-fhash-synchronization
3444 cat >> confdefs.h <<\EOF
3445 #define JV_HASH_SYNCHRONIZATION 1
3454 if test "$GCC" = yes; then
3466 # We're in the tree with gcc, and need to include some of its headers.
3467 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
3469 if test -n "${with_cross_host}"; then
3470 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
3471 # may not work correctly, because the compiler may not be able to
3474 # We assume newlib. This lets us hard-code the functions we know
3476 cat >> confdefs.h <<\EOF
3477 #define HAVE_MEMMOVE 1
3480 cat >> confdefs.h <<\EOF
3481 #define HAVE_MEMCPY 1
3484 cat >> confdefs.h <<\EOF
3485 #define HAVE_STRERROR 1
3488 cat >> confdefs.h <<\EOF
3489 #define HAVE_GMTIME_R 1
3492 cat >> confdefs.h <<\EOF
3493 #define HAVE_LOCALTIME_R 1
3496 cat >> confdefs.h <<\EOF
3497 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
3500 cat >> confdefs.h <<\EOF
3501 #define HAVE_ALLOCA 1
3505 cat >> confdefs.h <<\EOF
3511 ZLIBTESTSPEC="-L`pwd`/..
/zlib
/.libs
-rpath `pwd`/..
/zlib
/.libs
"
3513 # If Canadian cross, then don't pick up tools from the build
3515 if test x"$build" != x"$with_cross_host" && x"$build" != x"$target"; then
3518 GCJ="${target_alias}-gcj"
3522 for ac_func in strerror ioctl select fstat open fsync sleep
3524 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
3525 echo "configure
:3526: checking
for $ac_func" >&5
3526 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3527 echo $ac_n "(cached
) $ac_c" 1>&6
3529 cat > conftest.$ac_ext <<EOF
3530 #line 3531 "configure
"
3531 #include "confdefs.h
"
3532 /* System header to define __stub macros and hopefully few prototypes,
3533 which can conflict with char $ac_func(); below. */
3535 /* Override any gcc2 internal prototype to avoid an error. */
3536 /* We use char because int might match the return type of a gcc2
3537 builtin and then its argument prototype would still apply. */
3542 /* The GNU C library defines this for functions which it implements
3543 to always fail with ENOSYS. Some functions are actually named
3544 something starting with __ and the normal name is an alias. */
3545 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3553 if { (eval echo configure:3554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3555 eval "ac_cv_func_
$ac_func=yes"
3557 echo "configure
: failed program was
:" >&5
3558 cat conftest.$ac_ext >&5
3560 eval "ac_cv_func_
$ac_func=no
"
3565 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3566 echo "$ac_t""yes" 1>&6
3567 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3568 cat >> confdefs.h <<EOF
3569 #define $ac_tr_func 1
3573 echo "$ac_t""no
" 1>&6
3577 for ac_func in gmtime_r localtime_r readdir_r getpwuid_r getcwd
3579 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
3580 echo "configure
:3581: checking
for $ac_func" >&5
3581 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3582 echo $ac_n "(cached
) $ac_c" 1>&6
3584 cat > conftest.$ac_ext <<EOF
3585 #line 3586 "configure
"
3586 #include "confdefs.h
"
3587 /* System header to define __stub macros and hopefully few prototypes,
3588 which can conflict with char $ac_func(); below. */
3590 /* Override any gcc2 internal prototype to avoid an error. */
3591 /* We use char because int might match the return type of a gcc2
3592 builtin and then its argument prototype would still apply. */
3597 /* The GNU C library defines this for functions which it implements
3598 to always fail with ENOSYS. Some functions are actually named
3599 something starting with __ and the normal name is an alias. */
3600 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3608 if { (eval echo configure:3609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3610 eval "ac_cv_func_
$ac_func=yes"
3612 echo "configure
: failed program was
:" >&5
3613 cat conftest.$ac_ext >&5
3615 eval "ac_cv_func_
$ac_func=no
"
3620 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3621 echo "$ac_t""yes" 1>&6
3622 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3623 cat >> confdefs.h <<EOF
3624 #define $ac_tr_func 1
3628 echo "$ac_t""no
" 1>&6
3632 for ac_func in access stat mkdir rename rmdir unlink realpath utime chmod
3634 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
3635 echo "configure
:3636: checking
for $ac_func" >&5
3636 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3637 echo $ac_n "(cached
) $ac_c" 1>&6
3639 cat > conftest.$ac_ext <<EOF
3640 #line 3641 "configure
"
3641 #include "confdefs.h
"
3642 /* System header to define __stub macros and hopefully few prototypes,
3643 which can conflict with char $ac_func(); below. */
3645 /* Override any gcc2 internal prototype to avoid an error. */
3646 /* We use char because int might match the return type of a gcc2
3647 builtin and then its argument prototype would still apply. */
3652 /* The GNU C library defines this for functions which it implements
3653 to always fail with ENOSYS. Some functions are actually named
3654 something starting with __ and the normal name is an alias. */
3655 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3663 if { (eval echo configure:3664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3665 eval "ac_cv_func_
$ac_func=yes"
3667 echo "configure
: failed program was
:" >&5
3668 cat conftest.$ac_ext >&5
3670 eval "ac_cv_func_
$ac_func=no
"
3675 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3676 echo "$ac_t""yes" 1>&6
3677 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3678 cat >> confdefs.h <<EOF
3679 #define $ac_tr_func 1
3683 echo "$ac_t""no
" 1>&6
3687 for ac_func in nl_langinfo setlocale
3689 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
3690 echo "configure
:3691: checking
for $ac_func" >&5
3691 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3692 echo $ac_n "(cached
) $ac_c" 1>&6
3694 cat > conftest.$ac_ext <<EOF
3695 #line 3696 "configure
"
3696 #include "confdefs.h
"
3697 /* System header to define __stub macros and hopefully few prototypes,
3698 which can conflict with char $ac_func(); below. */
3700 /* Override any gcc2 internal prototype to avoid an error. */
3701 /* We use char because int might match the return type of a gcc2
3702 builtin and then its argument prototype would still apply. */
3707 /* The GNU C library defines this for functions which it implements
3708 to always fail with ENOSYS. Some functions are actually named
3709 something starting with __ and the normal name is an alias. */
3710 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3718 if { (eval echo configure:3719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3720 eval "ac_cv_func_
$ac_func=yes"
3722 echo "configure
: failed program was
:" >&5
3723 cat conftest.$ac_ext >&5
3725 eval "ac_cv_func_
$ac_func=no
"
3730 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3731 echo "$ac_t""yes" 1>&6
3732 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3733 cat >> confdefs.h <<EOF
3734 #define $ac_tr_func 1
3738 echo "$ac_t""no
" 1>&6
3742 for ac_func in inet_aton inet_addr
3744 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
3745 echo "configure
:3746: checking
for $ac_func" >&5
3746 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3747 echo $ac_n "(cached
) $ac_c" 1>&6
3749 cat > conftest.$ac_ext <<EOF
3750 #line 3751 "configure
"
3751 #include "confdefs.h
"
3752 /* System header to define __stub macros and hopefully few prototypes,
3753 which can conflict with char $ac_func(); below. */
3755 /* Override any gcc2 internal prototype to avoid an error. */
3756 /* We use char because int might match the return type of a gcc2
3757 builtin and then its argument prototype would still apply. */
3762 /* The GNU C library defines this for functions which it implements
3763 to always fail with ENOSYS. Some functions are actually named
3764 something starting with __ and the normal name is an alias. */
3765 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3773 if { (eval echo configure:3774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3775 eval "ac_cv_func_
$ac_func=yes"
3777 echo "configure
: failed program was
:" >&5
3778 cat conftest.$ac_ext >&5
3780 eval "ac_cv_func_
$ac_func=no
"
3785 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3786 echo "$ac_t""yes" 1>&6
3787 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3788 cat >> confdefs.h <<EOF
3789 #define $ac_tr_func 1
3793 echo "$ac_t""no
" 1>&6
3797 for ac_func in inet_pton uname inet_ntoa
3799 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
3800 echo "configure
:3801: checking
for $ac_func" >&5
3801 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3802 echo $ac_n "(cached
) $ac_c" 1>&6
3804 cat > conftest.$ac_ext <<EOF
3805 #line 3806 "configure
"
3806 #include "confdefs.h
"
3807 /* System header to define __stub macros and hopefully few prototypes,
3808 which can conflict with char $ac_func(); below. */
3810 /* Override any gcc2 internal prototype to avoid an error. */
3811 /* We use char because int might match the return type of a gcc2
3812 builtin and then its argument prototype would still apply. */
3817 /* The GNU C library defines this for functions which it implements
3818 to always fail with ENOSYS. Some functions are actually named
3819 something starting with __ and the normal name is an alias. */
3820 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3828 if { (eval echo configure:3829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3830 eval "ac_cv_func_
$ac_func=yes"
3832 echo "configure
: failed program was
:" >&5
3833 cat conftest.$ac_ext >&5
3835 eval "ac_cv_func_
$ac_func=no
"
3840 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3841 echo "$ac_t""yes" 1>&6
3842 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3843 cat >> confdefs.h <<EOF
3844 #define $ac_tr_func 1
3848 echo "$ac_t""no
" 1>&6
3852 for ac_func in backtrace fork execvp pipe sigaction
3854 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
3855 echo "configure
:3856: checking
for $ac_func" >&5
3856 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3857 echo $ac_n "(cached
) $ac_c" 1>&6
3859 cat > conftest.$ac_ext <<EOF
3860 #line 3861 "configure
"
3861 #include "confdefs.h
"
3862 /* System header to define __stub macros and hopefully few prototypes,
3863 which can conflict with char $ac_func(); below. */
3865 /* Override any gcc2 internal prototype to avoid an error. */
3866 /* We use char because int might match the return type of a gcc2
3867 builtin and then its argument prototype would still apply. */
3872 /* The GNU C library defines this for functions which it implements
3873 to always fail with ENOSYS. Some functions are actually named
3874 something starting with __ and the normal name is an alias. */
3875 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3883 if { (eval echo configure:3884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3885 eval "ac_cv_func_
$ac_func=yes"
3887 echo "configure
: failed program was
:" >&5
3888 cat conftest.$ac_ext >&5
3890 eval "ac_cv_func_
$ac_func=no
"
3895 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3896 echo "$ac_t""yes" 1>&6
3897 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3898 cat >> confdefs.h <<EOF
3899 #define $ac_tr_func 1
3903 echo "$ac_t""no
" 1>&6
3907 for ac_hdr in execinfo.h unistd.h dlfcn.h
3909 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3910 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
3911 echo "configure
:3912: checking
for $ac_hdr" >&5
3912 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3913 echo $ac_n "(cached
) $ac_c" 1>&6
3915 cat > conftest.$ac_ext <<EOF
3916 #line 3917 "configure
"
3917 #include "confdefs.h
"
3920 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
3921 { (eval echo configure:3922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3922 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
3923 if test -z "$ac_err"; then
3925 eval "ac_cv_header_
$ac_safe=yes"
3928 echo "configure
: failed program was
:" >&5
3929 cat conftest.$ac_ext >&5
3931 eval "ac_cv_header_
$ac_safe=no
"
3935 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3936 echo "$ac_t""yes" 1>&6
3937 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3938 cat >> confdefs.h <<EOF
3939 #define $ac_tr_hdr 1
3943 echo "$ac_t""no
" 1>&6
3947 echo $ac_n "checking
for dladdr
in -ldl""...
$ac_c" 1>&6
3948 echo "configure
:3949: checking
for dladdr
in -ldl" >&5
3949 ac_lib_var=`echo dl'_'dladdr | sed 'y%./+-%__p_%'`
3950 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3951 echo $ac_n "(cached
) $ac_c" 1>&6
3953 ac_save_LIBS="$LIBS"
3955 cat > conftest.$ac_ext <<EOF
3956 #line 3957 "configure
"
3957 #include "confdefs.h
"
3958 /* Override any gcc2 internal prototype to avoid an error. */
3959 /* We use char because int might match the return type of a gcc2
3960 builtin and then its argument prototype would still apply. */
3967 if { (eval echo configure:3968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3969 eval "ac_cv_lib_
$ac_lib_var=yes"
3971 echo "configure
: failed program was
:" >&5
3972 cat conftest.$ac_ext >&5
3974 eval "ac_cv_lib_
$ac_lib_var=no
"
3977 LIBS="$ac_save_LIBS"
3980 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3981 echo "$ac_t""yes" 1>&6
3983 cat >> confdefs.h <<\EOF
3984 #define HAVE_DLADDR 1
3988 echo "$ac_t""no
" 1>&6
3991 for ac_file in /proc/self/exe
3994 ac_safe=`echo "$ac_file" | sed 'y%./+-%__p_%'`
3995 echo $ac_n "checking
for $ac_file""...
$ac_c" 1>&6
3996 echo "configure
:3997: checking
for $ac_file" >&5
3997 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
3998 echo $ac_n "(cached
) $ac_c" 1>&6
4000 if test "$cross_compiling" = yes; then
4001 { echo "configure
: error
: Cannot check
for file existence when cross compiling
" 1>&2; exit 1; }
4003 if test -r $ac_file; then
4004 eval "ac_cv_file_
$ac_safe=yes"
4006 eval "ac_cv_file_
$ac_safe=no
"
4010 if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
4011 echo "$ac_t""yes" 1>&6
4012 ac_tr_file=HAVE_`echo $ac_file | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4013 cat >> confdefs.h <<EOF
4014 #define $ac_tr_file 1
4017 cat >> confdefs.h <<\EOF
4018 #define HAVE_PROC_SELF_EXE 1
4022 echo "$ac_t""no
" 1>&6
4030 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
4031 if test "${with_libiconv_prefix+set}" = set; then
4032 withval="$with_libiconv_prefix"
4034 for dir in `echo "$withval" | tr : ' '`; do
4035 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include
"; fi
4036 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib
"; fi
4042 echo $ac_n "checking
for iconv""...
$ac_c" 1>&6
4043 echo "configure
:4044: checking
for iconv" >&5
4044 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
4045 echo $ac_n "(cached
) $ac_c" 1>&6
4048 am_cv_func_iconv="no
, consider installing GNU libiconv
"
4050 cat > conftest.$ac_ext <<EOF
4051 #line 4052 "configure
"
4052 #include "confdefs.h
"
4056 iconv_t cd = iconv_open("","");
4057 iconv(cd,NULL,NULL,NULL,NULL);
4061 if { (eval echo configure:4062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4063 am_cv_func_iconv=yes
4065 echo "configure
: failed program was
:" >&5
4066 cat conftest.$ac_ext >&5
4069 if test "$am_cv_func_iconv" != yes; then
4070 am_save_LIBS="$LIBS"
4071 LIBS="$LIBS -liconv"
4072 cat > conftest.$ac_ext <<EOF
4073 #line 4074 "configure
"
4074 #include "confdefs.h
"
4078 iconv_t cd = iconv_open("","");
4079 iconv(cd,NULL,NULL,NULL,NULL);
4083 if { (eval echo configure:4084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4086 am_cv_func_iconv=yes
4088 echo "configure
: failed program was
:" >&5
4089 cat conftest.$ac_ext >&5
4092 LIBS="$am_save_LIBS"
4097 echo "$ac_t""$am_cv_func_iconv" 1>&6
4098 if test "$am_cv_func_iconv" = yes; then
4099 cat >> confdefs.h <<\EOF
4100 #define HAVE_ICONV 1
4103 echo $ac_n "checking
for iconv declaration
""...
$ac_c" 1>&6
4104 echo "configure
:4105: checking
for iconv declaration
" >&5
4105 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
4106 echo $ac_n "(cached
) $ac_c" 1>&6
4109 cat > conftest.$ac_ext <<EOF
4110 #line 4111 "configure
"
4111 #include "confdefs.h
"
4119 #if defined(__STDC__) || defined(__cplusplus)
4120 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
4129 if { (eval echo configure:4130: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4131 am_cv_proto_iconv_arg1=""
4133 echo "configure
: failed program was
:" >&5
4134 cat conftest.$ac_ext >&5
4136 am_cv_proto_iconv_arg1="const
"
4139 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
);"
4142 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
4143 echo "$ac_t""$
{ac_t
:-
4144 }$am_cv_proto_iconv" 1>&6
4145 cat >> confdefs.h <<EOF
4146 #define ICONV_CONST $am_cv_proto_iconv_arg1
4151 if test "$am_cv_lib_iconv" = yes; then
4157 for ac_func in gethostbyname_r
4159 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4160 echo "configure
:4161: checking
for $ac_func" >&5
4161 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4162 echo $ac_n "(cached
) $ac_c" 1>&6
4164 cat > conftest.$ac_ext <<EOF
4165 #line 4166 "configure
"
4166 #include "confdefs.h
"
4167 /* System header to define __stub macros and hopefully few prototypes,
4168 which can conflict with char $ac_func(); below. */
4170 /* Override any gcc2 internal prototype to avoid an error. */
4171 /* We use char because int might match the return type of a gcc2
4172 builtin and then its argument prototype would still apply. */
4177 /* The GNU C library defines this for functions which it implements
4178 to always fail with ENOSYS. Some functions are actually named
4179 something starting with __ and the normal name is an alias. */
4180 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4188 if { (eval echo configure:4189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4190 eval "ac_cv_func_
$ac_func=yes"
4192 echo "configure
: failed program was
:" >&5
4193 cat conftest.$ac_ext >&5
4195 eval "ac_cv_func_
$ac_func=no
"
4200 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4201 echo "$ac_t""yes" 1>&6
4202 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4203 cat >> confdefs.h <<EOF
4204 #define $ac_tr_func 1
4207 cat >> confdefs.h <<\EOF
4208 #define HAVE_GETHOSTBYNAME_R 1
4211 # There are two different kinds of gethostbyname_r.
4212 # We look for the one that returns `int'.
4213 # Hopefully this check is robust enough.
4214 cat > conftest.$ac_ext <<EOF
4215 #line 4216 "configure
"
4216 #include "confdefs.h
"
4219 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
4220 egrep "int.
*gethostbyname_r
" >/dev/null 2>&1; then
4223 cat >> confdefs.h <<\EOF
4224 #define GETHOSTBYNAME_R_RETURNS_INT 1
4232 *" -D_REENTRANT "*) ;;
4234 echo $ac_n "checking whether gethostbyname_r declaration requires
-D_REENTRANT""...
$ac_c" 1>&6
4235 echo "configure
:4236: checking whether gethostbyname_r declaration requires
-D_REENTRANT" >&5
4236 if eval "test \"`echo '$''{'libjava_cv_gethostbyname_r_needs_reentrant'+set}'`\" = set"; then
4237 echo $ac_n "(cached
) $ac_c" 1>&6
4241 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4242 ac_cpp='$CXXCPP $CPPFLAGS'
4243 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4244 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4245 cross_compiling=$ac_cv_prog_cxx_cross
4247 cat > conftest.$ac_ext <<EOF
4248 #line 4249 "configure
"
4249 #include "confdefs.h
"
4252 gethostbyname_r("", 0, 0);
4255 if { (eval echo configure:4256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4257 libjava_cv_gethostbyname_r_needs_reentrant=no
4259 echo "configure
: failed program was
:" >&5
4260 cat conftest.$ac_ext >&5
4262 CPPFLAGS_SAVE="$CPPFLAGS"
4263 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
4264 cat > conftest.$ac_ext <<EOF
4265 #line 4266 "configure
"
4266 #include "confdefs.h
"
4269 gethostbyname_r("", 0, 0);
4272 if { (eval echo configure:4273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4274 libjava_cv_gethostbyname_r_needs_reentrant=yes
4276 echo "configure
: failed program was
:" >&5
4277 cat conftest.$ac_ext >&5
4279 libjava_cv_gethostbyname_r_needs_reentrant=fail
4282 CPPFLAGS="$CPPFLAGS_SAVE"
4287 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4288 ac_cpp='$CPP $CPPFLAGS'
4289 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4290 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4291 cross_compiling=$ac_cv_prog_cc_cross
4296 echo "$ac_t""$libjava_cv_gethostbyname_r_needs_reentrant" 1>&6
4297 if test "x
$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
4298 cat >> confdefs.h <<\EOF
4299 #define _REENTRANT 1
4306 echo $ac_n "checking
for struct hostent_data
""...
$ac_c" 1>&6
4307 echo "configure
:4308: checking
for struct hostent_data
" >&5
4308 if eval "test \"`echo '$''{'libjava_cv_struct_hostent_data'+set}'`\" = set"; then
4309 echo $ac_n "(cached
) $ac_c" 1>&6
4311 cat > conftest.$ac_ext <<EOF
4312 #line 4313 "configure
"
4313 #include "confdefs.h
"
4315 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
4316 # define _REENTRANT 1
4320 struct hostent_data data;
4323 if { (eval echo configure:4324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4325 libjava_cv_struct_hostent_data=yes
4327 echo "configure
: failed program was
:" >&5
4328 cat conftest.$ac_ext >&5
4330 libjava_cv_struct_hostent_data=no
4335 echo "$ac_t""$libjava_cv_struct_hostent_data" 1>&6
4336 if test "x
$libjava_cv_struct_hostent_data" = xyes; then
4337 cat >> confdefs.h <<\EOF
4338 #define HAVE_STRUCT_HOSTENT_DATA 1
4344 echo "$ac_t""no
" 1>&6
4349 for ac_func in gethostbyaddr_r
4351 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4352 echo "configure
:4353: checking
for $ac_func" >&5
4353 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4354 echo $ac_n "(cached
) $ac_c" 1>&6
4356 cat > conftest.$ac_ext <<EOF
4357 #line 4358 "configure
"
4358 #include "confdefs.h
"
4359 /* System header to define __stub macros and hopefully few prototypes,
4360 which can conflict with char $ac_func(); below. */
4362 /* Override any gcc2 internal prototype to avoid an error. */
4363 /* We use char because int might match the return type of a gcc2
4364 builtin and then its argument prototype would still apply. */
4369 /* The GNU C library defines this for functions which it implements
4370 to always fail with ENOSYS. Some functions are actually named
4371 something starting with __ and the normal name is an alias. */
4372 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4380 if { (eval echo configure:4381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4382 eval "ac_cv_func_
$ac_func=yes"
4384 echo "configure
: failed program was
:" >&5
4385 cat conftest.$ac_ext >&5
4387 eval "ac_cv_func_
$ac_func=no
"
4392 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4393 echo "$ac_t""yes" 1>&6
4394 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4395 cat >> confdefs.h <<EOF
4396 #define $ac_tr_func 1
4399 cat >> confdefs.h <<\EOF
4400 #define HAVE_GETHOSTBYADDR_R 1
4403 # There are two different kinds of gethostbyaddr_r.
4404 # We look for the one that returns `int'.
4405 # Hopefully this check is robust enough.
4406 cat > conftest.$ac_ext <<EOF
4407 #line 4408 "configure
"
4408 #include "confdefs.h
"
4411 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
4412 egrep "int.
*gethostbyaddr_r
" >/dev/null 2>&1; then
4415 cat >> confdefs.h <<\EOF
4416 #define GETHOSTBYADDR_R_RETURNS_INT 1
4423 echo "$ac_t""no
" 1>&6
4428 for ac_func in gethostname
4430 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4431 echo "configure
:4432: checking
for $ac_func" >&5
4432 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4433 echo $ac_n "(cached
) $ac_c" 1>&6
4435 cat > conftest.$ac_ext <<EOF
4436 #line 4437 "configure
"
4437 #include "confdefs.h
"
4438 /* System header to define __stub macros and hopefully few prototypes,
4439 which can conflict with char $ac_func(); below. */
4441 /* Override any gcc2 internal prototype to avoid an error. */
4442 /* We use char because int might match the return type of a gcc2
4443 builtin and then its argument prototype would still apply. */
4448 /* The GNU C library defines this for functions which it implements
4449 to always fail with ENOSYS. Some functions are actually named
4450 something starting with __ and the normal name is an alias. */
4451 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4459 if { (eval echo configure:4460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4461 eval "ac_cv_func_
$ac_func=yes"
4463 echo "configure
: failed program was
:" >&5
4464 cat conftest.$ac_ext >&5
4466 eval "ac_cv_func_
$ac_func=no
"
4471 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4472 echo "$ac_t""yes" 1>&6
4473 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4474 cat >> confdefs.h <<EOF
4475 #define $ac_tr_func 1
4478 cat >> confdefs.h <<\EOF
4479 #define HAVE_GETHOSTNAME 1
4482 cat > conftest.$ac_ext <<EOF
4483 #line 4484 "configure
"
4484 #include "confdefs.h
"
4487 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
4488 egrep "gethostname
" >/dev/null 2>&1; then
4491 cat >> confdefs.h <<\EOF
4492 #define HAVE_GETHOSTNAME_DECL 1
4499 echo "$ac_t""no
" 1>&6
4504 # Look for these functions in the thread library, but only bother
4505 # if using POSIX threads.
4506 if test "$THREADS" = posix; then
4508 LIBS="$LIBS $THREADLIBS"
4509 # Some POSIX thread systems don't have pthread_mutexattr_settype.
4511 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
4513 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4514 echo "configure
:4515: checking
for $ac_func" >&5
4515 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4516 echo $ac_n "(cached
) $ac_c" 1>&6
4518 cat > conftest.$ac_ext <<EOF
4519 #line 4520 "configure
"
4520 #include "confdefs.h
"
4521 /* System header to define __stub macros and hopefully few prototypes,
4522 which can conflict with char $ac_func(); below. */
4524 /* Override any gcc2 internal prototype to avoid an error. */
4525 /* We use char because int might match the return type of a gcc2
4526 builtin and then its argument prototype would still apply. */
4531 /* The GNU C library defines this for functions which it implements
4532 to always fail with ENOSYS. Some functions are actually named
4533 something starting with __ and the normal name is an alias. */
4534 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4542 if { (eval echo configure:4543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4544 eval "ac_cv_func_
$ac_func=yes"
4546 echo "configure
: failed program was
:" >&5
4547 cat conftest.$ac_ext >&5
4549 eval "ac_cv_func_
$ac_func=no
"
4554 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4555 echo "$ac_t""yes" 1>&6
4556 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4557 cat >> confdefs.h <<EOF
4558 #define $ac_tr_func 1
4562 echo "$ac_t""no
" 1>&6
4567 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
4568 # Solaris 7 the name librt is preferred.
4569 for ac_func in sched_yield
4571 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4572 echo "configure
:4573: checking
for $ac_func" >&5
4573 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4574 echo $ac_n "(cached
) $ac_c" 1>&6
4576 cat > conftest.$ac_ext <<EOF
4577 #line 4578 "configure
"
4578 #include "confdefs.h
"
4579 /* System header to define __stub macros and hopefully few prototypes,
4580 which can conflict with char $ac_func(); below. */
4582 /* Override any gcc2 internal prototype to avoid an error. */
4583 /* We use char because int might match the return type of a gcc2
4584 builtin and then its argument prototype would still apply. */
4589 /* The GNU C library defines this for functions which it implements
4590 to always fail with ENOSYS. Some functions are actually named
4591 something starting with __ and the normal name is an alias. */
4592 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4600 if { (eval echo configure:4601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4602 eval "ac_cv_func_
$ac_func=yes"
4604 echo "configure
: failed program was
:" >&5
4605 cat conftest.$ac_ext >&5
4607 eval "ac_cv_func_
$ac_func=no
"
4612 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4613 echo "$ac_t""yes" 1>&6
4614 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4615 cat >> confdefs.h <<EOF
4616 #define $ac_tr_func 1
4620 echo "$ac_t""no
" 1>&6
4621 echo $ac_n "checking
for sched_yield
in -lrt""...
$ac_c" 1>&6
4622 echo "configure
:4623: checking
for sched_yield
in -lrt" >&5
4623 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
4624 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4625 echo $ac_n "(cached
) $ac_c" 1>&6
4627 ac_save_LIBS="$LIBS"
4629 cat > conftest.$ac_ext <<EOF
4630 #line 4631 "configure
"
4631 #include "confdefs.h
"
4632 /* Override any gcc2 internal prototype to avoid an error. */
4633 /* We use char because int might match the return type of a gcc2
4634 builtin and then its argument prototype would still apply. */
4641 if { (eval echo configure:4642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4643 eval "ac_cv_lib_
$ac_lib_var=yes"
4645 echo "configure
: failed program was
:" >&5
4646 cat conftest.$ac_ext >&5
4648 eval "ac_cv_lib_
$ac_lib_var=no
"
4651 LIBS="$ac_save_LIBS"
4654 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4655 echo "$ac_t""yes" 1>&6
4657 cat >> confdefs.h <<\EOF
4658 #define HAVE_SCHED_YIELD 1
4661 THREADLIBS="$THREADLIBS -lrt"
4662 THREADSPEC="$THREADSPEC -lrt"
4664 echo "$ac_t""no
" 1>&6
4666 echo $ac_n "checking
for sched_yield
in -lposix4""...
$ac_c" 1>&6
4667 echo "configure
:4668: checking
for sched_yield
in -lposix4" >&5
4668 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
4669 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4670 echo $ac_n "(cached
) $ac_c" 1>&6
4672 ac_save_LIBS="$LIBS"
4673 LIBS="-lposix4 $LIBS"
4674 cat > conftest.$ac_ext <<EOF
4675 #line 4676 "configure
"
4676 #include "confdefs.h
"
4677 /* Override any gcc2 internal prototype to avoid an error. */
4678 /* We use char because int might match the return type of a gcc2
4679 builtin and then its argument prototype would still apply. */
4686 if { (eval echo configure:4687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4688 eval "ac_cv_lib_
$ac_lib_var=yes"
4690 echo "configure
: failed program was
:" >&5
4691 cat conftest.$ac_ext >&5
4693 eval "ac_cv_lib_
$ac_lib_var=no
"
4696 LIBS="$ac_save_LIBS"
4699 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4700 echo "$ac_t""yes" 1>&6
4702 cat >> confdefs.h <<\EOF
4703 #define HAVE_SCHED_YIELD 1
4706 THREADLIBS="$THREADLIBS -lposix4"
4707 THREADSPEC="$THREADSPEC -lposix4"
4709 echo "$ac_t""no
" 1>&6
4719 # We can save a little space at runtime if the mutex has m_count
4720 # or __m_count. This is a nice hack for Linux.
4721 cat > conftest.$ac_ext <<EOF
4722 #line 4723 "configure
"
4723 #include "confdefs.h
"
4724 #include <pthread.h>
4727 extern pthread_mutex_t *mutex; int q = mutex->m_count;
4731 if { (eval echo configure:4732: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4733 cat >> confdefs.h <<\EOF
4734 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
4738 echo "configure
: failed program was
:" >&5
4739 cat conftest.$ac_ext >&5
4742 cat > conftest.$ac_ext <<EOF
4743 #line 4744 "configure
"
4744 #include "confdefs.h
"
4745 #include <pthread.h>
4748 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
4752 if { (eval echo configure:4753: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4754 cat >> confdefs.h <<\EOF
4755 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
4759 echo "configure
: failed program was
:" >&5
4760 cat conftest.$ac_ext >&5
4767 # We require a way to get the time.
4769 for ac_func in gettimeofday time ftime
4771 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4772 echo "configure
:4773: checking
for $ac_func" >&5
4773 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4774 echo $ac_n "(cached
) $ac_c" 1>&6
4776 cat > conftest.$ac_ext <<EOF
4777 #line 4778 "configure
"
4778 #include "confdefs.h
"
4779 /* System header to define __stub macros and hopefully few prototypes,
4780 which can conflict with char $ac_func(); below. */
4782 /* Override any gcc2 internal prototype to avoid an error. */
4783 /* We use char because int might match the return type of a gcc2
4784 builtin and then its argument prototype would still apply. */
4789 /* The GNU C library defines this for functions which it implements
4790 to always fail with ENOSYS. Some functions are actually named
4791 something starting with __ and the normal name is an alias. */
4792 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4800 if { (eval echo configure:4801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4802 eval "ac_cv_func_
$ac_func=yes"
4804 echo "configure
: failed program was
:" >&5
4805 cat conftest.$ac_ext >&5
4807 eval "ac_cv_func_
$ac_func=no
"
4812 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4813 echo "$ac_t""yes" 1>&6
4814 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4815 cat >> confdefs.h <<EOF
4816 #define $ac_tr_func 1
4820 echo "$ac_t""no
" 1>&6
4824 if test "$time_found" = no; then
4825 { echo "configure
: error
: no
function found to get the
time" 1>&2; exit 1; }
4828 for ac_func in memmove
4830 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4831 echo "configure
:4832: checking
for $ac_func" >&5
4832 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4833 echo $ac_n "(cached
) $ac_c" 1>&6
4835 cat > conftest.$ac_ext <<EOF
4836 #line 4837 "configure
"
4837 #include "confdefs.h
"
4838 /* System header to define __stub macros and hopefully few prototypes,
4839 which can conflict with char $ac_func(); below. */
4841 /* Override any gcc2 internal prototype to avoid an error. */
4842 /* We use char because int might match the return type of a gcc2
4843 builtin and then its argument prototype would still apply. */
4848 /* The GNU C library defines this for functions which it implements
4849 to always fail with ENOSYS. Some functions are actually named
4850 something starting with __ and the normal name is an alias. */
4851 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4859 if { (eval echo configure:4860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4861 eval "ac_cv_func_
$ac_func=yes"
4863 echo "configure
: failed program was
:" >&5
4864 cat conftest.$ac_ext >&5
4866 eval "ac_cv_func_
$ac_func=no
"
4871 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4872 echo "$ac_t""yes" 1>&6
4873 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4874 cat >> confdefs.h <<EOF
4875 #define $ac_tr_func 1
4879 echo "$ac_t""no
" 1>&6
4884 # We require memcpy.
4886 for ac_func in memcpy
4888 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4889 echo "configure
:4890: checking
for $ac_func" >&5
4890 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4891 echo $ac_n "(cached
) $ac_c" 1>&6
4893 cat > conftest.$ac_ext <<EOF
4894 #line 4895 "configure
"
4895 #include "confdefs.h
"
4896 /* System header to define __stub macros and hopefully few prototypes,
4897 which can conflict with char $ac_func(); below. */
4899 /* Override any gcc2 internal prototype to avoid an error. */
4900 /* We use char because int might match the return type of a gcc2
4901 builtin and then its argument prototype would still apply. */
4906 /* The GNU C library defines this for functions which it implements
4907 to always fail with ENOSYS. Some functions are actually named
4908 something starting with __ and the normal name is an alias. */
4909 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4917 if { (eval echo configure:4918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4919 eval "ac_cv_func_
$ac_func=yes"
4921 echo "configure
: failed program was
:" >&5
4922 cat conftest.$ac_ext >&5
4924 eval "ac_cv_func_
$ac_func=no
"
4929 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4930 echo "$ac_t""yes" 1>&6
4931 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4932 cat >> confdefs.h <<EOF
4933 #define $ac_tr_func 1
4937 echo "$ac_t""no
" 1>&6
4941 if test "$memcpy_found" = no; then
4942 { echo "configure
: error
: memcpy is required
" 1>&2; exit 1; }
4945 echo $ac_n "checking
for dlopen
in -ldl""...
$ac_c" 1>&6
4946 echo "configure
:4947: checking
for dlopen
in -ldl" >&5
4947 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4948 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4949 echo $ac_n "(cached
) $ac_c" 1>&6
4951 ac_save_LIBS="$LIBS"
4953 cat > conftest.$ac_ext <<EOF
4954 #line 4955 "configure
"
4955 #include "confdefs.h
"
4956 /* Override any gcc2 internal prototype to avoid an error. */
4957 /* We use char because int might match the return type of a gcc2
4958 builtin and then its argument prototype would still apply. */
4965 if { (eval echo configure:4966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4967 eval "ac_cv_lib_
$ac_lib_var=yes"
4969 echo "configure
: failed program was
:" >&5
4970 cat conftest.$ac_ext >&5
4972 eval "ac_cv_lib_
$ac_lib_var=no
"
4975 LIBS="$ac_save_LIBS"
4978 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4979 echo "$ac_t""yes" 1>&6
4980 cat >> confdefs.h <<\EOF
4981 #define HAVE_DLOPEN 1
4985 echo "$ac_t""no
" 1>&6
4989 # Some library-finding code we stole from Tcl.
4990 #--------------------------------------------------------------------
4991 # Check for the existence of the -lsocket and -lnsl libraries.
4992 # The order here is important, so that they end up in the right
4993 # order in the command line generated by make. Here are some
4994 # special considerations:
4995 # 1. Use "connect
" and "accept
" to check for -lsocket, and
4996 # "gethostbyname
" to check for -lnsl.
4997 # 2. Use each function name only once: can't redo a check because
4998 # autoconf caches the results of the last check and won't redo it.
4999 # 3. Use -lnsl and -lsocket only if they supply procedures that
5000 # aren't already present in the normal libraries. This is because
5001 # IRIX 5.2 has libraries, but they aren't needed and they're
5002 # bogus: they goof up name resolution if used.
5003 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
5004 # To get around this problem, check for both libraries together
5005 # if -lsocket doesn't work by itself.
5006 #--------------------------------------------------------------------
5008 echo $ac_n "checking
for socket libraries
""...
$ac_c" 1>&6
5009 echo "configure
:5010: checking
for socket libraries
" >&5
5010 if eval "test \"`echo '$''{'gcj_cv_lib_sockets'+set}'`\" = set"; then
5011 echo $ac_n "(cached
) $ac_c" 1>&6
5015 unset ac_cv_func_connect
5016 echo $ac_n "checking
for connect
""...
$ac_c" 1>&6
5017 echo "configure
:5018: checking
for connect
" >&5
5018 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
5019 echo $ac_n "(cached
) $ac_c" 1>&6
5021 cat > conftest.$ac_ext <<EOF
5022 #line 5023 "configure
"
5023 #include "confdefs.h
"
5024 /* System header to define __stub macros and hopefully few prototypes,
5025 which can conflict with char connect(); below. */
5027 /* Override any gcc2 internal prototype to avoid an error. */
5028 /* We use char because int might match the return type of a gcc2
5029 builtin and then its argument prototype would still apply. */
5034 /* The GNU C library defines this for functions which it implements
5035 to always fail with ENOSYS. Some functions are actually named
5036 something starting with __ and the normal name is an alias. */
5037 #if defined (__stub_connect) || defined (__stub___connect)
5045 if { (eval echo configure:5046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5047 eval "ac_cv_func_connect
=yes"
5049 echo "configure
: failed program was
:" >&5
5050 cat conftest.$ac_ext >&5
5052 eval "ac_cv_func_connect
=no
"
5057 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
5058 echo "$ac_t""yes" 1>&6
5061 echo "$ac_t""no
" 1>&6
5065 if test "$gcj_checkSocket" = 1; then
5066 unset ac_cv_func_connect
5067 echo $ac_n "checking
for main
in -lsocket""...
$ac_c" 1>&6
5068 echo "configure
:5069: checking
for main
in -lsocket" >&5
5069 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
5070 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5071 echo $ac_n "(cached
) $ac_c" 1>&6
5073 ac_save_LIBS="$LIBS"
5074 LIBS="-lsocket $LIBS"
5075 cat > conftest.$ac_ext <<EOF
5076 #line 5077 "configure
"
5077 #include "confdefs.h
"
5083 if { (eval echo configure:5084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5085 eval "ac_cv_lib_
$ac_lib_var=yes"
5087 echo "configure
: failed program was
:" >&5
5088 cat conftest.$ac_ext >&5
5090 eval "ac_cv_lib_
$ac_lib_var=no
"
5093 LIBS="$ac_save_LIBS"
5096 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5097 echo "$ac_t""yes" 1>&6
5098 gcj_cv_lib_sockets="-lsocket"
5100 echo "$ac_t""no
" 1>&6
5105 if test "$gcj_checkBoth" = 1; then
5107 LIBS="$LIBS -lsocket -lnsl"
5108 unset ac_cv_func_accept
5109 echo $ac_n "checking
for accept
""...
$ac_c" 1>&6
5110 echo "configure
:5111: checking
for accept
" >&5
5111 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
5112 echo $ac_n "(cached
) $ac_c" 1>&6
5114 cat > conftest.$ac_ext <<EOF
5115 #line 5116 "configure
"
5116 #include "confdefs.h
"
5117 /* System header to define __stub macros and hopefully few prototypes,
5118 which can conflict with char accept(); below. */
5120 /* Override any gcc2 internal prototype to avoid an error. */
5121 /* We use char because int might match the return type of a gcc2
5122 builtin and then its argument prototype would still apply. */
5127 /* The GNU C library defines this for functions which it implements
5128 to always fail with ENOSYS. Some functions are actually named
5129 something starting with __ and the normal name is an alias. */
5130 #if defined (__stub_accept) || defined (__stub___accept)
5138 if { (eval echo configure:5139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5140 eval "ac_cv_func_accept
=yes"
5142 echo "configure
: failed program was
:" >&5
5143 cat conftest.$ac_ext >&5
5145 eval "ac_cv_func_accept
=no
"
5150 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
5151 echo "$ac_t""yes" 1>&6
5153 gcj_cv_lib_sockets="-lsocket -lnsl"
5155 echo "$ac_t""no
" 1>&6
5158 unset ac_cv_func_accept
5161 unset ac_cv_func_gethostbyname
5163 LIBS="$LIBS $gcj_cv_lib_sockets"
5164 echo $ac_n "checking
for gethostbyname
""...
$ac_c" 1>&6
5165 echo "configure
:5166: checking
for gethostbyname
" >&5
5166 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
5167 echo $ac_n "(cached
) $ac_c" 1>&6
5169 cat > conftest.$ac_ext <<EOF
5170 #line 5171 "configure
"
5171 #include "confdefs.h
"
5172 /* System header to define __stub macros and hopefully few prototypes,
5173 which can conflict with char gethostbyname(); below. */
5175 /* Override any gcc2 internal prototype to avoid an error. */
5176 /* We use char because int might match the return type of a gcc2
5177 builtin and then its argument prototype would still apply. */
5178 char gethostbyname();
5182 /* The GNU C library defines this for functions which it implements
5183 to always fail with ENOSYS. Some functions are actually named
5184 something starting with __ and the normal name is an alias. */
5185 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5193 if { (eval echo configure:5194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5195 eval "ac_cv_func_gethostbyname
=yes"
5197 echo "configure
: failed program was
:" >&5
5198 cat conftest.$ac_ext >&5
5200 eval "ac_cv_func_gethostbyname
=no
"
5205 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
5206 echo "$ac_t""yes" 1>&6
5209 echo "$ac_t""no
" 1>&6
5210 echo $ac_n "checking
for main
in -lnsl""...
$ac_c" 1>&6
5211 echo "configure
:5212: checking
for main
in -lnsl" >&5
5212 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
5213 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5214 echo $ac_n "(cached
) $ac_c" 1>&6
5216 ac_save_LIBS="$LIBS"
5218 cat > conftest.$ac_ext <<EOF
5219 #line 5220 "configure
"
5220 #include "confdefs.h
"
5226 if { (eval echo configure:5227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5228 eval "ac_cv_lib_
$ac_lib_var=yes"
5230 echo "configure
: failed program was
:" >&5
5231 cat conftest.$ac_ext >&5
5233 eval "ac_cv_lib_
$ac_lib_var=no
"
5236 LIBS="$ac_save_LIBS"
5239 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5240 echo "$ac_t""yes" 1>&6
5241 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
5243 echo "$ac_t""no
" 1>&6
5248 unset ac_cv_func_gethostbyname
5253 echo "$ac_t""$gcj_cv_lib_sockets" 1>&6
5254 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
5256 if test "$with_system_zlib" = yes; then
5257 echo $ac_n "checking
for deflate
in -lz""...
$ac_c" 1>&6
5258 echo "configure
:5259: checking
for deflate
in -lz" >&5
5259 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
5260 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5261 echo $ac_n "(cached
) $ac_c" 1>&6
5263 ac_save_LIBS="$LIBS"
5265 cat > conftest.$ac_ext <<EOF
5266 #line 5267 "configure
"
5267 #include "confdefs.h
"
5268 /* Override any gcc2 internal prototype to avoid an error. */
5269 /* We use char because int might match the return type of a gcc2
5270 builtin and then its argument prototype would still apply. */
5277 if { (eval echo configure:5278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5279 eval "ac_cv_lib_
$ac_lib_var=yes"
5281 echo "configure
: failed program was
:" >&5
5282 cat conftest.$ac_ext >&5
5284 eval "ac_cv_lib_
$ac_lib_var=no
"
5287 LIBS="$ac_save_LIBS"
5290 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5291 echo "$ac_t""yes" 1>&6
5294 echo "$ac_t""no
" 1>&6
5300 ZLIBTESTSPEC="-L`pwd`/..
/zlib
/.libs
-rpath `pwd`/..
/zlib
/.libs
"
5303 # On Solaris, and maybe other architectures, the Boehm collector
5305 if test "$GC" = boehm; then
5306 echo $ac_n "checking
for main
in -ldl""...
$ac_c" 1>&6
5307 echo "configure
:5308: checking
for main
in -ldl" >&5
5308 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
5309 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5310 echo $ac_n "(cached
) $ac_c" 1>&6
5312 ac_save_LIBS="$LIBS"
5314 cat > conftest.$ac_ext <<EOF
5315 #line 5316 "configure
"
5316 #include "confdefs.h
"
5322 if { (eval echo configure:5323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5324 eval "ac_cv_lib_
$ac_lib_var=yes"
5326 echo "configure
: failed program was
:" >&5
5327 cat conftest.$ac_ext >&5
5329 eval "ac_cv_lib_
$ac_lib_var=no
"
5332 LIBS="$ac_save_LIBS"
5335 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5336 echo "$ac_t""yes" 1>&6
5337 SYSTEMSPEC="$SYSTEMSPEC -ldl"
5339 echo "$ac_t""no
" 1>&6
5344 if test -z "${with_multisubdir}"; then
5348 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
5351 if test -x "${builddotdot}/..
/..
/gcc
/gcj
"; then
5352 dir="`cd ${builddotdot}/../../gcc && pwd`"
5353 GCJ="$dir/gcj
-B`pwd`/ -B$dir/"
5361 # Create it, so that compile/link tests don't fail
5362 test -f libgcj.spec || touch libgcj.spec
5364 # We must search the source tree for java.lang, since we still don't
5365 # have libgcj.jar nor java/lang/*.class
5366 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
5367 CPPFLAGS="$CPPFLAGS -I`pwd` -I`cd $srcdir && pwd`"
5369 # Since some classes depend on this one, we need its source available
5370 # before we can do any GCJ compilation test :-(
5371 if test ! -f gnu/classpath/Configuration.java; then
5372 test -d gnu || mkdir gnu
5373 test -d gnu/classpath || mkdir gnu/classpath
5374 sed 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
5375 < $srcdir/gnu/classpath/Configuration.java.in \
5376 > gnu/classpath/Configuration.java
5377 # We do not want to redirect the output of the grep below to /dev/null,
5378 # but we add /dev/null to the input list so that grep will print the
5379 # filename of Configuration.java in case it finds any matches.
5380 if grep @ gnu/classpath/Configuration.java /dev/null; then
5381 { echo "configure
: error
: configure.
in is missing the substitutions above
" 1>&2; exit 1; }
5385 # Extract the first word of "${ac_tool_prefix}gcj
", so it can be a program name with args.
5386 set dummy ${ac_tool_prefix}gcj; ac_word=$2
5387 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
5388 echo "configure
:5389: checking
for $ac_word" >&5
5389 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
5390 echo $ac_n "(cached
) $ac_c" 1>&6
5392 if test -n "$GCJ"; then
5393 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5395 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5397 for ac_dir in $ac_dummy; do
5398 test -z "$ac_dir" && ac_dir=.
5399 if test -f $ac_dir/$ac_word; then
5400 ac_cv_prog_GCJ="${ac_tool_prefix}gcj
"
5407 GCJ="$ac_cv_prog_GCJ"
5408 if test -n "$GCJ"; then
5409 echo "$ac_t""$GCJ" 1>&6
5411 echo "$ac_t""no
" 1>&6
5415 if test -z "$ac_cv_prog_GCJ"; then
5416 if test -n "$ac_tool_prefix"; then
5417 # Extract the first word of "gcj
", so it can be a program name with args.
5418 set dummy gcj; ac_word=$2
5419 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
5420 echo "configure
:5421: checking
for $ac_word" >&5
5421 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
5422 echo $ac_n "(cached
) $ac_c" 1>&6
5424 if test -n "$GCJ"; then
5425 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5427 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5429 for ac_dir in $ac_dummy; do
5430 test -z "$ac_dir" && ac_dir=.
5431 if test -f $ac_dir/$ac_word; then
5432 ac_cv_prog_GCJ="gcj
"
5437 test -z "$ac_cv_prog_GCJ" && ac_cv_prog_GCJ="no
"
5440 GCJ="$ac_cv_prog_GCJ"
5441 if test -n "$GCJ"; then
5442 echo "$ac_t""$GCJ" 1>&6
5444 echo "$ac_t""no
" 1>&6
5452 test "x
${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
5456 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh
"
5458 lt_save_CFLAGS="$CFLAGS"
5459 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
5460 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5461 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5462 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5463 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5464 deplibs_check_method="$deplibs_check_method" \
5465 file_magic_cmd="$file_magic_cmd" \
5466 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5467 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
5468 || { echo "configure
: error
: libtool tag configuration failed
" 1>&2; exit 1; }
5470 CFLAGS="$lt_save_CFLAGS"
5472 # Redirect the config.log output again, so that the ltconfig log is not
5473 # clobbered by the next message.
5474 exec 5>>./config.log
5479 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
5481 echo $ac_n "checking size of void
*""...
$ac_c" 1>&6
5482 echo "configure
:5483: checking size of void
*" >&5
5483 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
5484 echo $ac_n "(cached
) $ac_c" 1>&6
5486 if test "$cross_compiling" = yes; then
5487 { echo "configure
: error
: can not run
test program
while cross compiling
" 1>&2; exit 1; }
5489 cat > conftest.$ac_ext <<EOF
5490 #line 5491 "configure
"
5491 #include "confdefs.h
"
5495 FILE *f=fopen("conftestval
", "w
");
5497 fprintf(f, "%d
\n", sizeof(void *));
5501 if { (eval echo configure:5502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5503 ac_cv_sizeof_void_p=`cat conftestval`
5505 echo "configure
: failed program was
:" >&5
5506 cat conftest.$ac_ext >&5
5508 ac_cv_sizeof_void_p=0
5514 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
5515 cat >> confdefs.h <<EOF
5516 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5524 if test "x
$ZLIBSPEC" = "x-lzgcj
"; then
5525 # We include the path to the zlib build directory.
5526 # See Makefile.am to understand why.
5527 ZDEPS='$(top_builddir)/../zlib/libzgcj.la'
5528 ZLIBS="$ZDEPS -L\$
(here
)/..
/zlib
/$libsubdir"
5529 ZINCS='-I$(top_srcdir)/../zlib'
5541 if test "$CANADIAN" = yes; then
5550 if test "$NULL_TARGET" = yes; then
5552 NULL_TARGET_FALSE='#'
5554 NULL_TARGET_TRUE='#'
5559 if test "$NATIVE" = yes || test "$NULL_TARGET" = yes; then
5568 if test -z "$with_cross_host"; then
5570 USE_LIBDIR_FALSE='#'
5577 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
5578 NEEDS_DATA_START_TRUE=
5579 NEEDS_DATA_START_FALSE='#'
5581 NEEDS_DATA_START_TRUE='#'
5582 NEEDS_DATA_START_FALSE=
5586 # Determine gcj version number.
5588 gcjvers="`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`"
5590 cat >> confdefs.h <<EOF
5591 #define GCJVERSION "$gcjvers"
5598 echo $ac_n "checking
for g
++ -ffloat-store bug
""...
$ac_c" 1>&6
5599 echo "configure
:5600: checking
for g
++ -ffloat-store bug
" >&5
5600 save_CFLAGS="$CFLAGS"
5601 CFLAGS="-x c
++ -O2 -ffloat-store"
5602 cat > conftest.$ac_ext <<EOF
5603 #line 5604 "configure
"
5604 #include "confdefs.h
"
5610 if { (eval echo configure:5611: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5612 echo "$ac_t""no
" 1>&6
5614 echo "configure
: failed program was
:" >&5
5615 cat conftest.$ac_ext >&5
5617 cat >> confdefs.h <<\EOF
5618 #define __NO_MATH_INLINES 1
5621 echo "$ac_t""yes" 1>&6
5624 CFLAGS="$save_CFLAGS"
5626 for ac_hdr in unistd.h bstring.h sys/time.h sys/types.h fcntl.h sys/ioctl.h sys/filio.h sys/stat.h sys/select.h sys/socket.h netinet/in.h arpa/inet.h netdb.h pwd.h sys/config.h inttypes.h stdint.h langinfo.h locale.h
5628 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5629 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
5630 echo "configure
:5631: checking
for $ac_hdr" >&5
5631 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5632 echo $ac_n "(cached
) $ac_c" 1>&6
5634 cat > conftest.$ac_ext <<EOF
5635 #line 5636 "configure
"
5636 #include "confdefs.h
"
5639 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
5640 { (eval echo configure:5641: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5641 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
5642 if test -z "$ac_err"; then
5644 eval "ac_cv_header_
$ac_safe=yes"
5647 echo "configure
: failed program was
:" >&5
5648 cat conftest.$ac_ext >&5
5650 eval "ac_cv_header_
$ac_safe=no
"
5654 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5655 echo "$ac_t""yes" 1>&6
5656 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5657 cat >> confdefs.h <<EOF
5658 #define $ac_tr_hdr 1
5662 echo "$ac_t""no
" 1>&6
5666 for ac_hdr in dirent.h
5668 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5669 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
5670 echo "configure
:5671: checking
for $ac_hdr" >&5
5671 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5672 echo $ac_n "(cached
) $ac_c" 1>&6
5674 cat > conftest.$ac_ext <<EOF
5675 #line 5676 "configure
"
5676 #include "confdefs.h
"
5679 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
5680 { (eval echo configure:5681: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5681 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
5682 if test -z "$ac_err"; then
5684 eval "ac_cv_header_
$ac_safe=yes"
5687 echo "configure
: failed program was
:" >&5
5688 cat conftest.$ac_ext >&5
5690 eval "ac_cv_header_
$ac_safe=no
"
5694 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5695 echo "$ac_t""yes" 1>&6
5696 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5697 cat >> confdefs.h <<EOF
5698 #define $ac_tr_hdr 1
5702 echo "$ac_t""no
" 1>&6
5707 echo $ac_n "checking
for ANSI C header files
""...
$ac_c" 1>&6
5708 echo "configure
:5709: checking
for ANSI C header files
" >&5
5709 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5710 echo $ac_n "(cached
) $ac_c" 1>&6
5712 cat > conftest.$ac_ext <<EOF
5713 #line 5714 "configure
"
5714 #include "confdefs.h
"
5720 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
5721 { (eval echo configure:5722: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5722 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
5723 if test -z "$ac_err"; then
5725 ac_cv_header_stdc=yes
5728 echo "configure
: failed program was
:" >&5
5729 cat conftest.$ac_ext >&5
5731 ac_cv_header_stdc=no
5735 if test $ac_cv_header_stdc = yes; then
5736 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5737 cat > conftest.$ac_ext <<EOF
5738 #line 5739 "configure
"
5739 #include "confdefs.h
"
5742 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
5743 egrep "memchr
" >/dev/null 2>&1; then
5747 ac_cv_header_stdc=no
5753 if test $ac_cv_header_stdc = yes; then
5754 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5755 cat > conftest.$ac_ext <<EOF
5756 #line 5757 "configure
"
5757 #include "confdefs.h
"
5760 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
5761 egrep "free
" >/dev/null 2>&1; then
5765 ac_cv_header_stdc=no
5771 if test $ac_cv_header_stdc = yes; then
5772 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5773 if test "$cross_compiling" = yes; then
5776 cat > conftest.$ac_ext <<EOF
5777 #line 5778 "configure
"
5778 #include "confdefs.h
"
5780 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5781 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5782 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5783 int main () { int i; for (i = 0; i < 256; i++)
5784 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5788 if { (eval echo configure:5789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5792 echo "configure
: failed program was
:" >&5
5793 cat conftest.$ac_ext >&5
5795 ac_cv_header_stdc=no
5803 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5804 if test $ac_cv_header_stdc = yes; then
5805 cat >> confdefs.h <<\EOF
5806 #define STDC_HEADERS 1
5811 echo $ac_n "checking
for ssize_t
""...
$ac_c" 1>&6
5812 echo "configure
:5813: checking
for ssize_t
" >&5
5813 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
5814 echo $ac_n "(cached
) $ac_c" 1>&6
5816 cat > conftest.$ac_ext <<EOF
5817 #line 5818 "configure
"
5818 #include "confdefs.h
"
5819 #include <sys/types.h>
5825 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
5826 egrep "(^|
[^a-zA-Z_0-9
])ssize_t
[^a-zA-Z_0-9
]" >/dev/null 2>&1; then
5828 ac_cv_type_ssize_t=yes
5831 ac_cv_type_ssize_t=no
5836 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
5837 if test $ac_cv_type_ssize_t = no; then
5838 cat >> confdefs.h <<\EOF
5845 echo $ac_n "checking
for in_addr_t
""...
$ac_c" 1>&6
5846 echo "configure
:5847: checking
for in_addr_t
" >&5
5847 cat > conftest.$ac_ext <<EOF
5848 #line 5849 "configure
"
5849 #include "confdefs.h
"
5850 #include <sys/types.h>
5855 #if HAVE_NETINET_IN_H
5856 #include <netinet/in.h>
5862 if { (eval echo configure:5863: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5864 cat >> confdefs.h <<\EOF
5865 #define HAVE_IN_ADDR_T 1
5868 echo "$ac_t""yes" 1>&6
5870 echo "configure
: failed program was
:" >&5
5871 cat conftest.$ac_ext >&5
5873 echo "$ac_t""no
" 1>&6
5877 echo $ac_n "checking whether struct ip_mreq is
in netinet
/in.h
""...
$ac_c" 1>&6
5878 echo "configure
:5879: checking whether struct ip_mreq is
in netinet
/in.h
" >&5
5879 cat > conftest.$ac_ext <<EOF
5880 #line 5881 "configure
"
5881 #include "confdefs.h
"
5882 #include <netinet/in.h>
5884 struct ip_mreq mreq;
5887 if { (eval echo configure:5888: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5889 cat >> confdefs.h <<\EOF
5890 #define HAVE_STRUCT_IP_MREQ 1
5893 echo "$ac_t""yes" 1>&6
5895 echo "configure
: failed program was
:" >&5
5896 cat conftest.$ac_ext >&5
5898 echo "$ac_t""no
" 1>&6
5902 echo $ac_n "checking whether struct ipv6_mreq is
in netinet
/in.h
""...
$ac_c" 1>&6
5903 echo "configure
:5904: checking whether struct ipv6_mreq is
in netinet
/in.h
" >&5
5904 cat > conftest.$ac_ext <<EOF
5905 #line 5906 "configure
"
5906 #include "confdefs.h
"
5907 #include <netinet/in.h>
5909 struct ipv6_mreq mreq6;
5912 if { (eval echo configure:5913: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5914 cat >> confdefs.h <<\EOF
5915 #define HAVE_STRUCT_IPV6_MREQ 1
5918 echo "$ac_t""yes" 1>&6
5920 echo "configure
: failed program was
:" >&5
5921 cat conftest.$ac_ext >&5
5923 echo "$ac_t""no
" 1>&6
5927 echo $ac_n "checking whether struct sockaddr_in6 is
in netinet
/in.h
""...
$ac_c" 1>&6
5928 echo "configure
:5929: checking whether struct sockaddr_in6 is
in netinet
/in.h
" >&5
5929 cat > conftest.$ac_ext <<EOF
5930 #line 5931 "configure
"
5931 #include "confdefs.h
"
5932 #include <netinet/in.h>
5934 struct sockaddr_in6 addr6;
5937 if { (eval echo configure:5938: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5939 cat >> confdefs.h <<\EOF
5940 #define HAVE_INET6 1
5943 echo "$ac_t""yes" 1>&6
5945 echo "configure
: failed program was
:" >&5
5946 cat conftest.$ac_ext >&5
5948 echo "$ac_t""no
" 1>&6
5952 echo $ac_n "checking
for socklen_t
in sys
/socket.h
""...
$ac_c" 1>&6
5953 echo "configure
:5954: checking
for socklen_t
in sys
/socket.h
" >&5
5954 cat > conftest.$ac_ext <<EOF
5955 #line 5956 "configure
"
5956 #include "confdefs.h
"
5957 #define _POSIX_PII_SOCKET
5958 #include <sys/types.h>
5959 #include <sys/socket.h>
5964 if { (eval echo configure:5965: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5966 cat >> confdefs.h <<\EOF
5967 #define HAVE_SOCKLEN_T 1
5970 echo "$ac_t""yes" 1>&6
5972 echo "configure
: failed program was
:" >&5
5973 cat conftest.$ac_ext >&5
5975 echo "$ac_t""no
" 1>&6
5979 echo $ac_n "checking
for tm_gmtoff
in struct tm
""...
$ac_c" 1>&6
5980 echo "configure
:5981: checking
for tm_gmtoff
in struct tm
" >&5
5981 cat > conftest.$ac_ext <<EOF
5982 #line 5983 "configure
"
5983 #include "confdefs.h
"
5986 struct tm tim; tim.tm_gmtoff = 0;
5989 if { (eval echo configure:5990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5991 cat >> confdefs.h <<\EOF
5992 #define STRUCT_TM_HAS_GMTOFF 1
5995 echo "$ac_t""yes" 1>&6
5997 echo "configure
: failed program was
:" >&5
5998 cat conftest.$ac_ext >&5
6000 echo "$ac_t""no
" 1>&6
6001 echo $ac_n "checking
for global timezone variable
""...
$ac_c" 1>&6
6002 echo "configure
:6003: checking
for global timezone variable
" >&5
6003 cat > conftest.$ac_ext <<EOF
6004 #line 6005 "configure
"
6005 #include "confdefs.h
"
6011 if { (eval echo configure:6012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6013 cat >> confdefs.h <<\EOF
6014 #define HAVE_TIMEZONE 1
6017 echo "$ac_t""yes" 1>&6
6019 echo "configure
: failed program was
:" >&5
6020 cat conftest.$ac_ext >&5
6022 echo "$ac_t""no
" 1>&6
6028 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6029 # for constant arguments. Useless!
6030 echo $ac_n "checking
for working alloca.h
""...
$ac_c" 1>&6
6031 echo "configure
:6032: checking
for working alloca.h
" >&5
6032 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
6033 echo $ac_n "(cached
) $ac_c" 1>&6
6035 cat > conftest.$ac_ext <<EOF
6036 #line 6037 "configure
"
6037 #include "confdefs.h
"
6040 char *p = alloca(2 * sizeof(int));
6043 if { (eval echo configure:6044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6045 ac_cv_header_alloca_h=yes
6047 echo "configure
: failed program was
:" >&5
6048 cat conftest.$ac_ext >&5
6050 ac_cv_header_alloca_h=no
6055 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
6056 if test $ac_cv_header_alloca_h = yes; then
6057 cat >> confdefs.h <<\EOF
6058 #define HAVE_ALLOCA_H 1
6063 echo $ac_n "checking
for alloca
""...
$ac_c" 1>&6
6064 echo "configure
:6065: checking
for alloca
" >&5
6065 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
6066 echo $ac_n "(cached
) $ac_c" 1>&6
6068 cat > conftest.$ac_ext <<EOF
6069 #line 6070 "configure
"
6070 #include "confdefs.h
"
6073 # define alloca __builtin_alloca
6076 # include <malloc.h>
6077 # define alloca _alloca
6080 # include <alloca.h>
6085 # ifndef alloca /* predefined by HP cc +Olibcalls */
6094 char *p = (char *) alloca(1);
6097 if { (eval echo configure:6098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6099 ac_cv_func_alloca_works=yes
6101 echo "configure
: failed program was
:" >&5
6102 cat conftest.$ac_ext >&5
6104 ac_cv_func_alloca_works=no
6109 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
6110 if test $ac_cv_func_alloca_works = yes; then
6111 cat >> confdefs.h <<\EOF
6112 #define HAVE_ALLOCA 1
6117 if test $ac_cv_func_alloca_works = no; then
6118 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6119 # that cause trouble. Some versions do not even contain alloca or
6120 # contain a buggy version. If you still want to use their alloca,
6121 # use ar to extract alloca.o from them instead of compiling alloca.c.
6122 ALLOCA=alloca.${ac_objext}
6123 cat >> confdefs.h <<\EOF
6128 echo $ac_n "checking whether alloca needs Cray hooks
""...
$ac_c" 1>&6
6129 echo "configure
:6130: checking whether alloca needs Cray hooks
" >&5
6130 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
6131 echo $ac_n "(cached
) $ac_c" 1>&6
6133 cat > conftest.$ac_ext <<EOF
6134 #line 6135 "configure
"
6135 #include "confdefs.h
"
6136 #if defined(CRAY) && ! defined(CRAY2)
6143 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
6144 egrep "webecray
" >/dev/null 2>&1; then
6155 echo "$ac_t""$ac_cv_os_cray" 1>&6
6156 if test $ac_cv_os_cray = yes; then
6157 for ac_func in _getb67 GETB67 getb67; do
6158 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
6159 echo "configure
:6160: checking
for $ac_func" >&5
6160 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6161 echo $ac_n "(cached
) $ac_c" 1>&6
6163 cat > conftest.$ac_ext <<EOF
6164 #line 6165 "configure
"
6165 #include "confdefs.h
"
6166 /* System header to define __stub macros and hopefully few prototypes,
6167 which can conflict with char $ac_func(); below. */
6169 /* Override any gcc2 internal prototype to avoid an error. */
6170 /* We use char because int might match the return type of a gcc2
6171 builtin and then its argument prototype would still apply. */
6176 /* The GNU C library defines this for functions which it implements
6177 to always fail with ENOSYS. Some functions are actually named
6178 something starting with __ and the normal name is an alias. */
6179 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6187 if { (eval echo configure:6188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6189 eval "ac_cv_func_
$ac_func=yes"
6191 echo "configure
: failed program was
:" >&5
6192 cat conftest.$ac_ext >&5
6194 eval "ac_cv_func_
$ac_func=no
"
6199 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6200 echo "$ac_t""yes" 1>&6
6201 cat >> confdefs.h <<EOF
6202 #define CRAY_STACKSEG_END $ac_func
6207 echo "$ac_t""no
" 1>&6
6213 echo $ac_n "checking stack direction
for C alloca
""...
$ac_c" 1>&6
6214 echo "configure
:6215: checking stack direction
for C alloca
" >&5
6215 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
6216 echo $ac_n "(cached
) $ac_c" 1>&6
6218 if test "$cross_compiling" = yes; then
6219 ac_cv_c_stack_direction=0
6221 cat > conftest.$ac_ext <<EOF
6222 #line 6223 "configure
"
6223 #include "confdefs.h
"
6224 find_stack_direction ()
6226 static char *addr = 0;
6231 return find_stack_direction ();
6234 return (&dummy > addr) ? 1 : -1;
6238 exit (find_stack_direction() < 0);
6241 if { (eval echo configure:6242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6243 ac_cv_c_stack_direction=1
6245 echo "configure
: failed program was
:" >&5
6246 cat conftest.$ac_ext >&5
6248 ac_cv_c_stack_direction=-1
6255 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
6256 cat >> confdefs.h <<EOF
6257 #define STACK_DIRECTION $ac_cv_c_stack_direction
6265 # Extract the first word of "$ac_prog", so it can be a program name with args.
6266 set dummy $ac_prog; ac_word=$2
6267 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
6268 echo "configure
:6269: checking
for $ac_word" >&5
6269 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
6270 echo $ac_n "(cached
) $ac_c" 1>&6
6272 if test -n "$PERL"; then
6273 ac_cv_prog_PERL="$PERL" # Let the user override the test.
6275 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6277 for ac_dir in $ac_dummy; do
6278 test -z "$ac_dir" && ac_dir=.
6279 if test -f $ac_dir/$ac_word; then
6280 ac_cv_prog_PERL="$ac_prog"
6287 PERL="$ac_cv_prog_PERL"
6288 if test -n "$PERL"; then
6289 echo "$ac_t""$PERL" 1>&6
6291 echo "$ac_t""no
" 1>&6
6294 test -n "$PERL" && break
6296 test -n "$PERL" || PERL="false
"
6303 SIGNAL_HANDLER=include/i386-signal.h
6306 SIGNAL_HANDLER=include/sparc-signal.h
6309 # SYSDEP_SOURCES=sysdep/ia64.c
6310 # test -d sysdep || mkdir sysdep
6313 SIGNAL_HANDLER=include/dwarf2-signal.h
6316 SIGNAL_HANDLER=include/dwarf2-signal.h
6319 SIGNAL_HANDLER=include/default-signal.h
6323 # If we're using sjlj exceptions, forget what we just learned.
6324 if test "$enable_sjlj_exceptions" = yes; then
6325 SIGNAL_HANDLER=include/default-signal.h
6332 if test "${multilib}" = "yes"; then
6333 multilib_arg="--enable-multilib"
6338 # If we find X, set shell vars x_includes and x_libraries to the
6339 # paths, otherwise set no_x=yes.
6340 # Uses ac_ vars as temps to allow command line to override cache and checks.
6341 # --without-x overrides everything else, but does not touch the cache.
6342 echo $ac_n "checking
for X
""...
$ac_c" 1>&6
6343 echo "configure
:6344: checking
for X
" >&5
6345 # Check whether --with-x or --without-x was given.
6346 if test "${with_x+set}" = set; then
6351 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6352 if test "x
$with_x" = xno; then
6353 # The user explicitly disabled X.
6356 if test "x
$x_includes" != xNONE && test "x
$x_libraries" != xNONE; then
6357 # Both variables are already set.
6360 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
6361 echo $ac_n "(cached
) $ac_c" 1>&6
6363 # One or both of the vars are not set, and there is no cached value.
6364 ac_x_includes=NO ac_x_libraries=NO
6366 if mkdir conftestdir; then
6368 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6369 cat > Imakefile <<'EOF'
6371 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6373 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6374 # GNU make sometimes prints "make[1]: Entering...
", which would confuse us.
6375 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6376 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6377 for ac_extension in a so sl; do
6378 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6379 test -f $ac_im_libdir/libX11.$ac_extension; then
6380 ac_im_usrlibdir=$ac_im_libdir; break
6383 # Screen out bogus values from the imake configuration. They are
6384 # bogus both because they are the default anyway, and because
6385 # using them would break gcc on systems where it needs fixed includes.
6386 case "$ac_im_incroot" in
6388 *) test -f "$ac_im_incroot/X11
/Xos.h
" && ac_x_includes="$ac_im_incroot" ;;
6390 case "$ac_im_usrlibdir" in
6392 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
6399 if test "$ac_x_includes" = NO; then
6400 # Guess where to find include files, by looking for this one X11 .h file.
6401 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
6403 # First, try using that file with no special directory specified.
6404 cat > conftest.$ac_ext <<EOF
6405 #line 6406 "configure
"
6406 #include "confdefs.h
"
6407 #include <$x_direct_test_include>
6409 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
6410 { (eval echo configure:6411: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6411 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
6412 if test -z "$ac_err"; then
6414 # We can compile using X headers with no special include directory.
6418 echo "configure
: failed program was
:" >&5
6419 cat conftest.$ac_ext >&5
6421 # Look for the header file in a standard set of common directories.
6422 # Check X11 before X11Rn because it is often a symlink to the current release.
6425 /usr/X11R6/include \
6426 /usr/X11R5/include \
6427 /usr/X11R4/include \
6430 /usr/include/X11R6 \
6431 /usr/include/X11R5 \
6432 /usr/include/X11R4 \
6434 /usr/local/X11/include \
6435 /usr/local/X11R6/include \
6436 /usr/local/X11R5/include \
6437 /usr/local/X11R4/include \
6439 /usr/local/include/X11 \
6440 /usr/local/include/X11R6 \
6441 /usr/local/include/X11R5 \
6442 /usr/local/include/X11R4 \
6446 /usr/XFree86/include/X11 \
6449 /usr/local/include \
6450 /usr/unsupported/include \
6451 /usr/athena/include \
6452 /usr/local/x11r5/include \
6453 /usr/lpp/Xamples/include \
6455 /usr/openwin/include \
6456 /usr/openwin/share/include \
6459 if test -r "$ac_dir/$x_direct_test_include"; then
6460 ac_x_includes=$ac_dir
6466 fi # $ac_x_includes = NO
6468 if test "$ac_x_libraries" = NO; then
6469 # Check for the libraries.
6471 test -z "$x_direct_test_library" && x_direct_test_library=Xt
6472 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
6474 # See if we find them without any special options.
6475 # Don't add to $LIBS permanently.
6476 ac_save_LIBS="$LIBS"
6477 LIBS="-l$x_direct_test_library $LIBS"
6478 cat > conftest.$ac_ext <<EOF
6479 #line 6480 "configure
"
6480 #include "confdefs.h
"
6483 ${x_direct_test_function}()
6486 if { (eval echo configure:6487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6488 LIBS="$ac_save_LIBS"
6489 # We can link X programs with no special library path.
6492 echo "configure
: failed program was
:" >&5
6493 cat conftest.$ac_ext >&5
6495 LIBS="$ac_save_LIBS"
6496 # First see if replacing the include by lib works.
6497 # Check X11 before X11Rn because it is often a symlink to the current release.
6498 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
6509 /usr/local/X11/lib \
6510 /usr/local/X11R6/lib \
6511 /usr/local/X11R5/lib \
6512 /usr/local/X11R4/lib \
6514 /usr/local/lib/X11 \
6515 /usr/local/lib/X11R6 \
6516 /usr/local/lib/X11R5 \
6517 /usr/local/lib/X11R4 \
6521 /usr/XFree86/lib/X11 \
6525 /usr/unsupported/lib \
6527 /usr/local/x11r5/lib \
6528 /usr/lpp/Xamples/lib \
6532 /usr/openwin/share/lib \
6535 for ac_extension in a so sl; do
6536 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
6537 ac_x_libraries=$ac_dir
6544 fi # $ac_x_libraries = NO
6546 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
6547 # Didn't find X anywhere. Cache the known absence of X.
6548 ac_cv_have_x="have_x
=no
"
6550 # Record where we found X for the cache.
6551 ac_cv_have_x="have_x
=yes \
6552 ac_x_includes
=$ac_x_includes ac_x_libraries
=$ac_x_libraries"
6556 eval "$ac_cv_have_x"
6559 if test "$have_x" != yes; then
6560 echo "$ac_t""$have_x" 1>&6
6563 # If each of the values was on the command line, it overrides each guess.
6564 test "x
$x_includes" = xNONE && x_includes=$ac_x_includes
6565 test "x
$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6566 # Update the cache value to reflect the command line values.
6567 ac_cv_have_x="have_x
=yes \
6568 ac_x_includes
=$x_includes ac_x_libraries
=$x_libraries"
6569 echo "$ac_t""libraries
$x_libraries, headers
$x_includes" 1>&6
6572 if test "$no_x" = yes; then
6573 # Not all programs may use this symbol, but it does not hurt to define it.
6574 cat >> confdefs.h <<\EOF
6575 #define X_DISPLAY_MISSING 1
6578 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6580 if test -n "$x_includes"; then
6581 X_CFLAGS="$X_CFLAGS -I$x_includes"
6584 # It would also be nice to do this for all -L options, not just this one.
6585 if test -n "$x_libraries"; then
6586 X_LIBS="$X_LIBS -L$x_libraries"
6587 # For Solaris; some versions of Sun CC require a space after -R and
6588 # others require no space. Words are not sufficient . . . .
6589 case "`(uname -sr) 2>/dev/null`" in
6591 echo $ac_n "checking whether
-R must be followed by a space
""...
$ac_c" 1>&6
6592 echo "configure
:6593: checking whether
-R must be followed by a space
" >&5
6593 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
6594 cat > conftest.$ac_ext <<EOF
6595 #line 6596 "configure
"
6596 #include "confdefs.h
"
6602 if { (eval echo configure:6603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6606 echo "configure
: failed program was
:" >&5
6607 cat conftest.$ac_ext >&5
6612 if test $ac_R_nospace = yes; then
6613 echo "$ac_t""no
" 1>&6
6614 X_LIBS="$X_LIBS -R$x_libraries"
6616 LIBS="$ac_xsave_LIBS -R $x_libraries"
6617 cat > conftest.$ac_ext <<EOF
6618 #line 6619 "configure
"
6619 #include "confdefs.h
"
6625 if { (eval echo configure:6626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6629 echo "configure
: failed program was
:" >&5
6630 cat conftest.$ac_ext >&5
6635 if test $ac_R_space = yes; then
6636 echo "$ac_t""yes" 1>&6
6637 X_LIBS="$X_LIBS -R $x_libraries"
6639 echo "$ac_t""neither works
" 1>&6
6642 LIBS="$ac_xsave_LIBS"
6646 # Check for system-dependent libraries X programs must link with.
6647 # Do this before checking for the system-independent R6 libraries
6648 # (-lICE), since we may need -lsocket or whatever for X linking.
6650 if test "$ISC" = yes; then
6651 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6653 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
6654 # libraries were built with DECnet support. And karl@cs.umb.edu says
6655 # the Alpha needs dnet_stub (dnet does not exist).
6656 echo $ac_n "checking
for dnet_ntoa
in -ldnet""...
$ac_c" 1>&6
6657 echo "configure
:6658: checking
for dnet_ntoa
in -ldnet" >&5
6658 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6659 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6660 echo $ac_n "(cached
) $ac_c" 1>&6
6662 ac_save_LIBS="$LIBS"
6664 cat > conftest.$ac_ext <<EOF
6665 #line 6666 "configure
"
6666 #include "confdefs.h
"
6667 /* Override any gcc2 internal prototype to avoid an error. */
6668 /* We use char because int might match the return type of a gcc2
6669 builtin and then its argument prototype would still apply. */
6676 if { (eval echo configure:6677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6678 eval "ac_cv_lib_
$ac_lib_var=yes"
6680 echo "configure
: failed program was
:" >&5
6681 cat conftest.$ac_ext >&5
6683 eval "ac_cv_lib_
$ac_lib_var=no
"
6686 LIBS="$ac_save_LIBS"
6689 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6690 echo "$ac_t""yes" 1>&6
6691 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6693 echo "$ac_t""no
" 1>&6
6696 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6697 echo $ac_n "checking
for dnet_ntoa
in -ldnet_stub""...
$ac_c" 1>&6
6698 echo "configure
:6699: checking
for dnet_ntoa
in -ldnet_stub" >&5
6699 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6700 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6701 echo $ac_n "(cached
) $ac_c" 1>&6
6703 ac_save_LIBS="$LIBS"
6704 LIBS="-ldnet_stub $LIBS"
6705 cat > conftest.$ac_ext <<EOF
6706 #line 6707 "configure
"
6707 #include "confdefs.h
"
6708 /* Override any gcc2 internal prototype to avoid an error. */
6709 /* We use char because int might match the return type of a gcc2
6710 builtin and then its argument prototype would still apply. */
6717 if { (eval echo configure:6718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6719 eval "ac_cv_lib_
$ac_lib_var=yes"
6721 echo "configure
: failed program was
:" >&5
6722 cat conftest.$ac_ext >&5
6724 eval "ac_cv_lib_
$ac_lib_var=no
"
6727 LIBS="$ac_save_LIBS"
6730 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6731 echo "$ac_t""yes" 1>&6
6732 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6734 echo "$ac_t""no
" 1>&6
6739 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6740 # to get the SysV transport functions.
6741 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
6743 # The nsl library prevents programs from opening the X display
6744 # on Irix 5.2, according to dickey@clark.net.
6745 echo $ac_n "checking
for gethostbyname
""...
$ac_c" 1>&6
6746 echo "configure
:6747: checking
for gethostbyname
" >&5
6747 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
6748 echo $ac_n "(cached
) $ac_c" 1>&6
6750 cat > conftest.$ac_ext <<EOF
6751 #line 6752 "configure
"
6752 #include "confdefs.h
"
6753 /* System header to define __stub macros and hopefully few prototypes,
6754 which can conflict with char gethostbyname(); below. */
6756 /* Override any gcc2 internal prototype to avoid an error. */
6757 /* We use char because int might match the return type of a gcc2
6758 builtin and then its argument prototype would still apply. */
6759 char gethostbyname();
6763 /* The GNU C library defines this for functions which it implements
6764 to always fail with ENOSYS. Some functions are actually named
6765 something starting with __ and the normal name is an alias. */
6766 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6774 if { (eval echo configure:6775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6776 eval "ac_cv_func_gethostbyname
=yes"
6778 echo "configure
: failed program was
:" >&5
6779 cat conftest.$ac_ext >&5
6781 eval "ac_cv_func_gethostbyname
=no
"
6786 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
6787 echo "$ac_t""yes" 1>&6
6790 echo "$ac_t""no
" 1>&6
6793 if test $ac_cv_func_gethostbyname = no; then
6794 echo $ac_n "checking
for gethostbyname
in -lnsl""...
$ac_c" 1>&6
6795 echo "configure
:6796: checking
for gethostbyname
in -lnsl" >&5
6796 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
6797 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6798 echo $ac_n "(cached
) $ac_c" 1>&6
6800 ac_save_LIBS="$LIBS"
6802 cat > conftest.$ac_ext <<EOF
6803 #line 6804 "configure
"
6804 #include "confdefs.h
"
6805 /* Override any gcc2 internal prototype to avoid an error. */
6806 /* We use char because int might match the return type of a gcc2
6807 builtin and then its argument prototype would still apply. */
6808 char gethostbyname();
6814 if { (eval echo configure:6815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6816 eval "ac_cv_lib_
$ac_lib_var=yes"
6818 echo "configure
: failed program was
:" >&5
6819 cat conftest.$ac_ext >&5
6821 eval "ac_cv_lib_
$ac_lib_var=no
"
6824 LIBS="$ac_save_LIBS"
6827 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6828 echo "$ac_t""yes" 1>&6
6829 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6831 echo "$ac_t""no
" 1>&6
6836 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6837 # socket/setsockopt and other routines are undefined under SCO ODT
6838 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6839 # on later versions), says simon@lia.di.epfl.ch: it contains
6840 # gethostby* variants that don't use the nameserver (or something).
6841 # -lsocket must be given before -lnsl if both are needed.
6842 # We assume that if connect needs -lnsl, so does gethostbyname.
6843 echo $ac_n "checking
for connect
""...
$ac_c" 1>&6
6844 echo "configure
:6845: checking
for connect
" >&5
6845 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
6846 echo $ac_n "(cached
) $ac_c" 1>&6
6848 cat > conftest.$ac_ext <<EOF
6849 #line 6850 "configure
"
6850 #include "confdefs.h
"
6851 /* System header to define __stub macros and hopefully few prototypes,
6852 which can conflict with char connect(); below. */
6854 /* Override any gcc2 internal prototype to avoid an error. */
6855 /* We use char because int might match the return type of a gcc2
6856 builtin and then its argument prototype would still apply. */
6861 /* The GNU C library defines this for functions which it implements
6862 to always fail with ENOSYS. Some functions are actually named
6863 something starting with __ and the normal name is an alias. */
6864 #if defined (__stub_connect) || defined (__stub___connect)
6872 if { (eval echo configure:6873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6874 eval "ac_cv_func_connect
=yes"
6876 echo "configure
: failed program was
:" >&5
6877 cat conftest.$ac_ext >&5
6879 eval "ac_cv_func_connect
=no
"
6884 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
6885 echo "$ac_t""yes" 1>&6
6888 echo "$ac_t""no
" 1>&6
6891 if test $ac_cv_func_connect = no; then
6892 echo $ac_n "checking
for connect
in -lsocket""...
$ac_c" 1>&6
6893 echo "configure
:6894: checking
for connect
in -lsocket" >&5
6894 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
6895 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6896 echo $ac_n "(cached
) $ac_c" 1>&6
6898 ac_save_LIBS="$LIBS"
6899 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6900 cat > conftest.$ac_ext <<EOF
6901 #line 6902 "configure
"
6902 #include "confdefs.h
"
6903 /* Override any gcc2 internal prototype to avoid an error. */
6904 /* We use char because int might match the return type of a gcc2
6905 builtin and then its argument prototype would still apply. */
6912 if { (eval echo configure:6913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6914 eval "ac_cv_lib_
$ac_lib_var=yes"
6916 echo "configure
: failed program was
:" >&5
6917 cat conftest.$ac_ext >&5
6919 eval "ac_cv_lib_
$ac_lib_var=no
"
6922 LIBS="$ac_save_LIBS"
6925 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6926 echo "$ac_t""yes" 1>&6
6927 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6929 echo "$ac_t""no
" 1>&6
6934 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
6935 echo $ac_n "checking
for remove
""...
$ac_c" 1>&6
6936 echo "configure
:6937: checking
for remove
" >&5
6937 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
6938 echo $ac_n "(cached
) $ac_c" 1>&6
6940 cat > conftest.$ac_ext <<EOF
6941 #line 6942 "configure
"
6942 #include "confdefs.h
"
6943 /* System header to define __stub macros and hopefully few prototypes,
6944 which can conflict with char remove(); below. */
6946 /* Override any gcc2 internal prototype to avoid an error. */
6947 /* We use char because int might match the return type of a gcc2
6948 builtin and then its argument prototype would still apply. */
6953 /* The GNU C library defines this for functions which it implements
6954 to always fail with ENOSYS. Some functions are actually named
6955 something starting with __ and the normal name is an alias. */
6956 #if defined (__stub_remove) || defined (__stub___remove)
6964 if { (eval echo configure:6965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6966 eval "ac_cv_func_remove
=yes"
6968 echo "configure
: failed program was
:" >&5
6969 cat conftest.$ac_ext >&5
6971 eval "ac_cv_func_remove
=no
"
6976 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
6977 echo "$ac_t""yes" 1>&6
6980 echo "$ac_t""no
" 1>&6
6983 if test $ac_cv_func_remove = no; then
6984 echo $ac_n "checking
for remove
in -lposix""...
$ac_c" 1>&6
6985 echo "configure
:6986: checking
for remove
in -lposix" >&5
6986 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
6987 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6988 echo $ac_n "(cached
) $ac_c" 1>&6
6990 ac_save_LIBS="$LIBS"
6991 LIBS="-lposix $LIBS"
6992 cat > conftest.$ac_ext <<EOF
6993 #line 6994 "configure
"
6994 #include "confdefs.h
"
6995 /* Override any gcc2 internal prototype to avoid an error. */
6996 /* We use char because int might match the return type of a gcc2
6997 builtin and then its argument prototype would still apply. */
7004 if { (eval echo configure:7005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7006 eval "ac_cv_lib_
$ac_lib_var=yes"
7008 echo "configure
: failed program was
:" >&5
7009 cat conftest.$ac_ext >&5
7011 eval "ac_cv_lib_
$ac_lib_var=no
"
7014 LIBS="$ac_save_LIBS"
7017 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7018 echo "$ac_t""yes" 1>&6
7019 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7021 echo "$ac_t""no
" 1>&6
7026 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7027 echo $ac_n "checking
for shmat
""...
$ac_c" 1>&6
7028 echo "configure
:7029: checking
for shmat
" >&5
7029 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
7030 echo $ac_n "(cached
) $ac_c" 1>&6
7032 cat > conftest.$ac_ext <<EOF
7033 #line 7034 "configure
"
7034 #include "confdefs.h
"
7035 /* System header to define __stub macros and hopefully few prototypes,
7036 which can conflict with char shmat(); below. */
7038 /* Override any gcc2 internal prototype to avoid an error. */
7039 /* We use char because int might match the return type of a gcc2
7040 builtin and then its argument prototype would still apply. */
7045 /* The GNU C library defines this for functions which it implements
7046 to always fail with ENOSYS. Some functions are actually named
7047 something starting with __ and the normal name is an alias. */
7048 #if defined (__stub_shmat) || defined (__stub___shmat)
7056 if { (eval echo configure:7057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7058 eval "ac_cv_func_shmat
=yes"
7060 echo "configure
: failed program was
:" >&5
7061 cat conftest.$ac_ext >&5
7063 eval "ac_cv_func_shmat
=no
"
7068 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
7069 echo "$ac_t""yes" 1>&6
7072 echo "$ac_t""no
" 1>&6
7075 if test $ac_cv_func_shmat = no; then
7076 echo $ac_n "checking
for shmat
in -lipc""...
$ac_c" 1>&6
7077 echo "configure
:7078: checking
for shmat
in -lipc" >&5
7078 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
7079 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7080 echo $ac_n "(cached
) $ac_c" 1>&6
7082 ac_save_LIBS="$LIBS"
7084 cat > conftest.$ac_ext <<EOF
7085 #line 7086 "configure
"
7086 #include "confdefs.h
"
7087 /* Override any gcc2 internal prototype to avoid an error. */
7088 /* We use char because int might match the return type of a gcc2
7089 builtin and then its argument prototype would still apply. */
7096 if { (eval echo configure:7097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7098 eval "ac_cv_lib_
$ac_lib_var=yes"
7100 echo "configure
: failed program was
:" >&5
7101 cat conftest.$ac_ext >&5
7103 eval "ac_cv_lib_
$ac_lib_var=no
"
7106 LIBS="$ac_save_LIBS"
7109 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7110 echo "$ac_t""yes" 1>&6
7111 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7113 echo "$ac_t""no
" 1>&6
7119 # Check for libraries that X11R6 Xt/Xaw programs need.
7120 ac_save_LDFLAGS="$LDFLAGS"
7121 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7122 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7123 # check for ICE first), but we must link in the order -lSM -lICE or
7124 # we get undefined symbols. So assume we have SM if we have ICE.
7125 # These have to be linked with before -lX11, unlike the other
7126 # libraries we check for below, so use a different variable.
7127 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
7128 echo $ac_n "checking
for IceConnectionNumber
in -lICE""...
$ac_c" 1>&6
7129 echo "configure
:7130: checking
for IceConnectionNumber
in -lICE" >&5
7130 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
7131 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7132 echo $ac_n "(cached
) $ac_c" 1>&6
7134 ac_save_LIBS="$LIBS"
7135 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7136 cat > conftest.$ac_ext <<EOF
7137 #line 7138 "configure
"
7138 #include "confdefs.h
"
7139 /* Override any gcc2 internal prototype to avoid an error. */
7140 /* We use char because int might match the return type of a gcc2
7141 builtin and then its argument prototype would still apply. */
7142 char IceConnectionNumber();
7145 IceConnectionNumber()
7148 if { (eval echo configure:7149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7150 eval "ac_cv_lib_
$ac_lib_var=yes"
7152 echo "configure
: failed program was
:" >&5
7153 cat conftest.$ac_ext >&5
7155 eval "ac_cv_lib_
$ac_lib_var=no
"
7158 LIBS="$ac_save_LIBS"
7161 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7162 echo "$ac_t""yes" 1>&6
7163 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7165 echo "$ac_t""no
" 1>&6
7168 LDFLAGS="$ac_save_LDFLAGS"
7173 # Check whether --enable-java-awt or --disable-java-awt was given.
7174 if test "${enable_java_awt+set}" = set; then
7175 enableval="$enable_java_awt"
7180 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
7184 for peer in $peerlibs ; do
7187 if test "$no_x" = yes; then
7188 echo "*** xlib peers requested but no X library available
" 1>&2
7198 echo "*** unrecognised argument
\"${peer}\" for --enable-java-awt" 1>&2
7205 if test "$use_xlib_awt" = yes; then
7214 if test "$use_gtk_awt" = yes; then
7226 # We get this from the environment.
7230 cat > confcache <<\EOF
7231 # This file is a shell script that caches the results of configure
7232 # tests run on this system so they can be shared between configure
7233 # scripts and configure runs. It is not useful on other systems.
7234 # If it contains results you don't want to keep, you may remove or edit it.
7236 # By default, configure uses ./config.cache as the cache file,
7237 # creating it if it does not exist already. You can give configure
7238 # the --cache-file=FILE option to use a different cache file; that is
7239 # what configure does when it calls configure scripts in
7240 # subdirectories, so they share the cache.
7241 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7242 # config.status only pays attention to the cache file if you give it the
7243 # --recheck option to rerun configure.
7246 # The following way of writing the cache mishandles newlines in values,
7247 # but we know of no workaround that is simple, portable, and efficient.
7248 # So, don't put newlines in cache variables' values.
7249 # Ultrix sh set writes to stderr and can't be redirected directly,
7250 # and sets the high bit in the cache file unless we assign to the vars.
7252 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7254 # `set' does not quote correctly, so add quotes (double-quote substitution
7255 # turns \\\\ into \\, and sed turns \\ into \).
7257 -e "s
/'/'\\\\''/g
" \
7258 -e "s
/^
\\([a-zA-Z0-9_
]*_cv_
[a-zA-Z0-9_
]*\\)=\\(.
*\\)/\\1=\
${\\1='\\2'}/p
"
7261 # `set' quotes correctly as required by POSIX, so do not add quotes.
7262 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7265 if cmp -s $cache_file confcache; then
7268 if test -w $cache_file; then
7269 echo "updating cache
$cache_file"
7270 cat confcache > $cache_file
7272 echo "not updating unwritable cache
$cache_file"
7277 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7279 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
7280 # Let make expand exec_prefix.
7281 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
7283 # Any assignment to VPATH causes Sun make to only execute
7284 # the first set of double-colon rules, so remove it if not needed.
7285 # If there is a colon in the path, we need to keep it.
7286 if test "x
$srcdir" = x.; then
7287 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7290 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7292 DEFS=-DHAVE_CONFIG_H
7294 # Without the ".
/", some shells look in PATH for config.status.
7295 : ${CONFIG_STATUS=./config.status}
7297 echo creating $CONFIG_STATUS
7298 rm -f $CONFIG_STATUS
7299 cat > $CONFIG_STATUS <<EOF
7301 # Generated automatically by configure.
7302 # Run this file to recreate the current configuration.
7303 # This directory was configured as follows,
7304 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7306 # $0 $ac_configure_args
7308 # Compiler output produced by configure, useful for debugging
7309 # configure, is in ./config.log if it exists.
7311 ac_cs_usage="Usage
: $CONFIG_STATUS [--recheck] [--version] [--help]"
7314 case "\
$ac_option" in
7315 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7316 echo "running \
${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7317 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7318 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7319 echo "$CONFIG_STATUS generated by autoconf version
2.13"
7321 -help | --help | --hel | --he | --h)
7322 echo "\
$ac_cs_usage"; exit 0 ;;
7323 *) echo "\
$ac_cs_usage"; exit 1 ;;
7327 ac_given_srcdir=$srcdir
7328 ac_given_INSTALL="$INSTALL"
7330 trap 'rm -fr `echo "Makefile libgcj.spec libgcj-test.spec gnu
/classpath
/Configuration.java gcj
/Makefile include
/Makefile testsuite
/Makefile include
/config.h gcj
/libgcj-config.h
" | sed "s
/:[^
]*//g
"` conftest*; exit 1' 1 2 15
7332 cat >> $CONFIG_STATUS <<EOF
7334 # Protect against being on the right side of a sed subst in config.status.
7335 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7336 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7340 s%@CFLAGS@%$CFLAGS%g
7341 s%@CPPFLAGS@%$CPPFLAGS%g
7342 s%@CXXFLAGS@%$CXXFLAGS%g
7343 s%@FFLAGS@%$FFLAGS%g
7345 s%@LDFLAGS@%$LDFLAGS%g
7347 s%@exec_prefix@%$exec_prefix%g
7348 s%@prefix@%$prefix%g
7349 s%@program_transform_name@%$program_transform_name%g
7350 s%@bindir@%$bindir%g
7351 s%@sbindir@%$sbindir%g
7352 s%@libexecdir@%$libexecdir%g
7353 s%@datadir@%$datadir%g
7354 s%@sysconfdir@%$sysconfdir%g
7355 s%@sharedstatedir@%$sharedstatedir%g
7356 s%@localstatedir@%$localstatedir%g
7357 s%@libdir@%$libdir%g
7358 s%@includedir@%$includedir%g
7359 s%@oldincludedir@%$oldincludedir%g
7360 s%@infodir@%$infodir%g
7361 s%@mandir@%$mandir%g
7363 s%@libgcj_basedir@%$libgcj_basedir%g
7364 s%@mkinstalldirs@%$mkinstalldirs%g
7366 s%@host_alias@%$host_alias%g
7367 s%@host_cpu@%$host_cpu%g
7368 s%@host_vendor@%$host_vendor%g
7369 s%@host_os@%$host_os%g
7370 s%@target@%$target%g
7371 s%@target_alias@%$target_alias%g
7372 s%@target_cpu@%$target_cpu%g
7373 s%@target_vendor@%$target_vendor%g
7374 s%@target_os@%$target_os%g
7376 s%@build_alias@%$build_alias%g
7377 s%@build_cpu@%$build_cpu%g
7378 s%@build_vendor@%$build_vendor%g
7379 s%@build_os@%$build_os%g
7382 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7383 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7384 s%@INSTALL_DATA@%$INSTALL_DATA%g
7385 s%@PACKAGE@%$PACKAGE%g
7386 s%@VERSION@%$VERSION%g
7387 s%@EXEEXT@%$EXEEXT%g
7388 s%@OBJEXT@%$OBJEXT%g
7389 s%@ACLOCAL@%$ACLOCAL%g
7390 s%@AUTOCONF@%$AUTOCONF%g
7391 s%@AUTOMAKE@%$AUTOMAKE%g
7392 s%@AUTOHEADER@%$AUTOHEADER%g
7393 s%@MAKEINFO@%$MAKEINFO%g
7395 s%@install_sh@%$install_sh%g
7396 s%@INSTALL_STRIP_PROGRAM@%$INSTALL_STRIP_PROGRAM%g
7398 s%@SET_MAKE@%$SET_MAKE%g
7399 s%@AMDEP_TRUE@%$AMDEP_TRUE%g
7400 s%@AMDEP_FALSE@%$AMDEP_FALSE%g
7401 s%@AMDEPBACKSLASH@%$AMDEPBACKSLASH%g
7402 s%@DEPDIR@%$DEPDIR%g
7403 s%@am__include@%$am__include%g
7404 s%@am__quote@%$am__quote%g
7405 s%@CCDEPMODE@%$CCDEPMODE%g
7406 s%@CXXDEPMODE@%$CXXDEPMODE%g
7409 s%@RANLIB@%$RANLIB%g
7410 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
7411 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
7413 s%@LIBGCJ_CFLAGS@%$LIBGCJ_CFLAGS%g
7414 s%@LIBGCJ_CXXFLAGS@%$LIBGCJ_CXXFLAGS%g
7415 s%@LIBGCJ_JAVAFLAGS@%$LIBGCJ_JAVAFLAGS%g
7416 s%@INCLTDL@%$INCLTDL%g
7417 s%@LIBLTDL@%$LIBLTDL%g
7418 s%@DIRLTDL@%$DIRLTDL%g
7420 s%@LIBTOOL@%$LIBTOOL%g
7421 s%@CXXCPP@%$CXXCPP%g
7422 s%@subdirs@%$subdirs%g
7423 s%@COMPPATH@%$COMPPATH%g
7424 s%@TESTSUBDIR_TRUE@%$TESTSUBDIR_TRUE%g
7425 s%@TESTSUBDIR_FALSE@%$TESTSUBDIR_FALSE%g
7426 s%@LIBGCJDEBUG@%$LIBGCJDEBUG%g
7427 s%@LIBFFI@%$LIBFFI%g
7428 s%@LIBFFIINCS@%$LIBFFIINCS%g
7430 s%@SYSTEMSPEC@%$SYSTEMSPEC%g
7431 s%@LIBGCJTESTSPEC@%$LIBGCJTESTSPEC%g
7432 s%@ZLIBSPEC@%$ZLIBSPEC%g
7433 s%@ZLIBTESTSPEC@%$ZLIBTESTSPEC%g
7434 s%@GCLIBS@%$GCLIBS%g
7435 s%@GCINCS@%$GCINCS%g
7436 s%@GCDEPS@%$GCDEPS%g
7437 s%@GCOBJS@%$GCOBJS%g
7438 s%@GCSPEC@%$GCSPEC%g
7439 s%@JC1GCSPEC@%$JC1GCSPEC%g
7440 s%@GCTESTSPEC@%$GCTESTSPEC%g
7441 s%@THREADLIBS@%$THREADLIBS%g
7442 s%@THREADINCS@%$THREADINCS%g
7443 s%@THREADDEPS@%$THREADDEPS%g
7444 s%@THREADOBJS@%$THREADOBJS%g
7445 s%@THREADSPEC@%$THREADSPEC%g
7446 s%@HASH_SYNC_SPEC@%$HASH_SYNC_SPEC%g
7447 s%@USING_GCC_TRUE@%$USING_GCC_TRUE%g
7448 s%@USING_GCC_FALSE@%$USING_GCC_FALSE%g
7449 s%@LIBICONV@%$LIBICONV%g
7451 s%@GCJFLAGS@%$GCJFLAGS%g
7455 s%@DIVIDESPEC@%$DIVIDESPEC%g
7456 s%@EXCEPTIONSPEC@%$EXCEPTIONSPEC%g
7457 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
7458 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
7459 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
7460 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
7461 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
7462 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
7463 s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
7464 s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
7465 s%@NEEDS_DATA_START_TRUE@%$NEEDS_DATA_START_TRUE%g
7466 s%@NEEDS_DATA_START_FALSE@%$NEEDS_DATA_START_FALSE%g
7467 s%@GCC_UNWIND_INCLUDE@%$GCC_UNWIND_INCLUDE%g
7468 s%@GCJVERSION@%$GCJVERSION%g
7469 s%@AM_RUNTESTFLAGS@%$AM_RUNTESTFLAGS%g
7470 s%@ALLOCA@%$ALLOCA%g
7472 s%@SYSDEP_SOURCES@%$SYSDEP_SOURCES%g
7473 s%@X_CFLAGS@%$X_CFLAGS%g
7474 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
7475 s%@X_LIBS@%$X_LIBS%g
7476 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
7477 s%@XLIB_AWT_TRUE@%$XLIB_AWT_TRUE%g
7478 s%@XLIB_AWT_FALSE@%$XLIB_AWT_FALSE%g
7479 s%@GTK_AWT_TRUE@%$GTK_AWT_TRUE%g
7480 s%@GTK_AWT_FALSE@%$GTK_AWT_FALSE%g
7486 cat >> $CONFIG_STATUS <<\EOF
7488 # Split the substitutions into bite-sized pieces for seds with
7489 # small command number limits, like on Digital OSF/1 and HP-UX.
7490 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7491 ac_file=1 # Number of current file.
7492 ac_beg=1 # First line for current file.
7493 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7496 while $ac_more_lines; do
7497 if test $ac_beg -gt 1; then
7498 sed "1,${ac_beg}d
; ${ac_end}q
" conftest.subs > conftest.s$ac_file
7500 sed "${ac_end}q
" conftest.subs > conftest.s$ac_file
7502 if test ! -s conftest.s$ac_file; then
7504 rm -f conftest.s$ac_file
7506 if test -z "$ac_sed_cmds"; then
7507 ac_sed_cmds="sed -f conftest.s
$ac_file"
7509 ac_sed_cmds="$ac_sed_cmds |
sed -f conftest.s
$ac_file"
7511 ac_file=`expr $ac_file + 1`
7513 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7516 if test -z "$ac_sed_cmds"; then
7521 cat >> $CONFIG_STATUS <<EOF
7523 CONFIG_FILES=\${CONFIG_FILES-"Makefile libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile"}
7525 cat >> $CONFIG_STATUS <<\EOF
7526 for ac_file in .. $CONFIG_FILES; do if test "x
$ac_file" != x..; then
7527 # Support "outfile
[:infile
[:infile...
]]", defaulting infile="outfile.
in".
7529 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7530 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7531 *) ac_file_in="${ac_file}.
in" ;;
7534 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7536 # Remove last slash and all that follows it. Not all systems have dirname.
7537 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7538 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7539 # The file is in a subdirectory.
7540 test ! -d "$ac_dir" && mkdir "$ac_dir"
7541 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7542 # A "..
/" for each directory in $ac_dir_suffix.
7543 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7545 ac_dir_suffix= ac_dots=
7548 case "$ac_given_srcdir" in
7550 if test -z "$ac_dots"; then top_srcdir=.
7551 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7552 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7554 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7555 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7558 case "$ac_given_INSTALL" in
7559 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7560 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7563 echo creating "$ac_file"
7565 configure_input="Generated automatically from
`echo $ac_file_in|sed 's%.*/%%'` by configure.
"
7567 *Makefile*) ac_comsub="1i
\\
7568 # $configure_input" ;;
7572 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7574 s%@configure_input@%$configure_input%g
7575 s%@srcdir@%$srcdir%g
7576 s%@top_srcdir@%$top_srcdir%g
7577 s%@INSTALL@%$INSTALL%g
7578 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
7582 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7583 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7585 # ac_d sets the value in "#define NAME VALUE" lines.
7586 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7587 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
7590 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7591 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7592 ac_uB
='\([ ]\)%\1#\2define\3'
7595 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7596 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7597 ac_eB
='$%\1#\2define\3'
7601 if test "${CONFIG_HEADERS+set}" != set; then
7603 cat >> $CONFIG_STATUS <<EOF
7604 CONFIG_HEADERS="include/config.h gcj/libgcj-config.h"
7606 cat >> $CONFIG_STATUS <<\EOF
7608 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
7609 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7611 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
7612 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
7613 *) ac_file_in
="${ac_file}.in" ;;
7616 echo creating
$ac_file
7618 rm -f conftest.frag conftest.
in conftest.out
7619 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7620 cat $ac_file_inputs > conftest.
in
7624 # Transform confdefs.h into a sed script conftest.vals that substitutes
7625 # the proper values into config.h.in to produce config.h. And first:
7626 # Protect against being on the right side of a sed subst in config.status.
7627 # Protect against being in an unquoted here document in config.status.
7629 cat > conftest.hdr
<<\EOF
7632 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7636 sed -n -f conftest.hdr confdefs.h > conftest.vals
7639 # This sed command replaces #undef with comments. This is necessary, for
7640 # example, in the case of _POSIX_SOURCE, which is predefined and required
7641 # on some systems where configure will not decide to define it.
7642 cat >> conftest.vals <<\EOF
7643 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7646 # Break up conftest.vals because some shells have a limit on
7647 # the size of here documents, and old seds have small limits too.
7652 ac_lines=`grep -c . conftest.vals
`
7653 # grep -c gives empty output for an empty file on some AIX systems.
7654 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7655 # Write a limited-size here document to conftest.frag.
7656 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7657 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7659 sed -f conftest.frag conftest.in > conftest.out
7661 mv conftest.out conftest.in
7663 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7665 mv conftest.tail conftest.vals
7669 cat >> $CONFIG_STATUS <<\EOF
7670 rm -f conftest.frag conftest.h
7671 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7672 cat conftest.in >> conftest.h
7674 if cmp -s $ac_file conftest.h 2>/dev/null; then
7675 echo "$ac_file is unchanged"
7678 # Remove last slash and all that follows it. Not all systems have dirname.
7679 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
7680 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7681 # The file is in a subdirectory.
7682 test ! -d "$ac_dir" && mkdir "$ac_dir"
7685 mv conftest.h $ac_file
7691 cat >> $CONFIG_STATUS <<EOF
7692 ac_sources="java/io/$FILE_DESCRIPTOR java/lang/${PROCESS}Process.java java/lang/nat${PROCESS}Process.cc include/$GCHDR include/$THREADH $SIGNAL_HANDLER"
7693 ac_dests="java/io/natFileDescriptor.cc java/lang/ConcreteProcess.java java/lang/natConcreteProcess.cc include/java-gc.h include/java-threads.h include/java-signal.h"
7696 cat >> $CONFIG_STATUS <<\EOF
7697 srcdir=$ac_given_srcdir
7698 while test -n "$ac_sources"; do
7699 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
7700 set $ac_sources; ac_source=$1; shift; ac_sources=$*
7702 echo "linking $srcdir/$ac_source to $ac_dest"
7704 if test ! -r $srcdir/$ac_source; then
7705 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
7709 # Make relative symlinks.
7710 # Remove last slash and all that follows it. Not all systems have dirname.
7711 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
7712 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
7713 # The dest file is in a subdirectory.
7714 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
7715 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
7716 # A "../" for each directory in $ac_dest_dir_suffix.
7717 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
7719 ac_dest_dir_suffix= ac_dots=
7723 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
7724 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
7727 # Make a symlink if possible; otherwise try a hard link.
7728 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
7729 ln $srcdir/$ac_source $ac_dest; then :
7731 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
7735 cat >> $CONFIG_STATUS <<EOF
7736 AMDEP_TRUE="$AMDEP_TRUE"
7737 ac_aux_dir="$ac_aux_dir"
7739 for am_file in include/config.h gcj/libgcj-config.h; do
7740 case " \$CONFIG_HEADERS " in
7742 am_dir=\`echo \
$am_file |
sed 's%:.*%%;s%[^/]*\$%%'\
`
7743 if test -n "\$am_dir"; then
7744 am_tmpdir=\`echo \
$am_dir |
sed 's%^\(/*\).*\$%\1%'\
`
7745 for am_subdir in \`echo \
$am_dir |
sed 's%/% %'\
`; do
7746 am_tmpdir=\$am_tmpdir\$am_subdir/
7747 if test ! -d \$am_tmpdir; then
7752 echo timestamp > "\$am_dir"stamp-h\$am_indx
7755 am_indx=\`expr \
$am_indx + 1\
`
7760 with_multisubdir=${with_multisubdir}
7761 ac_configure_args="${multilib_arg} ${ac_configure_args}"
7762 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
7763 libgcj_basedir=${libgcj_basedir}
7768 cat >> $CONFIG_STATUS <<\EOF
7770 test x"$AMDEP_TRUE" != x"" ||
7771 for mf in $CONFIG_FILES; do
7773 Makefile) dirpart=.;;
7774 */Makefile) dirpart=`echo "$mf" |
sed -e 's|/[^/]*$||'`;;
7777 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
7778 # Extract the definition of DEP_FILES from the Makefile without
7780 DEPDIR=`sed -n -e '/^DEPDIR
= / s
///p
' < "$mf"`
7781 test -z "$DEPDIR" && continue
7782 # When using ansi2knr, U may be empty or an underscore; expand it
7783 U=`sed -n -e '/^U
= / s
///p
' < "$mf"`
7784 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
7785 # We invoke sed twice because it is the simplest approach to
7786 # changing $(DEPDIR) to its actual value in the expansion.
7787 for file in `sed -n -e '
7788 /^DEP_FILES
= .
*\\\\$
/ {
7797 /^DEP_FILES
= / s
/^DEP_FILES
= //p
' < "$mf" | \
7798 sed -e 's
/\$
(DEPDIR
)/'"$DEPDIR"'/g
' -e 's
/\
$U/'"$U"'/g
'`; do
7799 # Make sure the directory exists.
7800 test -f "$dirpart/$file" && continue
7801 fdir=`echo "$file" | sed -e 's|
/[^
/]*$||
'`
7802 $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
7803 # echo "creating $dirpart/$file"
7804 echo '# dummy' > "$dirpart/$file"
7809 # Only add multilib support code if we just rebuilt top-level Makefile.
7810 case " $CONFIG_FILES " in
7812 ac_file
=Makefile .
${libgcj_basedir}/..
/config-ml.
in
7816 # Make subdirectories and `.d' files. Look in both srcdir and
7817 # builddir for the .java files.
7820 ( (cd $srcdir && find .
-name '*.java' -print) ;
7821 find .
-name '*.java' -print) | \
7822 fgrep
-v testsuite | \
7823 sed -e 's/\.java/.d/' | \
7825 echo "include $f" >> deps.mk
7828 d
=`echo $f | sed -e 's,/[^/]*$,,'`
7830 $libgcj_basedir/..
/mkinstalldirs
$d
7837 chmod +x
$CONFIG_STATUS
7838 rm -fr confdefs
* $ac_clean_files
7839 test "$no_create" = yes ||
${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS ||
exit 1
7841 if test "$no_recursion" != yes; then
7843 # Remove --cache-file and --srcdir arguments so they do not pile up.
7844 ac_sub_configure_args
=
7846 for ac_arg
in $ac_configure_args; do
7847 if test -n "$ac_prev"; then
7852 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
7853 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
7854 ac_prev
=cache_file
;;
7855 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
7856 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
7858 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
7860 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
7862 *) ac_sub_configure_args
="$ac_sub_configure_args $ac_arg" ;;
7866 for ac_config_dir
in $DIRLTDL; do
7868 # Do not complain, so a configure script can configure whichever
7869 # parts of a large source tree are present.
7870 if test ! -d $srcdir/$ac_config_dir; then
7874 echo configuring
in $ac_config_dir
7879 if test -d .
/$ac_config_dir || mkdir .
/$ac_config_dir; then :;
7881 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
7889 # A "../" for each directory in /$ac_config_dir.
7890 ac_dots
=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
7893 .
) # No --srcdir option. We are building in place.
7894 ac_sub_srcdir
=$srcdir ;;
7895 /*) # Absolute path.
7896 ac_sub_srcdir
=$srcdir/$ac_config_dir ;;
7898 ac_sub_srcdir
=$ac_dots$srcdir/$ac_config_dir ;;
7901 # Check for guested configure; otherwise get Cygnus style configure.
7902 if test -f $ac_sub_srcdir/configure
; then
7903 ac_sub_configure
=$ac_sub_srcdir/configure
7904 elif test -f $ac_sub_srcdir/configure.
in; then
7905 ac_sub_configure
=$ac_configure
7907 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
7911 # The recursion is here.
7912 if test -n "$ac_sub_configure"; then
7914 # Make the cache file name correct relative to the subdirectory.
7915 case "$cache_file" in
7916 /*) ac_sub_cache_file
=$cache_file ;;
7918 ac_sub_cache_file
="$ac_dots$cache_file" ;;
7920 case "$ac_given_INSTALL" in
7921 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
7922 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
7925 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
7926 # The eval makes quoting arguments work.
7927 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
7930 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }