3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --with-target-subdir=SUBDIR
16 configuring in a subdirectory"
18 --with-cross-host=HOST configuring with a cross compiler"
20 --enable-multilib build many library versions (default)"
22 --enable-maintainer-mode enable make rules and dependencies not useful
23 (and sometimes confusing) to the casual installer"
25 --enable-shared[=PKGS] build shared libraries [default=yes]"
27 --enable-static[=PKGS] build static libraries [default=yes]"
29 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
31 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
33 --disable-libtool-lock avoid locking (might break parallel builds)"
35 --with-pic try to use only PIC/non-PIC objects [default=use both]"
37 --enable-fast-character prefer speed over size for Character"
39 --disable-getenv-properties
40 don't set system properties from GCJ_PROPERTIES"
42 --enable-libgcj-debug enable runtime debugging code"
44 --enable-interpreter enable interpreter"
46 --enable-sjlj-exceptions force use of builtin_setjmp for exceptions"
48 --disable-java-net disable java.net"
50 --disable-jvmpi disable JVMPI support"
52 --with-ecos enable runtime eCos target support"
54 --with-system-zlib use installed libz"
56 --enable-java-gc=TYPE choose garbage collector [boehm]"
58 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
60 --with-x use the X Window System"
62 --enable-java-awt list of AWT peer implementations to be built"
64 # Initialize some variables set by options.
65 # The variables have the same names as the options, with
66 # dashes changed to underlines.
68 cache_file
=.
/config.cache
77 program_transform_name
=s
,x
,x
,
85 bindir
='${exec_prefix}/bin'
86 sbindir
='${exec_prefix}/sbin'
87 libexecdir
='${exec_prefix}/libexec'
88 datadir
='${prefix}/share'
89 sysconfdir
='${prefix}/etc'
90 sharedstatedir
='${prefix}/com'
91 localstatedir
='${prefix}/var'
92 libdir
='${exec_prefix}/lib'
93 includedir
='${prefix}/include'
94 oldincludedir
='/usr/include'
95 infodir
='${prefix}/info'
96 mandir
='${prefix}/man'
98 # Initialize some other variables.
101 SHELL
=${CONFIG_SHELL-/bin/sh}
102 # Maximum number of lines to put in a shell here document.
109 # If the previous option needs an argument, assign it.
110 if test -n "$ac_prev"; then
111 eval "$ac_prev=\$ac_option"
117 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
121 # Accept the important Cygnus configure options, so we can diagnose typos.
125 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
127 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
128 bindir
="$ac_optarg" ;;
130 -build |
--build |
--buil |
--bui |
--bu)
132 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
133 build
="$ac_optarg" ;;
135 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
136 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
137 ac_prev
=cache_file
;;
138 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
139 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
140 cache_file
="$ac_optarg" ;;
142 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
144 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
146 datadir
="$ac_optarg" ;;
148 -disable-* |
--disable-*)
149 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
150 # Reject names that are not valid shell variable names.
151 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
152 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
154 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
155 eval "enable_${ac_feature}=no" ;;
157 -enable-* |
--enable-*)
158 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
159 # Reject names that are not valid shell variable names.
160 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
161 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
163 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
168 eval "enable_${ac_feature}='$ac_optarg'" ;;
170 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
171 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
172 |
--exec |
--exe |
--ex)
173 ac_prev
=exec_prefix
;;
174 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
175 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
176 |
--exec=* |
--exe=* |
--ex=*)
177 exec_prefix
="$ac_optarg" ;;
179 -gas |
--gas |
--ga |
--g)
180 # Obsolete; use --with-gas.
183 -help |
--help |
--hel |
--he)
184 # Omit some internal or obsolete options to make the list less imposing.
185 # This message is too long to be a string in the A/UX 3.1 sh.
187 Usage: configure [options] [host]
188 Options: [defaults in brackets after descriptions]
190 --cache-file=FILE cache test results in FILE
191 --help print this message
192 --no-create do not create output files
193 --quiet, --silent do not print \`checking...' messages
194 --version print the version of autoconf that created configure
195 Directory and file names:
196 --prefix=PREFIX install architecture-independent files in PREFIX
198 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
200 --bindir=DIR user executables in DIR [EPREFIX/bin]
201 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
202 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
203 --datadir=DIR read-only architecture-independent data in DIR
205 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
206 --sharedstatedir=DIR modifiable architecture-independent data in DIR
208 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
209 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
210 --includedir=DIR C header files in DIR [PREFIX/include]
211 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
212 --infodir=DIR info documentation in DIR [PREFIX/info]
213 --mandir=DIR man documentation in DIR [PREFIX/man]
214 --srcdir=DIR find the sources in DIR [configure dir or ..]
215 --program-prefix=PREFIX prepend PREFIX to installed program names
216 --program-suffix=SUFFIX append SUFFIX to installed program names
217 --program-transform-name=PROGRAM
218 run sed PROGRAM on installed program names
222 --build=BUILD configure for building on BUILD [BUILD=HOST]
223 --host=HOST configure for HOST [guessed]
224 --target=TARGET configure for TARGET [TARGET=HOST]
225 Features and packages:
226 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
227 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
228 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
229 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
230 --x-includes=DIR X include files are in DIR
231 --x-libraries=DIR X library files are in DIR
233 if test -n "$ac_help"; then
234 echo "--enable and --with options recognized:$ac_help"
238 -host |
--host |
--hos |
--ho)
240 -host=* |
--host=* |
--hos=* |
--ho=*)
243 -includedir |
--includedir |
--includedi |
--included |
--include \
244 |
--includ |
--inclu |
--incl |
--inc)
245 ac_prev
=includedir
;;
246 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
247 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
248 includedir
="$ac_optarg" ;;
250 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
252 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
253 infodir
="$ac_optarg" ;;
255 -libdir |
--libdir |
--libdi |
--libd)
257 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
258 libdir
="$ac_optarg" ;;
260 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
261 |
--libexe |
--libex |
--libe)
262 ac_prev
=libexecdir
;;
263 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
264 |
--libexe=* |
--libex=* |
--libe=*)
265 libexecdir
="$ac_optarg" ;;
267 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
268 |
--localstate |
--localstat |
--localsta |
--localst \
269 |
--locals |
--local |
--loca |
--loc |
--lo)
270 ac_prev
=localstatedir
;;
271 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
272 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
273 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
274 localstatedir
="$ac_optarg" ;;
276 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
278 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
279 mandir
="$ac_optarg" ;;
282 # Obsolete; use --without-fp.
285 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
289 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
290 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
293 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
294 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
295 |
--oldin |
--oldi |
--old |
--ol |
--o)
296 ac_prev
=oldincludedir
;;
297 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
298 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
299 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
300 oldincludedir
="$ac_optarg" ;;
302 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
304 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
305 prefix
="$ac_optarg" ;;
307 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
308 |
--program-pre |
--program-pr |
--program-p)
309 ac_prev
=program_prefix
;;
310 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
311 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
312 program_prefix
="$ac_optarg" ;;
314 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
315 |
--program-suf |
--program-su |
--program-s)
316 ac_prev
=program_suffix
;;
317 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
318 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
319 program_suffix
="$ac_optarg" ;;
321 -program-transform-name |
--program-transform-name \
322 |
--program-transform-nam |
--program-transform-na \
323 |
--program-transform-n |
--program-transform- \
324 |
--program-transform |
--program-transfor \
325 |
--program-transfo |
--program-transf \
326 |
--program-trans |
--program-tran \
327 |
--progr-tra |
--program-tr |
--program-t)
328 ac_prev
=program_transform_name
;;
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 program_transform_name
="$ac_optarg" ;;
338 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
339 |
-silent |
--silent |
--silen |
--sile |
--sil)
342 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
344 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
346 sbindir
="$ac_optarg" ;;
348 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
349 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
350 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
352 ac_prev
=sharedstatedir
;;
353 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
354 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
355 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
357 sharedstatedir
="$ac_optarg" ;;
359 -site |
--site |
--sit)
361 -site=* |
--site=* |
--sit=*)
364 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
366 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
367 srcdir
="$ac_optarg" ;;
369 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
370 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
371 ac_prev
=sysconfdir
;;
372 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
373 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
374 sysconfdir
="$ac_optarg" ;;
376 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
378 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
379 target
="$ac_optarg" ;;
381 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
384 -version |
--version |
--versio |
--versi |
--vers)
385 echo "configure generated by autoconf version 2.13"
389 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
390 # Reject names that are not valid shell variable names.
391 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
392 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
394 ac_package
=`echo $ac_package| sed 's/-/_/g'`
399 eval "with_${ac_package}='$ac_optarg'" ;;
401 -without-* |
--without-*)
402 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
403 # Reject names that are not valid shell variable names.
404 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
405 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
407 ac_package
=`echo $ac_package| sed 's/-/_/g'`
408 eval "with_${ac_package}=no" ;;
411 # Obsolete; use --with-x.
414 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
415 |
--x-incl |
--x-inc |
--x-in |
--x-i)
416 ac_prev
=x_includes
;;
417 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
418 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
419 x_includes
="$ac_optarg" ;;
421 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
422 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
423 ac_prev
=x_libraries
;;
424 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
425 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
426 x_libraries
="$ac_optarg" ;;
428 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
432 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
433 echo "configure: warning: $ac_option: invalid host type" 1>&2
435 if test "x$nonopt" != xNONE
; then
436 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
444 if test -n "$ac_prev"; then
445 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
448 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
450 # File descriptor usage:
453 # 2 errors and warnings
454 # 3 some systems may open it to /dev/tty
455 # 4 used on the Kubota Titan
456 # 6 checking for... messages and results
457 # 5 compiler messages saved in config.log
458 if test "$silent" = yes; then
466 This file contains any messages produced by compilers while
467 running configure, to aid debugging if configure makes a mistake.
470 # Strip out --no-create and --no-recursion so they do not pile up.
471 # Also quote any args containing shell metacharacters.
476 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
477 |
--no-cr |
--no-c) ;;
478 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
479 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
480 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
481 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
482 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
487 # Only set these to C if already set. These must not be set unconditionally
488 # because not all systems understand e.g. LANG=C (notably SCO).
489 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
490 # Non-C LC_CTYPE values break the ctype check.
491 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
492 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
493 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
494 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
496 # confdefs.h avoids OS command line length limits that DEFS can exceed.
497 rm -rf conftest
* confdefs.h
498 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
501 # A filename unique to this package, relative to the directory that
502 # configure is in, which we can look for to find out if srcdir is correct.
503 ac_unique_file
=java
/lang
/System.java
505 # Find the source files, if location was not specified.
506 if test -z "$srcdir"; then
507 ac_srcdir_defaulted
=yes
508 # Try the directory containing this script, then its parent.
510 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
511 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
513 if test ! -r $srcdir/$ac_unique_file; then
517 ac_srcdir_defaulted
=no
519 if test ! -r $srcdir/$ac_unique_file; then
520 if test "$ac_srcdir_defaulted" = yes; then
521 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
523 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
526 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
528 # Prefer explicitly selected file to automatically selected ones.
529 if test -z "$CONFIG_SITE"; then
530 if test "x$prefix" != xNONE
; then
531 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
533 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
536 for ac_site_file
in $CONFIG_SITE; do
537 if test -r "$ac_site_file"; then
538 echo "loading site script $ac_site_file"
543 if test -r "$cache_file"; then
544 echo "loading cache $cache_file"
547 echo "creating cache $cache_file"
552 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
553 ac_cpp
='$CPP $CPPFLAGS'
554 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
555 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
556 cross_compiling
=$ac_cv_prog_cc_cross
560 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
561 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
562 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
569 ac_n
= ac_c
='\c' ac_t
=
574 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
575 echo "configure:576: checking whether ln -s works" >&5
576 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
577 echo $ac_n "(cached) $ac_c" 1>&6
580 if ln -s X conftestdata
2>/dev
/null
583 ac_cv_prog_LN_S
="ln -s"
588 LN_S
="$ac_cv_prog_LN_S"
589 if test "$ac_cv_prog_LN_S" = "ln -s"; then
590 echo "$ac_t""yes" 1>&6
592 echo "$ac_t""no" 1>&6
596 # Check whether --with-target-subdir or --without-target-subdir was given.
597 if test "${with_target_subdir+set}" = set; then
598 withval
="$with_target_subdir"
602 # Check whether --with-cross-host or --without-cross-host was given.
603 if test "${with_cross_host+set}" = set; then
604 withval
="$with_cross_host"
609 # Find a good install program. We prefer a C program (faster),
610 # so one script is as good as another. But avoid the broken or
611 # incompatible versions:
612 # SysV /etc/install, /usr/sbin/install
613 # SunOS /usr/etc/install
616 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
617 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
618 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
619 # ./install, which can be erroneously created by make from ./install.sh.
620 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
621 echo "configure:622: checking for a BSD compatible install" >&5
622 if test -z "$INSTALL"; then
623 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
624 echo $ac_n "(cached) $ac_c" 1>&6
626 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
627 for ac_dir
in $PATH; do
628 # Account for people who put trailing slashes in PATH elements.
630 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
632 # OSF1 and SCO ODT 3.0 have their own names for install.
633 # Don't use installbsd from OSF since it installs stuff as root
635 for ac_prog
in ginstall scoinst
install; do
636 if test -f $ac_dir/$ac_prog; then
637 if test $ac_prog = install &&
638 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
639 # AIX install. It has an incompatible calling convention.
642 ac_cv_path_install
="$ac_dir/$ac_prog -c"
653 if test "${ac_cv_path_install+set}" = set; then
654 INSTALL
="$ac_cv_path_install"
656 # As a last resort, use the slow shell script. We don't cache a
657 # path for INSTALL within a source directory, because that will
658 # break other packages using the cache if that directory is
659 # removed, or if the path is relative.
660 INSTALL
="$ac_install_sh"
663 echo "$ac_t""$INSTALL" 1>&6
665 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
666 # It thinks the first close brace ends the variable substitution.
667 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
669 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
671 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
673 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
674 echo "configure:675: checking whether build environment is sane" >&5
677 echo timestamp
> conftestfile
678 # Do `set' in a subshell so we don't clobber the current shell's
679 # arguments. Must try -L first in case configure is actually a
680 # symlink; some systems play weird games with the mod time of symlinks
681 # (eg FreeBSD returns the mod time of the symlink's containing
684 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
685 if test "$*" = "X"; then
687 set X
`ls -t $srcdir/configure conftestfile`
689 if test "$*" != "X $srcdir/configure conftestfile" \
690 && test "$*" != "X conftestfile $srcdir/configure"; then
692 # If neither matched, then we have a broken ls. This can happen
693 # if, for instance, CONFIG_SHELL is bash and it inherits a
694 # broken ls alias from the environment. This has actually
695 # happened. Such a system could not be considered "sane".
696 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
697 alias in your environment" 1>&2; exit 1; }
700 test "$2" = conftestfile
706 { echo "configure: error: newly created file is older than distributed files!
707 Check your system clock" 1>&2; exit 1; }
710 echo "$ac_t""yes" 1>&6
711 if test "$program_transform_name" = s
,x
,x
,; then
712 program_transform_name
=
714 # Double any \ or $. echo might interpret backslashes.
715 cat <<\EOF_SED
> conftestsed
716 s
,\\,\\\\,g
; s
,\$
,$$
,g
718 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
721 test "$program_prefix" != NONE
&&
722 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
723 # Use a double $ so make ignores it.
724 test "$program_suffix" != NONE
&&
725 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
727 # sed with no file args requires a program.
728 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
730 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
731 echo "configure:732: checking whether ${MAKE-make} sets \${MAKE}" >&5
732 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
733 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
734 echo $ac_n "(cached) $ac_c" 1>&6
736 cat > conftestmake
<<\EOF
738 @
echo 'ac_maketemp="${MAKE}"'
740 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
741 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
742 if test -n "$ac_maketemp"; then
743 eval ac_cv_prog_make_
${ac_make}_set
=yes
745 eval ac_cv_prog_make_
${ac_make}_set
=no
749 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
750 echo "$ac_t""yes" 1>&6
753 echo "$ac_t""no" 1>&6
754 SET_MAKE
="MAKE=${MAKE-make}"
757 if test $host != $build; then
758 ac_tool_prefix
=${host_alias}-
763 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
764 echo "configure:765: checking for Cygwin environment" >&5
765 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
766 echo $ac_n "(cached) $ac_c" 1>&6
768 cat > conftest.
$ac_ext <<EOF
769 #line 770 "configure"
770 #include "confdefs.h"
775 #define __CYGWIN__ __CYGWIN32__
780 if { (eval echo configure
:781: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
784 echo "configure: failed program was:" >&5
785 cat conftest.
$ac_ext >&5
793 echo "$ac_t""$ac_cv_cygwin" 1>&6
795 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
796 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
797 echo "configure:798: checking for mingw32 environment" >&5
798 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
799 echo $ac_n "(cached) $ac_c" 1>&6
801 cat > conftest.
$ac_ext <<EOF
802 #line 803 "configure"
803 #include "confdefs.h"
809 if { (eval echo configure
:810: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
813 echo "configure: failed program was:" >&5
814 cat conftest.
$ac_ext >&5
822 echo "$ac_t""$ac_cv_mingw32" 1>&6
824 test "$ac_cv_mingw32" = yes && MINGW32
=yes
826 # Check whether --enable-multilib or --disable-multilib was given.
827 if test "${enable_multilib+set}" = set; then
828 enableval
="$enable_multilib"
829 case "${enableval}" in
832 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
839 # When building with srcdir == objdir, links to the source files will
840 # be created in directories within the target_subdir. We have to
841 # adjust toplevel_srcdir accordingly, so that configure finds
842 # install-sh and other auxiliary files that live in the top-level
844 if test "${srcdir}" = "."; then
845 if test -z "${with_target_subdir}"; then
848 if test "${with_target_subdir}" != "."; then
849 toprel
="${with_multisrctop}../.."
851 toprel
="${with_multisrctop}.."
858 libgcj_basedir
=$srcdir/$toprel/.
/libjava
862 for ac_dir
in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
863 if test -f $ac_dir/install-sh
; then
865 ac_install_sh
="$ac_aux_dir/install-sh -c"
867 elif test -f $ac_dir/install.sh
; then
869 ac_install_sh
="$ac_aux_dir/install.sh -c"
873 if test -z "$ac_aux_dir"; then
874 { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
876 ac_config_guess=$ac_aux_dir/config.guess
877 ac_config_sub=$ac_aux_dir/config.sub
878 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
881 # This overrides the previous occurrence for automake, but not for
882 # autoconf, which is exactly what we want.
884 for ac_dir in .. $srcdir/..; do
885 if test -f $ac_dir/install-sh; then
887 ac_install_sh="$ac_aux_dir/install-sh
-c"
889 elif test -f $ac_dir/install.sh; then
891 ac_install_sh="$ac_aux_dir/install.sh
-c"
895 if test -z "$ac_aux_dir"; then
896 { echo "configure
: error
: can not
find install-sh or
install.sh
in ..
$srcdir/..
" 1>&2; exit 1; }
898 ac_config_guess=$ac_aux_dir/config.guess
899 ac_config_sub=$ac_aux_dir/config.sub
900 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
904 # This works around an automake problem.
905 mkinstalldirs="`cd $ac_aux_dir && pwd`/mkinstalldirs
"
909 # Do some error checking and defaulting for the host and target type.
911 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
914 # 1. You are not allowed to specify --host, --target, and nonopt at the
916 # 2. Host defaults to nonopt.
917 # 3. If nonopt is not specified, then host defaults to the current host,
918 # as determined by config.guess.
919 # 4. Target and build default to nonopt.
920 # 5. If nonopt is not specified, then target and build default to host.
922 # The aliases save the names the user supplied, while $host etc.
923 # will get canonicalized.
924 case $host---$target---$nonopt in
925 NONE---*---* | *---NONE---* | *---*---NONE) ;;
926 *) { echo "configure
: error
: can only configure
for one
host and one target
at a
time" 1>&2; exit 1; } ;;
930 # Make sure we can run config.sub.
931 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
932 else { echo "configure
: error
: can not run
$ac_config_sub" 1>&2; exit 1; }
935 echo $ac_n "checking
host system
type""...
$ac_c" 1>&6
936 echo "configure
:937: checking
host system
type" >&5
939 case "$host_alias" in
943 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
944 else { echo "configure
: error
: can not guess
host type; you must specify one
" 1>&2; exit 1; }
946 *) host_alias=$nonopt ;;
950 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
951 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
952 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
953 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
954 echo "$ac_t""$host" 1>&6
956 echo $ac_n "checking target system
type""...
$ac_c" 1>&6
957 echo "configure
:958: checking target system
type" >&5
960 case "$target_alias" in
963 NONE) target_alias=$host_alias ;;
964 *) target_alias=$nonopt ;;
968 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
969 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
970 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
971 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
972 echo "$ac_t""$target" 1>&6
974 echo $ac_n "checking build system
type""...
$ac_c" 1>&6
975 echo "configure
:976: checking build system
type" >&5
978 case "$build_alias" in
981 NONE) build_alias=$host_alias ;;
982 *) build_alias=$nonopt ;;
986 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
987 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
988 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
989 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
990 echo "$ac_t""$build" 1>&6
992 test "$host_alias" != "$target_alias" &&
993 test "$program_prefix$program_suffix$program_transform_name" = \
995 program_prefix=${target_alias}-
1001 # Extract the first word of "gcc
", so it can be a program name with args.
1002 set dummy gcc; ac_word=$2
1003 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1004 echo "configure
:1005: checking
for $ac_word" >&5
1005 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1006 echo $ac_n "(cached
) $ac_c" 1>&6
1008 if test -n "$CC"; then
1009 ac_cv_prog_CC="$CC" # Let the user override the test.
1011 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1013 for ac_dir in $ac_dummy; do
1014 test -z "$ac_dir" && ac_dir=.
1015 if test -f $ac_dir/$ac_word; then
1024 if test -n "$CC"; then
1025 echo "$ac_t""$CC" 1>&6
1027 echo "$ac_t""no
" 1>&6
1030 if test -z "$CC"; then
1031 # Extract the first word of "cc
", so it can be a program name with args.
1032 set dummy cc; ac_word=$2
1033 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1034 echo "configure
:1035: checking
for $ac_word" >&5
1035 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1036 echo $ac_n "(cached
) $ac_c" 1>&6
1038 if test -n "$CC"; then
1039 ac_cv_prog_CC="$CC" # Let the user override the test.
1041 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1044 for ac_dir in $ac_dummy; do
1045 test -z "$ac_dir" && ac_dir=.
1046 if test -f $ac_dir/$ac_word; then
1047 if test "$ac_dir/$ac_word" = "/usr
/ucb
/cc
"; then
1048 ac_prog_rejected=yes
1056 if test $ac_prog_rejected = yes; then
1057 # We found a bogon in the path, so make sure we never use it.
1058 set dummy $ac_cv_prog_CC
1060 if test $# -gt 0; then
1061 # We chose a different compiler from the bogus one.
1062 # However, it has the same basename, so the bogon will be chosen
1063 # first if we set CC to just the basename; use the full file name.
1065 set dummy "$ac_dir/$ac_word" "$@
"
1073 if test -n "$CC"; then
1074 echo "$ac_t""$CC" 1>&6
1076 echo "$ac_t""no
" 1>&6
1079 if test -z "$CC"; then
1080 case "`uname -s`" in
1082 # Extract the first word of "cl
", so it can be a program name with args.
1083 set dummy cl; ac_word=$2
1084 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1085 echo "configure
:1086: checking
for $ac_word" >&5
1086 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1087 echo $ac_n "(cached
) $ac_c" 1>&6
1089 if test -n "$CC"; then
1090 ac_cv_prog_CC="$CC" # Let the user override the test.
1092 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1094 for ac_dir in $ac_dummy; do
1095 test -z "$ac_dir" && ac_dir=.
1096 if test -f $ac_dir/$ac_word; then
1105 if test -n "$CC"; then
1106 echo "$ac_t""$CC" 1>&6
1108 echo "$ac_t""no
" 1>&6
1113 test -z "$CC" && { echo "configure
: error
: no acceptable cc found
in \
$PATH" 1>&2; exit 1; }
1117 echo $ac_n "checking whether we are using GNU C
""...
$ac_c" 1>&6
1118 echo "configure
:1119: checking whether we are using GNU C
" >&5
1119 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1120 echo $ac_n "(cached
) $ac_c" 1>&6
1122 cat > conftest.c <<EOF
1127 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1128: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1134 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1136 if test $ac_cv_prog_gcc = yes; then
1142 ac_test_CFLAGS="${CFLAGS+set}"
1143 ac_save_CFLAGS="$CFLAGS"
1145 echo $ac_n "checking whether
${CC-cc} accepts
-g""...
$ac_c" 1>&6
1146 echo "configure
:1147: checking whether
${CC-cc} accepts
-g" >&5
1147 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1148 echo $ac_n "(cached
) $ac_c" 1>&6
1150 echo 'void f(){}' > conftest.c
1151 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1160 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1161 if test "$ac_test_CFLAGS" = set; then
1162 CFLAGS="$ac_save_CFLAGS"
1163 elif test $ac_cv_prog_cc_g = yes; then
1164 if test "$GCC" = yes; then
1170 if test "$GCC" = yes; then
1177 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1179 # Extract the first word of "$ac_prog", so it can be a program name with args.
1180 set dummy $ac_prog; ac_word=$2
1181 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1182 echo "configure
:1183: checking
for $ac_word" >&5
1183 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1184 echo $ac_n "(cached
) $ac_c" 1>&6
1186 if test -n "$CXX"; then
1187 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1189 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1191 for ac_dir in $ac_dummy; do
1192 test -z "$ac_dir" && ac_dir=.
1193 if test -f $ac_dir/$ac_word; then
1194 ac_cv_prog_CXX="$ac_prog"
1201 CXX="$ac_cv_prog_CXX"
1202 if test -n "$CXX"; then
1203 echo "$ac_t""$CXX" 1>&6
1205 echo "$ac_t""no
" 1>&6
1208 test -n "$CXX" && break
1210 test -n "$CXX" || CXX="gcc
"
1214 echo $ac_n "checking whether we are using GNU C
++""...
$ac_c" 1>&6
1215 echo "configure
:1216: checking whether we are using GNU C
++" >&5
1216 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1217 echo $ac_n "(cached
) $ac_c" 1>&6
1219 cat > conftest.C <<EOF
1224 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1225: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1231 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1233 if test $ac_cv_prog_gxx = yes; then
1239 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1240 ac_save_CXXFLAGS="$CXXFLAGS"
1242 echo $ac_n "checking whether
${CXX-g++} accepts
-g""...
$ac_c" 1>&6
1243 echo "configure
:1244: checking whether
${CXX-g++} accepts
-g" >&5
1244 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1245 echo $ac_n "(cached
) $ac_c" 1>&6
1247 echo 'void f(){}' > conftest.cc
1248 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1249 ac_cv_prog_cxx_g=yes
1257 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1258 if test "$ac_test_CXXFLAGS" = set; then
1259 CXXFLAGS="$ac_save_CXXFLAGS"
1260 elif test $ac_cv_prog_cxx_g = yes; then
1261 if test "$GXX" = yes; then
1267 if test "$GXX" = yes; then
1281 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1282 { echo "configure
: error
: source directory already configured
; run
"make distclean" there first
" 1>&2; exit 1; }
1284 cat >> confdefs.h <<EOF
1285 #define PACKAGE "$PACKAGE"
1288 cat >> confdefs.h <<EOF
1289 #define VERSION "$VERSION"
1294 missing_dir=`cd $ac_aux_dir && pwd`
1295 echo $ac_n "checking
for working aclocal
""...
$ac_c" 1>&6
1296 echo "configure
:1297: checking
for working aclocal
" >&5
1297 # Run test in a subshell; some versions of sh will print an error if
1298 # an executable is not found, even if stderr is redirected.
1299 # Redirect stdin to placate older versions of autoconf. Sigh.
1300 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1302 echo "$ac_t""found
" 1>&6
1304 ACLOCAL="$missing_dir/missing aclocal
"
1305 echo "$ac_t""missing
" 1>&6
1308 echo $ac_n "checking
for working autoconf
""...
$ac_c" 1>&6
1309 echo "configure
:1310: checking
for working autoconf
" >&5
1310 # Run test in a subshell; some versions of sh will print an error if
1311 # an executable is not found, even if stderr is redirected.
1312 # Redirect stdin to placate older versions of autoconf. Sigh.
1313 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1315 echo "$ac_t""found
" 1>&6
1317 AUTOCONF="$missing_dir/missing autoconf
"
1318 echo "$ac_t""missing
" 1>&6
1321 echo $ac_n "checking
for working automake
""...
$ac_c" 1>&6
1322 echo "configure
:1323: checking
for working automake
" >&5
1323 # Run test in a subshell; some versions of sh will print an error if
1324 # an executable is not found, even if stderr is redirected.
1325 # Redirect stdin to placate older versions of autoconf. Sigh.
1326 if (automake --version) < /dev/null > /dev/null 2>&1; then
1328 echo "$ac_t""found
" 1>&6
1330 AUTOMAKE="$missing_dir/missing automake
"
1331 echo "$ac_t""missing
" 1>&6
1334 echo $ac_n "checking
for working autoheader
""...
$ac_c" 1>&6
1335 echo "configure
:1336: checking
for working autoheader
" >&5
1336 # Run test in a subshell; some versions of sh will print an error if
1337 # an executable is not found, even if stderr is redirected.
1338 # Redirect stdin to placate older versions of autoconf. Sigh.
1339 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1340 AUTOHEADER=autoheader
1341 echo "$ac_t""found
" 1>&6
1343 AUTOHEADER="$missing_dir/missing autoheader
"
1344 echo "$ac_t""missing
" 1>&6
1347 echo $ac_n "checking
for working makeinfo
""...
$ac_c" 1>&6
1348 echo "configure
:1349: checking
for working makeinfo
" >&5
1349 # Run test in a subshell; some versions of sh will print an error if
1350 # an executable is not found, even if stderr is redirected.
1351 # Redirect stdin to placate older versions of autoconf. Sigh.
1352 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1354 echo "$ac_t""found
" 1>&6
1356 MAKEINFO="$missing_dir/missing makeinfo
"
1357 echo "$ac_t""missing
" 1>&6
1362 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we dont
1363 # run it explicitly here, it will be run implicitly before
1364 # LIBGCJ_CONFIGURE, which doesn't work because that means that it will
1365 # be run before AC_CANONICAL_HOST.
1366 echo $ac_n "checking build system
type""...
$ac_c" 1>&6
1367 echo "configure
:1368: checking build system
type" >&5
1370 case "$build_alias" in
1373 NONE) build_alias=$host_alias ;;
1374 *) build_alias=$nonopt ;;
1378 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1379 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1380 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1381 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1382 echo "$ac_t""$build" 1>&6
1385 # Extract the first word of "${ac_tool_prefix}as
", so it can be a program name with args.
1386 set dummy ${ac_tool_prefix}as; ac_word=$2
1387 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1388 echo "configure
:1389: checking
for $ac_word" >&5
1389 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1390 echo $ac_n "(cached
) $ac_c" 1>&6
1392 if test -n "$AS"; then
1393 ac_cv_prog_AS="$AS" # Let the user override the test.
1395 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1397 for ac_dir in $ac_dummy; do
1398 test -z "$ac_dir" && ac_dir=.
1399 if test -f $ac_dir/$ac_word; then
1400 ac_cv_prog_AS="${ac_tool_prefix}as
"
1405 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as
"
1409 if test -n "$AS"; then
1410 echo "$ac_t""$AS" 1>&6
1412 echo "$ac_t""no
" 1>&6
1417 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1418 set dummy ${ac_tool_prefix}ar; ac_word=$2
1419 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1420 echo "configure
:1421: checking
for $ac_word" >&5
1421 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1422 echo $ac_n "(cached
) $ac_c" 1>&6
1424 if test -n "$AR"; then
1425 ac_cv_prog_AR="$AR" # Let the user override the test.
1427 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1429 for ac_dir in $ac_dummy; do
1430 test -z "$ac_dir" && ac_dir=.
1431 if test -f $ac_dir/$ac_word; then
1432 ac_cv_prog_AR="${ac_tool_prefix}ar"
1437 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1441 if test -n "$AR"; then
1442 echo "$ac_t""$AR" 1>&6
1444 echo "$ac_t""no
" 1>&6
1449 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
1450 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1451 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1452 echo "configure
:1453: checking
for $ac_word" >&5
1453 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1454 echo $ac_n "(cached
) $ac_c" 1>&6
1456 if test -n "$RANLIB"; then
1457 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1459 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1461 for ac_dir in $ac_dummy; do
1462 test -z "$ac_dir" && ac_dir=.
1463 if test -f $ac_dir/$ac_word; then
1464 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
1471 RANLIB="$ac_cv_prog_RANLIB"
1472 if test -n "$RANLIB"; then
1473 echo "$ac_t""$RANLIB" 1>&6
1475 echo "$ac_t""no
" 1>&6
1479 if test -z "$ac_cv_prog_RANLIB"; then
1480 if test -n "$ac_tool_prefix"; then
1481 # Extract the first word of "ranlib
", so it can be a program name with args.
1482 set dummy ranlib; ac_word=$2
1483 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
1484 echo "configure
:1485: checking
for $ac_word" >&5
1485 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1486 echo $ac_n "(cached
) $ac_c" 1>&6
1488 if test -n "$RANLIB"; then
1489 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1491 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1493 for ac_dir in $ac_dummy; do
1494 test -z "$ac_dir" && ac_dir=.
1495 if test -f $ac_dir/$ac_word; then
1496 ac_cv_prog_RANLIB="ranlib
"
1501 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1504 RANLIB="$ac_cv_prog_RANLIB"
1505 if test -n "$RANLIB"; then
1506 echo "$ac_t""$RANLIB" 1>&6
1508 echo "$ac_t""no
" 1>&6
1517 # Find a good install program. We prefer a C program (faster),
1518 # so one script is as good as another. But avoid the broken or
1519 # incompatible versions:
1520 # SysV /etc/install, /usr/sbin/install
1521 # SunOS /usr/etc/install
1522 # IRIX /sbin/install
1524 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1525 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1526 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff
"
1527 # ./install, which can be erroneously created by make from ./install.sh.
1528 echo $ac_n "checking
for a BSD compatible
install""...
$ac_c" 1>&6
1529 echo "configure
:1530: checking
for a BSD compatible
install" >&5
1530 if test -z "$INSTALL"; then
1531 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1532 echo $ac_n "(cached
) $ac_c" 1>&6
1534 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1535 for ac_dir in $PATH; do
1536 # Account for people who put trailing slashes in PATH elements.
1538 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1540 # OSF1 and SCO ODT 3.0 have their own names for install.
1541 # Don't use installbsd from OSF since it installs stuff as root
1543 for ac_prog in ginstall scoinst install; do
1544 if test -f $ac_dir/$ac_prog; then
1545 if test $ac_prog = install &&
1546 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1547 # AIX install. It has an incompatible calling convention.
1550 ac_cv_path_install="$ac_dir/$ac_prog -c"
1561 if test "${ac_cv_path_install+set}" = set; then
1562 INSTALL="$ac_cv_path_install"
1564 # As a last resort, use the slow shell script. We don't cache a
1565 # path for INSTALL within a source directory, because that will
1566 # break other packages using the cache if that directory is
1567 # removed, or if the path is relative.
1568 INSTALL="$ac_install_sh"
1571 echo "$ac_t""$INSTALL" 1>&6
1573 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1574 # It thinks the first close brace ends the variable substitution.
1575 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1577 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1579 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1582 echo $ac_n "checking whether to
enable maintainer-specific portions of Makefiles
""...
$ac_c" 1>&6
1583 echo "configure
:1584: checking whether to
enable maintainer-specific portions of Makefiles
" >&5
1584 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1585 if test "${enable_maintainer_mode+set}" = set; then
1586 enableval="$enable_maintainer_mode"
1587 USE_MAINTAINER_MODE=$enableval
1589 USE_MAINTAINER_MODE=no
1592 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1595 if test $USE_MAINTAINER_MODE = yes; then
1596 MAINTAINER_MODE_TRUE=
1597 MAINTAINER_MODE_FALSE='#'
1599 MAINTAINER_MODE_TRUE='#'
1600 MAINTAINER_MODE_FALSE=
1602 MAINT=$MAINTAINER_MODE_TRUE
1606 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1607 # at least currently, we never actually build a program, so we never
1608 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1609 # fails, because we are probably configuring with a cross compiler
1610 # which cant create executables. So we include AC_EXEEXT to keep
1611 # automake happy, but we dont execute it, since we dont care about
1616 echo $ac_n "checking
for executable suffix
""...
$ac_c" 1>&6
1617 echo "configure
:1618: checking
for executable suffix
" >&5
1618 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1619 echo $ac_n "(cached
) $ac_c" 1>&6
1621 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1625 echo 'int main () { return 0; }' > conftest.$ac_ext
1627 if { (eval echo configure:1628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1628 for file in conftest.*; do
1630 *.c | *.o | *.obj) ;;
1631 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1635 { echo "configure
: error
: installation or configuration problem
: compiler cannot create executables.
" 1>&2; exit 1; }
1638 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1643 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1644 echo "$ac_t""${ac_cv_exeext}" 1>&6
1649 # configure.host sets the following important variables
1650 # libgcj_cflags - host specific C compiler flags
1651 # libgcj_cxxflags - host specific C++ compiler flags
1652 # libgcj_javaflags - host specific Java compiler flags
1658 . ${srcdir}/configure.host
1660 LIBGCJ_CFLAGS="${libgcj_cflags}"
1661 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
1662 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
1672 # Only use libltdl for native builds.
1673 if test -z "${with_cross_host}"; then
1674 case $enable_ltdl_convenience in
1675 no) { echo "configure
: error
: this package needs a convenience libltdl
" 1>&2; exit 1; } ;;
1676 "") enable_ltdl_convenience=yes
1677 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
1679 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
1680 INCLTDL='-I${top_srcdir}/''libltdl'
1684 cat >> confdefs.h <<\EOF
1688 # Sigh. Libtool's macro doesn't do the right thing.
1689 INCLTDL="-I\$
(top_srcdir
)/libltdl
$INCLTDL"
1690 # FIXME: this is a hack.
1691 sub_auxdir="`cd $ac_aux_dir && pwd`"
1692 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
1697 # Check whether --enable-shared or --disable-shared was given.
1698 if test "${enable_shared+set}" = set; then
1699 enableval="$enable_shared"
1700 p=${PACKAGE-default}
1702 yes) enable_shared=yes ;;
1703 no) enable_shared=no ;;
1706 # Look at the argument we got. We use all the common list separators.
1707 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1708 for pkg in $enableval; do
1709 if test "X
$pkg" = "X
$p"; then
1720 # Check whether --enable-static or --disable-static was given.
1721 if test "${enable_static+set}" = set; then
1722 enableval="$enable_static"
1723 p=${PACKAGE-default}
1725 yes) enable_static=yes ;;
1726 no) enable_static=no ;;
1729 # Look at the argument we got. We use all the common list separators.
1730 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1731 for pkg in $enableval; do
1732 if test "X
$pkg" = "X
$p"; then
1743 # Check whether --enable-fast-install or --disable-fast-install was given.
1744 if test "${enable_fast_install+set}" = set; then
1745 enableval="$enable_fast_install"
1746 p=${PACKAGE-default}
1748 yes) enable_fast_install=yes ;;
1749 no) enable_fast_install=no ;;
1751 enable_fast_install=no
1752 # Look at the argument we got. We use all the common list separators.
1753 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1754 for pkg in $enableval; do
1755 if test "X
$pkg" = "X
$p"; then
1756 enable_fast_install=yes
1763 enable_fast_install=yes
1766 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1767 if test "${with_gnu_ld+set}" = set; then
1768 withval="$with_gnu_ld"
1769 test "$withval" = no || with_gnu_ld=yes
1775 if test "$GCC" = yes; then
1776 # Check if gcc -print-prog-name=ld gives a path.
1777 echo $ac_n "checking
for ld used by GCC
""...
$ac_c" 1>&6
1778 echo "configure
:1779: checking
for ld used by GCC
" >&5
1781 # gcc leaves a trailing carriage return which upsets mingw
1782 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1784 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1787 # Accept absolute paths.
1788 [\\/]* | [A-Za-z]:[\\/]*)
1789 re_direlt='/[^/][^/]*/\.\./'
1790 # Canonicalize the path of ld
1791 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1792 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1793 ac_prog=`echo $ac_prog| sed "s
%$re_direlt%/%"`
1795 test -z "$LD" && LD="$ac_prog"
1798 # If it fails, then pretend we aren't using GCC.
1802 # If it is relative, then search for the first ld in PATH.
1806 elif test "$with_gnu_ld" = yes; then
1807 echo $ac_n "checking
for GNU ld
""...
$ac_c" 1>&6
1808 echo "configure
:1809: checking
for GNU ld
" >&5
1810 echo $ac_n "checking
for non-GNU ld
""...
$ac_c" 1>&6
1811 echo "configure
:1812: checking
for non-GNU ld
" >&5
1813 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1814 echo $ac_n "(cached
) $ac_c" 1>&6
1816 if test -z "$LD"; then
1817 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1818 for ac_dir in $PATH; do
1819 test -z "$ac_dir" && ac_dir=.
1820 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1821 lt_cv_path_LD="$ac_dir/$ac_prog"
1822 # Check to see if the program is GNU ld. I'd rather use --version,
1823 # but apparently some GNU ld's only accept -v.
1824 # Break only if it was the GNU/non-GNU ld that we prefer.
1825 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1826 test "$with_gnu_ld" != no && break
1828 test "$with_gnu_ld" != yes && break
1834 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1839 if test -n "$LD"; then
1840 echo "$ac_t""$LD" 1>&6
1842 echo "$ac_t""no
" 1>&6
1844 test -z "$LD" && { echo "configure
: error
: no acceptable ld found
in \
$PATH" 1>&2; exit 1; }
1845 echo $ac_n "checking
if the linker
($LD) is GNU ld
""...
$ac_c" 1>&6
1846 echo "configure
:1847: checking
if the linker
($LD) is GNU ld
" >&5
1847 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1848 echo $ac_n "(cached
) $ac_c" 1>&6
1850 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1851 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1852 lt_cv_prog_gnu_ld=yes
1854 lt_cv_prog_gnu_ld=no
1858 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1859 with_gnu_ld=$lt_cv_prog_gnu_ld
1862 echo $ac_n "checking
for $LD option to reload object files
""...
$ac_c" 1>&6
1863 echo "configure
:1864: checking
for $LD option to reload object files
" >&5
1864 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1865 echo $ac_n "(cached
) $ac_c" 1>&6
1867 lt_cv_ld_reload_flag='-r'
1870 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1871 reload_flag=$lt_cv_ld_reload_flag
1872 test -n "$reload_flag" && reload_flag=" $reload_flag"
1874 echo $ac_n "checking
for BSD-compatible nm
""...
$ac_c" 1>&6
1875 echo "configure
:1876: checking
for BSD-compatible nm
" >&5
1876 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1877 echo $ac_n "(cached
) $ac_c" 1>&6
1879 if test -n "$NM"; then
1880 # Let the user override the test.
1883 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1884 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1885 test -z "$ac_dir" && ac_dir=.
1886 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1887 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1888 # Check to see if the nm accepts a BSD-compat flag.
1889 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1890 # nm: unknown option "B
" ignored
1891 # Tru64's nm complains that /dev/null is an invalid object file
1892 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1893 lt_cv_path_NM="$tmp_nm -B"
1895 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1896 lt_cv_path_NM="$tmp_nm -p"
1899 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1900 continue # so that we can try to find one that supports BSD flags
1905 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1910 echo "$ac_t""$NM" 1>&6
1912 echo $ac_n "checking how to recognise dependant libraries
""...
$ac_c" 1>&6
1913 echo "configure
:1914: checking how to recognise dependant libraries
" >&5
1914 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1915 echo $ac_n "(cached
) $ac_c" 1>&6
1917 lt_cv_file_magic_cmd='$MAGIC_CMD'
1918 lt_cv_file_magic_test_file=
1919 lt_cv_deplibs_check_method='unknown'
1920 # Need to set the preceding variable on all platforms that support
1921 # interlibrary dependencies.
1922 # 'none' -- dependencies not supported.
1923 # `unknown' -- same as none, but documents that we really don't know.
1924 # 'pass_all' -- all dependencies passed with no checks.
1925 # 'test_compile' -- check by making test program.
1926 # 'file_magic [regex]' -- check by looking for files in library path
1927 # which responds to the $file_magic_cmd with a given egrep regex.
1928 # If you have `file' or equivalent on your system and you're not sure
1929 # whether `pass_all' will *always* work, you probably want this one.
1933 lt_cv_deplibs_check_method=pass_all
1937 lt_cv_deplibs_check_method=pass_all
1941 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1942 lt_cv_file_magic_cmd='/usr/bin/file -L'
1943 lt_cv_file_magic_test_file=/shlib/libc.so
1946 cygwin* | mingw* |pw32*)
1947 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1948 lt_cv_file_magic_cmd='$OBJDUMP -f'
1951 darwin* | rhapsody*)
1952 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1953 lt_cv_file_magic_cmd='/usr/bin/file -L'
1955 rhapsody* | darwin1.012)
1956 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1959 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1965 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1968 # Not sure whether the presence of OpenBSD here was a mistake.
1969 # Let's accept both of them until this is cleared up.
1970 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1971 lt_cv_file_magic_cmd=/usr/bin/file
1972 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1976 lt_cv_deplibs_check_method=pass_all
1981 lt_cv_deplibs_check_method=pass_all
1985 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1986 lt_cv_file_magic_cmd=/usr/bin/file
1987 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1993 # this will be overridden with pass_all, but let us keep it just in case
1994 lt_cv_deplibs_check_method="file_magic ELF
32-bit MSB dynamic lib MIPS
- version
1"
1998 *-32|*"-32 ") libmagic=32-bit;;
1999 *-n32|*"-n32 ") libmagic=N32;;
2000 *-64|*"-64 ") libmagic=64-bit;;
2001 *) libmagic=never-match;;
2003 # this will be overridden with pass_all, but let us keep it just in case
2004 lt_cv_deplibs_check_method="file_magic ELF
${libmagic} MSB mips-
[1234] dynamic lib MIPS
- version
1"
2007 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2008 lt_cv_deplibs_check_method=pass_all
2011 # This must be Linux ELF.
2014 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2015 lt_cv_deplibs_check_method=pass_all ;;
2017 # glibc up to 2.1.1 does not perform some relocations on ARM
2018 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2020 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2024 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2025 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2027 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2032 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2033 lt_cv_file_magic_cmd=/usr/bin/file
2034 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2037 osf3* | osf4* | osf5*)
2038 # this will be overridden with pass_all, but let us keep it just in case
2039 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2040 lt_cv_file_magic_test_file=/shlib/libc.so
2041 lt_cv_deplibs_check_method=pass_all
2045 lt_cv_deplibs_check_method=pass_all
2049 lt_cv_deplibs_check_method=pass_all
2050 lt_cv_file_magic_test_file=/lib/libc.so
2053 sysv5uw[78]* | sysv4*uw2*)
2054 lt_cv_deplibs_check_method=pass_all
2057 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2058 case $host_vendor in
2060 lt_cv_deplibs_check_method=pass_all
2063 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]'
2064 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2072 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2073 file_magic_cmd=$lt_cv_file_magic_cmd
2074 deplibs_check_method=$lt_cv_deplibs_check_method
2076 echo $ac_n "checking
for object suffix
""...
$ac_c" 1>&6
2077 echo "configure
:2078: checking
for object suffix
" >&5
2078 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2079 echo $ac_n "(cached
) $ac_c" 1>&6
2082 echo 'int i = 1;' > conftest.$ac_ext
2083 if { (eval echo configure:2084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2084 for ac_file in conftest.*; do
2087 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2091 { echo "configure
: error
: installation or configuration problem
; compiler does not work
" 1>&2; exit 1; }
2096 echo "$ac_t""$ac_cv_objext" 1>&6
2097 OBJEXT=$ac_cv_objext
2098 ac_objext=$ac_cv_objext
2100 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2102 # Only perform the check for file, if the check method requires it
2103 case $deplibs_check_method in
2105 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2106 echo $ac_n "checking
for ${ac_tool_prefix}file""...
$ac_c" 1>&6
2107 echo "configure
:2108: checking
for ${ac_tool_prefix}file" >&5
2108 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2109 echo $ac_n "(cached
) $ac_c" 1>&6
2113 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2116 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2119 ac_save_MAGIC_CMD="$MAGIC_CMD"
2120 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2121 ac_dummy="/usr
/bin
:$PATH"
2122 for ac_dir in $ac_dummy; do
2123 test -z "$ac_dir" && ac_dir=.
2124 if test -f $ac_dir/${ac_tool_prefix}file; then
2125 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2126 if test -n "$file_magic_test_file"; then
2127 case $deplibs_check_method in
2129 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2130 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2131 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2132 egrep "$file_magic_regex" > /dev/null; then
2137 *** Warning: the command libtool uses to detect shared libraries,
2138 *** $file_magic_cmd, produces output that libtool cannot recognize.
2139 *** The result is that libtool may fail to recognize shared libraries
2140 *** as such. This will affect the creation of libtool libraries that
2141 *** depend on shared libraries, but programs linked with such libtool
2142 *** libraries will work regardless of this problem. Nevertheless, you
2143 *** may want to report the problem to your system manager and/or to
2144 *** bug-libtool@gnu.org
2154 MAGIC_CMD="$ac_save_MAGIC_CMD"
2159 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2160 if test -n "$MAGIC_CMD"; then
2161 echo "$ac_t""$MAGIC_CMD" 1>&6
2163 echo "$ac_t""no
" 1>&6
2166 if test -z "$lt_cv_path_MAGIC_CMD"; then
2167 if test -n "$ac_tool_prefix"; then
2168 echo $ac_n "checking
for file""...
$ac_c" 1>&6
2169 echo "configure
:2170: checking
for file" >&5
2170 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2171 echo $ac_n "(cached
) $ac_c" 1>&6
2175 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2178 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2181 ac_save_MAGIC_CMD="$MAGIC_CMD"
2182 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2183 ac_dummy="/usr
/bin
:$PATH"
2184 for ac_dir in $ac_dummy; do
2185 test -z "$ac_dir" && ac_dir=.
2186 if test -f $ac_dir/file; then
2187 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2188 if test -n "$file_magic_test_file"; then
2189 case $deplibs_check_method in
2191 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2192 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2193 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2194 egrep "$file_magic_regex" > /dev/null; then
2199 *** Warning: the command libtool uses to detect shared libraries,
2200 *** $file_magic_cmd, produces output that libtool cannot recognize.
2201 *** The result is that libtool may fail to recognize shared libraries
2202 *** as such. This will affect the creation of libtool libraries that
2203 *** depend on shared libraries, but programs linked with such libtool
2204 *** libraries will work regardless of this problem. Nevertheless, you
2205 *** may want to report the problem to your system manager and/or to
2206 *** bug-libtool@gnu.org
2216 MAGIC_CMD="$ac_save_MAGIC_CMD"
2221 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2222 if test -n "$MAGIC_CMD"; then
2223 echo "$ac_t""$MAGIC_CMD" 1>&6
2225 echo "$ac_t""no
" 1>&6
2237 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
2238 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2239 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2240 echo "configure
:2241: checking
for $ac_word" >&5
2241 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2242 echo $ac_n "(cached
) $ac_c" 1>&6
2244 if test -n "$RANLIB"; then
2245 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2247 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2249 for ac_dir in $ac_dummy; do
2250 test -z "$ac_dir" && ac_dir=.
2251 if test -f $ac_dir/$ac_word; then
2252 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
2259 RANLIB="$ac_cv_prog_RANLIB"
2260 if test -n "$RANLIB"; then
2261 echo "$ac_t""$RANLIB" 1>&6
2263 echo "$ac_t""no
" 1>&6
2267 if test -z "$ac_cv_prog_RANLIB"; then
2268 if test -n "$ac_tool_prefix"; then
2269 # Extract the first word of "ranlib
", so it can be a program name with args.
2270 set dummy ranlib; ac_word=$2
2271 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2272 echo "configure
:2273: checking
for $ac_word" >&5
2273 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2274 echo $ac_n "(cached
) $ac_c" 1>&6
2276 if test -n "$RANLIB"; then
2277 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2279 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2281 for ac_dir in $ac_dummy; do
2282 test -z "$ac_dir" && ac_dir=.
2283 if test -f $ac_dir/$ac_word; then
2284 ac_cv_prog_RANLIB="ranlib
"
2289 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2292 RANLIB="$ac_cv_prog_RANLIB"
2293 if test -n "$RANLIB"; then
2294 echo "$ac_t""$RANLIB" 1>&6
2296 echo "$ac_t""no
" 1>&6
2304 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
2305 set dummy ${ac_tool_prefix}strip; ac_word=$2
2306 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2307 echo "configure
:2308: checking
for $ac_word" >&5
2308 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2309 echo $ac_n "(cached
) $ac_c" 1>&6
2311 if test -n "$STRIP"; then
2312 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2314 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2316 for ac_dir in $ac_dummy; do
2317 test -z "$ac_dir" && ac_dir=.
2318 if test -f $ac_dir/$ac_word; then
2319 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
2326 STRIP="$ac_cv_prog_STRIP"
2327 if test -n "$STRIP"; then
2328 echo "$ac_t""$STRIP" 1>&6
2330 echo "$ac_t""no
" 1>&6
2334 if test -z "$ac_cv_prog_STRIP"; then
2335 if test -n "$ac_tool_prefix"; then
2336 # Extract the first word of "strip
", so it can be a program name with args.
2337 set dummy strip; ac_word=$2
2338 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
2339 echo "configure
:2340: checking
for $ac_word" >&5
2340 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2341 echo $ac_n "(cached
) $ac_c" 1>&6
2343 if test -n "$STRIP"; then
2344 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2346 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2348 for ac_dir in $ac_dummy; do
2349 test -z "$ac_dir" && ac_dir=.
2350 if test -f $ac_dir/$ac_word; then
2351 ac_cv_prog_STRIP="strip
"
2356 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2359 STRIP="$ac_cv_prog_STRIP"
2360 if test -n "$STRIP"; then
2361 echo "$ac_t""$STRIP" 1>&6
2363 echo "$ac_t""no
" 1>&6
2372 # Check for any special flags to pass to ltconfig.
2373 libtool_flags="--cache-file=$cache_file"
2374 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2375 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2376 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2377 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2378 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2379 libtool_flags="$libtool_flags --enable-dlopen"
2381 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2382 if test "${enable_libtool_lock+set}" = set; then
2383 enableval="$enable_libtool_lock"
2387 test "x
$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2388 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2390 # Check whether --with-pic or --without-pic was given.
2391 if test "${with_pic+set}" = set; then
2398 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2399 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2401 # Some flags need to be propagated to the compiler or linker for good
2405 # Find out which ABI we are using.
2406 echo '#line 2407 "configure
"' > conftest.$ac_ext
2407 if { (eval echo configure:2408: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2408 case `/usr/bin/file conftest.$ac_objext` in
2424 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2425 SAVE_CFLAGS="$CFLAGS"
2426 CFLAGS="$CFLAGS -belf"
2427 echo $ac_n "checking whether the C compiler needs
-belf""...
$ac_c" 1>&6
2428 echo "configure
:2429: checking whether the C compiler needs
-belf" >&5
2429 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2430 echo $ac_n "(cached
) $ac_c" 1>&6
2434 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2435 ac_cpp='$CPP $CPPFLAGS'
2436 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2437 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2438 cross_compiling=$ac_cv_prog_cc_cross
2440 cat > conftest.$ac_ext <<EOF
2441 #line 2442 "configure
"
2442 #include "confdefs.h
"
2448 if { (eval echo configure:2449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2450 lt_cv_cc_needs_belf=yes
2452 echo "configure
: failed program was
:" >&5
2453 cat conftest.$ac_ext >&5
2455 lt_cv_cc_needs_belf=no
2459 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2460 ac_cpp='$CPP $CPPFLAGS'
2461 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2462 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2463 cross_compiling=$ac_cv_prog_cc_cross
2467 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2468 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2469 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2470 CFLAGS="$SAVE_CFLAGS"
2477 echo $ac_n "checking how to run the C
++ preprocessor
""...
$ac_c" 1>&6
2478 echo "configure
:2479: checking how to run the C
++ preprocessor
" >&5
2479 if test -z "$CXXCPP"; then
2480 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2481 echo $ac_n "(cached
) $ac_c" 1>&6
2484 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2485 ac_cpp='$CXXCPP $CPPFLAGS'
2486 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2487 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2488 cross_compiling=$ac_cv_prog_cxx_cross
2489 CXXCPP="${CXX-g++} -E"
2490 cat > conftest.$ac_ext <<EOF
2491 #line 2492 "configure
"
2492 #include "confdefs.h
"
2495 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
2496 { (eval echo configure:2497: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2497 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
2498 if test -z "$ac_err"; then
2502 echo "configure
: failed program was
:" >&5
2503 cat conftest.$ac_ext >&5
2508 ac_cv_prog_CXXCPP="$CXXCPP"
2510 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2511 ac_cpp='$CPP $CPPFLAGS'
2512 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2513 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2514 cross_compiling=$ac_cv_prog_cc_cross
2517 CXXCPP="$ac_cv_prog_CXXCPP"
2518 echo "$ac_t""$CXXCPP" 1>&6
2521 # Save cache, so that ltconfig can load it
2522 cat > confcache <<\EOF
2523 # This file is a shell script that caches the results of configure
2524 # tests run on this system so they can be shared between configure
2525 # scripts and configure runs. It is not useful on other systems.
2526 # If it contains results you don't want to keep, you may remove or edit it.
2528 # By default, configure uses ./config.cache as the cache file,
2529 # creating it if it does not exist already. You can give configure
2530 # the --cache-file=FILE option to use a different cache file; that is
2531 # what configure does when it calls configure scripts in
2532 # subdirectories, so they share the cache.
2533 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2534 # config.status only pays attention to the cache file if you give it the
2535 # --recheck option to rerun configure.
2538 # The following way of writing the cache mishandles newlines in values,
2539 # but we know of no workaround that is simple, portable, and efficient.
2540 # So, don't put newlines in cache variables' values.
2541 # Ultrix sh set writes to stderr and can't be redirected directly,
2542 # and sets the high bit in the cache file unless we assign to the vars.
2544 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2546 # `set' does not quote correctly, so add quotes (double-quote substitution
2547 # turns \\\\ into \\, and sed turns \\ into \).
2549 -e "s
/'/'\\\\''/g
" \
2550 -e "s
/^
\\([a-zA-Z0-9_
]*_cv_
[a-zA-Z0-9_
]*\\)=\\(.
*\\)/\\1=\
${\\1='\\2'}/p
"
2553 # `set' quotes correctly as required by POSIX, so do not add quotes.
2554 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2557 if cmp -s $cache_file confcache; then
2560 if test -w $cache_file; then
2561 echo "updating cache
$cache_file"
2562 cat confcache > $cache_file
2564 echo "not updating unwritable cache
$cache_file"
2570 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2571 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2572 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2573 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2574 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2575 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2576 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2577 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2578 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2579 || { echo "configure
: error
: libtool configure failed
" 1>&2; exit 1; }
2581 # Reload cache, that may have been modified by ltconfig
2582 if test -r "$cache_file"; then
2583 echo "loading cache
$cache_file"
2586 echo "creating cache
$cache_file"
2591 # This can be used to rebuild libtool when needed
2592 LIBTOOL_DEPS="$ac_aux_dir/ltconfig
$ac_aux_dir/ltmain.sh
$ac_aux_dir/ltcf-c.sh
"
2594 # Always use our own libtool.
2595 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2597 # Redirect the config.log output again, so that the ltconfig log is not
2598 # clobbered by the next message.
2599 exec 5>>./config.log
2603 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh
"
2605 lt_save_CFLAGS="$CFLAGS"
2606 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2607 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2608 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2609 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2610 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2611 deplibs_check_method="$deplibs_check_method" \
2612 file_magic_cmd="$file_magic_cmd" \
2613 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2614 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2615 || { echo "configure
: error
: libtool tag configuration failed
" 1>&2; exit 1; }
2617 CFLAGS="$lt_save_CFLAGS"
2619 # Redirect the config.log output again, so that the ltconfig log is not
2620 # clobbered by the next message.
2621 exec 5>>./config.log
2631 if test -z "$with_target_subdir" || test "$with_target_subdir" = ".
"; then
2640 if test -d $srcdir/testsuite; then
2642 TESTSUBDIR_FALSE='#'
2648 # Check whether --enable-fast-character or --disable-fast-character was given.
2649 if test "${enable_fast_character+set}" = set; then
2650 enableval="$enable_fast_character"
2654 cat >> confdefs.h <<\EOF
2655 #define COMPACT_CHARACTER 1
2661 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
2662 if test "${enable_getenv_properties+set}" = set; then
2663 enableval="$enable_getenv_properties"
2668 if test -n "$enable_getenv_properties"; then
2669 enable_getenv_properties=${enable_getenv_properties_default-yes}
2671 if test "$enable_getenv_properties" = no; then
2672 cat >> confdefs.h <<\EOF
2673 #define DISABLE_GETENV_PROPERTIES 1
2680 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
2681 if test "${enable_libgcj_debug+set}" = set; then
2682 enableval="$enable_libgcj_debug"
2683 if test "$enable_libgcj_debug" = yes; then
2684 cat >> confdefs.h <<\EOF
2693 # Check whether --enable-interpreter or --disable-interpreter was given.
2694 if test "${enable_interpreter+set}" = set; then
2695 enableval="$enable_interpreter"
2696 if test "$enable_interpreter" = yes; then
2697 # This can also be set in configure.host.
2698 libgcj_interpreter=yes
2699 elif test "$enable_interpreter" = no; then
2700 libgcj_interpreter=no
2705 if test "$libgcj_interpreter" = yes; then
2706 cat >> confdefs.h <<\EOF
2707 #define INTERPRETER 1
2712 echo $ac_n "checking
for exception model to use
""...
$ac_c" 1>&6
2713 echo "configure
:2714: checking
for exception model to use
" >&5
2716 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2717 ac_cpp='$CXXCPP $CPPFLAGS'
2718 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2719 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2720 cross_compiling=$ac_cv_prog_cxx_cross
2722 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
2723 if test "${enable_sjlj_exceptions+set}" = set; then
2724 enableval="$enable_sjlj_exceptions"
2727 cat > conftest.$ac_ext << EOF
2728 #line 2729 "configure
"
2737 old_CXXFLAGS="$CXXFLAGS"
2739 if { (eval echo configure:2740: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2740 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
2741 enable_sjlj_exceptions=yes
2742 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
2743 enable_sjlj_exceptions=no
2746 CXXFLAGS="$old_CXXFLAGS"
2750 if test x$enable_sjlj_exceptions = xyes; then
2751 cat >> confdefs.h <<\EOF
2752 #define SJLJ_EXCEPTIONS 1
2755 ac_exception_model_name=sjlj
2756 elif test x$enable_sjlj_exceptions = xno; then
2757 ac_exception_model_name="call frame
"
2759 { echo "configure
: error
: unable to detect exception model
" 1>&2; exit 1; }
2762 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2763 ac_cpp='$CPP $CPPFLAGS'
2764 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2765 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2766 cross_compiling=$ac_cv_prog_cc_cross
2768 echo "$ac_t""$ac_exception_model_name" 1>&6
2770 echo $ac_n "checking
for data_start
""...
$ac_c" 1>&6
2771 echo "configure
:2772: checking
for data_start
" >&5
2774 cat > conftest.$ac_ext <<EOF
2775 #line 2776 "configure
"
2776 #include "confdefs.h
"
2777 extern int data_start;
2779 return ((int) &data_start);
2782 if { (eval echo configure:2783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2784 echo "$ac_t""found it
" 1>&6
2786 echo "configure
: failed program was
:" >&5
2787 cat conftest.$ac_ext >&5
2789 LIBDATASTARTSPEC="-u data_start libgcjdata.a
%s
"
2790 NEEDS_DATA_START=yes
2791 echo "$ac_t""missing
" 1>&6
2796 # Check whether --enable-java-net or --disable-java-net was given.
2797 if test "${enable_java_net+set}" = set; then
2798 enableval="$enable_java_net"
2803 if test -n "$enable_java_net"; then
2804 enable_java_net=${enable_java_net_default-yes}
2806 if test "$enable_java_net" = no; then
2807 cat >> confdefs.h <<\EOF
2808 #define DISABLE_JAVA_NET 1
2813 # Check whether --enable-jvmpi or --disable-jvmpi was given.
2814 if test "${enable_jvmpi+set}" = set; then
2815 enableval="$enable_jvmpi"
2820 if test "$enable_jvmpi" != no; then
2821 cat >> confdefs.h <<\EOF
2822 #define ENABLE_JVMPI 1
2828 # Check whether --with-ecos or --without-ecos was given.
2829 if test "${with_ecos+set}" = set; then
2830 withval="$with_ecos"
2831 TARGET_ECOS="$with_ecos"
2836 case "$TARGET_ECOS" in
2838 FILE_DESCRIPTOR=natFileDescriptorPosix.cc
2839 PROCESS=${PROCESS-Posix}
2842 FILE_DESCRIPTOR=natFileDescriptorEcos.cc
2844 cat >> confdefs.h <<\EOF
2851 echo $ac_n "checking how to run the C preprocessor
""...
$ac_c" 1>&6
2852 echo "configure
:2853: checking how to run the C preprocessor
" >&5
2853 # On Suns, sometimes $CPP names a directory.
2854 if test -n "$CPP" && test -d "$CPP"; then
2857 if test -z "$CPP"; then
2858 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2859 echo $ac_n "(cached
) $ac_c" 1>&6
2861 # This must be in double quotes, not single quotes, because CPP may get
2862 # substituted into the Makefile and "${CC-cc}" will confuse make.
2864 # On the NeXT, cc -E runs the code through the compiler's parser,
2865 # not just through cpp.
2866 cat > conftest.$ac_ext <<EOF
2867 #line 2868 "configure
"
2868 #include "confdefs.h
"
2872 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
2873 { (eval echo configure:2874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2874 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
2875 if test -z "$ac_err"; then
2879 echo "configure
: failed program was
:" >&5
2880 cat conftest.$ac_ext >&5
2882 CPP="${CC-cc} -E -traditional-cpp"
2883 cat > conftest.$ac_ext <<EOF
2884 #line 2885 "configure
"
2885 #include "confdefs.h
"
2889 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
2890 { (eval echo configure:2891: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2891 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
2892 if test -z "$ac_err"; then
2896 echo "configure
: failed program was
:" >&5
2897 cat conftest.$ac_ext >&5
2899 CPP="${CC-cc} -nologo -E"
2900 cat > conftest.$ac_ext <<EOF
2901 #line 2902 "configure
"
2902 #include "confdefs.h
"
2906 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
2907 { (eval echo configure:2908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2908 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
2909 if test -z "$ac_err"; then
2913 echo "configure
: failed program was
:" >&5
2914 cat conftest.$ac_ext >&5
2923 ac_cv_prog_CPP="$CPP"
2925 CPP="$ac_cv_prog_CPP"
2927 ac_cv_prog_CPP="$CPP"
2929 echo "$ac_t""$CPP" 1>&6
2931 cat > conftest.$ac_ext <<EOF
2932 #line 2933 "configure
"
2933 #include "confdefs.h
"
2936 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
2937 egrep "uint32_t
" >/dev/null 2>&1; then
2939 cat >> confdefs.h <<\EOF
2940 #define HAVE_INT32_DEFINED 1
2946 cat > conftest.$ac_ext <<EOF
2947 #line 2948 "configure
"
2948 #include "confdefs.h
"
2949 #include <inttypes.h>
2951 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
2952 egrep "uint32_t
" >/dev/null 2>&1; then
2954 cat >> confdefs.h <<\EOF
2955 #define HAVE_INT32_DEFINED 1
2961 cat > conftest.$ac_ext <<EOF
2962 #line 2963 "configure
"
2963 #include "confdefs.h
"
2964 #include <sys/types.h>
2966 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
2967 egrep "u_int32_t
" >/dev/null 2>&1; then
2969 cat >> confdefs.h <<\EOF
2970 #define HAVE_BSD_INT32_DEFINED 1
2976 cat > conftest.$ac_ext <<EOF
2977 #line 2978 "configure
"
2978 #include "confdefs.h
"
2979 #include <sys/config.h>
2981 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
2982 egrep "u_int32_t
" >/dev/null 2>&1; then
2984 cat >> confdefs.h <<\EOF
2985 #define HAVE_BSD_INT32_DEFINED 1
2993 cat > conftest.$ac_ext <<EOF
2994 #line 2995 "configure
"
2995 #include "confdefs.h
"
2998 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
2999 egrep "mktime
" >/dev/null 2>&1; then
3001 cat >> confdefs.h <<\EOF
3002 #define HAVE_MKTIME 1
3008 cat > conftest.$ac_ext <<EOF
3009 #line 3010 "configure
"
3010 #include "confdefs.h
"
3013 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3014 egrep "localtime
" >/dev/null 2>&1; then
3016 cat >> confdefs.h <<\EOF
3017 #define HAVE_LOCALTIME 1
3024 test -d java || mkdir java
3025 test -d java/io || mkdir java/io
3026 test -d gnu || mkdir gnu
3029 test -d java/lang || mkdir java/lang
3036 LIBGCJTESTSPEC="-L`pwd`/.libs
-rpath `pwd`/.libs
"
3039 # Check whether --with-system-zlib or --without-system-zlib was given.
3040 if test "${with_system_zlib+set}" = set; then
3041 withval="$with_system_zlib"
3052 echo $ac_n "checking
for garbage collector to use
""...
$ac_c" 1>&6
3053 echo "configure
:3054: checking
for garbage collector to use
" >&5
3054 # Check whether --enable-java-gc or --disable-java-gc was given.
3055 if test "${enable_java_gc+set}" = set; then
3056 enableval="$enable_java_gc"
3072 echo "$ac_t""boehm
" 1>&6
3073 GCDEPS='$(top_builddir)/../boehm-gc/libgcjgc.la'
3074 # We include the path to the boehm-gc build directory.
3075 # See Makefile.am to understand why.
3076 GCLIBS="$GCDEPS -L\$
(here
)/..
/boehm-gc
/$libsubdir"
3077 GCINCS='-I$(top_srcdir)/../boehm-gc -I$(top_builddir)/../boehm-gc'
3079 JC1GCSPEC='-fuse-boehm-gc'
3080 GCTESTSPEC="-L`pwd`/..
/boehm-gc
/.libs
-rpath `pwd`/..
/boehm-gc
/.libs
"
3081 GCINCS="$GCINCS `cat ../boehm-gc/boehm-cflags`"
3084 cat >> confdefs.h <<\EOF
3085 #define HAVE_BOEHM_GC 1
3090 echo "$ac_t""none
" 1>&6
3095 { echo "configure
: error
: unrecognized collector
\"$GC\"" 1>&2; exit 1; }
3108 echo $ac_n "checking
for thread model used by GCC
""...
$ac_c" 1>&6
3109 echo "configure
:3110: checking
for thread model used by GCC
" >&5
3110 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
3111 echo "$ac_t""$THREADS" 1>&6
3121 cat >> confdefs.h <<\EOF
3122 #define LINUX_THREADS 1
3128 decosf1 | irix | mach | os2 | solaris | win32 | dce | vxworks)
3129 { echo "configure
: error
: thread package
$THREADS not yet supported
" 1>&2; exit 1; }
3132 { echo "configure
: error
: $THREADS is an unknown thread package
" 1>&2; exit 1; }
3144 THREADLIBS=-lpthread
3145 THREADSPEC=-lpthread
3146 THREADOBJS=posix-threads.lo
3147 THREADH=posix-threads.h
3148 # MIT pthreads doesn't seem to have the mutexattr functions.
3149 # But for now we don't check for it. We just assume you aren't
3150 # using MIT pthreads.
3151 cat >> confdefs.h <<\EOF
3152 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
3156 # If we're using the Boehm GC, then we happen to know that it
3157 # defines _REENTRANT, so we don't bother. Eww.
3158 if test "$GC" != boehm; then
3159 cat >> confdefs.h <<\EOF
3160 #define _REENTRANT 1
3164 cat >> confdefs.h <<\EOF
3165 #define _POSIX_PTHREAD_SEMANTICS 1
3171 THREADOBJS=no-threads.lo
3172 THREADH=no-threads.h
3184 if test "$GCC" = yes; then
3196 # Find unwind.h and support headers. If we're in the tree with
3197 # gcc, then look there. Otherwise look in compat-include. If all else
3198 # fails, just hope the user has set things up somehow.
3199 echo "probing
$srcdir/..
/gcc
/unwind.h
"
3200 if test -r $libgcj_basedir/../gcc/unwind.h; then
3201 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
3203 if test -d $srcdir/../compat-include; then
3204 GCC_UNWIND_INCLUDE='-I$(top_srcdir)/../compat-include'
3210 if test -n "${with_cross_host}"; then
3211 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
3212 # may not work correctly, because the compiler may not be able to
3215 # We assume newlib. This lets us hard-code the functions we know
3217 cat >> confdefs.h <<\EOF
3218 #define HAVE_MEMMOVE 1
3221 cat >> confdefs.h <<\EOF
3222 #define HAVE_MEMCPY 1
3225 cat >> confdefs.h <<\EOF
3226 #define HAVE_STRERROR 1
3229 cat >> confdefs.h <<\EOF
3230 #define HAVE_GMTIME_R 1
3233 cat >> confdefs.h <<\EOF
3234 #define HAVE_LOCALTIME_R 1
3237 cat >> confdefs.h <<\EOF
3238 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
3241 cat >> confdefs.h <<\EOF
3242 #define HAVE_ALLOCA 1
3246 cat >> confdefs.h <<\EOF
3252 ZLIBTESTSPEC="-L`pwd`/..
/zlib
/.libs
-rpath `pwd`/..
/zlib
/.libs
"
3254 # If Canadian cross, then don't pick up tools from the build
3256 if test x"$build" != x"$with_cross_host" && x"$build" != x"$target"; then
3259 GCJ="${target_alias}-gcj"
3263 for ac_func in strerror ioctl select fstat open fsync sleep
3265 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
3266 echo "configure
:3267: checking
for $ac_func" >&5
3267 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3268 echo $ac_n "(cached
) $ac_c" 1>&6
3270 cat > conftest.$ac_ext <<EOF
3271 #line 3272 "configure
"
3272 #include "confdefs.h
"
3273 /* System header to define __stub macros and hopefully few prototypes,
3274 which can conflict with char $ac_func(); below. */
3276 /* Override any gcc2 internal prototype to avoid an error. */
3277 /* We use char because int might match the return type of a gcc2
3278 builtin and then its argument prototype would still apply. */
3283 /* The GNU C library defines this for functions which it implements
3284 to always fail with ENOSYS. Some functions are actually named
3285 something starting with __ and the normal name is an alias. */
3286 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3294 if { (eval echo configure:3295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3296 eval "ac_cv_func_
$ac_func=yes"
3298 echo "configure
: failed program was
:" >&5
3299 cat conftest.$ac_ext >&5
3301 eval "ac_cv_func_
$ac_func=no
"
3306 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3307 echo "$ac_t""yes" 1>&6
3308 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3309 cat >> confdefs.h <<EOF
3310 #define $ac_tr_func 1
3314 echo "$ac_t""no
" 1>&6
3318 for ac_func in gmtime_r localtime_r readdir_r getpwuid_r getcwd
3320 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
3321 echo "configure
:3322: checking
for $ac_func" >&5
3322 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3323 echo $ac_n "(cached
) $ac_c" 1>&6
3325 cat > conftest.$ac_ext <<EOF
3326 #line 3327 "configure
"
3327 #include "confdefs.h
"
3328 /* System header to define __stub macros and hopefully few prototypes,
3329 which can conflict with char $ac_func(); below. */
3331 /* Override any gcc2 internal prototype to avoid an error. */
3332 /* We use char because int might match the return type of a gcc2
3333 builtin and then its argument prototype would still apply. */
3338 /* The GNU C library defines this for functions which it implements
3339 to always fail with ENOSYS. Some functions are actually named
3340 something starting with __ and the normal name is an alias. */
3341 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3349 if { (eval echo configure:3350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3351 eval "ac_cv_func_
$ac_func=yes"
3353 echo "configure
: failed program was
:" >&5
3354 cat conftest.$ac_ext >&5
3356 eval "ac_cv_func_
$ac_func=no
"
3361 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3362 echo "$ac_t""yes" 1>&6
3363 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3364 cat >> confdefs.h <<EOF
3365 #define $ac_tr_func 1
3369 echo "$ac_t""no
" 1>&6
3373 for ac_func in access stat mkdir rename rmdir unlink realpath utime chmod
3375 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
3376 echo "configure
:3377: checking
for $ac_func" >&5
3377 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3378 echo $ac_n "(cached
) $ac_c" 1>&6
3380 cat > conftest.$ac_ext <<EOF
3381 #line 3382 "configure
"
3382 #include "confdefs.h
"
3383 /* System header to define __stub macros and hopefully few prototypes,
3384 which can conflict with char $ac_func(); below. */
3386 /* Override any gcc2 internal prototype to avoid an error. */
3387 /* We use char because int might match the return type of a gcc2
3388 builtin and then its argument prototype would still apply. */
3393 /* The GNU C library defines this for functions which it implements
3394 to always fail with ENOSYS. Some functions are actually named
3395 something starting with __ and the normal name is an alias. */
3396 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3404 if { (eval echo configure:3405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3406 eval "ac_cv_func_
$ac_func=yes"
3408 echo "configure
: failed program was
:" >&5
3409 cat conftest.$ac_ext >&5
3411 eval "ac_cv_func_
$ac_func=no
"
3416 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3417 echo "$ac_t""yes" 1>&6
3418 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3419 cat >> confdefs.h <<EOF
3420 #define $ac_tr_func 1
3424 echo "$ac_t""no
" 1>&6
3428 for ac_func in nl_langinfo setlocale
3430 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
3431 echo "configure
:3432: checking
for $ac_func" >&5
3432 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3433 echo $ac_n "(cached
) $ac_c" 1>&6
3435 cat > conftest.$ac_ext <<EOF
3436 #line 3437 "configure
"
3437 #include "confdefs.h
"
3438 /* System header to define __stub macros and hopefully few prototypes,
3439 which can conflict with char $ac_func(); below. */
3441 /* Override any gcc2 internal prototype to avoid an error. */
3442 /* We use char because int might match the return type of a gcc2
3443 builtin and then its argument prototype would still apply. */
3448 /* The GNU C library defines this for functions which it implements
3449 to always fail with ENOSYS. Some functions are actually named
3450 something starting with __ and the normal name is an alias. */
3451 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3459 if { (eval echo configure:3460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3461 eval "ac_cv_func_
$ac_func=yes"
3463 echo "configure
: failed program was
:" >&5
3464 cat conftest.$ac_ext >&5
3466 eval "ac_cv_func_
$ac_func=no
"
3471 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3472 echo "$ac_t""yes" 1>&6
3473 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3474 cat >> confdefs.h <<EOF
3475 #define $ac_tr_func 1
3479 echo "$ac_t""no
" 1>&6
3483 for ac_func in inet_aton inet_addr
3485 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
3486 echo "configure
:3487: checking
for $ac_func" >&5
3487 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3488 echo $ac_n "(cached
) $ac_c" 1>&6
3490 cat > conftest.$ac_ext <<EOF
3491 #line 3492 "configure
"
3492 #include "confdefs.h
"
3493 /* System header to define __stub macros and hopefully few prototypes,
3494 which can conflict with char $ac_func(); below. */
3496 /* Override any gcc2 internal prototype to avoid an error. */
3497 /* We use char because int might match the return type of a gcc2
3498 builtin and then its argument prototype would still apply. */
3503 /* The GNU C library defines this for functions which it implements
3504 to always fail with ENOSYS. Some functions are actually named
3505 something starting with __ and the normal name is an alias. */
3506 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3514 if { (eval echo configure:3515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3516 eval "ac_cv_func_
$ac_func=yes"
3518 echo "configure
: failed program was
:" >&5
3519 cat conftest.$ac_ext >&5
3521 eval "ac_cv_func_
$ac_func=no
"
3526 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3527 echo "$ac_t""yes" 1>&6
3528 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3529 cat >> confdefs.h <<EOF
3530 #define $ac_tr_func 1
3534 echo "$ac_t""no
" 1>&6
3538 for ac_func in inet_pton uname inet_ntoa
3540 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
3541 echo "configure
:3542: checking
for $ac_func" >&5
3542 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3543 echo $ac_n "(cached
) $ac_c" 1>&6
3545 cat > conftest.$ac_ext <<EOF
3546 #line 3547 "configure
"
3547 #include "confdefs.h
"
3548 /* System header to define __stub macros and hopefully few prototypes,
3549 which can conflict with char $ac_func(); below. */
3551 /* Override any gcc2 internal prototype to avoid an error. */
3552 /* We use char because int might match the return type of a gcc2
3553 builtin and then its argument prototype would still apply. */
3558 /* The GNU C library defines this for functions which it implements
3559 to always fail with ENOSYS. Some functions are actually named
3560 something starting with __ and the normal name is an alias. */
3561 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3569 if { (eval echo configure:3570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3571 eval "ac_cv_func_
$ac_func=yes"
3573 echo "configure
: failed program was
:" >&5
3574 cat conftest.$ac_ext >&5
3576 eval "ac_cv_func_
$ac_func=no
"
3581 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3582 echo "$ac_t""yes" 1>&6
3583 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3584 cat >> confdefs.h <<EOF
3585 #define $ac_tr_func 1
3589 echo "$ac_t""no
" 1>&6
3593 for ac_func in backtrace fork execvp pipe
3595 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
3596 echo "configure
:3597: checking
for $ac_func" >&5
3597 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3598 echo $ac_n "(cached
) $ac_c" 1>&6
3600 cat > conftest.$ac_ext <<EOF
3601 #line 3602 "configure
"
3602 #include "confdefs.h
"
3603 /* System header to define __stub macros and hopefully few prototypes,
3604 which can conflict with char $ac_func(); below. */
3606 /* Override any gcc2 internal prototype to avoid an error. */
3607 /* We use char because int might match the return type of a gcc2
3608 builtin and then its argument prototype would still apply. */
3613 /* The GNU C library defines this for functions which it implements
3614 to always fail with ENOSYS. Some functions are actually named
3615 something starting with __ and the normal name is an alias. */
3616 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3624 if { (eval echo configure:3625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3626 eval "ac_cv_func_
$ac_func=yes"
3628 echo "configure
: failed program was
:" >&5
3629 cat conftest.$ac_ext >&5
3631 eval "ac_cv_func_
$ac_func=no
"
3636 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3637 echo "$ac_t""yes" 1>&6
3638 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3639 cat >> confdefs.h <<EOF
3640 #define $ac_tr_func 1
3644 echo "$ac_t""no
" 1>&6
3648 for ac_hdr in execinfo.h unistd.h dlfcn.h
3650 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3651 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
3652 echo "configure
:3653: checking
for $ac_hdr" >&5
3653 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3654 echo $ac_n "(cached
) $ac_c" 1>&6
3656 cat > conftest.$ac_ext <<EOF
3657 #line 3658 "configure
"
3658 #include "confdefs.h
"
3661 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
3662 { (eval echo configure:3663: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3663 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
3664 if test -z "$ac_err"; then
3666 eval "ac_cv_header_
$ac_safe=yes"
3669 echo "configure
: failed program was
:" >&5
3670 cat conftest.$ac_ext >&5
3672 eval "ac_cv_header_
$ac_safe=no
"
3676 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3677 echo "$ac_t""yes" 1>&6
3678 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3679 cat >> confdefs.h <<EOF
3680 #define $ac_tr_hdr 1
3684 echo "$ac_t""no
" 1>&6
3688 echo $ac_n "checking
for dladdr
in -ldl""...
$ac_c" 1>&6
3689 echo "configure
:3690: checking
for dladdr
in -ldl" >&5
3690 ac_lib_var=`echo dl'_'dladdr | sed 'y%./+-%__p_%'`
3691 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3692 echo $ac_n "(cached
) $ac_c" 1>&6
3694 ac_save_LIBS="$LIBS"
3696 cat > conftest.$ac_ext <<EOF
3697 #line 3698 "configure
"
3698 #include "confdefs.h
"
3699 /* Override any gcc2 internal prototype to avoid an error. */
3700 /* We use char because int might match the return type of a gcc2
3701 builtin and then its argument prototype would still apply. */
3708 if { (eval echo configure:3709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3710 eval "ac_cv_lib_
$ac_lib_var=yes"
3712 echo "configure
: failed program was
:" >&5
3713 cat conftest.$ac_ext >&5
3715 eval "ac_cv_lib_
$ac_lib_var=no
"
3718 LIBS="$ac_save_LIBS"
3721 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3722 echo "$ac_t""yes" 1>&6
3724 cat >> confdefs.h <<\EOF
3725 #define HAVE_DLADDR 1
3729 echo "$ac_t""no
" 1>&6
3732 for ac_file in /proc/self/exe
3735 ac_safe=`echo "$ac_file" | sed 'y%./+-%__p_%'`
3736 echo $ac_n "checking
for $ac_file""...
$ac_c" 1>&6
3737 echo "configure
:3738: checking
for $ac_file" >&5
3738 if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then
3739 echo $ac_n "(cached
) $ac_c" 1>&6
3741 if test "$cross_compiling" = yes; then
3742 { echo "configure
: error
: Cannot check
for file existence when cross compiling
" 1>&2; exit 1; }
3744 if test -r $ac_file; then
3745 eval "ac_cv_file_
$ac_safe=yes"
3747 eval "ac_cv_file_
$ac_safe=no
"
3751 if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then
3752 echo "$ac_t""yes" 1>&6
3753 ac_tr_file=HAVE_`echo $ac_file | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3754 cat >> confdefs.h <<EOF
3755 #define $ac_tr_file 1
3758 cat >> confdefs.h <<\EOF
3759 #define HAVE_PROC_SELF_EXE 1
3763 echo "$ac_t""no
" 1>&6
3772 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
3773 if test "${with_libiconv_prefix+set}" = set; then
3774 withval="$with_libiconv_prefix"
3776 for dir in `echo "$withval" | tr : ' '`; do
3777 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include
"; fi
3778 if test -d $dir/lib; then
3779 LDFLAGS="$LDFLAGS -L$dir/lib
"
3780 ICONV_LDFLAGS=-L$dir/lib
3788 echo $ac_n "checking
for iconv""...
$ac_c" 1>&6
3789 echo "configure
:3790: checking
for iconv" >&5
3790 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
3791 echo $ac_n "(cached
) $ac_c" 1>&6
3794 am_cv_func_iconv="no
, consider installing GNU libiconv
"
3796 cat > conftest.$ac_ext <<EOF
3797 #line 3798 "configure
"
3798 #include "confdefs.h
"
3802 iconv_t cd = iconv_open("","");
3803 iconv(cd,NULL,NULL,NULL,NULL);
3807 if { (eval echo configure:3808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3809 am_cv_func_iconv=yes
3811 echo "configure
: failed program was
:" >&5
3812 cat conftest.$ac_ext >&5
3815 if test "$am_cv_func_iconv" != yes; then
3816 am_save_LIBS="$LIBS"
3817 LIBS="$LIBS -liconv"
3818 cat > conftest.$ac_ext <<EOF
3819 #line 3820 "configure
"
3820 #include "confdefs.h
"
3824 iconv_t cd = iconv_open("","");
3825 iconv(cd,NULL,NULL,NULL,NULL);
3829 if { (eval echo configure:3830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3832 am_cv_func_iconv=yes
3834 echo "configure
: failed program was
:" >&5
3835 cat conftest.$ac_ext >&5
3838 LIBS="$am_save_LIBS"
3843 echo "$ac_t""$am_cv_func_iconv" 1>&6
3844 if test "$am_cv_func_iconv" = yes; then
3845 cat >> confdefs.h <<\EOF
3846 #define HAVE_ICONV 1
3849 echo $ac_n "checking
for iconv declaration
""...
$ac_c" 1>&6
3850 echo "configure
:3851: checking
for iconv declaration
" >&5
3851 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
3852 echo $ac_n "(cached
) $ac_c" 1>&6
3855 cat > conftest.$ac_ext <<EOF
3856 #line 3857 "configure
"
3857 #include "confdefs.h
"
3865 #if defined(__STDC__) || defined(__cplusplus)
3866 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
3875 if { (eval echo configure:3876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3877 am_cv_proto_iconv_arg1=""
3879 echo "configure
: failed program was
:" >&5
3880 cat conftest.$ac_ext >&5
3882 am_cv_proto_iconv_arg1="const
"
3885 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
);"
3888 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
3889 echo "$ac_t""$
{ac_t
:-
3890 }$am_cv_proto_iconv" 1>&6
3891 cat >> confdefs.h <<EOF
3892 #define ICONV_CONST $am_cv_proto_iconv_arg1
3897 if test "$am_cv_lib_iconv" = yes; then
3903 for ac_func in gethostbyname_r
3905 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
3906 echo "configure
:3907: checking
for $ac_func" >&5
3907 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3908 echo $ac_n "(cached
) $ac_c" 1>&6
3910 cat > conftest.$ac_ext <<EOF
3911 #line 3912 "configure
"
3912 #include "confdefs.h
"
3913 /* System header to define __stub macros and hopefully few prototypes,
3914 which can conflict with char $ac_func(); below. */
3916 /* Override any gcc2 internal prototype to avoid an error. */
3917 /* We use char because int might match the return type of a gcc2
3918 builtin and then its argument prototype would still apply. */
3923 /* The GNU C library defines this for functions which it implements
3924 to always fail with ENOSYS. Some functions are actually named
3925 something starting with __ and the normal name is an alias. */
3926 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3934 if { (eval echo configure:3935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3936 eval "ac_cv_func_
$ac_func=yes"
3938 echo "configure
: failed program was
:" >&5
3939 cat conftest.$ac_ext >&5
3941 eval "ac_cv_func_
$ac_func=no
"
3946 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3947 echo "$ac_t""yes" 1>&6
3948 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3949 cat >> confdefs.h <<EOF
3950 #define $ac_tr_func 1
3953 cat >> confdefs.h <<\EOF
3954 #define HAVE_GETHOSTBYNAME_R 1
3957 # There are two different kinds of gethostbyname_r.
3958 # We look for the one that returns `int'.
3959 # Hopefully this check is robust enough.
3960 cat > conftest.$ac_ext <<EOF
3961 #line 3962 "configure
"
3962 #include "confdefs.h
"
3965 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
3966 egrep "int.
*gethostbyname_r
" >/dev/null 2>&1; then
3969 cat >> confdefs.h <<\EOF
3970 #define GETHOSTBYNAME_R_RETURNS_INT 1
3978 *" -D_REENTRANT "*) ;;
3980 echo $ac_n "checking whether gethostbyname_r declaration requires
-D_REENTRANT""...
$ac_c" 1>&6
3981 echo "configure
:3982: checking whether gethostbyname_r declaration requires
-D_REENTRANT" >&5
3982 if eval "test \"`echo '$''{'libjava_cv_gethostbyname_r_needs_reentrant'+set}'`\" = set"; then
3983 echo $ac_n "(cached
) $ac_c" 1>&6
3987 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3988 ac_cpp='$CXXCPP $CPPFLAGS'
3989 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3990 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3991 cross_compiling=$ac_cv_prog_cxx_cross
3993 cat > conftest.$ac_ext <<EOF
3994 #line 3995 "configure
"
3995 #include "confdefs.h
"
3998 gethostbyname_r("", 0, 0);
4001 if { (eval echo configure:4002: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4003 libjava_cv_gethostbyname_r_needs_reentrant=no
4005 echo "configure
: failed program was
:" >&5
4006 cat conftest.$ac_ext >&5
4008 CPPFLAGS_SAVE="$CPPFLAGS"
4009 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
4010 cat > conftest.$ac_ext <<EOF
4011 #line 4012 "configure
"
4012 #include "confdefs.h
"
4015 gethostbyname_r("", 0, 0);
4018 if { (eval echo configure:4019: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4020 libjava_cv_gethostbyname_r_needs_reentrant=yes
4022 echo "configure
: failed program was
:" >&5
4023 cat conftest.$ac_ext >&5
4025 libjava_cv_gethostbyname_r_needs_reentrant=fail
4028 CPPFLAGS="$CPPFLAGS_SAVE"
4033 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4034 ac_cpp='$CPP $CPPFLAGS'
4035 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4036 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4037 cross_compiling=$ac_cv_prog_cc_cross
4042 echo "$ac_t""$libjava_cv_gethostbyname_r_needs_reentrant" 1>&6
4043 if test "x
$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
4044 cat >> confdefs.h <<\EOF
4045 #define _REENTRANT 1
4052 echo $ac_n "checking
for struct hostent_data
""...
$ac_c" 1>&6
4053 echo "configure
:4054: checking
for struct hostent_data
" >&5
4054 if eval "test \"`echo '$''{'libjava_cv_struct_hostent_data'+set}'`\" = set"; then
4055 echo $ac_n "(cached
) $ac_c" 1>&6
4057 cat > conftest.$ac_ext <<EOF
4058 #line 4059 "configure
"
4059 #include "confdefs.h
"
4061 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
4062 # define _REENTRANT 1
4066 struct hostent_data data;
4069 if { (eval echo configure:4070: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4071 libjava_cv_struct_hostent_data=yes
4073 echo "configure
: failed program was
:" >&5
4074 cat conftest.$ac_ext >&5
4076 libjava_cv_struct_hostent_data=no
4081 echo "$ac_t""$libjava_cv_struct_hostent_data" 1>&6
4082 if test "x
$libjava_cv_struct_hostent_data" = xyes; then
4083 cat >> confdefs.h <<\EOF
4084 #define HAVE_STRUCT_HOSTENT_DATA 1
4090 echo "$ac_t""no
" 1>&6
4095 for ac_func in gethostbyaddr_r
4097 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4098 echo "configure
:4099: checking
for $ac_func" >&5
4099 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4100 echo $ac_n "(cached
) $ac_c" 1>&6
4102 cat > conftest.$ac_ext <<EOF
4103 #line 4104 "configure
"
4104 #include "confdefs.h
"
4105 /* System header to define __stub macros and hopefully few prototypes,
4106 which can conflict with char $ac_func(); below. */
4108 /* Override any gcc2 internal prototype to avoid an error. */
4109 /* We use char because int might match the return type of a gcc2
4110 builtin and then its argument prototype would still apply. */
4115 /* The GNU C library defines this for functions which it implements
4116 to always fail with ENOSYS. Some functions are actually named
4117 something starting with __ and the normal name is an alias. */
4118 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4126 if { (eval echo configure:4127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4128 eval "ac_cv_func_
$ac_func=yes"
4130 echo "configure
: failed program was
:" >&5
4131 cat conftest.$ac_ext >&5
4133 eval "ac_cv_func_
$ac_func=no
"
4138 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4139 echo "$ac_t""yes" 1>&6
4140 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4141 cat >> confdefs.h <<EOF
4142 #define $ac_tr_func 1
4145 cat >> confdefs.h <<\EOF
4146 #define HAVE_GETHOSTBYADDR_R 1
4149 # There are two different kinds of gethostbyaddr_r.
4150 # We look for the one that returns `int'.
4151 # Hopefully this check is robust enough.
4152 cat > conftest.$ac_ext <<EOF
4153 #line 4154 "configure
"
4154 #include "confdefs.h
"
4157 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
4158 egrep "int.
*gethostbyaddr_r
" >/dev/null 2>&1; then
4161 cat >> confdefs.h <<\EOF
4162 #define GETHOSTBYADDR_R_RETURNS_INT 1
4169 echo "$ac_t""no
" 1>&6
4174 for ac_func in gethostname
4176 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4177 echo "configure
:4178: checking
for $ac_func" >&5
4178 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4179 echo $ac_n "(cached
) $ac_c" 1>&6
4181 cat > conftest.$ac_ext <<EOF
4182 #line 4183 "configure
"
4183 #include "confdefs.h
"
4184 /* System header to define __stub macros and hopefully few prototypes,
4185 which can conflict with char $ac_func(); below. */
4187 /* Override any gcc2 internal prototype to avoid an error. */
4188 /* We use char because int might match the return type of a gcc2
4189 builtin and then its argument prototype would still apply. */
4194 /* The GNU C library defines this for functions which it implements
4195 to always fail with ENOSYS. Some functions are actually named
4196 something starting with __ and the normal name is an alias. */
4197 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4205 if { (eval echo configure:4206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4207 eval "ac_cv_func_
$ac_func=yes"
4209 echo "configure
: failed program was
:" >&5
4210 cat conftest.$ac_ext >&5
4212 eval "ac_cv_func_
$ac_func=no
"
4217 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4218 echo "$ac_t""yes" 1>&6
4219 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4220 cat >> confdefs.h <<EOF
4221 #define $ac_tr_func 1
4224 cat >> confdefs.h <<\EOF
4225 #define HAVE_GETHOSTNAME 1
4228 cat > conftest.$ac_ext <<EOF
4229 #line 4230 "configure
"
4230 #include "confdefs.h
"
4233 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
4234 egrep "gethostname
" >/dev/null 2>&1; then
4237 cat >> confdefs.h <<\EOF
4238 #define HAVE_GETHOSTNAME_DECL 1
4245 echo "$ac_t""no
" 1>&6
4250 # Look for these functions in the thread library, but only bother
4251 # if using POSIX threads.
4252 if test "$THREADS" = posix; then
4254 LIBS="$LIBS $THREADLIBS"
4255 # Some POSIX thread systems don't have pthread_mutexattr_settype.
4257 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
4259 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4260 echo "configure
:4261: checking
for $ac_func" >&5
4261 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4262 echo $ac_n "(cached
) $ac_c" 1>&6
4264 cat > conftest.$ac_ext <<EOF
4265 #line 4266 "configure
"
4266 #include "confdefs.h
"
4267 /* System header to define __stub macros and hopefully few prototypes,
4268 which can conflict with char $ac_func(); below. */
4270 /* Override any gcc2 internal prototype to avoid an error. */
4271 /* We use char because int might match the return type of a gcc2
4272 builtin and then its argument prototype would still apply. */
4277 /* The GNU C library defines this for functions which it implements
4278 to always fail with ENOSYS. Some functions are actually named
4279 something starting with __ and the normal name is an alias. */
4280 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4288 if { (eval echo configure:4289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4290 eval "ac_cv_func_
$ac_func=yes"
4292 echo "configure
: failed program was
:" >&5
4293 cat conftest.$ac_ext >&5
4295 eval "ac_cv_func_
$ac_func=no
"
4300 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4301 echo "$ac_t""yes" 1>&6
4302 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4303 cat >> confdefs.h <<EOF
4304 #define $ac_tr_func 1
4308 echo "$ac_t""no
" 1>&6
4313 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
4314 # Solaris 7 the name librt is preferred.
4315 for ac_func in sched_yield
4317 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4318 echo "configure
:4319: checking
for $ac_func" >&5
4319 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4320 echo $ac_n "(cached
) $ac_c" 1>&6
4322 cat > conftest.$ac_ext <<EOF
4323 #line 4324 "configure
"
4324 #include "confdefs.h
"
4325 /* System header to define __stub macros and hopefully few prototypes,
4326 which can conflict with char $ac_func(); below. */
4328 /* Override any gcc2 internal prototype to avoid an error. */
4329 /* We use char because int might match the return type of a gcc2
4330 builtin and then its argument prototype would still apply. */
4335 /* The GNU C library defines this for functions which it implements
4336 to always fail with ENOSYS. Some functions are actually named
4337 something starting with __ and the normal name is an alias. */
4338 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4346 if { (eval echo configure:4347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4348 eval "ac_cv_func_
$ac_func=yes"
4350 echo "configure
: failed program was
:" >&5
4351 cat conftest.$ac_ext >&5
4353 eval "ac_cv_func_
$ac_func=no
"
4358 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4359 echo "$ac_t""yes" 1>&6
4360 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4361 cat >> confdefs.h <<EOF
4362 #define $ac_tr_func 1
4366 echo "$ac_t""no
" 1>&6
4367 echo $ac_n "checking
for sched_yield
in -lrt""...
$ac_c" 1>&6
4368 echo "configure
:4369: checking
for sched_yield
in -lrt" >&5
4369 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-%__p_%'`
4370 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4371 echo $ac_n "(cached
) $ac_c" 1>&6
4373 ac_save_LIBS="$LIBS"
4375 cat > conftest.$ac_ext <<EOF
4376 #line 4377 "configure
"
4377 #include "confdefs.h
"
4378 /* Override any gcc2 internal prototype to avoid an error. */
4379 /* We use char because int might match the return type of a gcc2
4380 builtin and then its argument prototype would still apply. */
4387 if { (eval echo configure:4388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4389 eval "ac_cv_lib_
$ac_lib_var=yes"
4391 echo "configure
: failed program was
:" >&5
4392 cat conftest.$ac_ext >&5
4394 eval "ac_cv_lib_
$ac_lib_var=no
"
4397 LIBS="$ac_save_LIBS"
4400 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4401 echo "$ac_t""yes" 1>&6
4403 cat >> confdefs.h <<\EOF
4404 #define HAVE_SCHED_YIELD 1
4407 THREADLIBS="$THREADLIBS -lrt"
4408 THREADSPEC="$THREADSPEC -lrt"
4410 echo "$ac_t""no
" 1>&6
4412 echo $ac_n "checking
for sched_yield
in -lposix4""...
$ac_c" 1>&6
4413 echo "configure
:4414: checking
for sched_yield
in -lposix4" >&5
4414 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
4415 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4416 echo $ac_n "(cached
) $ac_c" 1>&6
4418 ac_save_LIBS="$LIBS"
4419 LIBS="-lposix4 $LIBS"
4420 cat > conftest.$ac_ext <<EOF
4421 #line 4422 "configure
"
4422 #include "confdefs.h
"
4423 /* Override any gcc2 internal prototype to avoid an error. */
4424 /* We use char because int might match the return type of a gcc2
4425 builtin and then its argument prototype would still apply. */
4432 if { (eval echo configure:4433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4434 eval "ac_cv_lib_
$ac_lib_var=yes"
4436 echo "configure
: failed program was
:" >&5
4437 cat conftest.$ac_ext >&5
4439 eval "ac_cv_lib_
$ac_lib_var=no
"
4442 LIBS="$ac_save_LIBS"
4445 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4446 echo "$ac_t""yes" 1>&6
4448 cat >> confdefs.h <<\EOF
4449 #define HAVE_SCHED_YIELD 1
4452 THREADLIBS="$THREADLIBS -lposix4"
4453 THREADSPEC="$THREADSPEC -lposix4"
4455 echo "$ac_t""no
" 1>&6
4465 # We can save a little space at runtime if the mutex has m_count
4466 # or __m_count. This is a nice hack for Linux.
4467 cat > conftest.$ac_ext <<EOF
4468 #line 4469 "configure
"
4469 #include "confdefs.h
"
4470 #include <pthread.h>
4473 extern pthread_mutex_t *mutex; int q = mutex->m_count;
4477 if { (eval echo configure:4478: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4479 cat >> confdefs.h <<\EOF
4480 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
4484 echo "configure
: failed program was
:" >&5
4485 cat conftest.$ac_ext >&5
4488 cat > conftest.$ac_ext <<EOF
4489 #line 4490 "configure
"
4490 #include "confdefs.h
"
4491 #include <pthread.h>
4494 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
4498 if { (eval echo configure:4499: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4500 cat >> confdefs.h <<\EOF
4501 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
4505 echo "configure
: failed program was
:" >&5
4506 cat conftest.$ac_ext >&5
4513 # We require a way to get the time.
4515 for ac_func in gettimeofday time ftime
4517 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4518 echo "configure
:4519: checking
for $ac_func" >&5
4519 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4520 echo $ac_n "(cached
) $ac_c" 1>&6
4522 cat > conftest.$ac_ext <<EOF
4523 #line 4524 "configure
"
4524 #include "confdefs.h
"
4525 /* System header to define __stub macros and hopefully few prototypes,
4526 which can conflict with char $ac_func(); below. */
4528 /* Override any gcc2 internal prototype to avoid an error. */
4529 /* We use char because int might match the return type of a gcc2
4530 builtin and then its argument prototype would still apply. */
4535 /* The GNU C library defines this for functions which it implements
4536 to always fail with ENOSYS. Some functions are actually named
4537 something starting with __ and the normal name is an alias. */
4538 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4546 if { (eval echo configure:4547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4548 eval "ac_cv_func_
$ac_func=yes"
4550 echo "configure
: failed program was
:" >&5
4551 cat conftest.$ac_ext >&5
4553 eval "ac_cv_func_
$ac_func=no
"
4558 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4559 echo "$ac_t""yes" 1>&6
4560 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4561 cat >> confdefs.h <<EOF
4562 #define $ac_tr_func 1
4566 echo "$ac_t""no
" 1>&6
4570 if test "$time_found" = no; then
4571 { echo "configure
: error
: no
function found to get the
time" 1>&2; exit 1; }
4574 for ac_func in memmove
4576 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4577 echo "configure
:4578: checking
for $ac_func" >&5
4578 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4579 echo $ac_n "(cached
) $ac_c" 1>&6
4581 cat > conftest.$ac_ext <<EOF
4582 #line 4583 "configure
"
4583 #include "confdefs.h
"
4584 /* System header to define __stub macros and hopefully few prototypes,
4585 which can conflict with char $ac_func(); below. */
4587 /* Override any gcc2 internal prototype to avoid an error. */
4588 /* We use char because int might match the return type of a gcc2
4589 builtin and then its argument prototype would still apply. */
4594 /* The GNU C library defines this for functions which it implements
4595 to always fail with ENOSYS. Some functions are actually named
4596 something starting with __ and the normal name is an alias. */
4597 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4605 if { (eval echo configure:4606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4607 eval "ac_cv_func_
$ac_func=yes"
4609 echo "configure
: failed program was
:" >&5
4610 cat conftest.$ac_ext >&5
4612 eval "ac_cv_func_
$ac_func=no
"
4617 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4618 echo "$ac_t""yes" 1>&6
4619 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4620 cat >> confdefs.h <<EOF
4621 #define $ac_tr_func 1
4625 echo "$ac_t""no
" 1>&6
4630 # We require memcpy.
4632 for ac_func in memcpy
4634 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
4635 echo "configure
:4636: checking
for $ac_func" >&5
4636 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4637 echo $ac_n "(cached
) $ac_c" 1>&6
4639 cat > conftest.$ac_ext <<EOF
4640 #line 4641 "configure
"
4641 #include "confdefs.h
"
4642 /* System header to define __stub macros and hopefully few prototypes,
4643 which can conflict with char $ac_func(); below. */
4645 /* Override any gcc2 internal prototype to avoid an error. */
4646 /* We use char because int might match the return type of a gcc2
4647 builtin and then its argument prototype would still apply. */
4652 /* The GNU C library defines this for functions which it implements
4653 to always fail with ENOSYS. Some functions are actually named
4654 something starting with __ and the normal name is an alias. */
4655 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4663 if { (eval echo configure:4664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4665 eval "ac_cv_func_
$ac_func=yes"
4667 echo "configure
: failed program was
:" >&5
4668 cat conftest.$ac_ext >&5
4670 eval "ac_cv_func_
$ac_func=no
"
4675 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4676 echo "$ac_t""yes" 1>&6
4677 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4678 cat >> confdefs.h <<EOF
4679 #define $ac_tr_func 1
4683 echo "$ac_t""no
" 1>&6
4687 if test "$memcpy_found" = no; then
4688 { echo "configure
: error
: memcpy is required
" 1>&2; exit 1; }
4691 # Some library-finding code we stole from Tcl.
4692 #--------------------------------------------------------------------
4693 # Check for the existence of the -lsocket and -lnsl libraries.
4694 # The order here is important, so that they end up in the right
4695 # order in the command line generated by make. Here are some
4696 # special considerations:
4697 # 1. Use "connect
" and "accept
" to check for -lsocket, and
4698 # "gethostbyname
" to check for -lnsl.
4699 # 2. Use each function name only once: can't redo a check because
4700 # autoconf caches the results of the last check and won't redo it.
4701 # 3. Use -lnsl and -lsocket only if they supply procedures that
4702 # aren't already present in the normal libraries. This is because
4703 # IRIX 5.2 has libraries, but they aren't needed and they're
4704 # bogus: they goof up name resolution if used.
4705 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
4706 # To get around this problem, check for both libraries together
4707 # if -lsocket doesn't work by itself.
4708 #--------------------------------------------------------------------
4710 echo $ac_n "checking
for socket libraries
""...
$ac_c" 1>&6
4711 echo "configure
:4712: checking
for socket libraries
" >&5
4712 if eval "test \"`echo '$''{'gcj_cv_lib_sockets'+set}'`\" = set"; then
4713 echo $ac_n "(cached
) $ac_c" 1>&6
4717 unset ac_cv_func_connect
4718 echo $ac_n "checking
for connect
""...
$ac_c" 1>&6
4719 echo "configure
:4720: checking
for connect
" >&5
4720 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
4721 echo $ac_n "(cached
) $ac_c" 1>&6
4723 cat > conftest.$ac_ext <<EOF
4724 #line 4725 "configure
"
4725 #include "confdefs.h
"
4726 /* System header to define __stub macros and hopefully few prototypes,
4727 which can conflict with char connect(); below. */
4729 /* Override any gcc2 internal prototype to avoid an error. */
4730 /* We use char because int might match the return type of a gcc2
4731 builtin and then its argument prototype would still apply. */
4736 /* The GNU C library defines this for functions which it implements
4737 to always fail with ENOSYS. Some functions are actually named
4738 something starting with __ and the normal name is an alias. */
4739 #if defined (__stub_connect) || defined (__stub___connect)
4747 if { (eval echo configure:4748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4749 eval "ac_cv_func_connect
=yes"
4751 echo "configure
: failed program was
:" >&5
4752 cat conftest.$ac_ext >&5
4754 eval "ac_cv_func_connect
=no
"
4759 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
4760 echo "$ac_t""yes" 1>&6
4763 echo "$ac_t""no
" 1>&6
4767 if test "$gcj_checkSocket" = 1; then
4768 unset ac_cv_func_connect
4769 echo $ac_n "checking
for main
in -lsocket""...
$ac_c" 1>&6
4770 echo "configure
:4771: checking
for main
in -lsocket" >&5
4771 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
4772 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4773 echo $ac_n "(cached
) $ac_c" 1>&6
4775 ac_save_LIBS="$LIBS"
4776 LIBS="-lsocket $LIBS"
4777 cat > conftest.$ac_ext <<EOF
4778 #line 4779 "configure
"
4779 #include "confdefs.h
"
4785 if { (eval echo configure:4786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4787 eval "ac_cv_lib_
$ac_lib_var=yes"
4789 echo "configure
: failed program was
:" >&5
4790 cat conftest.$ac_ext >&5
4792 eval "ac_cv_lib_
$ac_lib_var=no
"
4795 LIBS="$ac_save_LIBS"
4798 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4799 echo "$ac_t""yes" 1>&6
4800 gcj_cv_lib_sockets="-lsocket"
4802 echo "$ac_t""no
" 1>&6
4807 if test "$gcj_checkBoth" = 1; then
4809 LIBS="$LIBS -lsocket -lnsl"
4810 unset ac_cv_func_accept
4811 echo $ac_n "checking
for accept
""...
$ac_c" 1>&6
4812 echo "configure
:4813: checking
for accept
" >&5
4813 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
4814 echo $ac_n "(cached
) $ac_c" 1>&6
4816 cat > conftest.$ac_ext <<EOF
4817 #line 4818 "configure
"
4818 #include "confdefs.h
"
4819 /* System header to define __stub macros and hopefully few prototypes,
4820 which can conflict with char accept(); below. */
4822 /* Override any gcc2 internal prototype to avoid an error. */
4823 /* We use char because int might match the return type of a gcc2
4824 builtin and then its argument prototype would still apply. */
4829 /* The GNU C library defines this for functions which it implements
4830 to always fail with ENOSYS. Some functions are actually named
4831 something starting with __ and the normal name is an alias. */
4832 #if defined (__stub_accept) || defined (__stub___accept)
4840 if { (eval echo configure:4841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4842 eval "ac_cv_func_accept
=yes"
4844 echo "configure
: failed program was
:" >&5
4845 cat conftest.$ac_ext >&5
4847 eval "ac_cv_func_accept
=no
"
4852 if eval "test \"`echo '$ac_cv_func_'accept`\" = yes"; then
4853 echo "$ac_t""yes" 1>&6
4855 gcj_cv_lib_sockets="-lsocket -lnsl"
4857 echo "$ac_t""no
" 1>&6
4860 unset ac_cv_func_accept
4863 unset ac_cv_func_gethostbyname
4865 LIBS="$LIBS $gcj_cv_lib_sockets"
4866 echo $ac_n "checking
for gethostbyname
""...
$ac_c" 1>&6
4867 echo "configure
:4868: checking
for gethostbyname
" >&5
4868 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
4869 echo $ac_n "(cached
) $ac_c" 1>&6
4871 cat > conftest.$ac_ext <<EOF
4872 #line 4873 "configure
"
4873 #include "confdefs.h
"
4874 /* System header to define __stub macros and hopefully few prototypes,
4875 which can conflict with char gethostbyname(); below. */
4877 /* Override any gcc2 internal prototype to avoid an error. */
4878 /* We use char because int might match the return type of a gcc2
4879 builtin and then its argument prototype would still apply. */
4880 char gethostbyname();
4884 /* The GNU C library defines this for functions which it implements
4885 to always fail with ENOSYS. Some functions are actually named
4886 something starting with __ and the normal name is an alias. */
4887 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4895 if { (eval echo configure:4896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4897 eval "ac_cv_func_gethostbyname
=yes"
4899 echo "configure
: failed program was
:" >&5
4900 cat conftest.$ac_ext >&5
4902 eval "ac_cv_func_gethostbyname
=no
"
4907 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
4908 echo "$ac_t""yes" 1>&6
4911 echo "$ac_t""no
" 1>&6
4912 echo $ac_n "checking
for main
in -lnsl""...
$ac_c" 1>&6
4913 echo "configure
:4914: checking
for main
in -lnsl" >&5
4914 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
4915 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4916 echo $ac_n "(cached
) $ac_c" 1>&6
4918 ac_save_LIBS="$LIBS"
4920 cat > conftest.$ac_ext <<EOF
4921 #line 4922 "configure
"
4922 #include "confdefs.h
"
4928 if { (eval echo configure:4929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4930 eval "ac_cv_lib_
$ac_lib_var=yes"
4932 echo "configure
: failed program was
:" >&5
4933 cat conftest.$ac_ext >&5
4935 eval "ac_cv_lib_
$ac_lib_var=no
"
4938 LIBS="$ac_save_LIBS"
4941 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4942 echo "$ac_t""yes" 1>&6
4943 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
4945 echo "$ac_t""no
" 1>&6
4950 unset ac_cv_func_gethostbyname
4955 echo "$ac_t""$gcj_cv_lib_sockets" 1>&6
4956 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
4958 if test "$with_system_zlib" = yes; then
4959 echo $ac_n "checking
for deflate
in -lz""...
$ac_c" 1>&6
4960 echo "configure
:4961: checking
for deflate
in -lz" >&5
4961 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
4962 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4963 echo $ac_n "(cached
) $ac_c" 1>&6
4965 ac_save_LIBS="$LIBS"
4967 cat > conftest.$ac_ext <<EOF
4968 #line 4969 "configure
"
4969 #include "confdefs.h
"
4970 /* Override any gcc2 internal prototype to avoid an error. */
4971 /* We use char because int might match the return type of a gcc2
4972 builtin and then its argument prototype would still apply. */
4979 if { (eval echo configure:4980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4981 eval "ac_cv_lib_
$ac_lib_var=yes"
4983 echo "configure
: failed program was
:" >&5
4984 cat conftest.$ac_ext >&5
4986 eval "ac_cv_lib_
$ac_lib_var=no
"
4989 LIBS="$ac_save_LIBS"
4992 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4993 echo "$ac_t""yes" 1>&6
4996 echo "$ac_t""no
" 1>&6
5002 ZLIBTESTSPEC="-L`pwd`/..
/zlib
/.libs
-rpath `pwd`/..
/zlib
/.libs
"
5005 # On Solaris, and maybe other architectures, the Boehm collector
5007 if test "$GC" = boehm; then
5008 echo $ac_n "checking
for main
in -ldl""...
$ac_c" 1>&6
5009 echo "configure
:5010: checking
for main
in -ldl" >&5
5010 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
5011 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5012 echo $ac_n "(cached
) $ac_c" 1>&6
5014 ac_save_LIBS="$LIBS"
5016 cat > conftest.$ac_ext <<EOF
5017 #line 5018 "configure
"
5018 #include "confdefs.h
"
5024 if { (eval echo configure:5025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5026 eval "ac_cv_lib_
$ac_lib_var=yes"
5028 echo "configure
: failed program was
:" >&5
5029 cat conftest.$ac_ext >&5
5031 eval "ac_cv_lib_
$ac_lib_var=no
"
5034 LIBS="$ac_save_LIBS"
5037 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5038 echo "$ac_t""yes" 1>&6
5039 SYSTEMSPEC="$SYSTEMSPEC -ldl"
5041 echo "$ac_t""no
" 1>&6
5046 if test -z "${with_multisubdir}"; then
5050 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
5053 if test -x "${builddotdot}/..
/..
/gcc
/gcj
"; then
5054 dir="`cd ${builddotdot}/../../gcc && pwd`"
5055 GCJ="$dir/gcj
-B`pwd`/ -B$dir/"
5063 # Create it, so that compile/link tests don't fail
5064 test -f libgcj.spec || touch libgcj.spec
5066 # We must search the source tree for java.lang, since we still don't
5067 # have libgcj.jar nor java/lang/*.class
5068 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
5069 CPPFLAGS="$CPPFLAGS -I`pwd` -I`cd $srcdir && pwd`"
5071 # Since some classes depend on this one, we need its source available
5072 # before we can do any GCJ compilation test :-(
5073 if test ! -f gnu/classpath/Configuration.java; then
5074 test -d gnu || mkdir gnu
5075 test -d gnu/classpath || mkdir gnu/classpath
5076 sed 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
5077 < $srcdir/gnu/classpath/Configuration.java.in \
5078 > gnu/classpath/Configuration.java
5079 # We do not want to redirect the output of the grep below to /dev/null,
5080 # but we add /dev/null to the input list so that grep will print the
5081 # filename of Configuration.java in case it finds any matches.
5082 if grep @ gnu/classpath/Configuration.java /dev/null; then
5083 { echo "configure
: error
: configure.
in is missing the substitutions above
" 1>&2; exit 1; }
5087 # Extract the first word of "${ac_tool_prefix}gcj
", so it can be a program name with args.
5088 set dummy ${ac_tool_prefix}gcj; ac_word=$2
5089 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
5090 echo "configure
:5091: checking
for $ac_word" >&5
5091 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
5092 echo $ac_n "(cached
) $ac_c" 1>&6
5094 if test -n "$GCJ"; then
5095 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5097 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5099 for ac_dir in $ac_dummy; do
5100 test -z "$ac_dir" && ac_dir=.
5101 if test -f $ac_dir/$ac_word; then
5102 ac_cv_prog_GCJ="${ac_tool_prefix}gcj
"
5109 GCJ="$ac_cv_prog_GCJ"
5110 if test -n "$GCJ"; then
5111 echo "$ac_t""$GCJ" 1>&6
5113 echo "$ac_t""no
" 1>&6
5117 if test -z "$ac_cv_prog_GCJ"; then
5118 if test -n "$ac_tool_prefix"; then
5119 # Extract the first word of "gcj
", so it can be a program name with args.
5120 set dummy gcj; ac_word=$2
5121 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
5122 echo "configure
:5123: checking
for $ac_word" >&5
5123 if eval "test \"`echo '$''{'ac_cv_prog_GCJ'+set}'`\" = set"; then
5124 echo $ac_n "(cached
) $ac_c" 1>&6
5126 if test -n "$GCJ"; then
5127 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5129 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5131 for ac_dir in $ac_dummy; do
5132 test -z "$ac_dir" && ac_dir=.
5133 if test -f $ac_dir/$ac_word; then
5134 ac_cv_prog_GCJ="gcj
"
5139 test -z "$ac_cv_prog_GCJ" && ac_cv_prog_GCJ="no
"
5142 GCJ="$ac_cv_prog_GCJ"
5143 if test -n "$GCJ"; then
5144 echo "$ac_t""$GCJ" 1>&6
5146 echo "$ac_t""no
" 1>&6
5154 test "x
${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
5158 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh
"
5160 lt_save_CFLAGS="$CFLAGS"
5161 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
5162 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5163 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5164 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5165 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5166 deplibs_check_method="$deplibs_check_method" \
5167 file_magic_cmd="$file_magic_cmd" \
5168 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5169 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
5170 || { echo "configure
: error
: libtool tag configuration failed
" 1>&2; exit 1; }
5172 CFLAGS="$lt_save_CFLAGS"
5174 # Redirect the config.log output again, so that the ltconfig log is not
5175 # clobbered by the next message.
5176 exec 5>>./config.log
5181 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
5183 echo $ac_n "checking size of void
*""...
$ac_c" 1>&6
5184 echo "configure
:5185: checking size of void
*" >&5
5185 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
5186 echo $ac_n "(cached
) $ac_c" 1>&6
5188 if test "$cross_compiling" = yes; then
5189 { echo "configure
: error
: can not run
test program
while cross compiling
" 1>&2; exit 1; }
5191 cat > conftest.$ac_ext <<EOF
5192 #line 5193 "configure
"
5193 #include "confdefs.h
"
5197 FILE *f=fopen("conftestval
", "w
");
5199 fprintf(f, "%d
\n", sizeof(void *));
5203 if { (eval echo configure:5204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5205 ac_cv_sizeof_void_p=`cat conftestval`
5207 echo "configure
: failed program was
:" >&5
5208 cat conftest.$ac_ext >&5
5210 ac_cv_sizeof_void_p=0
5216 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
5217 cat >> confdefs.h <<EOF
5218 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5226 if test "x
$ZLIBSPEC" = "x-lzgcj
"; then
5227 # We include the path to the zlib build directory.
5228 # See Makefile.am to understand why.
5229 ZDEPS='$(top_builddir)/../zlib/libzgcj.la'
5230 ZLIBS="$ZDEPS -L\$
(here
)/..
/zlib
/$libsubdir"
5231 ZINCS='-I$(top_srcdir)/../zlib'
5243 if test "$CANADIAN" = yes; then
5252 if test "$NULL_TARGET" = yes; then
5254 NULL_TARGET_FALSE='#'
5256 NULL_TARGET_TRUE='#'
5261 if test "$NATIVE" = yes || test "$NULL_TARGET" = yes; then
5270 if test -z "$with_cross_host"; then
5272 USE_LIBDIR_FALSE='#'
5279 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
5280 NEEDS_DATA_START_TRUE=
5281 NEEDS_DATA_START_FALSE='#'
5283 NEEDS_DATA_START_TRUE='#'
5284 NEEDS_DATA_START_FALSE=
5288 # Determine gcj version number.
5290 gcjvers="`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`"
5292 cat >> confdefs.h <<EOF
5293 #define GCJVERSION "$gcjvers"
5300 echo $ac_n "checking
for g
++ -ffloat-store bug
""...
$ac_c" 1>&6
5301 echo "configure
:5302: checking
for g
++ -ffloat-store bug
" >&5
5302 save_CFLAGS="$CFLAGS"
5303 CFLAGS="-x c
++ -O2 -ffloat-store"
5304 cat > conftest.$ac_ext <<EOF
5305 #line 5306 "configure
"
5306 #include "confdefs.h
"
5312 if { (eval echo configure:5313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5314 echo "$ac_t""no
" 1>&6
5316 echo "configure
: failed program was
:" >&5
5317 cat conftest.$ac_ext >&5
5319 cat >> confdefs.h <<\EOF
5320 #define __NO_MATH_INLINES 1
5323 echo "$ac_t""yes" 1>&6
5326 CFLAGS="$save_CFLAGS"
5328 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
5330 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5331 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
5332 echo "configure
:5333: checking
for $ac_hdr" >&5
5333 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5334 echo $ac_n "(cached
) $ac_c" 1>&6
5336 cat > conftest.$ac_ext <<EOF
5337 #line 5338 "configure
"
5338 #include "confdefs.h
"
5341 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
5342 { (eval echo configure:5343: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5343 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
5344 if test -z "$ac_err"; then
5346 eval "ac_cv_header_
$ac_safe=yes"
5349 echo "configure
: failed program was
:" >&5
5350 cat conftest.$ac_ext >&5
5352 eval "ac_cv_header_
$ac_safe=no
"
5356 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5357 echo "$ac_t""yes" 1>&6
5358 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5359 cat >> confdefs.h <<EOF
5360 #define $ac_tr_hdr 1
5364 echo "$ac_t""no
" 1>&6
5368 for ac_hdr in dirent.h
5370 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5371 echo $ac_n "checking
for $ac_hdr""...
$ac_c" 1>&6
5372 echo "configure
:5373: checking
for $ac_hdr" >&5
5373 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5374 echo $ac_n "(cached
) $ac_c" 1>&6
5376 cat > conftest.$ac_ext <<EOF
5377 #line 5378 "configure
"
5378 #include "confdefs.h
"
5381 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
5382 { (eval echo configure:5383: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5383 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
5384 if test -z "$ac_err"; then
5386 eval "ac_cv_header_
$ac_safe=yes"
5389 echo "configure
: failed program was
:" >&5
5390 cat conftest.$ac_ext >&5
5392 eval "ac_cv_header_
$ac_safe=no
"
5396 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5397 echo "$ac_t""yes" 1>&6
5398 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5399 cat >> confdefs.h <<EOF
5400 #define $ac_tr_hdr 1
5404 echo "$ac_t""no
" 1>&6
5409 echo $ac_n "checking
for ANSI C header files
""...
$ac_c" 1>&6
5410 echo "configure
:5411: checking
for ANSI C header files
" >&5
5411 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5412 echo $ac_n "(cached
) $ac_c" 1>&6
5414 cat > conftest.$ac_ext <<EOF
5415 #line 5416 "configure
"
5416 #include "confdefs.h
"
5422 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
5423 { (eval echo configure:5424: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5424 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
5425 if test -z "$ac_err"; then
5427 ac_cv_header_stdc=yes
5430 echo "configure
: failed program was
:" >&5
5431 cat conftest.$ac_ext >&5
5433 ac_cv_header_stdc=no
5437 if test $ac_cv_header_stdc = yes; then
5438 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5439 cat > conftest.$ac_ext <<EOF
5440 #line 5441 "configure
"
5441 #include "confdefs.h
"
5444 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
5445 egrep "memchr
" >/dev/null 2>&1; then
5449 ac_cv_header_stdc=no
5455 if test $ac_cv_header_stdc = yes; then
5456 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5457 cat > conftest.$ac_ext <<EOF
5458 #line 5459 "configure
"
5459 #include "confdefs.h
"
5462 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
5463 egrep "free
" >/dev/null 2>&1; then
5467 ac_cv_header_stdc=no
5473 if test $ac_cv_header_stdc = yes; then
5474 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5475 if test "$cross_compiling" = yes; then
5478 cat > conftest.$ac_ext <<EOF
5479 #line 5480 "configure
"
5480 #include "confdefs.h
"
5482 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5483 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5484 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5485 int main () { int i; for (i = 0; i < 256; i++)
5486 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5490 if { (eval echo configure:5491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5494 echo "configure
: failed program was
:" >&5
5495 cat conftest.$ac_ext >&5
5497 ac_cv_header_stdc=no
5505 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5506 if test $ac_cv_header_stdc = yes; then
5507 cat >> confdefs.h <<\EOF
5508 #define STDC_HEADERS 1
5513 echo $ac_n "checking
for ssize_t
""...
$ac_c" 1>&6
5514 echo "configure
:5515: checking
for ssize_t
" >&5
5515 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
5516 echo $ac_n "(cached
) $ac_c" 1>&6
5518 cat > conftest.$ac_ext <<EOF
5519 #line 5520 "configure
"
5520 #include "confdefs.h
"
5521 #include <sys/types.h>
5527 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
5528 egrep "(^|
[^a-zA-Z_0-9
])ssize_t
[^a-zA-Z_0-9
]" >/dev/null 2>&1; then
5530 eval "ac_cv_type_ssize_t
=yes"
5533 eval "ac_cv_type_ssize_t
=no
"
5538 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
5539 echo "$ac_t""yes" 1>&6
5541 echo "$ac_t""no
" 1>&6
5542 cat >> confdefs.h <<EOF
5549 echo $ac_n "checking
for in_addr_t
""...
$ac_c" 1>&6
5550 echo "configure
:5551: checking
for in_addr_t
" >&5
5551 cat > conftest.$ac_ext <<EOF
5552 #line 5553 "configure
"
5553 #include "confdefs.h
"
5554 #include <sys/types.h>
5559 #if HAVE_NETINET_IN_H
5560 #include <netinet/in.h>
5566 if { (eval echo configure:5567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5568 cat >> confdefs.h <<\EOF
5569 #define HAVE_IN_ADDR_T 1
5572 echo "$ac_t""yes" 1>&6
5574 echo "configure
: failed program was
:" >&5
5575 cat conftest.$ac_ext >&5
5577 echo "$ac_t""no
" 1>&6
5581 echo $ac_n "checking whether struct ip_mreq is
in netinet
/in.h
""...
$ac_c" 1>&6
5582 echo "configure
:5583: checking whether struct ip_mreq is
in netinet
/in.h
" >&5
5583 cat > conftest.$ac_ext <<EOF
5584 #line 5585 "configure
"
5585 #include "confdefs.h
"
5586 #include <netinet/in.h>
5588 struct ip_mreq mreq;
5591 if { (eval echo configure:5592: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5593 cat >> confdefs.h <<\EOF
5594 #define HAVE_STRUCT_IP_MREQ 1
5597 echo "$ac_t""yes" 1>&6
5599 echo "configure
: failed program was
:" >&5
5600 cat conftest.$ac_ext >&5
5602 echo "$ac_t""no
" 1>&6
5606 echo $ac_n "checking whether struct ipv6_mreq is
in netinet
/in.h
""...
$ac_c" 1>&6
5607 echo "configure
:5608: checking whether struct ipv6_mreq is
in netinet
/in.h
" >&5
5608 cat > conftest.$ac_ext <<EOF
5609 #line 5610 "configure
"
5610 #include "confdefs.h
"
5611 #include <netinet/in.h>
5613 struct ipv6_mreq mreq6;
5616 if { (eval echo configure:5617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5618 cat >> confdefs.h <<\EOF
5619 #define HAVE_STRUCT_IPV6_MREQ 1
5622 echo "$ac_t""yes" 1>&6
5624 echo "configure
: failed program was
:" >&5
5625 cat conftest.$ac_ext >&5
5627 echo "$ac_t""no
" 1>&6
5631 echo $ac_n "checking whether struct sockaddr_in6 is
in netinet
/in.h
""...
$ac_c" 1>&6
5632 echo "configure
:5633: checking whether struct sockaddr_in6 is
in netinet
/in.h
" >&5
5633 cat > conftest.$ac_ext <<EOF
5634 #line 5635 "configure
"
5635 #include "confdefs.h
"
5636 #include <netinet/in.h>
5638 struct sockaddr_in6 addr6;
5641 if { (eval echo configure:5642: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5643 cat >> confdefs.h <<\EOF
5644 #define HAVE_INET6 1
5647 echo "$ac_t""yes" 1>&6
5649 echo "configure
: failed program was
:" >&5
5650 cat conftest.$ac_ext >&5
5652 echo "$ac_t""no
" 1>&6
5656 echo $ac_n "checking
for socklen_t
in sys
/socket.h
""...
$ac_c" 1>&6
5657 echo "configure
:5658: checking
for socklen_t
in sys
/socket.h
" >&5
5658 cat > conftest.$ac_ext <<EOF
5659 #line 5660 "configure
"
5660 #include "confdefs.h
"
5661 #define _POSIX_PII_SOCKET
5662 #include <sys/types.h>
5663 #include <sys/socket.h>
5668 if { (eval echo configure:5669: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5670 cat >> confdefs.h <<\EOF
5671 #define HAVE_SOCKLEN_T 1
5674 echo "$ac_t""yes" 1>&6
5676 echo "configure
: failed program was
:" >&5
5677 cat conftest.$ac_ext >&5
5679 echo "$ac_t""no
" 1>&6
5683 echo $ac_n "checking
for tm_gmtoff
in struct tm
""...
$ac_c" 1>&6
5684 echo "configure
:5685: checking
for tm_gmtoff
in struct tm
" >&5
5685 cat > conftest.$ac_ext <<EOF
5686 #line 5687 "configure
"
5687 #include "confdefs.h
"
5690 struct tm tim; tim.tm_gmtoff = 0;
5693 if { (eval echo configure:5694: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5695 cat >> confdefs.h <<\EOF
5696 #define STRUCT_TM_HAS_GMTOFF 1
5699 echo "$ac_t""yes" 1>&6
5701 echo "configure
: failed program was
:" >&5
5702 cat conftest.$ac_ext >&5
5704 echo "$ac_t""no
" 1>&6
5705 echo $ac_n "checking
for global timezone variable
""...
$ac_c" 1>&6
5706 echo "configure
:5707: checking
for global timezone variable
" >&5
5707 cat > conftest.$ac_ext <<EOF
5708 #line 5709 "configure
"
5709 #include "confdefs.h
"
5715 if { (eval echo configure:5716: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5717 cat >> confdefs.h <<\EOF
5718 #define HAVE_TIMEZONE 1
5721 echo "$ac_t""yes" 1>&6
5723 echo "configure
: failed program was
:" >&5
5724 cat conftest.$ac_ext >&5
5726 echo "$ac_t""no
" 1>&6
5732 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5733 # for constant arguments. Useless!
5734 echo $ac_n "checking
for working alloca.h
""...
$ac_c" 1>&6
5735 echo "configure
:5736: checking
for working alloca.h
" >&5
5736 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5737 echo $ac_n "(cached
) $ac_c" 1>&6
5739 cat > conftest.$ac_ext <<EOF
5740 #line 5741 "configure
"
5741 #include "confdefs.h
"
5744 char *p = alloca(2 * sizeof(int));
5747 if { (eval echo configure:5748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5749 ac_cv_header_alloca_h=yes
5751 echo "configure
: failed program was
:" >&5
5752 cat conftest.$ac_ext >&5
5754 ac_cv_header_alloca_h=no
5759 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5760 if test $ac_cv_header_alloca_h = yes; then
5761 cat >> confdefs.h <<\EOF
5762 #define HAVE_ALLOCA_H 1
5767 echo $ac_n "checking
for alloca
""...
$ac_c" 1>&6
5768 echo "configure
:5769: checking
for alloca
" >&5
5769 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5770 echo $ac_n "(cached
) $ac_c" 1>&6
5772 cat > conftest.$ac_ext <<EOF
5773 #line 5774 "configure
"
5774 #include "confdefs.h
"
5777 # define alloca __builtin_alloca
5780 # include <malloc.h>
5781 # define alloca _alloca
5784 # include <alloca.h>
5789 # ifndef alloca /* predefined by HP cc +Olibcalls */
5798 char *p = (char *) alloca(1);
5801 if { (eval echo configure:5802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5803 ac_cv_func_alloca_works=yes
5805 echo "configure
: failed program was
:" >&5
5806 cat conftest.$ac_ext >&5
5808 ac_cv_func_alloca_works=no
5813 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5814 if test $ac_cv_func_alloca_works = yes; then
5815 cat >> confdefs.h <<\EOF
5816 #define HAVE_ALLOCA 1
5821 if test $ac_cv_func_alloca_works = no; then
5822 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5823 # that cause trouble. Some versions do not even contain alloca or
5824 # contain a buggy version. If you still want to use their alloca,
5825 # use ar to extract alloca.o from them instead of compiling alloca.c.
5826 ALLOCA=alloca.${ac_objext}
5827 cat >> confdefs.h <<\EOF
5832 echo $ac_n "checking whether alloca needs Cray hooks
""...
$ac_c" 1>&6
5833 echo "configure
:5834: checking whether alloca needs Cray hooks
" >&5
5834 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5835 echo $ac_n "(cached
) $ac_c" 1>&6
5837 cat > conftest.$ac_ext <<EOF
5838 #line 5839 "configure
"
5839 #include "confdefs.h
"
5840 #if defined(CRAY) && ! defined(CRAY2)
5847 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
5848 egrep "webecray
" >/dev/null 2>&1; then
5859 echo "$ac_t""$ac_cv_os_cray" 1>&6
5860 if test $ac_cv_os_cray = yes; then
5861 for ac_func in _getb67 GETB67 getb67; do
5862 echo $ac_n "checking
for $ac_func""...
$ac_c" 1>&6
5863 echo "configure
:5864: checking
for $ac_func" >&5
5864 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5865 echo $ac_n "(cached
) $ac_c" 1>&6
5867 cat > conftest.$ac_ext <<EOF
5868 #line 5869 "configure
"
5869 #include "confdefs.h
"
5870 /* System header to define __stub macros and hopefully few prototypes,
5871 which can conflict with char $ac_func(); below. */
5873 /* Override any gcc2 internal prototype to avoid an error. */
5874 /* We use char because int might match the return type of a gcc2
5875 builtin and then its argument prototype would still apply. */
5880 /* The GNU C library defines this for functions which it implements
5881 to always fail with ENOSYS. Some functions are actually named
5882 something starting with __ and the normal name is an alias. */
5883 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5891 if { (eval echo configure:5892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5893 eval "ac_cv_func_
$ac_func=yes"
5895 echo "configure
: failed program was
:" >&5
5896 cat conftest.$ac_ext >&5
5898 eval "ac_cv_func_
$ac_func=no
"
5903 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5904 echo "$ac_t""yes" 1>&6
5905 cat >> confdefs.h <<EOF
5906 #define CRAY_STACKSEG_END $ac_func
5911 echo "$ac_t""no
" 1>&6
5917 echo $ac_n "checking stack direction
for C alloca
""...
$ac_c" 1>&6
5918 echo "configure
:5919: checking stack direction
for C alloca
" >&5
5919 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5920 echo $ac_n "(cached
) $ac_c" 1>&6
5922 if test "$cross_compiling" = yes; then
5923 ac_cv_c_stack_direction=0
5925 cat > conftest.$ac_ext <<EOF
5926 #line 5927 "configure
"
5927 #include "confdefs.h
"
5928 find_stack_direction ()
5930 static char *addr = 0;
5935 return find_stack_direction ();
5938 return (&dummy > addr) ? 1 : -1;
5942 exit (find_stack_direction() < 0);
5945 if { (eval echo configure:5946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5947 ac_cv_c_stack_direction=1
5949 echo "configure
: failed program was
:" >&5
5950 cat conftest.$ac_ext >&5
5952 ac_cv_c_stack_direction=-1
5959 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5960 cat >> confdefs.h <<EOF
5961 #define STACK_DIRECTION $ac_cv_c_stack_direction
5969 # Extract the first word of "$ac_prog", so it can be a program name with args.
5970 set dummy $ac_prog; ac_word=$2
5971 echo $ac_n "checking
for $ac_word""...
$ac_c" 1>&6
5972 echo "configure
:5973: checking
for $ac_word" >&5
5973 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
5974 echo $ac_n "(cached
) $ac_c" 1>&6
5976 if test -n "$PERL"; then
5977 ac_cv_prog_PERL="$PERL" # Let the user override the test.
5979 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5981 for ac_dir in $ac_dummy; do
5982 test -z "$ac_dir" && ac_dir=.
5983 if test -f $ac_dir/$ac_word; then
5984 ac_cv_prog_PERL="$ac_prog"
5991 PERL="$ac_cv_prog_PERL"
5992 if test -n "$PERL"; then
5993 echo "$ac_t""$PERL" 1>&6
5995 echo "$ac_t""no
" 1>&6
5998 test -n "$PERL" && break
6000 test -n "$PERL" || PERL="false
"
6007 SIGNAL_HANDLER=include/i386-signal.h
6010 SIGNAL_HANDLER=include/sparc-signal.h
6013 # SYSDEP_SOURCES=sysdep/ia64.c
6014 # test -d sysdep || mkdir sysdep
6017 SIGNAL_HANDLER=include/dwarf2-signal.h
6020 SIGNAL_HANDLER=include/dwarf2-signal.h
6023 SIGNAL_HANDLER=include/default-signal.h
6027 # If we're using sjlj exceptions, forget what we just learned.
6028 if test "$enable_sjlj_exceptions" = yes; then
6029 SIGNAL_HANDLER=include/default-signal.h
6036 if test "${multilib}" = "yes"; then
6037 multilib_arg="--enable-multilib"
6042 # If we find X, set shell vars x_includes and x_libraries to the
6043 # paths, otherwise set no_x=yes.
6044 # Uses ac_ vars as temps to allow command line to override cache and checks.
6045 # --without-x overrides everything else, but does not touch the cache.
6046 echo $ac_n "checking
for X
""...
$ac_c" 1>&6
6047 echo "configure
:6048: checking
for X
" >&5
6049 # Check whether --with-x or --without-x was given.
6050 if test "${with_x+set}" = set; then
6055 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6056 if test "x
$with_x" = xno; then
6057 # The user explicitly disabled X.
6060 if test "x
$x_includes" != xNONE && test "x
$x_libraries" != xNONE; then
6061 # Both variables are already set.
6064 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
6065 echo $ac_n "(cached
) $ac_c" 1>&6
6067 # One or both of the vars are not set, and there is no cached value.
6068 ac_x_includes=NO ac_x_libraries=NO
6070 if mkdir conftestdir; then
6072 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6073 cat > Imakefile <<'EOF'
6075 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6077 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6078 # GNU make sometimes prints "make[1]: Entering...
", which would confuse us.
6079 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6080 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6081 for ac_extension in a so sl; do
6082 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6083 test -f $ac_im_libdir/libX11.$ac_extension; then
6084 ac_im_usrlibdir=$ac_im_libdir; break
6087 # Screen out bogus values from the imake configuration. They are
6088 # bogus both because they are the default anyway, and because
6089 # using them would break gcc on systems where it needs fixed includes.
6090 case "$ac_im_incroot" in
6092 *) test -f "$ac_im_incroot/X11
/Xos.h
" && ac_x_includes="$ac_im_incroot" ;;
6094 case "$ac_im_usrlibdir" in
6096 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
6103 if test "$ac_x_includes" = NO; then
6104 # Guess where to find include files, by looking for this one X11 .h file.
6105 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
6107 # First, try using that file with no special directory specified.
6108 cat > conftest.$ac_ext <<EOF
6109 #line 6110 "configure
"
6110 #include "confdefs.h
"
6111 #include <$x_direct_test_include>
6113 ac_try="$ac_cpp conftest.
$ac_ext >/dev
/null
2>conftest.out
"
6114 { (eval echo configure:6115: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6115 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.
${ac_ext}\$
"`
6116 if test -z "$ac_err"; then
6118 # We can compile using X headers with no special include directory.
6122 echo "configure
: failed program was
:" >&5
6123 cat conftest.$ac_ext >&5
6125 # Look for the header file in a standard set of common directories.
6126 # Check X11 before X11Rn because it is often a symlink to the current release.
6129 /usr/X11R6/include \
6130 /usr/X11R5/include \
6131 /usr/X11R4/include \
6134 /usr/include/X11R6 \
6135 /usr/include/X11R5 \
6136 /usr/include/X11R4 \
6138 /usr/local/X11/include \
6139 /usr/local/X11R6/include \
6140 /usr/local/X11R5/include \
6141 /usr/local/X11R4/include \
6143 /usr/local/include/X11 \
6144 /usr/local/include/X11R6 \
6145 /usr/local/include/X11R5 \
6146 /usr/local/include/X11R4 \
6150 /usr/XFree86/include/X11 \
6153 /usr/local/include \
6154 /usr/unsupported/include \
6155 /usr/athena/include \
6156 /usr/local/x11r5/include \
6157 /usr/lpp/Xamples/include \
6159 /usr/openwin/include \
6160 /usr/openwin/share/include \
6163 if test -r "$ac_dir/$x_direct_test_include"; then
6164 ac_x_includes=$ac_dir
6170 fi # $ac_x_includes = NO
6172 if test "$ac_x_libraries" = NO; then
6173 # Check for the libraries.
6175 test -z "$x_direct_test_library" && x_direct_test_library=Xt
6176 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
6178 # See if we find them without any special options.
6179 # Don't add to $LIBS permanently.
6180 ac_save_LIBS="$LIBS"
6181 LIBS="-l$x_direct_test_library $LIBS"
6182 cat > conftest.$ac_ext <<EOF
6183 #line 6184 "configure
"
6184 #include "confdefs.h
"
6187 ${x_direct_test_function}()
6190 if { (eval echo configure:6191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6192 LIBS="$ac_save_LIBS"
6193 # We can link X programs with no special library path.
6196 echo "configure
: failed program was
:" >&5
6197 cat conftest.$ac_ext >&5
6199 LIBS="$ac_save_LIBS"
6200 # First see if replacing the include by lib works.
6201 # Check X11 before X11Rn because it is often a symlink to the current release.
6202 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
6213 /usr/local/X11/lib \
6214 /usr/local/X11R6/lib \
6215 /usr/local/X11R5/lib \
6216 /usr/local/X11R4/lib \
6218 /usr/local/lib/X11 \
6219 /usr/local/lib/X11R6 \
6220 /usr/local/lib/X11R5 \
6221 /usr/local/lib/X11R4 \
6225 /usr/XFree86/lib/X11 \
6229 /usr/unsupported/lib \
6231 /usr/local/x11r5/lib \
6232 /usr/lpp/Xamples/lib \
6236 /usr/openwin/share/lib \
6239 for ac_extension in a so sl; do
6240 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
6241 ac_x_libraries=$ac_dir
6248 fi # $ac_x_libraries = NO
6250 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
6251 # Didn't find X anywhere. Cache the known absence of X.
6252 ac_cv_have_x="have_x
=no
"
6254 # Record where we found X for the cache.
6255 ac_cv_have_x="have_x
=yes \
6256 ac_x_includes
=$ac_x_includes ac_x_libraries
=$ac_x_libraries"
6260 eval "$ac_cv_have_x"
6263 if test "$have_x" != yes; then
6264 echo "$ac_t""$have_x" 1>&6
6267 # If each of the values was on the command line, it overrides each guess.
6268 test "x
$x_includes" = xNONE && x_includes=$ac_x_includes
6269 test "x
$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6270 # Update the cache value to reflect the command line values.
6271 ac_cv_have_x="have_x
=yes \
6272 ac_x_includes
=$x_includes ac_x_libraries
=$x_libraries"
6273 echo "$ac_t""libraries
$x_libraries, headers
$x_includes" 1>&6
6276 if test "$no_x" = yes; then
6277 # Not all programs may use this symbol, but it does not hurt to define it.
6278 cat >> confdefs.h <<\EOF
6279 #define X_DISPLAY_MISSING 1
6282 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6284 if test -n "$x_includes"; then
6285 X_CFLAGS="$X_CFLAGS -I$x_includes"
6288 # It would also be nice to do this for all -L options, not just this one.
6289 if test -n "$x_libraries"; then
6290 X_LIBS="$X_LIBS -L$x_libraries"
6291 # For Solaris; some versions of Sun CC require a space after -R and
6292 # others require no space. Words are not sufficient . . . .
6293 case "`(uname -sr) 2>/dev/null`" in
6295 echo $ac_n "checking whether
-R must be followed by a space
""...
$ac_c" 1>&6
6296 echo "configure
:6297: checking whether
-R must be followed by a space
" >&5
6297 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
6298 cat > conftest.$ac_ext <<EOF
6299 #line 6300 "configure
"
6300 #include "confdefs.h
"
6306 if { (eval echo configure:6307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6310 echo "configure
: failed program was
:" >&5
6311 cat conftest.$ac_ext >&5
6316 if test $ac_R_nospace = yes; then
6317 echo "$ac_t""no
" 1>&6
6318 X_LIBS="$X_LIBS -R$x_libraries"
6320 LIBS="$ac_xsave_LIBS -R $x_libraries"
6321 cat > conftest.$ac_ext <<EOF
6322 #line 6323 "configure
"
6323 #include "confdefs.h
"
6329 if { (eval echo configure:6330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6333 echo "configure
: failed program was
:" >&5
6334 cat conftest.$ac_ext >&5
6339 if test $ac_R_space = yes; then
6340 echo "$ac_t""yes" 1>&6
6341 X_LIBS="$X_LIBS -R $x_libraries"
6343 echo "$ac_t""neither works
" 1>&6
6346 LIBS="$ac_xsave_LIBS"
6350 # Check for system-dependent libraries X programs must link with.
6351 # Do this before checking for the system-independent R6 libraries
6352 # (-lICE), since we may need -lsocket or whatever for X linking.
6354 if test "$ISC" = yes; then
6355 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6357 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
6358 # libraries were built with DECnet support. And karl@cs.umb.edu says
6359 # the Alpha needs dnet_stub (dnet does not exist).
6360 echo $ac_n "checking
for dnet_ntoa
in -ldnet""...
$ac_c" 1>&6
6361 echo "configure
:6362: checking
for dnet_ntoa
in -ldnet" >&5
6362 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6363 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6364 echo $ac_n "(cached
) $ac_c" 1>&6
6366 ac_save_LIBS="$LIBS"
6368 cat > conftest.$ac_ext <<EOF
6369 #line 6370 "configure
"
6370 #include "confdefs.h
"
6371 /* Override any gcc2 internal prototype to avoid an error. */
6372 /* We use char because int might match the return type of a gcc2
6373 builtin and then its argument prototype would still apply. */
6380 if { (eval echo configure:6381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6382 eval "ac_cv_lib_
$ac_lib_var=yes"
6384 echo "configure
: failed program was
:" >&5
6385 cat conftest.$ac_ext >&5
6387 eval "ac_cv_lib_
$ac_lib_var=no
"
6390 LIBS="$ac_save_LIBS"
6393 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6394 echo "$ac_t""yes" 1>&6
6395 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6397 echo "$ac_t""no
" 1>&6
6400 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6401 echo $ac_n "checking
for dnet_ntoa
in -ldnet_stub""...
$ac_c" 1>&6
6402 echo "configure
:6403: checking
for dnet_ntoa
in -ldnet_stub" >&5
6403 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6404 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6405 echo $ac_n "(cached
) $ac_c" 1>&6
6407 ac_save_LIBS="$LIBS"
6408 LIBS="-ldnet_stub $LIBS"
6409 cat > conftest.$ac_ext <<EOF
6410 #line 6411 "configure
"
6411 #include "confdefs.h
"
6412 /* Override any gcc2 internal prototype to avoid an error. */
6413 /* We use char because int might match the return type of a gcc2
6414 builtin and then its argument prototype would still apply. */
6421 if { (eval echo configure:6422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6423 eval "ac_cv_lib_
$ac_lib_var=yes"
6425 echo "configure
: failed program was
:" >&5
6426 cat conftest.$ac_ext >&5
6428 eval "ac_cv_lib_
$ac_lib_var=no
"
6431 LIBS="$ac_save_LIBS"
6434 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6435 echo "$ac_t""yes" 1>&6
6436 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6438 echo "$ac_t""no
" 1>&6
6443 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6444 # to get the SysV transport functions.
6445 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
6447 # The nsl library prevents programs from opening the X display
6448 # on Irix 5.2, according to dickey@clark.net.
6449 echo $ac_n "checking
for gethostbyname
""...
$ac_c" 1>&6
6450 echo "configure
:6451: checking
for gethostbyname
" >&5
6451 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
6452 echo $ac_n "(cached
) $ac_c" 1>&6
6454 cat > conftest.$ac_ext <<EOF
6455 #line 6456 "configure
"
6456 #include "confdefs.h
"
6457 /* System header to define __stub macros and hopefully few prototypes,
6458 which can conflict with char gethostbyname(); below. */
6460 /* Override any gcc2 internal prototype to avoid an error. */
6461 /* We use char because int might match the return type of a gcc2
6462 builtin and then its argument prototype would still apply. */
6463 char gethostbyname();
6467 /* The GNU C library defines this for functions which it implements
6468 to always fail with ENOSYS. Some functions are actually named
6469 something starting with __ and the normal name is an alias. */
6470 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6478 if { (eval echo configure:6479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6480 eval "ac_cv_func_gethostbyname
=yes"
6482 echo "configure
: failed program was
:" >&5
6483 cat conftest.$ac_ext >&5
6485 eval "ac_cv_func_gethostbyname
=no
"
6490 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
6491 echo "$ac_t""yes" 1>&6
6494 echo "$ac_t""no
" 1>&6
6497 if test $ac_cv_func_gethostbyname = no; then
6498 echo $ac_n "checking
for gethostbyname
in -lnsl""...
$ac_c" 1>&6
6499 echo "configure
:6500: checking
for gethostbyname
in -lnsl" >&5
6500 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
6501 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6502 echo $ac_n "(cached
) $ac_c" 1>&6
6504 ac_save_LIBS="$LIBS"
6506 cat > conftest.$ac_ext <<EOF
6507 #line 6508 "configure
"
6508 #include "confdefs.h
"
6509 /* Override any gcc2 internal prototype to avoid an error. */
6510 /* We use char because int might match the return type of a gcc2
6511 builtin and then its argument prototype would still apply. */
6512 char gethostbyname();
6518 if { (eval echo configure:6519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6520 eval "ac_cv_lib_
$ac_lib_var=yes"
6522 echo "configure
: failed program was
:" >&5
6523 cat conftest.$ac_ext >&5
6525 eval "ac_cv_lib_
$ac_lib_var=no
"
6528 LIBS="$ac_save_LIBS"
6531 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6532 echo "$ac_t""yes" 1>&6
6533 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6535 echo "$ac_t""no
" 1>&6
6540 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6541 # socket/setsockopt and other routines are undefined under SCO ODT
6542 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6543 # on later versions), says simon@lia.di.epfl.ch: it contains
6544 # gethostby* variants that don't use the nameserver (or something).
6545 # -lsocket must be given before -lnsl if both are needed.
6546 # We assume that if connect needs -lnsl, so does gethostbyname.
6547 echo $ac_n "checking
for connect
""...
$ac_c" 1>&6
6548 echo "configure
:6549: checking
for connect
" >&5
6549 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
6550 echo $ac_n "(cached
) $ac_c" 1>&6
6552 cat > conftest.$ac_ext <<EOF
6553 #line 6554 "configure
"
6554 #include "confdefs.h
"
6555 /* System header to define __stub macros and hopefully few prototypes,
6556 which can conflict with char connect(); below. */
6558 /* Override any gcc2 internal prototype to avoid an error. */
6559 /* We use char because int might match the return type of a gcc2
6560 builtin and then its argument prototype would still apply. */
6565 /* The GNU C library defines this for functions which it implements
6566 to always fail with ENOSYS. Some functions are actually named
6567 something starting with __ and the normal name is an alias. */
6568 #if defined (__stub_connect) || defined (__stub___connect)
6576 if { (eval echo configure:6577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6578 eval "ac_cv_func_connect
=yes"
6580 echo "configure
: failed program was
:" >&5
6581 cat conftest.$ac_ext >&5
6583 eval "ac_cv_func_connect
=no
"
6588 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
6589 echo "$ac_t""yes" 1>&6
6592 echo "$ac_t""no
" 1>&6
6595 if test $ac_cv_func_connect = no; then
6596 echo $ac_n "checking
for connect
in -lsocket""...
$ac_c" 1>&6
6597 echo "configure
:6598: checking
for connect
in -lsocket" >&5
6598 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
6599 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6600 echo $ac_n "(cached
) $ac_c" 1>&6
6602 ac_save_LIBS="$LIBS"
6603 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6604 cat > conftest.$ac_ext <<EOF
6605 #line 6606 "configure
"
6606 #include "confdefs.h
"
6607 /* Override any gcc2 internal prototype to avoid an error. */
6608 /* We use char because int might match the return type of a gcc2
6609 builtin and then its argument prototype would still apply. */
6616 if { (eval echo configure:6617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6618 eval "ac_cv_lib_
$ac_lib_var=yes"
6620 echo "configure
: failed program was
:" >&5
6621 cat conftest.$ac_ext >&5
6623 eval "ac_cv_lib_
$ac_lib_var=no
"
6626 LIBS="$ac_save_LIBS"
6629 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6630 echo "$ac_t""yes" 1>&6
6631 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6633 echo "$ac_t""no
" 1>&6
6638 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
6639 echo $ac_n "checking
for remove
""...
$ac_c" 1>&6
6640 echo "configure
:6641: checking
for remove
" >&5
6641 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
6642 echo $ac_n "(cached
) $ac_c" 1>&6
6644 cat > conftest.$ac_ext <<EOF
6645 #line 6646 "configure
"
6646 #include "confdefs.h
"
6647 /* System header to define __stub macros and hopefully few prototypes,
6648 which can conflict with char remove(); below. */
6650 /* Override any gcc2 internal prototype to avoid an error. */
6651 /* We use char because int might match the return type of a gcc2
6652 builtin and then its argument prototype would still apply. */
6657 /* The GNU C library defines this for functions which it implements
6658 to always fail with ENOSYS. Some functions are actually named
6659 something starting with __ and the normal name is an alias. */
6660 #if defined (__stub_remove) || defined (__stub___remove)
6668 if { (eval echo configure:6669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6670 eval "ac_cv_func_remove
=yes"
6672 echo "configure
: failed program was
:" >&5
6673 cat conftest.$ac_ext >&5
6675 eval "ac_cv_func_remove
=no
"
6680 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
6681 echo "$ac_t""yes" 1>&6
6684 echo "$ac_t""no
" 1>&6
6687 if test $ac_cv_func_remove = no; then
6688 echo $ac_n "checking
for remove
in -lposix""...
$ac_c" 1>&6
6689 echo "configure
:6690: checking
for remove
in -lposix" >&5
6690 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
6691 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6692 echo $ac_n "(cached
) $ac_c" 1>&6
6694 ac_save_LIBS="$LIBS"
6695 LIBS="-lposix $LIBS"
6696 cat > conftest.$ac_ext <<EOF
6697 #line 6698 "configure
"
6698 #include "confdefs.h
"
6699 /* Override any gcc2 internal prototype to avoid an error. */
6700 /* We use char because int might match the return type of a gcc2
6701 builtin and then its argument prototype would still apply. */
6708 if { (eval echo configure:6709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6710 eval "ac_cv_lib_
$ac_lib_var=yes"
6712 echo "configure
: failed program was
:" >&5
6713 cat conftest.$ac_ext >&5
6715 eval "ac_cv_lib_
$ac_lib_var=no
"
6718 LIBS="$ac_save_LIBS"
6721 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6722 echo "$ac_t""yes" 1>&6
6723 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6725 echo "$ac_t""no
" 1>&6
6730 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6731 echo $ac_n "checking
for shmat
""...
$ac_c" 1>&6
6732 echo "configure
:6733: checking
for shmat
" >&5
6733 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
6734 echo $ac_n "(cached
) $ac_c" 1>&6
6736 cat > conftest.$ac_ext <<EOF
6737 #line 6738 "configure
"
6738 #include "confdefs.h
"
6739 /* System header to define __stub macros and hopefully few prototypes,
6740 which can conflict with char shmat(); below. */
6742 /* Override any gcc2 internal prototype to avoid an error. */
6743 /* We use char because int might match the return type of a gcc2
6744 builtin and then its argument prototype would still apply. */
6749 /* The GNU C library defines this for functions which it implements
6750 to always fail with ENOSYS. Some functions are actually named
6751 something starting with __ and the normal name is an alias. */
6752 #if defined (__stub_shmat) || defined (__stub___shmat)
6760 if { (eval echo configure:6761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6762 eval "ac_cv_func_shmat
=yes"
6764 echo "configure
: failed program was
:" >&5
6765 cat conftest.$ac_ext >&5
6767 eval "ac_cv_func_shmat
=no
"
6772 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
6773 echo "$ac_t""yes" 1>&6
6776 echo "$ac_t""no
" 1>&6
6779 if test $ac_cv_func_shmat = no; then
6780 echo $ac_n "checking
for shmat
in -lipc""...
$ac_c" 1>&6
6781 echo "configure
:6782: checking
for shmat
in -lipc" >&5
6782 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
6783 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6784 echo $ac_n "(cached
) $ac_c" 1>&6
6786 ac_save_LIBS="$LIBS"
6788 cat > conftest.$ac_ext <<EOF
6789 #line 6790 "configure
"
6790 #include "confdefs.h
"
6791 /* Override any gcc2 internal prototype to avoid an error. */
6792 /* We use char because int might match the return type of a gcc2
6793 builtin and then its argument prototype would still apply. */
6800 if { (eval echo configure:6801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6802 eval "ac_cv_lib_
$ac_lib_var=yes"
6804 echo "configure
: failed program was
:" >&5
6805 cat conftest.$ac_ext >&5
6807 eval "ac_cv_lib_
$ac_lib_var=no
"
6810 LIBS="$ac_save_LIBS"
6813 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6814 echo "$ac_t""yes" 1>&6
6815 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6817 echo "$ac_t""no
" 1>&6
6823 # Check for libraries that X11R6 Xt/Xaw programs need.
6824 ac_save_LDFLAGS="$LDFLAGS"
6825 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6826 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6827 # check for ICE first), but we must link in the order -lSM -lICE or
6828 # we get undefined symbols. So assume we have SM if we have ICE.
6829 # These have to be linked with before -lX11, unlike the other
6830 # libraries we check for below, so use a different variable.
6831 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
6832 echo $ac_n "checking
for IceConnectionNumber
in -lICE""...
$ac_c" 1>&6
6833 echo "configure
:6834: checking
for IceConnectionNumber
in -lICE" >&5
6834 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
6835 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6836 echo $ac_n "(cached
) $ac_c" 1>&6
6838 ac_save_LIBS="$LIBS"
6839 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6840 cat > conftest.$ac_ext <<EOF
6841 #line 6842 "configure
"
6842 #include "confdefs.h
"
6843 /* Override any gcc2 internal prototype to avoid an error. */
6844 /* We use char because int might match the return type of a gcc2
6845 builtin and then its argument prototype would still apply. */
6846 char IceConnectionNumber();
6849 IceConnectionNumber()
6852 if { (eval echo configure:6853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6854 eval "ac_cv_lib_
$ac_lib_var=yes"
6856 echo "configure
: failed program was
:" >&5
6857 cat conftest.$ac_ext >&5
6859 eval "ac_cv_lib_
$ac_lib_var=no
"
6862 LIBS="$ac_save_LIBS"
6865 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6866 echo "$ac_t""yes" 1>&6
6867 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6869 echo "$ac_t""no
" 1>&6
6872 LDFLAGS="$ac_save_LDFLAGS"
6877 # Check whether --enable-java-awt or --disable-java-awt was given.
6878 if test "${enable_java_awt+set}" = set; then
6879 enableval="$enable_java_awt"
6884 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
6888 for peer in $peerlibs ; do
6891 if test "$no_x" = yes; then
6892 echo "*** xlib peers requested but no X library available
" 1>&2
6902 echo "*** unrecognised argument
\"${peer}\" for --enable-java-awt" 1>&2
6909 if test "$use_xlib_awt" = yes; then
6918 if test "$use_gtk_awt" = yes; then
6930 # We get this from the environment.
6934 cat > confcache <<\EOF
6935 # This file is a shell script that caches the results of configure
6936 # tests run on this system so they can be shared between configure
6937 # scripts and configure runs. It is not useful on other systems.
6938 # If it contains results you don't want to keep, you may remove or edit it.
6940 # By default, configure uses ./config.cache as the cache file,
6941 # creating it if it does not exist already. You can give configure
6942 # the --cache-file=FILE option to use a different cache file; that is
6943 # what configure does when it calls configure scripts in
6944 # subdirectories, so they share the cache.
6945 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6946 # config.status only pays attention to the cache file if you give it the
6947 # --recheck option to rerun configure.
6950 # The following way of writing the cache mishandles newlines in values,
6951 # but we know of no workaround that is simple, portable, and efficient.
6952 # So, don't put newlines in cache variables' values.
6953 # Ultrix sh set writes to stderr and can't be redirected directly,
6954 # and sets the high bit in the cache file unless we assign to the vars.
6956 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6958 # `set' does not quote correctly, so add quotes (double-quote substitution
6959 # turns \\\\ into \\, and sed turns \\ into \).
6961 -e "s
/'/'\\\\''/g
" \
6962 -e "s
/^
\\([a-zA-Z0-9_
]*_cv_
[a-zA-Z0-9_
]*\\)=\\(.
*\\)/\\1=\
${\\1='\\2'}/p
"
6965 # `set' quotes correctly as required by POSIX, so do not add quotes.
6966 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6969 if cmp -s $cache_file confcache; then
6972 if test -w $cache_file; then
6973 echo "updating cache
$cache_file"
6974 cat confcache > $cache_file
6976 echo "not updating unwritable cache
$cache_file"
6981 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6983 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
6984 # Let make expand exec_prefix.
6985 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
6987 # Any assignment to VPATH causes Sun make to only execute
6988 # the first set of double-colon rules, so remove it if not needed.
6989 # If there is a colon in the path, we need to keep it.
6990 if test "x
$srcdir" = x.; then
6991 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6994 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6996 DEFS=-DHAVE_CONFIG_H
6998 # Without the ".
/", some shells look in PATH for config.status.
6999 : ${CONFIG_STATUS=./config.status}
7001 echo creating $CONFIG_STATUS
7002 rm -f $CONFIG_STATUS
7003 cat > $CONFIG_STATUS <<EOF
7005 # Generated automatically by configure.
7006 # Run this file to recreate the current configuration.
7007 # This directory was configured as follows,
7008 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7010 # $0 $ac_configure_args
7012 # Compiler output produced by configure, useful for debugging
7013 # configure, is in ./config.log if it exists.
7015 ac_cs_usage="Usage
: $CONFIG_STATUS [--recheck] [--version] [--help]"
7018 case "\
$ac_option" in
7019 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7020 echo "running \
${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7021 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7022 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7023 echo "$CONFIG_STATUS generated by autoconf version
2.13"
7025 -help | --help | --hel | --he | --h)
7026 echo "\
$ac_cs_usage"; exit 0 ;;
7027 *) echo "\
$ac_cs_usage"; exit 1 ;;
7031 ac_given_srcdir=$srcdir
7032 ac_given_INSTALL="$INSTALL"
7034 trap 'rm -fr `echo "Makefile libgcj.spec libgcj-test.spec gnu
/classpath
/Configuration.java gcj
/Makefile include
/Makefile testsuite
/Makefile include
/config.h
" | sed "s
/:[^
]*//g
"` conftest*; exit 1' 1 2 15
7036 cat >> $CONFIG_STATUS <<EOF
7038 # Protect against being on the right side of a sed subst in config.status.
7039 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7040 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7044 s%@CFLAGS@%$CFLAGS%g
7045 s%@CPPFLAGS@%$CPPFLAGS%g
7046 s%@CXXFLAGS@%$CXXFLAGS%g
7047 s%@FFLAGS@%$FFLAGS%g
7049 s%@LDFLAGS@%$LDFLAGS%g
7051 s%@exec_prefix@%$exec_prefix%g
7052 s%@prefix@%$prefix%g
7053 s%@program_transform_name@%$program_transform_name%g
7054 s%@bindir@%$bindir%g
7055 s%@sbindir@%$sbindir%g
7056 s%@libexecdir@%$libexecdir%g
7057 s%@datadir@%$datadir%g
7058 s%@sysconfdir@%$sysconfdir%g
7059 s%@sharedstatedir@%$sharedstatedir%g
7060 s%@localstatedir@%$localstatedir%g
7061 s%@libdir@%$libdir%g
7062 s%@includedir@%$includedir%g
7063 s%@oldincludedir@%$oldincludedir%g
7064 s%@infodir@%$infodir%g
7065 s%@mandir@%$mandir%g
7067 s%@libgcj_basedir@%$libgcj_basedir%g
7068 s%@mkinstalldirs@%$mkinstalldirs%g
7070 s%@host_alias@%$host_alias%g
7071 s%@host_cpu@%$host_cpu%g
7072 s%@host_vendor@%$host_vendor%g
7073 s%@host_os@%$host_os%g
7074 s%@target@%$target%g
7075 s%@target_alias@%$target_alias%g
7076 s%@target_cpu@%$target_cpu%g
7077 s%@target_vendor@%$target_vendor%g
7078 s%@target_os@%$target_os%g
7080 s%@build_alias@%$build_alias%g
7081 s%@build_cpu@%$build_cpu%g
7082 s%@build_vendor@%$build_vendor%g
7083 s%@build_os@%$build_os%g
7086 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7087 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7088 s%@INSTALL_DATA@%$INSTALL_DATA%g
7089 s%@PACKAGE@%$PACKAGE%g
7090 s%@VERSION@%$VERSION%g
7091 s%@ACLOCAL@%$ACLOCAL%g
7092 s%@AUTOCONF@%$AUTOCONF%g
7093 s%@AUTOMAKE@%$AUTOMAKE%g
7094 s%@AUTOHEADER@%$AUTOHEADER%g
7095 s%@MAKEINFO@%$MAKEINFO%g
7096 s%@SET_MAKE@%$SET_MAKE%g
7099 s%@RANLIB@%$RANLIB%g
7100 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
7101 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
7103 s%@EXEEXT@%$EXEEXT%g
7104 s%@LIBGCJ_CFLAGS@%$LIBGCJ_CFLAGS%g
7105 s%@LIBGCJ_CXXFLAGS@%$LIBGCJ_CXXFLAGS%g
7106 s%@LIBGCJ_JAVAFLAGS@%$LIBGCJ_JAVAFLAGS%g
7107 s%@INCLTDL@%$INCLTDL%g
7108 s%@LIBLTDL@%$LIBLTDL%g
7109 s%@DIRLTDL@%$DIRLTDL%g
7110 s%@OBJEXT@%$OBJEXT%g
7112 s%@LIBTOOL@%$LIBTOOL%g
7113 s%@CXXCPP@%$CXXCPP%g
7114 s%@subdirs@%$subdirs%g
7115 s%@COMPPATH@%$COMPPATH%g
7116 s%@TESTSUBDIR_TRUE@%$TESTSUBDIR_TRUE%g
7117 s%@TESTSUBDIR_FALSE@%$TESTSUBDIR_FALSE%g
7118 s%@LIBGCJDEBUG@%$LIBGCJDEBUG%g
7119 s%@LIBDATASTARTSPEC@%$LIBDATASTARTSPEC%g
7121 s%@SYSTEMSPEC@%$SYSTEMSPEC%g
7122 s%@LIBGCJTESTSPEC@%$LIBGCJTESTSPEC%g
7123 s%@ZLIBSPEC@%$ZLIBSPEC%g
7124 s%@ZLIBTESTSPEC@%$ZLIBTESTSPEC%g
7125 s%@GCLIBS@%$GCLIBS%g
7126 s%@GCINCS@%$GCINCS%g
7127 s%@GCDEPS@%$GCDEPS%g
7128 s%@GCOBJS@%$GCOBJS%g
7129 s%@GCSPEC@%$GCSPEC%g
7130 s%@JC1GCSPEC@%$JC1GCSPEC%g
7131 s%@GCTESTSPEC@%$GCTESTSPEC%g
7132 s%@THREADLIBS@%$THREADLIBS%g
7133 s%@THREADINCS@%$THREADINCS%g
7134 s%@THREADDEPS@%$THREADDEPS%g
7135 s%@THREADOBJS@%$THREADOBJS%g
7136 s%@THREADSPEC@%$THREADSPEC%g
7137 s%@USING_GCC_TRUE@%$USING_GCC_TRUE%g
7138 s%@USING_GCC_FALSE@%$USING_GCC_FALSE%g
7139 s%@ICONV_LDFLAGS@%$ICONV_LDFLAGS%g
7140 s%@LIBICONV@%$LIBICONV%g
7142 s%@GCJFLAGS@%$GCJFLAGS%g
7146 s%@DIVIDESPEC@%$DIVIDESPEC%g
7147 s%@EXCEPTIONSPEC@%$EXCEPTIONSPEC%g
7148 s%@CANADIAN_TRUE@%$CANADIAN_TRUE%g
7149 s%@CANADIAN_FALSE@%$CANADIAN_FALSE%g
7150 s%@NULL_TARGET_TRUE@%$NULL_TARGET_TRUE%g
7151 s%@NULL_TARGET_FALSE@%$NULL_TARGET_FALSE%g
7152 s%@NATIVE_TRUE@%$NATIVE_TRUE%g
7153 s%@NATIVE_FALSE@%$NATIVE_FALSE%g
7154 s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
7155 s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
7156 s%@NEEDS_DATA_START_TRUE@%$NEEDS_DATA_START_TRUE%g
7157 s%@NEEDS_DATA_START_FALSE@%$NEEDS_DATA_START_FALSE%g
7158 s%@GCC_UNWIND_INCLUDE@%$GCC_UNWIND_INCLUDE%g
7159 s%@GCJVERSION@%$GCJVERSION%g
7160 s%@AM_RUNTESTFLAGS@%$AM_RUNTESTFLAGS%g
7161 s%@ALLOCA@%$ALLOCA%g
7163 s%@SYSDEP_SOURCES@%$SYSDEP_SOURCES%g
7164 s%@X_CFLAGS@%$X_CFLAGS%g
7165 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
7166 s%@X_LIBS@%$X_LIBS%g
7167 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
7168 s%@XLIB_AWT_TRUE@%$XLIB_AWT_TRUE%g
7169 s%@XLIB_AWT_FALSE@%$XLIB_AWT_FALSE%g
7170 s%@GTK_AWT_TRUE@%$GTK_AWT_TRUE%g
7171 s%@GTK_AWT_FALSE@%$GTK_AWT_FALSE%g
7177 cat >> $CONFIG_STATUS <<\EOF
7179 # Split the substitutions into bite-sized pieces for seds with
7180 # small command number limits, like on Digital OSF/1 and HP-UX.
7181 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7182 ac_file=1 # Number of current file.
7183 ac_beg=1 # First line for current file.
7184 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7187 while $ac_more_lines; do
7188 if test $ac_beg -gt 1; then
7189 sed "1,${ac_beg}d
; ${ac_end}q
" conftest.subs > conftest.s$ac_file
7191 sed "${ac_end}q
" conftest.subs > conftest.s$ac_file
7193 if test ! -s conftest.s$ac_file; then
7195 rm -f conftest.s$ac_file
7197 if test -z "$ac_sed_cmds"; then
7198 ac_sed_cmds="sed -f conftest.s
$ac_file"
7200 ac_sed_cmds="$ac_sed_cmds |
sed -f conftest.s
$ac_file"
7202 ac_file=`expr $ac_file + 1`
7204 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7207 if test -z "$ac_sed_cmds"; then
7212 cat >> $CONFIG_STATUS <<EOF
7214 CONFIG_FILES=\${CONFIG_FILES-"Makefile libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile"}
7216 cat >> $CONFIG_STATUS <<\EOF
7217 for ac_file in .. $CONFIG_FILES; do if test "x
$ac_file" != x..; then
7218 # Support "outfile
[:infile
[:infile...
]]", defaulting infile="outfile.
in".
7220 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7221 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7222 *) ac_file_in="${ac_file}.
in" ;;
7225 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7227 # Remove last slash and all that follows it. Not all systems have dirname.
7228 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7229 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7230 # The file is in a subdirectory.
7231 test ! -d "$ac_dir" && mkdir "$ac_dir"
7232 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7233 # A "..
/" for each directory in $ac_dir_suffix.
7234 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7236 ac_dir_suffix= ac_dots=
7239 case "$ac_given_srcdir" in
7241 if test -z "$ac_dots"; then top_srcdir=.
7242 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7243 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7245 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7246 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7249 case "$ac_given_INSTALL" in
7250 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7251 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7254 echo creating "$ac_file"
7256 configure_input="Generated automatically from
`echo $ac_file_in|sed 's%.*/%%'` by configure.
"
7258 *Makefile*) ac_comsub="1i
\\
7259 # $configure_input" ;;
7263 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7265 s%@configure_input@%$configure_input%g
7266 s%@srcdir@%$srcdir%g
7267 s%@top_srcdir@%$top_srcdir%g
7268 s%@INSTALL@%$INSTALL%g
7269 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
7273 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7274 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7276 # ac_d sets the value in "#define NAME VALUE" lines.
7277 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7278 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
7281 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7282 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7283 ac_uB
='\([ ]\)%\1#\2define\3'
7286 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7287 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7288 ac_eB
='$%\1#\2define\3'
7292 if test "${CONFIG_HEADERS+set}" != set; then
7294 cat >> $CONFIG_STATUS <<EOF
7295 CONFIG_HEADERS="include/config.h"
7297 cat >> $CONFIG_STATUS <<\EOF
7299 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
7300 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7302 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
7303 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
7304 *) ac_file_in
="${ac_file}.in" ;;
7307 echo creating
$ac_file
7309 rm -f conftest.frag conftest.
in conftest.out
7310 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7311 cat $ac_file_inputs > conftest.
in
7315 # Transform confdefs.h into a sed script conftest.vals that substitutes
7316 # the proper values into config.h.in to produce config.h. And first:
7317 # Protect against being on the right side of a sed subst in config.status.
7318 # Protect against being in an unquoted here document in config.status.
7320 cat > conftest.hdr
<<\EOF
7323 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7327 sed -n -f conftest.hdr confdefs.h > conftest.vals
7330 # This sed command replaces #undef with comments. This is necessary, for
7331 # example, in the case of _POSIX_SOURCE, which is predefined and required
7332 # on some systems where configure will not decide to define it.
7333 cat >> conftest.vals <<\EOF
7334 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7337 # Break up conftest.vals because some shells have a limit on
7338 # the size of here documents, and old seds have small limits too.
7343 ac_lines=`grep -c . conftest.vals
`
7344 # grep -c gives empty output for an empty file on some AIX systems.
7345 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7346 # Write a limited-size here document to conftest.frag.
7347 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7348 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7350 sed -f conftest.frag conftest.in > conftest.out
7352 mv conftest.out conftest.in
7354 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7356 mv conftest.tail conftest.vals
7360 cat >> $CONFIG_STATUS <<\EOF
7361 rm -f conftest.frag conftest.h
7362 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7363 cat conftest.in >> conftest.h
7365 if cmp -s $ac_file conftest.h 2>/dev/null; then
7366 echo "$ac_file is unchanged"
7369 # Remove last slash and all that follows it. Not all systems have dirname.
7370 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
7371 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7372 # The file is in a subdirectory.
7373 test ! -d "$ac_dir" && mkdir "$ac_dir"
7376 mv conftest.h $ac_file
7382 cat >> $CONFIG_STATUS <<EOF
7383 ac_sources="java/io/$FILE_DESCRIPTOR java/lang/${PROCESS}Process.java java/lang/nat${PROCESS}Process.cc include/$GCHDR include/$THREADH $SIGNAL_HANDLER"
7384 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"
7387 cat >> $CONFIG_STATUS <<\EOF
7388 srcdir=$ac_given_srcdir
7389 while test -n "$ac_sources"; do
7390 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
7391 set $ac_sources; ac_source=$1; shift; ac_sources=$*
7393 echo "linking $srcdir/$ac_source to $ac_dest"
7395 if test ! -r $srcdir/$ac_source; then
7396 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
7400 # Make relative symlinks.
7401 # Remove last slash and all that follows it. Not all systems have dirname.
7402 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
7403 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
7404 # The dest file is in a subdirectory.
7405 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
7406 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
7407 # A "../" for each directory in $ac_dest_dir_suffix.
7408 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
7410 ac_dest_dir_suffix= ac_dots=
7414 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
7415 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
7418 # Make a symlink if possible; otherwise try a hard link.
7419 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
7420 ln $srcdir/$ac_source $ac_dest; then :
7422 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
7426 cat >> $CONFIG_STATUS <<EOF
7431 with_multisubdir=${with_multisubdir}
7432 ac_configure_args="${multilib_arg} ${ac_configure_args}"
7433 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
7434 libgcj_basedir=${libgcj_basedir}
7439 cat >> $CONFIG_STATUS <<\EOF
7440 test -z "$CONFIG_HEADERS" || echo timestamp > include/stamp-h
7441 if test -n "$CONFIG_FILES"; then
7442 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
7445 # Make subdirectories and `.d
' files. Look in both srcdir and
7446 # builddir for the .java files.
7449 ( (cd $srcdir && find . -name '*.java
' -print) ;
7450 find . -name '*.java
' -print) | \
7451 fgrep -v testsuite | \
7452 sed -e 's
/\.java
/.d
/' | \
7454 echo "include $f" >> deps.mk
7457 d=`echo $f | sed -e 's
,/[^
/]*$
,,'`
7459 $libgcj_basedir/../mkinstalldirs $d
7466 chmod +x $CONFIG_STATUS
7467 rm -fr confdefs* $ac_clean_files
7468 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7470 if test "$no_recursion" != yes; then
7472 # Remove --cache-file and --srcdir arguments so they do not pile up.
7473 ac_sub_configure_args=
7475 for ac_arg in $ac_configure_args; do
7476 if test -n "$ac_prev"; then
7481 -cache-file | --cache-file | --cache-fil | --cache-fi \
7482 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
7483 ac_prev=cache_file ;;
7484 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
7485 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
7487 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
7489 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
7491 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
7495 for ac_config_dir in $DIRLTDL; do
7497 # Do not complain, so a configure script can configure whichever
7498 # parts of a large source tree are present.
7499 if test ! -d $srcdir/$ac_config_dir; then
7503 echo configuring in $ac_config_dir
7508 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
7510 { echo "configure: error: can not create `/vol/local/bin/pwd`/$ac_config_dir" 1>&2; exit 1; }
7515 ac_popdir=`/vol/local/bin/pwd`
7518 # A "../" for each directory in /$ac_config_dir.
7519 ac_dots=`echo $ac_config_dir|sed -e 's
%^\.
/%%' -e 's
%[^
/]$
%&/%' -e 's
%[^
/]*/%..
/%g
'`
7522 .) # No --srcdir option. We are building in place.
7523 ac_sub_srcdir=$srcdir ;;
7524 /*) # Absolute path.
7525 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
7527 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
7530 # Check for guested configure; otherwise get Cygnus style configure.
7531 if test -f $ac_sub_srcdir/configure; then
7532 ac_sub_configure=$ac_sub_srcdir/configure
7533 elif test -f $ac_sub_srcdir/configure.in; then
7534 ac_sub_configure=$ac_configure
7536 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
7540 # The recursion is here.
7541 if test -n "$ac_sub_configure"; then
7543 # Make the cache file name correct relative to the subdirectory.
7544 case "$cache_file" in
7545 /*) ac_sub_cache_file=$cache_file ;;
7547 ac_sub_cache_file="$ac_dots$cache_file" ;;
7549 case "$ac_given_INSTALL" in
7550 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7551 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7554 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
7555 # The eval makes quoting arguments work.
7556 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
7559 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }