3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --with-target-subdir=SUBDIR
16 configuring in a subdirectory"
18 --with-cross-host=HOST configuring with a cross compiler"
20 --with-newlib Configuring with newlib"
22 --enable-version-specific-runtime-libs
23 specify that runtime libraries should be installed in a compiler-specific
26 --enable-multilib build many library versions (default)"
28 --enable-maintainer-mode enable make rules and dependencies not useful
29 (and sometimes confusing) to the casual installer"
31 --enable-shared[=PKGS] build shared libraries [default=yes]"
33 --enable-static[=PKGS] build static libraries [default=yes]"
35 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
37 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
39 --disable-libtool-lock avoid locking (might break parallel builds)"
41 --with-pic try to use only PIC/non-PIC objects [default=use both]"
43 --disable-getenv-properties
44 don't set system properties from GCJ_PROPERTIES"
46 --enable-hash-synchronization
47 use global hash table for monitor locks"
49 --enable-libgcj-multifile
50 allow compilation of several files at once"
52 --with-win32-nlsapi=ansi, unicows or unicode
53 native MinGW libgcj Win32 OS API [ansi]"
55 --enable-libgcj-debug enable runtime debugging code"
57 --enable-interpreter enable interpreter"
59 --enable-sjlj-exceptions force use of builtin_setjmp for exceptions"
61 --disable-java-net disable java.net"
63 --without-libffi don't use libffi"
65 --disable-jvmpi disable JVMPI support"
67 --with-ecos enable runtime eCos target support"
69 --with-system-zlib use installed libz"
71 --with-x use the X Window System"
73 --enable-java-awt list of AWT peer implementations to be built"
75 --enable-gtk-cairo build the cairo Graphics2D implementation on GTK"
77 --enable-java-gc=TYPE choose garbage collector [boehm]"
79 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
81 # Initialize some variables set by options.
82 # The variables have the same names as the options, with
83 # dashes changed to underlines.
85 cache_file=./config.cache
94 program_transform_name=s,x,x,
102 bindir='${exec_prefix}/bin'
103 sbindir='${exec_prefix}/sbin'
104 libexecdir='${exec_prefix}/libexec'
105 datadir='${prefix}/share'
106 sysconfdir='${prefix}/etc'
107 sharedstatedir='${prefix}/com'
108 localstatedir='${prefix}/var'
109 libdir='${exec_prefix}/lib'
110 includedir='${prefix}/include'
111 oldincludedir='/usr/include'
112 infodir='${prefix}/info'
113 mandir='${prefix}/man'
115 # Initialize some other variables.
118 SHELL=${CONFIG_SHELL-/bin/sh}
119 # Maximum number of lines to put in a shell here document.
126 # If the previous option needs an argument, assign it.
127 if test -n "$ac_prev"; then
128 eval "$ac_prev=\$ac_option"
134 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
138 # Accept the important Cygnus configure options, so we can diagnose typos.
142 -bindir | --bindir | --bindi | --bind | --bin | --bi)
144 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
145 bindir="$ac_optarg" ;;
147 -build | --build | --buil | --bui | --bu)
149 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
150 build="$ac_optarg" ;;
152 -cache-file | --cache-file | --cache-fil | --cache-fi \
153 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
154 ac_prev=cache_file ;;
155 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
156 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
157 cache_file="$ac_optarg" ;;
159 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
161 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
163 datadir="$ac_optarg" ;;
165 -disable-* | --disable-*)
166 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
167 # Reject names that are not valid shell variable names.
168 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
169 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
171 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
172 eval "enable_${ac_feature}=no" ;;
174 -enable-* | --enable-*)
175 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
176 # Reject names that are not valid shell variable names.
177 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
178 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
180 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
185 eval "enable_${ac_feature}='$ac_optarg'" ;;
187 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
188 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
189 | --exec | --exe | --ex)
190 ac_prev=exec_prefix ;;
191 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
192 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
193 | --exec=* | --exe=* | --ex=*)
194 exec_prefix="$ac_optarg" ;;
196 -gas | --gas | --ga | --g)
197 # Obsolete; use --with-gas.
200 -help | --help | --hel | --he)
201 # Omit some internal or obsolete options to make the list less imposing.
202 # This message is too long to be a string in the A/UX 3.1 sh.
204 Usage: configure [options] [host]
205 Options: [defaults in brackets after descriptions]
207 --cache-file=FILE cache test results in FILE
208 --help print this message
209 --no-create do not create output files
210 --quiet, --silent do not print \`checking...' messages
211 --version print the version of autoconf that created configure
212 Directory and file names:
213 --prefix=PREFIX install architecture-independent files in PREFIX
215 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
217 --bindir=DIR user executables in DIR [EPREFIX/bin]
218 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
219 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
220 --datadir=DIR read-only architecture-independent data in DIR
222 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
223 --sharedstatedir=DIR modifiable architecture-independent data in DIR
225 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
226 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
227 --includedir=DIR C header files in DIR [PREFIX/include]
228 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
229 --infodir=DIR info documentation in DIR [PREFIX/info]
230 --mandir=DIR man documentation in DIR [PREFIX/man]
231 --srcdir=DIR find the sources in DIR [configure dir or ..]
232 --program-prefix=PREFIX prepend PREFIX to installed program names
233 --program-suffix=SUFFIX append SUFFIX to installed program names
234 --program-transform-name=PROGRAM
235 run sed PROGRAM on installed program names
239 --build=BUILD configure for building on BUILD [BUILD=HOST]
240 --host=HOST configure for HOST [guessed]
241 --target=TARGET configure for TARGET [TARGET=HOST]
242 Features and packages:
243 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
244 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
245 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
246 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
247 --x-includes=DIR X include files are in DIR
248 --x-libraries=DIR X library files are in DIR
250 if test -n "$ac_help"; then
251 echo "--enable and --with options recognized:$ac_help"
255 -host | --host | --hos | --ho)
257 -host=* | --host=* | --hos=* | --ho=*)
260 -includedir | --includedir | --includedi | --included | --include \
261 | --includ | --inclu | --incl | --inc)
262 ac_prev=includedir ;;
263 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
264 | --includ=* | --inclu=* | --incl=* | --inc=*)
265 includedir="$ac_optarg" ;;
267 -infodir | --infodir | --infodi | --infod | --info | --inf)
269 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
270 infodir="$ac_optarg" ;;
272 -libdir | --libdir | --libdi | --libd)
274 -libdir=* | --libdir=* | --libdi=* | --libd=*)
275 libdir="$ac_optarg" ;;
277 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
278 | --libexe | --libex | --libe)
279 ac_prev=libexecdir ;;
280 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
281 | --libexe=* | --libex=* | --libe=*)
282 libexecdir="$ac_optarg" ;;
284 -localstatedir | --localstatedir | --localstatedi | --localstated \
285 | --localstate | --localstat | --localsta | --localst \
286 | --locals | --local | --loca | --loc | --lo)
287 ac_prev=localstatedir ;;
288 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
289 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
290 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
291 localstatedir="$ac_optarg" ;;
293 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
295 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
296 mandir="$ac_optarg" ;;
299 # Obsolete; use --without-fp.
302 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
306 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
307 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
310 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
311 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
312 | --oldin | --oldi | --old | --ol | --o)
313 ac_prev=oldincludedir ;;
314 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
315 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
316 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
317 oldincludedir="$ac_optarg" ;;
319 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
321 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
322 prefix="$ac_optarg" ;;
324 -program-prefix | --program-prefix | --program-prefi | --program-pref \
325 | --program-pre | --program-pr | --program-p)
326 ac_prev=program_prefix ;;
327 -program-prefix=* | --program-prefix=* | --program-prefi=* \
328 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
329 program_prefix="$ac_optarg" ;;
331 -program-suffix | --program-suffix | --program-suffi | --program-suff \
332 | --program-suf | --program-su | --program-s)
333 ac_prev=program_suffix ;;
334 -program-suffix=* | --program-suffix=* | --program-suffi=* \
335 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
336 program_suffix="$ac_optarg" ;;
338 -program-transform-name | --program-transform-name \
339 | --program-transform-nam | --program-transform-na \
340 | --program-transform-n | --program-transform- \
341 | --program-transform | --program-transfor \
342 | --program-transfo | --program-transf \
343 | --program-trans | --program-tran \
344 | --progr-tra | --program-tr | --program-t)
345 ac_prev=program_transform_name ;;
346 -program-transform-name=* | --program-transform-name=* \
347 | --program-transform-nam=* | --program-transform-na=* \
348 | --program-transform-n=* | --program-transform-=* \
349 | --program-transform=* | --program-transfor=* \
350 | --program-transfo=* | --program-transf=* \
351 | --program-trans=* | --program-tran=* \
352 | --progr-tra=* | --program-tr=* | --program-t=*)
353 program_transform_name="$ac_optarg" ;;
355 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
356 | -silent | --silent | --silen | --sile | --sil)
359 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
361 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
363 sbindir="$ac_optarg" ;;
365 -sharedstatedir | --sharedstatedir | --sharedstatedi \
366 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
367 | --sharedst | --shareds | --shared | --share | --shar \
369 ac_prev=sharedstatedir ;;
370 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
371 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
372 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
374 sharedstatedir="$ac_optarg" ;;
376 -site | --site | --sit)
378 -site=* | --site=* | --sit=*)
381 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
383 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
384 srcdir="$ac_optarg" ;;
386 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
387 | --syscon | --sysco | --sysc | --sys | --sy)
388 ac_prev=sysconfdir ;;
389 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
390 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
391 sysconfdir="$ac_optarg" ;;
393 -target | --target | --targe | --targ | --tar | --ta | --t)
395 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
396 target="$ac_optarg" ;;
398 -v | -verbose | --verbose | --verbos | --verbo | --verb)
401 -version | --version | --versio | --versi | --vers)
402 echo "configure generated by autoconf version 2.13"
406 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
407 # Reject names that are not valid shell variable names.
408 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
409 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
411 ac_package=`echo $ac_package| sed 's/-/_/g'`
416 eval "with_${ac_package}='$ac_optarg'" ;;
418 -without-* | --without-*)
419 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
420 # Reject names that are not valid shell variable names.
421 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
422 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
424 ac_package=`echo $ac_package| sed 's/-/_/g'`
425 eval "with_${ac_package}=no" ;;
428 # Obsolete; use --with-x.
431 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
432 | --x-incl | --x-inc | --x-in | --x-i)
433 ac_prev=x_includes ;;
434 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
435 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
436 x_includes="$ac_optarg" ;;
438 -x-libraries | --x-libraries | --x-librarie | --x-librari \
439 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
440 ac_prev=x_libraries ;;
441 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
442 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
443 x_libraries="$ac_optarg" ;;
445 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
449 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
450 echo "configure: warning: $ac_option: invalid host type" 1>&2
452 if test "x$nonopt" != xNONE; then
453 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
461 if test -n "$ac_prev"; then
462 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
465 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
467 # File descriptor usage:
470 # 2 errors and warnings
471 # 3 some systems may open it to /dev/tty
472 # 4 used on the Kubota Titan
473 # 6 checking for... messages and results
474 # 5 compiler messages saved in config.log
475 if test "$silent" = yes; then
483 This file contains any messages produced by compilers while
484 running configure, to aid debugging if configure makes a mistake.
487 # Strip out --no-create and --no-recursion so they do not pile up.
488 # Also quote any args containing shell metacharacters.
493 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
494 | --no-cr | --no-c) ;;
495 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
496 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
497 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
498 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
499 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
504 # Only set these to C if already set. These must not be set unconditionally
505 # because not all systems understand e.g. LANG=C (notably SCO).
506 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
507 # Non-C LC_CTYPE values break the ctype check.
508 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
509 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
510 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
511 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
513 # confdefs.h avoids OS command line length limits that DEFS can exceed.
514 rm -rf conftest* confdefs.h
515 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
518 # A filename unique to this package, relative to the directory that
519 # configure is in, which we can look for to find out if srcdir is correct.
520 ac_unique_file=java/lang/System.java
522 # Find the source files, if location was not specified.
523 if test -z "$srcdir"; then
524 ac_srcdir_defaulted=yes
525 # Try the directory containing this script, then its parent.
527 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
528 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
530 if test ! -r $srcdir/$ac_unique_file; then
534 ac_srcdir_defaulted=no
536 if test ! -r $srcdir/$ac_unique_file; then
537 if test "$ac_srcdir_defaulted" = yes; then
538 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
540 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
543 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
545 # Prefer explicitly selected file to automatically selected ones.
546 if test -z "$CONFIG_SITE"; then
547 if test "x$prefix" != xNONE; then
548 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
550 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
553 for ac_site_file in $CONFIG_SITE; do
554 if test -r "$ac_site_file"; then
555 echo "loading site script $ac_site_file"
560 if test -r "$cache_file"; then
561 echo "loading cache $cache_file"
564 echo "creating cache $cache_file"
569 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
570 ac_cpp='$CPP $CPPFLAGS'
571 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
572 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
573 cross_compiling=$ac_cv_prog_cc_cross
577 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
578 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
579 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
586 ac_n= ac_c='\c' ac_t=
591 # Check whether --with-target-subdir or --without-target-subdir was given.
592 if test "${with_target_subdir+set}" = set; then
593 withval="$with_target_subdir"
599 # When building with srcdir == objdir, links to the source files will
600 # be created in directories within the target_subdir. We have to
601 # adjust toplevel_srcdir accordingly, so that configure finds
602 # install-sh and other auxiliary files that live in the top-level
604 if test "${srcdir}" = "."; then
605 if test -z "${with_target_subdir}"; then
608 if test "${with_target_subdir}" != "."; then
609 toprel="${with_multisrctop}../.."
611 toprel="${with_multisrctop}.."
618 libgcj_basedir=$srcdir/$toprel/./libjava
622 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
623 if test -f $ac_dir/install-sh; then
625 ac_install_sh="$ac_aux_dir/install-sh -c"
627 elif test -f $ac_dir/install.sh; then
629 ac_install_sh="$ac_aux_dir/install.sh -c"
633 if test -z "$ac_aux_dir"; then
634 { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" 1>&2; exit 1; }
636 ac_config_guess=$ac_aux_dir/config.guess
637 ac_config_sub=$ac_aux_dir/config.sub
638 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
641 # This overrides the previous occurrence for automake, but not for
642 # autoconf, which is exactly what we want.
644 for ac_dir in .. $srcdir/..; do
645 if test -f $ac_dir/install-sh; then
647 ac_install_sh="$ac_aux_dir/install-sh -c"
649 elif test -f $ac_dir/install.sh; then
651 ac_install_sh="$ac_aux_dir/install.sh -c"
655 if test -z "$ac_aux_dir"; then
656 { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
658 ac_config_guess=$ac_aux_dir/config.guess
659 ac_config_sub=$ac_aux_dir/config.sub
660 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
665 # Do some error checking and defaulting for the host and target type.
667 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
670 # 1. You are not allowed to specify --host, --target, and nonopt at the
672 # 2. Host defaults to nonopt.
673 # 3. If nonopt is not specified, then host defaults to the current host,
674 # as determined by config.guess.
675 # 4. Target and build default to nonopt.
676 # 5. If nonopt is not specified, then target and build default to host.
678 # The aliases save the names the user supplied, while $host etc.
679 # will get canonicalized.
680 case $host---$target---$nonopt in
681 NONE---*---* | *---NONE---* | *---*---NONE) ;;
682 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
686 # Make sure we can run config.sub.
687 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
688 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
691 echo $ac_n "checking host system type""... $ac_c" 1>&6
692 echo "configure:693: checking host system type" >&5
695 case "$host_alias" in
699 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
700 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
702 *) host_alias=$nonopt ;;
706 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
707 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
708 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
709 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
710 echo "$ac_t""$host" 1>&6
712 echo $ac_n "checking target system type""... $ac_c" 1>&6
713 echo "configure:714: checking target system type" >&5
716 case "$target_alias" in
719 NONE) target_alias=$host_alias ;;
720 *) target_alias=$nonopt ;;
724 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
725 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
726 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
727 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
728 echo "$ac_t""$target" 1>&6
730 echo $ac_n "checking build system type""... $ac_c" 1>&6
731 echo "configure:732: checking build system type" >&5
734 case "$build_alias" in
737 NONE) build_alias=$host_alias ;;
738 *) build_alias=$nonopt ;;
742 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
743 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
744 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
745 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
746 echo "$ac_t""$build" 1>&6
748 test "$host_alias" != "$target_alias" &&
749 test "$program_prefix$program_suffix$program_transform_name" = \
751 program_prefix=${target_alias}-
753 case ${build_alias} in
754 "") build_noncanonical=${build} ;;
755 *) build_noncanonical=${build_alias} ;;
758 case ${host_alias} in
759 "") host_noncanonical=${build_noncanonical} ;;
760 *) host_noncanonical=${host_alias} ;;
763 case ${target_alias} in
764 "") target_noncanonical=${host_noncanonical} ;;
765 *) target_noncanonical=${target_alias} ;;
771 # This works around the fact that libtool configuration may change LD
772 # for this particular configuration, but some shells, instead of
773 # keeping the changes in LD private, export them just because LD is
775 ORIGINAL_LD_FOR_MULTILIBS=$LD
777 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
778 echo "configure:779: checking whether ln -s works" >&5
779 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
780 echo $ac_n "(cached) $ac_c" 1>&6
783 if ln -s X conftestdata 2>/dev/null
786 ac_cv_prog_LN_S="ln -s"
791 LN_S="$ac_cv_prog_LN_S"
792 if test "$ac_cv_prog_LN_S" = "ln -s"; then
793 echo "$ac_t""yes" 1>&6
795 echo "$ac_t""no" 1>&6
799 # This works around an automake problem.
800 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
803 # Check whether --with-cross-host or --without-cross-host was given.
804 if test "${with_cross_host+set}" = set; then
805 withval="$with_cross_host"
810 # Check whether --with-newlib or --without-newlib was given.
811 if test "${with_newlib+set}" = set; then
812 withval="$with_newlib"
817 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
818 if test "${enable_version_specific_runtime_libs+set}" = set; then
819 enableval="$enable_version_specific_runtime_libs"
821 yes) version_specific_libs=yes ;;
822 no) version_specific_libs=no ;;
823 *) { echo "configure: error: Unknown argument to enable/disable version-specific libs" 1>&2; exit 1; };;
826 version_specific_libs=no
831 # Check whether --enable-multilib or --disable-multilib was given.
832 if test "${enable_multilib+set}" = set; then
833 enableval="$enable_multilib"
834 case "${enableval}" in
837 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
846 # Extract the first word of "gcc", so it can be a program name with args.
847 set dummy gcc; ac_word=$2
848 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
849 echo "configure:850: checking for $ac_word" >&5
850 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
851 echo $ac_n "(cached) $ac_c" 1>&6
853 if test -n "$CC"; then
854 ac_cv_prog_CC="$CC" # Let the user override the test.
856 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
858 for ac_dir in $ac_dummy; do
859 test -z "$ac_dir" && ac_dir=.
860 if test -f $ac_dir/$ac_word; then
869 if test -n "$CC"; then
870 echo "$ac_t""$CC" 1>&6
872 echo "$ac_t""no" 1>&6
875 if test -z "$CC"; then
876 # Extract the first word of "cc", so it can be a program name with args.
877 set dummy cc; ac_word=$2
878 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
879 echo "configure:880: checking for $ac_word" >&5
880 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
881 echo $ac_n "(cached) $ac_c" 1>&6
883 if test -n "$CC"; then
884 ac_cv_prog_CC="$CC" # Let the user override the test.
886 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
889 for ac_dir in $ac_dummy; do
890 test -z "$ac_dir" && ac_dir=.
891 if test -f $ac_dir/$ac_word; then
892 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
901 if test $ac_prog_rejected = yes; then
902 # We found a bogon in the path, so make sure we never use it.
903 set dummy $ac_cv_prog_CC
905 if test $# -gt 0; then
906 # We chose a different compiler from the bogus one.
907 # However, it has the same basename, so the bogon will be chosen
908 # first if we set CC to just the basename; use the full file name.
910 set dummy "$ac_dir/$ac_word" "$@"
918 if test -n "$CC"; then
919 echo "$ac_t""$CC" 1>&6
921 echo "$ac_t""no" 1>&6
924 if test -z "$CC"; then
927 # Extract the first word of "cl", so it can be a program name with args.
928 set dummy cl; ac_word=$2
929 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
930 echo "configure:931: checking for $ac_word" >&5
931 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
932 echo $ac_n "(cached) $ac_c" 1>&6
934 if test -n "$CC"; then
935 ac_cv_prog_CC="$CC" # Let the user override the test.
937 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
939 for ac_dir in $ac_dummy; do
940 test -z "$ac_dir" && ac_dir=.
941 if test -f $ac_dir/$ac_word; then
950 if test -n "$CC"; then
951 echo "$ac_t""$CC" 1>&6
953 echo "$ac_t""no" 1>&6
958 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
962 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
963 echo "configure:964: checking whether we are using GNU C" >&5
964 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
965 echo $ac_n "(cached) $ac_c" 1>&6
967 cat > conftest.c <<EOF
972 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:973: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
979 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
981 if test $ac_cv_prog_gcc = yes; then
987 ac_test_CFLAGS="${CFLAGS+set}"
988 ac_save_CFLAGS="$CFLAGS"
990 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
991 echo "configure:992: checking whether ${CC-cc} accepts -g" >&5
992 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
993 echo $ac_n "(cached) $ac_c" 1>&6
995 echo 'void f(){}' > conftest.c
996 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1005 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1006 if test "$ac_test_CFLAGS" = set; then
1007 CFLAGS="$ac_save_CFLAGS"
1008 elif test $ac_cv_prog_cc_g = yes; then
1009 if test "$GCC" = yes; then
1015 if test "$GCC" = yes; then
1023 # We use the libstdc++-v3 version of LIB_AC_PROG_CXX, but use
1024 # glibjava_CXX instead of glibcpp_CXX. That's because we're passed a
1025 # different definition of CXX than other directories, since we don't
1026 # depend on libstdc++-v3 having already been built.
1030 # Use glibjava_CXX so that we do not cause CXX to be cached with the
1031 # flags that come in CXX while configuring libjava. They're different
1032 # from those used for all other target libraries. If CXX is set in
1033 # the environment, respect that here.
1035 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1037 # Extract the first word of "$ac_prog", so it can be a program name with args.
1038 set dummy $ac_prog; ac_word=$2
1039 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1040 echo "configure:1041: checking for $ac_word" >&5
1041 if eval "test \"`echo '$''{'ac_cv_prog_glibjava_CXX'+set}'`\" = set"; then
1042 echo $ac_n "(cached) $ac_c" 1>&6
1044 if test -n "$glibjava_CXX"; then
1045 ac_cv_prog_glibjava_CXX="$glibjava_CXX" # Let the user override the test.
1047 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1049 for ac_dir in $ac_dummy; do
1050 test -z "$ac_dir" && ac_dir=.
1051 if test -f $ac_dir/$ac_word; then
1052 ac_cv_prog_glibjava_CXX="$ac_prog"
1059 glibjava_CXX="$ac_cv_prog_glibjava_CXX"
1060 if test -n "$glibjava_CXX"; then
1061 echo "$ac_t""$glibjava_CXX" 1>&6
1063 echo "$ac_t""no" 1>&6
1066 test -n "$glibjava_CXX" && break
1068 test -n "$glibjava_CXX" || glibjava_CXX="gcc"
1072 test -z "$glibjava_CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1074 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1075 echo "configure:1076: checking whether we are using GNU C++" >&5
1076 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1077 echo $ac_n "(cached) $ac_c" 1>&6
1079 cat > conftest.C <<EOF
1084 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1085: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1091 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1093 if test $ac_cv_prog_gxx = yes; then
1095 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1096 ac_save_CXXFLAGS="$CXXFLAGS"
1098 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1099 echo "configure:1100: checking whether ${CXX-g++} accepts -g" >&5
1100 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1101 echo $ac_n "(cached) $ac_c" 1>&6
1103 echo 'void f(){}' > conftest.cc
1104 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1105 ac_cv_prog_cxx_g=yes
1113 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1114 if test "$ac_test_CXXFLAGS" = set; then
1115 CXXFLAGS="$ac_save_CXXFLAGS"
1116 elif test $ac_cv_prog_cxx_g = yes; then
1123 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1128 # Find a good install program. We prefer a C program (faster),
1129 # so one script is as good as another. But avoid the broken or
1130 # incompatible versions:
1131 # SysV /etc/install, /usr/sbin/install
1132 # SunOS /usr/etc/install
1133 # IRIX /sbin/install
1135 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1136 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1137 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1138 # ./install, which can be erroneously created by make from ./install.sh.
1139 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1140 echo "configure:1141: checking for a BSD compatible install" >&5
1141 if test -z "$INSTALL"; then
1142 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1143 echo $ac_n "(cached) $ac_c" 1>&6
1145 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1146 for ac_dir in $PATH; do
1147 # Account for people who put trailing slashes in PATH elements.
1149 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1151 # OSF1 and SCO ODT 3.0 have their own names for install.
1152 # Don't use installbsd from OSF since it installs stuff as root
1154 for ac_prog in ginstall scoinst install; do
1155 if test -f $ac_dir/$ac_prog; then
1156 if test $ac_prog = install &&
1157 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1158 # AIX install. It has an incompatible calling convention.
1161 ac_cv_path_install="$ac_dir/$ac_prog -c"
1172 if test "${ac_cv_path_install+set}" = set; then
1173 INSTALL="$ac_cv_path_install"
1175 # As a last resort, use the slow shell script. We don't cache a
1176 # path for INSTALL within a source directory, because that will
1177 # break other packages using the cache if that directory is
1178 # removed, or if the path is relative.
1179 INSTALL="$ac_install_sh"
1182 echo "$ac_t""$INSTALL" 1>&6
1184 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1185 # It thinks the first close brace ends the variable substitution.
1186 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1188 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1190 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1192 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1193 echo "configure:1194: checking whether build environment is sane" >&5
1196 echo timestamp > conftestfile
1197 # Do `set' in a subshell so we don't clobber the current shell's
1198 # arguments. Must try -L first in case configure is actually a
1199 # symlink; some systems play weird games with the mod time of symlinks
1200 # (eg FreeBSD returns the mod time of the symlink's containing
1203 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1204 if test "$*" = "X"; then
1206 set X `ls -t $srcdir/configure conftestfile`
1208 if test "$*" != "X $srcdir/configure conftestfile" \
1209 && test "$*" != "X conftestfile $srcdir/configure"; then
1211 # If neither matched, then we have a broken ls. This can happen
1212 # if, for instance, CONFIG_SHELL is bash and it inherits a
1213 # broken ls alias from the environment. This has actually
1214 # happened. Such a system could not be considered "sane".
1215 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1216 alias in your environment" 1>&2; exit 1; }
1219 test "$2" = conftestfile
1225 { echo "configure: error: newly created file is older than distributed files!
1226 Check your system clock" 1>&2; exit 1; }
1229 echo "$ac_t""yes" 1>&6
1230 if test "$program_transform_name" = s,x,x,; then
1231 program_transform_name=
1233 # Double any \ or $. echo might interpret backslashes.
1234 cat <<\EOF_SED > conftestsed
1235 s,\\,\\\\,g; s,\$,$$,g
1237 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1240 test "$program_prefix" != NONE &&
1241 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1242 # Use a double $ so make ignores it.
1243 test "$program_suffix" != NONE &&
1244 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1246 # sed with no file args requires a program.
1247 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1249 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1250 echo "configure:1251: checking whether ${MAKE-make} sets \${MAKE}" >&5
1251 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1252 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1253 echo $ac_n "(cached) $ac_c" 1>&6
1255 cat > conftestmake <<\EOF
1257 @echo 'ac_maketemp="${MAKE}"'
1259 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1260 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1261 if test -n "$ac_maketemp"; then
1262 eval ac_cv_prog_make_${ac_make}_set=yes
1264 eval ac_cv_prog_make_${ac_make}_set=no
1268 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1269 echo "$ac_t""yes" 1>&6
1272 echo "$ac_t""no" 1>&6
1273 SET_MAKE="MAKE=${MAKE-make}"
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 if test $host != $build; then
1363 ac_tool_prefix=${host_alias}-
1368 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1369 set dummy ${ac_tool_prefix}as; ac_word=$2
1370 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1371 echo "configure:1372: checking for $ac_word" >&5
1372 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1373 echo $ac_n "(cached) $ac_c" 1>&6
1375 if test -n "$AS"; then
1376 ac_cv_prog_AS="$AS" # Let the user override the test.
1378 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1380 for ac_dir in $ac_dummy; do
1381 test -z "$ac_dir" && ac_dir=.
1382 if test -f $ac_dir/$ac_word; then
1383 ac_cv_prog_AS="${ac_tool_prefix}as"
1388 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as"
1392 if test -n "$AS"; then
1393 echo "$ac_t""$AS" 1>&6
1395 echo "$ac_t""no" 1>&6
1400 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1401 set dummy ${ac_tool_prefix}ar; ac_word=$2
1402 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1403 echo "configure:1404: checking for $ac_word" >&5
1404 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1405 echo $ac_n "(cached) $ac_c" 1>&6
1407 if test -n "$AR"; then
1408 ac_cv_prog_AR="$AR" # Let the user override the test.
1410 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1412 for ac_dir in $ac_dummy; do
1413 test -z "$ac_dir" && ac_dir=.
1414 if test -f $ac_dir/$ac_word; then
1415 ac_cv_prog_AR="${ac_tool_prefix}ar"
1420 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1424 if test -n "$AR"; then
1425 echo "$ac_t""$AR" 1>&6
1427 echo "$ac_t""no" 1>&6
1432 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1433 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1434 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1435 echo "configure:1436: checking for $ac_word" >&5
1436 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1437 echo $ac_n "(cached) $ac_c" 1>&6
1439 if test -n "$RANLIB"; then
1440 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1442 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1444 for ac_dir in $ac_dummy; do
1445 test -z "$ac_dir" && ac_dir=.
1446 if test -f $ac_dir/$ac_word; then
1447 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1454 RANLIB="$ac_cv_prog_RANLIB"
1455 if test -n "$RANLIB"; then
1456 echo "$ac_t""$RANLIB" 1>&6
1458 echo "$ac_t""no" 1>&6
1462 if test -z "$ac_cv_prog_RANLIB"; then
1463 if test -n "$ac_tool_prefix"; then
1464 # Extract the first word of "ranlib", so it can be a program name with args.
1465 set dummy ranlib; ac_word=$2
1466 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1467 echo "configure:1468: checking for $ac_word" >&5
1468 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1469 echo $ac_n "(cached) $ac_c" 1>&6
1471 if test -n "$RANLIB"; then
1472 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1474 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1476 for ac_dir in $ac_dummy; do
1477 test -z "$ac_dir" && ac_dir=.
1478 if test -f $ac_dir/$ac_word; then
1479 ac_cv_prog_RANLIB="ranlib"
1484 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1487 RANLIB="$ac_cv_prog_RANLIB"
1488 if test -n "$RANLIB"; then
1489 echo "$ac_t""$RANLIB" 1>&6
1491 echo "$ac_t""no" 1>&6
1500 # Find a good install program. We prefer a C program (faster),
1501 # so one script is as good as another. But avoid the broken or
1502 # incompatible versions:
1503 # SysV /etc/install, /usr/sbin/install
1504 # SunOS /usr/etc/install
1505 # IRIX /sbin/install
1507 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1508 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1509 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1510 # ./install, which can be erroneously created by make from ./install.sh.
1511 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1512 echo "configure:1513: checking for a BSD compatible install" >&5
1513 if test -z "$INSTALL"; then
1514 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1515 echo $ac_n "(cached) $ac_c" 1>&6
1517 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1518 for ac_dir in $PATH; do
1519 # Account for people who put trailing slashes in PATH elements.
1521 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1523 # OSF1 and SCO ODT 3.0 have their own names for install.
1524 # Don't use installbsd from OSF since it installs stuff as root
1526 for ac_prog in ginstall scoinst install; do
1527 if test -f $ac_dir/$ac_prog; then
1528 if test $ac_prog = install &&
1529 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1530 # AIX install. It has an incompatible calling convention.
1533 ac_cv_path_install="$ac_dir/$ac_prog -c"
1544 if test "${ac_cv_path_install+set}" = set; then
1545 INSTALL="$ac_cv_path_install"
1547 # As a last resort, use the slow shell script. We don't cache a
1548 # path for INSTALL within a source directory, because that will
1549 # break other packages using the cache if that directory is
1550 # removed, or if the path is relative.
1551 INSTALL="$ac_install_sh"
1554 echo "$ac_t""$INSTALL" 1>&6
1556 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1557 # It thinks the first close brace ends the variable substitution.
1558 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1560 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1562 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1565 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1566 echo "configure:1567: checking whether to enable maintainer-specific portions of Makefiles" >&5
1567 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1568 if test "${enable_maintainer_mode+set}" = set; then
1569 enableval="$enable_maintainer_mode"
1570 USE_MAINTAINER_MODE=$enableval
1572 USE_MAINTAINER_MODE=no
1575 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1578 if test $USE_MAINTAINER_MODE = yes; then
1579 MAINTAINER_MODE_TRUE=
1580 MAINTAINER_MODE_FALSE='#'
1582 MAINTAINER_MODE_TRUE='#'
1583 MAINTAINER_MODE_FALSE=
1585 MAINT=$MAINTAINER_MODE_TRUE
1589 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1590 echo "configure:1591: checking for Cygwin environment" >&5
1591 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1592 echo $ac_n "(cached) $ac_c" 1>&6
1594 cat > conftest.$ac_ext <<EOF
1595 #line 1596 "configure"
1596 #include "confdefs.h"
1601 #define __CYGWIN__ __CYGWIN32__
1606 if { (eval echo configure:1607: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1610 echo "configure: failed program was:" >&5
1611 cat conftest.$ac_ext >&5
1619 echo "$ac_t""$ac_cv_cygwin" 1>&6
1621 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1622 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1623 echo "configure:1624: checking for mingw32 environment" >&5
1624 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1625 echo $ac_n "(cached) $ac_c" 1>&6
1627 cat > conftest.$ac_ext <<EOF
1628 #line 1629 "configure"
1629 #include "confdefs.h"
1635 if { (eval echo configure:1636: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1639 echo "configure: failed program was:" >&5
1640 cat conftest.$ac_ext >&5
1648 echo "$ac_t""$ac_cv_mingw32" 1>&6
1650 test "$ac_cv_mingw32" = yes && MINGW32=yes
1653 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1654 echo "configure:1655: checking for executable suffix" >&5
1655 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1656 echo $ac_n "(cached) $ac_c" 1>&6
1658 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1662 echo 'int main () { return 0; }' > conftest.$ac_ext
1664 if { (eval echo configure:1665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1665 for file in conftest.*; do
1667 *.c | *.o | *.obj) ;;
1668 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1672 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1675 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1680 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1681 echo "$ac_t""${ac_cv_exeext}" 1>&6
1685 # configure.host sets the following important variables
1686 # libgcj_cflags - host specific C compiler flags
1687 # libgcj_cxxflags - host specific C++ compiler flags
1688 # libgcj_javaflags - host specific Java compiler flags
1694 . ${srcdir}/configure.host
1696 LIBGCJ_CFLAGS="${libgcj_cflags}"
1697 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
1698 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
1707 # Only use libltdl for non-newlib builds.
1708 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
1709 case $enable_ltdl_convenience in
1710 no) { echo "configure: error: this package needs a convenience libltdl" 1>&2; exit 1; } ;;
1711 "") enable_ltdl_convenience=yes
1712 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
1714 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
1715 INCLTDL='-I${top_srcdir}/''libltdl'
1719 cat >> confdefs.h <<\EOF
1723 # Sigh. Libtool's macro doesn't do the right thing.
1724 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
1725 # FIXME: this is a hack.
1726 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
1727 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
1732 # Check whether --enable-shared or --disable-shared was given.
1733 if test "${enable_shared+set}" = set; then
1734 enableval="$enable_shared"
1735 p=${PACKAGE-default}
1737 yes) enable_shared=yes ;;
1738 no) enable_shared=no ;;
1741 # Look at the argument we got. We use all the common list separators.
1742 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1743 for pkg in $enableval; do
1744 if test "X$pkg" = "X$p"; then
1755 # Check whether --enable-static or --disable-static was given.
1756 if test "${enable_static+set}" = set; then
1757 enableval="$enable_static"
1758 p=${PACKAGE-default}
1760 yes) enable_static=yes ;;
1761 no) enable_static=no ;;
1764 # Look at the argument we got. We use all the common list separators.
1765 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1766 for pkg in $enableval; do
1767 if test "X$pkg" = "X$p"; then
1778 # Check whether --enable-fast-install or --disable-fast-install was given.
1779 if test "${enable_fast_install+set}" = set; then
1780 enableval="$enable_fast_install"
1781 p=${PACKAGE-default}
1783 yes) enable_fast_install=yes ;;
1784 no) enable_fast_install=no ;;
1786 enable_fast_install=no
1787 # Look at the argument we got. We use all the common list separators.
1788 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1789 for pkg in $enableval; do
1790 if test "X$pkg" = "X$p"; then
1791 enable_fast_install=yes
1798 enable_fast_install=yes
1801 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1802 if test "${with_gnu_ld+set}" = set; then
1803 withval="$with_gnu_ld"
1804 test "$withval" = no || with_gnu_ld=yes
1810 if test "$GCC" = yes; then
1811 # Check if gcc -print-prog-name=ld gives a path.
1812 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1813 echo "configure:1814: checking for ld used by GCC" >&5
1816 # gcc leaves a trailing carriage return which upsets mingw
1817 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1819 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1822 # Accept absolute paths.
1823 [\\/]* | [A-Za-z]:[\\/]*)
1824 re_direlt='/[^/][^/]*/\.\./'
1825 # Canonicalize the path of ld
1826 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1827 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1828 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1830 test -z "$LD" && LD="$ac_prog"
1833 # If it fails, then pretend we aren't using GCC.
1837 # If it is relative, then search for the first ld in PATH.
1841 elif test "$with_gnu_ld" = yes; then
1842 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1843 echo "configure:1844: checking for GNU ld" >&5
1845 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1846 echo "configure:1847: checking for non-GNU ld" >&5
1848 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1849 echo $ac_n "(cached) $ac_c" 1>&6
1851 if test -z "$LD"; then
1852 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1853 for ac_dir in $PATH; do
1854 test -z "$ac_dir" && ac_dir=.
1855 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1856 lt_cv_path_LD="$ac_dir/$ac_prog"
1857 # Check to see if the program is GNU ld. I'd rather use --version,
1858 # but apparently some GNU ld's only accept -v.
1859 # Break only if it was the GNU/non-GNU ld that we prefer.
1860 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1861 test "$with_gnu_ld" != no && break
1863 test "$with_gnu_ld" != yes && break
1869 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1874 if test -n "$LD"; then
1875 echo "$ac_t""$LD" 1>&6
1877 echo "$ac_t""no" 1>&6
1879 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1880 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1881 echo "configure:1882: checking if the linker ($LD) is GNU ld" >&5
1882 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1883 echo $ac_n "(cached) $ac_c" 1>&6
1885 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1886 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1887 lt_cv_prog_gnu_ld=yes
1889 lt_cv_prog_gnu_ld=no
1893 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1894 with_gnu_ld=$lt_cv_prog_gnu_ld
1897 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1898 echo "configure:1899: checking for $LD option to reload object files" >&5
1899 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1900 echo $ac_n "(cached) $ac_c" 1>&6
1902 lt_cv_ld_reload_flag='-r'
1905 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1906 reload_flag=$lt_cv_ld_reload_flag
1907 test -n "$reload_flag" && reload_flag=" $reload_flag"
1909 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1910 echo "configure:1911: checking for BSD-compatible nm" >&5
1911 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1912 echo $ac_n "(cached) $ac_c" 1>&6
1914 if test -n "$NM"; then
1915 # Let the user override the test.
1918 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1919 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1920 test -z "$ac_dir" && ac_dir=.
1921 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1922 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1923 # Check to see if the nm accepts a BSD-compat flag.
1924 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1925 # nm: unknown option "B" ignored
1926 # Tru64's nm complains that /dev/null is an invalid object file
1927 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1928 lt_cv_path_NM="$tmp_nm -B"
1930 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1931 lt_cv_path_NM="$tmp_nm -p"
1934 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1935 continue # so that we can try to find one that supports BSD flags
1940 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1945 echo "$ac_t""$NM" 1>&6
1947 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1948 echo "configure:1949: checking how to recognise dependant libraries" >&5
1949 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1950 echo $ac_n "(cached) $ac_c" 1>&6
1952 lt_cv_file_magic_cmd='$MAGIC_CMD'
1953 lt_cv_file_magic_test_file=
1954 lt_cv_deplibs_check_method='unknown'
1955 # Need to set the preceding variable on all platforms that support
1956 # interlibrary dependencies.
1957 # 'none' -- dependencies not supported.
1958 # `unknown' -- same as none, but documents that we really don't know.
1959 # 'pass_all' -- all dependencies passed with no checks.
1960 # 'test_compile' -- check by making test program.
1961 # 'file_magic [regex]' -- check by looking for files in library path
1962 # which responds to the $file_magic_cmd with a given egrep regex.
1963 # If you have `file' or equivalent on your system and you're not sure
1964 # whether `pass_all' will *always* work, you probably want this one.
1968 lt_cv_deplibs_check_method=pass_all
1972 lt_cv_deplibs_check_method=pass_all
1976 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1977 lt_cv_file_magic_cmd='/usr/bin/file -L'
1978 lt_cv_file_magic_test_file=/shlib/libc.so
1981 cygwin* | mingw* |pw32*)
1982 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1983 lt_cv_file_magic_cmd='$OBJDUMP -f'
1986 darwin* | rhapsody*)
1987 # this will be overwritten by pass_all, but leave it in just in case
1988 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1989 lt_cv_file_magic_cmd='/usr/bin/file -L'
1991 rhapsody* | darwin1.012)
1992 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1995 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1998 lt_cv_deplibs_check_method=pass_all
2001 freebsd* | kfreebsd*-gnu)
2002 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2005 # Not sure whether the presence of OpenBSD here was a mistake.
2006 # Let's accept both of them until this is cleared up.
2007 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2008 lt_cv_file_magic_cmd=/usr/bin/file
2009 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2013 lt_cv_deplibs_check_method=pass_all
2018 lt_cv_deplibs_check_method=pass_all
2024 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2025 lt_cv_file_magic_cmd=/usr/bin/file
2026 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2029 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
2030 lt_cv_file_magic_cmd=/usr/bin/file
2031 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2039 # this will be overridden with pass_all, but let us keep it just in case
2040 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2044 *-32|*"-32 ") libmagic=32-bit;;
2045 *-n32|*"-n32 ") libmagic=N32;;
2046 *-64|*"-64 ") libmagic=64-bit;;
2047 *) libmagic=never-match;;
2049 # this will be overridden with pass_all, but let us keep it just in case
2050 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2053 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2054 lt_cv_deplibs_check_method=pass_all
2057 # This must be Linux ELF.
2060 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* | sh* )
2061 lt_cv_deplibs_check_method=pass_all ;;
2063 # glibc up to 2.1.1 does not perform some relocations on ARM
2064 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2066 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2069 netbsd* | knetbsd*-gnu)
2070 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2071 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2073 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2078 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2079 lt_cv_file_magic_cmd=/usr/bin/file
2080 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2083 osf3* | osf4* | osf5*)
2084 # this will be overridden with pass_all, but let us keep it just in case
2085 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2086 lt_cv_file_magic_test_file=/shlib/libc.so
2087 lt_cv_deplibs_check_method=pass_all
2091 lt_cv_deplibs_check_method=pass_all
2095 lt_cv_deplibs_check_method=pass_all
2096 lt_cv_file_magic_test_file=/lib/libc.so
2099 sysv5uw[78]* | sysv4*uw2*)
2100 lt_cv_deplibs_check_method=pass_all
2103 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2104 case $host_vendor in
2106 lt_cv_deplibs_check_method=pass_all
2109 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]'
2110 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2118 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2119 file_magic_cmd=$lt_cv_file_magic_cmd
2120 deplibs_check_method=$lt_cv_deplibs_check_method
2122 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2123 echo "configure:2124: checking for object suffix" >&5
2124 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2125 echo $ac_n "(cached) $ac_c" 1>&6
2128 echo 'int i = 1;' > conftest.$ac_ext
2129 if { (eval echo configure:2130: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2130 for ac_file in conftest.*; do
2133 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2137 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2142 echo "$ac_t""$ac_cv_objext" 1>&6
2143 OBJEXT=$ac_cv_objext
2144 ac_objext=$ac_cv_objext
2146 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2148 # Only perform the check for file, if the check method requires it
2149 case $deplibs_check_method in
2151 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2152 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2153 echo "configure:2154: checking for ${ac_tool_prefix}file" >&5
2154 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2155 echo $ac_n "(cached) $ac_c" 1>&6
2159 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2162 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2165 ac_save_MAGIC_CMD="$MAGIC_CMD"
2166 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2167 ac_dummy="/usr/bin:$PATH"
2168 for ac_dir in $ac_dummy; do
2169 test -z "$ac_dir" && ac_dir=.
2170 if test -f $ac_dir/${ac_tool_prefix}file; then
2171 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2172 if test -n "$file_magic_test_file"; then
2173 case $deplibs_check_method in
2175 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2176 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2177 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2178 egrep "$file_magic_regex" > /dev/null; then
2183 *** Warning: the command libtool uses to detect shared libraries,
2184 *** $file_magic_cmd, produces output that libtool cannot recognize.
2185 *** The result is that libtool may fail to recognize shared libraries
2186 *** as such. This will affect the creation of libtool libraries that
2187 *** depend on shared libraries, but programs linked with such libtool
2188 *** libraries will work regardless of this problem. Nevertheless, you
2189 *** may want to report the problem to your system manager and/or to
2190 *** bug-libtool@gnu.org
2200 MAGIC_CMD="$ac_save_MAGIC_CMD"
2205 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2206 if test -n "$MAGIC_CMD"; then
2207 echo "$ac_t""$MAGIC_CMD" 1>&6
2209 echo "$ac_t""no" 1>&6
2212 if test -z "$lt_cv_path_MAGIC_CMD"; then
2213 if test -n "$ac_tool_prefix"; then
2214 echo $ac_n "checking for file""... $ac_c" 1>&6
2215 echo "configure:2216: checking for file" >&5
2216 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2217 echo $ac_n "(cached) $ac_c" 1>&6
2221 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2224 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2227 ac_save_MAGIC_CMD="$MAGIC_CMD"
2228 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2229 ac_dummy="/usr/bin:$PATH"
2230 for ac_dir in $ac_dummy; do
2231 test -z "$ac_dir" && ac_dir=.
2232 if test -f $ac_dir/file; then
2233 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2234 if test -n "$file_magic_test_file"; then
2235 case $deplibs_check_method in
2237 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2238 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2239 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2240 egrep "$file_magic_regex" > /dev/null; then
2245 *** Warning: the command libtool uses to detect shared libraries,
2246 *** $file_magic_cmd, produces output that libtool cannot recognize.
2247 *** The result is that libtool may fail to recognize shared libraries
2248 *** as such. This will affect the creation of libtool libraries that
2249 *** depend on shared libraries, but programs linked with such libtool
2250 *** libraries will work regardless of this problem. Nevertheless, you
2251 *** may want to report the problem to your system manager and/or to
2252 *** bug-libtool@gnu.org
2262 MAGIC_CMD="$ac_save_MAGIC_CMD"
2267 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2268 if test -n "$MAGIC_CMD"; then
2269 echo "$ac_t""$MAGIC_CMD" 1>&6
2271 echo "$ac_t""no" 1>&6
2283 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2284 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2285 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2286 echo "configure:2287: checking for $ac_word" >&5
2287 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2288 echo $ac_n "(cached) $ac_c" 1>&6
2290 if test -n "$RANLIB"; then
2291 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2293 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2295 for ac_dir in $ac_dummy; do
2296 test -z "$ac_dir" && ac_dir=.
2297 if test -f $ac_dir/$ac_word; then
2298 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2305 RANLIB="$ac_cv_prog_RANLIB"
2306 if test -n "$RANLIB"; then
2307 echo "$ac_t""$RANLIB" 1>&6
2309 echo "$ac_t""no" 1>&6
2313 if test -z "$ac_cv_prog_RANLIB"; then
2314 if test -n "$ac_tool_prefix"; then
2315 # Extract the first word of "ranlib", so it can be a program name with args.
2316 set dummy ranlib; ac_word=$2
2317 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2318 echo "configure:2319: checking for $ac_word" >&5
2319 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2320 echo $ac_n "(cached) $ac_c" 1>&6
2322 if test -n "$RANLIB"; then
2323 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2325 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2327 for ac_dir in $ac_dummy; do
2328 test -z "$ac_dir" && ac_dir=.
2329 if test -f $ac_dir/$ac_word; then
2330 ac_cv_prog_RANLIB="ranlib"
2335 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2338 RANLIB="$ac_cv_prog_RANLIB"
2339 if test -n "$RANLIB"; then
2340 echo "$ac_t""$RANLIB" 1>&6
2342 echo "$ac_t""no" 1>&6
2350 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2351 set dummy ${ac_tool_prefix}strip; ac_word=$2
2352 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2353 echo "configure:2354: checking for $ac_word" >&5
2354 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2355 echo $ac_n "(cached) $ac_c" 1>&6
2357 if test -n "$STRIP"; then
2358 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2360 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2362 for ac_dir in $ac_dummy; do
2363 test -z "$ac_dir" && ac_dir=.
2364 if test -f $ac_dir/$ac_word; then
2365 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2372 STRIP="$ac_cv_prog_STRIP"
2373 if test -n "$STRIP"; then
2374 echo "$ac_t""$STRIP" 1>&6
2376 echo "$ac_t""no" 1>&6
2380 if test -z "$ac_cv_prog_STRIP"; then
2381 if test -n "$ac_tool_prefix"; then
2382 # Extract the first word of "strip", so it can be a program name with args.
2383 set dummy strip; ac_word=$2
2384 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2385 echo "configure:2386: checking for $ac_word" >&5
2386 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2387 echo $ac_n "(cached) $ac_c" 1>&6
2389 if test -n "$STRIP"; then
2390 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2392 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2394 for ac_dir in $ac_dummy; do
2395 test -z "$ac_dir" && ac_dir=.
2396 if test -f $ac_dir/$ac_word; then
2397 ac_cv_prog_STRIP="strip"
2402 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2405 STRIP="$ac_cv_prog_STRIP"
2406 if test -n "$STRIP"; then
2407 echo "$ac_t""$STRIP" 1>&6
2409 echo "$ac_t""no" 1>&6
2418 # Check for any special flags to pass to ltconfig.
2419 libtool_flags="--cache-file=$cache_file"
2420 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2421 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2422 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2423 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2424 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2425 libtool_flags="$libtool_flags --enable-dlopen"
2427 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2428 if test "${enable_libtool_lock+set}" = set; then
2429 enableval="$enable_libtool_lock"
2433 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2434 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2436 # Check whether --with-pic or --without-pic was given.
2437 if test "${with_pic+set}" = set; then
2444 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2445 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2447 # Some flags need to be propagated to the compiler or linker for good
2451 # Find out which ABI we are using.
2452 echo '#line 2453 "configure"' > conftest.$ac_ext
2453 if { (eval echo configure:2454: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2454 if test "$lt_cv_prog_gnu_ld" = yes; then
2455 case `/usr/bin/file conftest.$ac_objext` in
2457 LD="${LD-ld} -melf32bsmip"
2460 LD="${LD-ld} -melf32bmipn32"
2463 LD="${LD-ld} -melf64bmip"
2467 case `/usr/bin/file conftest.$ac_objext` in
2484 # Find out which ABI we are using.
2485 echo 'int i;' > conftest.$ac_ext
2486 if { (eval echo configure:2487: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2487 case "`/usr/bin/file conftest.o`" in
2499 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
2500 # Find out which ABI we are using.
2501 echo 'int i;' > conftest.$ac_ext
2502 if { (eval echo configure:2503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2503 case "`/usr/bin/file conftest.o`" in
2507 LD="${LD-ld} -m elf_i386"
2509 ppc64-*linux*|powerpc64-*linux*)
2510 LD="${LD-ld} -m elf32ppclinux"
2513 LD="${LD-ld} -m elf_s390"
2516 LD="${LD-ld} -m elf32_sparc"
2523 LD="${LD-ld} -m elf_x86_64"
2525 ppc*-*linux*|powerpc*-*linux*)
2526 LD="${LD-ld} -m elf64ppc"
2529 LD="${LD-ld} -m elf64_s390"
2532 LD="${LD-ld} -m elf64_sparc"
2542 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2543 SAVE_CFLAGS="$CFLAGS"
2544 CFLAGS="$CFLAGS -belf"
2545 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2546 echo "configure:2547: checking whether the C compiler needs -belf" >&5
2547 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2548 echo $ac_n "(cached) $ac_c" 1>&6
2552 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2553 ac_cpp='$CPP $CPPFLAGS'
2554 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2555 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2556 cross_compiling=$ac_cv_prog_cc_cross
2558 cat > conftest.$ac_ext <<EOF
2559 #line 2560 "configure"
2560 #include "confdefs.h"
2566 if { (eval echo configure:2567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2568 lt_cv_cc_needs_belf=yes
2570 echo "configure: failed program was:" >&5
2571 cat conftest.$ac_ext >&5
2573 lt_cv_cc_needs_belf=no
2577 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2578 ac_cpp='$CPP $CPPFLAGS'
2579 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2580 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2581 cross_compiling=$ac_cv_prog_cc_cross
2585 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2586 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2587 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2588 CFLAGS="$SAVE_CFLAGS"
2595 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2596 echo "configure:2597: checking how to run the C++ preprocessor" >&5
2597 if test -z "$CXXCPP"; then
2598 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2599 echo $ac_n "(cached) $ac_c" 1>&6
2602 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2603 ac_cpp='$CXXCPP $CPPFLAGS'
2604 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2605 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2606 cross_compiling=$ac_cv_prog_cxx_cross
2607 CXXCPP="${CXX-g++} -E"
2608 cat > conftest.$ac_ext <<EOF
2609 #line 2610 "configure"
2610 #include "confdefs.h"
2613 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2614 { (eval echo configure:2615: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2615 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2616 if test -z "$ac_err"; then
2620 echo "configure: failed program was:" >&5
2621 cat conftest.$ac_ext >&5
2626 ac_cv_prog_CXXCPP="$CXXCPP"
2628 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2629 ac_cpp='$CPP $CPPFLAGS'
2630 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2631 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2632 cross_compiling=$ac_cv_prog_cc_cross
2635 CXXCPP="$ac_cv_prog_CXXCPP"
2636 echo "$ac_t""$CXXCPP" 1>&6
2639 # Save cache, so that ltconfig can load it
2640 cat > confcache <<\EOF
2641 # This file is a shell script that caches the results of configure
2642 # tests run on this system so they can be shared between configure
2643 # scripts and configure runs. It is not useful on other systems.
2644 # If it contains results you don't want to keep, you may remove or edit it.
2646 # By default, configure uses ./config.cache as the cache file,
2647 # creating it if it does not exist already. You can give configure
2648 # the --cache-file=FILE option to use a different cache file; that is
2649 # what configure does when it calls configure scripts in
2650 # subdirectories, so they share the cache.
2651 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2652 # config.status only pays attention to the cache file if you give it the
2653 # --recheck option to rerun configure.
2656 # The following way of writing the cache mishandles newlines in values,
2657 # but we know of no workaround that is simple, portable, and efficient.
2658 # So, don't put newlines in cache variables' values.
2659 # Ultrix sh set writes to stderr and can't be redirected directly,
2660 # and sets the high bit in the cache file unless we assign to the vars.
2662 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2664 # `set' does not quote correctly, so add quotes (double-quote substitution
2665 # turns \\\\ into \\, and sed turns \\ into \).
2667 -e "s/'/'\\\\''/g" \
2668 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2671 # `set' quotes correctly as required by POSIX, so do not add quotes.
2672 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2675 if cmp -s $cache_file confcache; then
2678 if test -w $cache_file; then
2679 echo "updating cache $cache_file"
2680 cat confcache > $cache_file
2682 echo "not updating unwritable cache $cache_file"
2688 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2689 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2690 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2691 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2692 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2693 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2694 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2695 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2696 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2697 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2699 # Reload cache, that may have been modified by ltconfig
2700 if test -r "$cache_file"; then
2701 echo "loading cache $cache_file"
2704 echo "creating cache $cache_file"
2709 # This can be used to rebuild libtool when needed
2710 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2712 # Always use our own libtool.
2713 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2715 # Redirect the config.log output again, so that the ltconfig log is not
2716 # clobbered by the next message.
2717 exec 5>>./config.log
2721 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2723 lt_save_CFLAGS="$CFLAGS"
2724 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2725 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2726 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2727 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2728 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2729 deplibs_check_method="$deplibs_check_method" \
2730 file_magic_cmd="$file_magic_cmd" \
2731 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2732 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2733 || { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2735 CFLAGS="$lt_save_CFLAGS"
2737 # Redirect the config.log output again, so that the ltconfig log is not
2738 # clobbered by the next message.
2739 exec 5>>./config.log
2749 if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
2758 if test -d $srcdir/testsuite; then
2760 TESTSUBDIR_FALSE='#'
2766 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
2767 if test "${enable_getenv_properties+set}" = set; then
2768 enableval="$enable_getenv_properties"
2773 if test -z "$enable_getenv_properties"; then
2774 enable_getenv_properties=${enable_getenv_properties_default-yes}
2776 if test "$enable_getenv_properties" = no; then
2777 cat >> confdefs.h <<\EOF
2778 #define DISABLE_GETENV_PROPERTIES 1
2783 if test -z "$enable_main_args"; then
2784 enable_main_args=${enable_main_args_default-yes}
2786 if test "$enable_main_args" = no; then
2787 cat >> confdefs.h <<\EOF
2788 #define DISABLE_MAIN_ARGS 1
2794 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
2795 if test "${enable_hash_synchronization+set}" = set; then
2796 enableval="$enable_hash_synchronization"
2801 if test -z "$enable_hash_synchronization"; then
2802 enable_hash_synchronization=$enable_hash_synchronization_default
2805 # Do we allow intermodule optimizations (i.e. compiling many files at once)?
2806 # Check whether --enable-libgcj-multifile or --disable-libgcj-multifile was given.
2807 if test "${enable_libgcj_multifile+set}" = set; then
2808 enableval="$enable_libgcj_multifile"
2809 case "${enableval}" in
2810 yes) enable_libgcj_multifile=yes ;;
2811 no) enable_libgcj_multifile=no ;;
2812 *) { echo "configure: error: bad value ${enableval} for --enable-libgcj-multifile" 1>&2; exit 1; } ;;
2815 enable_libgcj_multifile=no
2820 if test "$enable_libgcj_multifile" = yes; then
2828 # What is the native OS API for MinGW?
2829 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
2830 if test "${with_win32_nlsapi+set}" = set; then
2831 withval="$with_win32_nlsapi"
2833 case "${withval}" in
2834 ansi) with_win32_nlsapi=ansi ;;
2835 unicows) with_win32_nlsapi=unicows ;;
2836 unicode) with_win32_nlsapi=unicode ;;
2837 *) { echo "configure: error: Bad value ${withval} for --with-win32-nlsapi." 1>&2; exit 1; } ;;
2840 with_win32_nlsapi=ansi
2844 case "${with_win32_nlsapi}" in
2846 cat >> confdefs.h <<\EOF
2847 #define MINGW_LIBGCJ_UNICODE 1
2853 if test "${slow_pthread_self}" = "yes"; then
2854 cat >> confdefs.h <<\EOF
2855 #define SLOW_PTHREAD_SELF 1
2863 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
2864 if test "${enable_libgcj_debug+set}" = set; then
2865 enableval="$enable_libgcj_debug"
2866 if test "$enable_libgcj_debug" = yes; then
2867 cat >> confdefs.h <<\EOF
2876 # Check whether --enable-interpreter or --disable-interpreter was given.
2877 if test "${enable_interpreter+set}" = set; then
2878 enableval="$enable_interpreter"
2879 if test "$enable_interpreter" = yes; then
2880 # This can also be set in configure.host.
2881 libgcj_interpreter=yes
2882 elif test "$enable_interpreter" = no; then
2883 libgcj_interpreter=no
2888 if test "$libgcj_interpreter" = yes; then
2889 cat >> confdefs.h <<\EOF
2890 #define INTERPRETER 1
2894 INTERPRETER="$libgcj_interpreter"
2897 echo $ac_n "checking for exception model to use""... $ac_c" 1>&6
2898 echo "configure:2899: checking for exception model to use" >&5
2901 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2902 ac_cpp='$CXXCPP $CPPFLAGS'
2903 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2904 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2905 cross_compiling=$ac_cv_prog_cxx_cross
2907 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
2908 if test "${enable_sjlj_exceptions+set}" = set; then
2909 enableval="$enable_sjlj_exceptions"
2912 cat > conftest.$ac_ext << EOF
2913 #line 2914 "configure"
2922 old_CXXFLAGS="$CXXFLAGS"
2924 if { (eval echo configure:2925: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2925 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
2926 enable_sjlj_exceptions=yes
2927 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
2928 enable_sjlj_exceptions=no
2931 CXXFLAGS="$old_CXXFLAGS"
2935 if test x$enable_sjlj_exceptions = xyes; then
2936 cat >> confdefs.h <<\EOF
2937 #define SJLJ_EXCEPTIONS 1
2940 ac_exception_model_name=sjlj
2941 elif test x$enable_sjlj_exceptions = xno; then
2942 ac_exception_model_name="call frame"
2944 { echo "configure: error: unable to detect exception model" 1>&2; exit 1; }
2947 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2948 ac_cpp='$CPP $CPPFLAGS'
2949 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2950 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2951 cross_compiling=$ac_cv_prog_cc_cross
2953 echo "$ac_t""$ac_exception_model_name" 1>&6
2955 # If we are non using SJLJ exceptions, and this host does not have support
2956 # for unwinding from a signal handler, enable checked dereferences and divides.
2957 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
2958 CHECKREFSPEC=-fcheck-references
2959 DIVIDESPEC=-fuse-divide-subroutine
2963 # Check whether --enable-java-net or --disable-java-net was given.
2964 if test "${enable_java_net+set}" = set; then
2965 enableval="$enable_java_net"
2970 if test -z "$enable_java_net"; then
2971 enable_java_net=${enable_java_net_default-yes}
2973 if test "$enable_java_net" = no; then
2974 cat >> confdefs.h <<\EOF
2975 #define DISABLE_JAVA_NET 1
2980 # Check whether --with-libffi or --without-libffi was given.
2981 if test "${with_libffi+set}" = set; then
2982 withval="$with_libffi"
2985 with_libffi=${with_libffi_default-yes}
2991 if test "$with_libffi" != no; then
2992 cat >> confdefs.h <<\EOF
2993 #define USE_LIBFFI 1
2996 LIBFFI=../libffi/libffi_convenience.la
2997 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
3002 # Check whether --enable-jvmpi or --disable-jvmpi was given.
3003 if test "${enable_jvmpi+set}" = set; then
3004 enableval="$enable_jvmpi"
3009 if test "$enable_jvmpi" != no; then
3010 cat >> confdefs.h <<\EOF
3011 #define ENABLE_JVMPI 1
3016 TARGET_ECOS=${PROCESS-"no"}
3017 # Check whether --with-ecos or --without-ecos was given.
3018 if test "${with_ecos+set}" = set; then
3019 withval="$with_ecos"
3020 TARGET_ECOS="$with_ecos"
3029 case "$TARGET_ECOS" in
3034 PLATFORMOBJS=win32.lo
3037 echo $ac_n "checking whether 'ld' is at least 2.13""... $ac_c" 1>&6
3038 echo "configure:3039: checking whether 'ld' is at least 2.13" >&5
3039 LD_PROG=`$CC --print-prog-name=ld`
3040 LD_VERSION=`$LD_PROG --version`
3041 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
3042 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
3043 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
3046 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
3050 if test "x$LD_OK" != x; then
3051 echo "$ac_t""yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" 1>&6
3053 echo "$ac_t""no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" 1>&6
3054 echo "configure: warning: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." 1>&2
3055 cat >> confdefs.h <<\EOF
3056 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
3064 PLATFORMOBJS=posix.lo
3072 cat >> confdefs.h <<\EOF
3076 PLATFORMOBJS=posix.lo
3083 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3084 echo "configure:3085: checking how to run the C preprocessor" >&5
3085 # On Suns, sometimes $CPP names a directory.
3086 if test -n "$CPP" && test -d "$CPP"; then
3089 if test -z "$CPP"; then
3090 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
3091 echo $ac_n "(cached) $ac_c" 1>&6
3093 # This must be in double quotes, not single quotes, because CPP may get
3094 # substituted into the Makefile and "${CC-cc}" will confuse make.
3096 # On the NeXT, cc -E runs the code through the compiler's parser,
3097 # not just through cpp.
3098 cat > conftest.$ac_ext <<EOF
3099 #line 3100 "configure"
3100 #include "confdefs.h"
3104 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3105 { (eval echo configure:3106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3106 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3107 if test -z "$ac_err"; then
3111 echo "configure: failed program was:" >&5
3112 cat conftest.$ac_ext >&5
3114 CPP="${CC-cc} -E -traditional-cpp"
3115 cat > conftest.$ac_ext <<EOF
3116 #line 3117 "configure"
3117 #include "confdefs.h"
3121 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3122 { (eval echo configure:3123: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3123 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3124 if test -z "$ac_err"; then
3128 echo "configure: failed program was:" >&5
3129 cat conftest.$ac_ext >&5
3131 CPP="${CC-cc} -nologo -E"
3132 cat > conftest.$ac_ext <<EOF
3133 #line 3134 "configure"
3134 #include "confdefs.h"
3138 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3139 { (eval echo configure:3140: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3140 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3141 if test -z "$ac_err"; then
3145 echo "configure: failed program was:" >&5
3146 cat conftest.$ac_ext >&5
3155 ac_cv_prog_CPP="$CPP"
3157 CPP="$ac_cv_prog_CPP"
3159 ac_cv_prog_CPP="$CPP"
3161 echo "$ac_t""$CPP" 1>&6
3163 cat > conftest.$ac_ext <<EOF
3164 #line 3165 "configure"
3165 #include "confdefs.h"
3168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3169 egrep "uint32_t" >/dev/null 2>&1; then
3171 cat >> confdefs.h <<\EOF
3172 #define HAVE_INT32_DEFINED 1
3178 cat > conftest.$ac_ext <<EOF
3179 #line 3180 "configure"
3180 #include "confdefs.h"
3181 #include <inttypes.h>
3183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3184 egrep "uint32_t" >/dev/null 2>&1; then
3186 cat >> confdefs.h <<\EOF
3187 #define HAVE_INT32_DEFINED 1
3193 cat > conftest.$ac_ext <<EOF
3194 #line 3195 "configure"
3195 #include "confdefs.h"
3196 #include <sys/types.h>
3198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3199 egrep "u_int32_t" >/dev/null 2>&1; then
3201 cat >> confdefs.h <<\EOF
3202 #define HAVE_BSD_INT32_DEFINED 1
3208 cat > conftest.$ac_ext <<EOF
3209 #line 3210 "configure"
3210 #include "confdefs.h"
3211 #include <sys/config.h>
3213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3214 egrep "u_int32_t" >/dev/null 2>&1; then
3216 cat >> confdefs.h <<\EOF
3217 #define HAVE_BSD_INT32_DEFINED 1
3225 cat > conftest.$ac_ext <<EOF
3226 #line 3227 "configure"
3227 #include "confdefs.h"
3230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3231 egrep "mktime" >/dev/null 2>&1; then
3233 cat >> confdefs.h <<\EOF
3234 #define HAVE_MKTIME 1
3240 cat > conftest.$ac_ext <<EOF
3241 #line 3242 "configure"
3242 #include "confdefs.h"
3245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3246 egrep "localtime" >/dev/null 2>&1; then
3248 cat >> confdefs.h <<\EOF
3249 #define HAVE_LOCALTIME 1
3256 test -d java || mkdir java
3257 test -d java/io || mkdir java/io
3258 test -d gnu || mkdir gnu
3261 test -d java/lang || mkdir java/lang
3265 test -d java/net || mkdir java/net
3269 test -d gnu/java || mkdir gnu/java
3270 test -d gnu/java/net || mkdir gnu/java/net
3274 test -d gnu/java/nio || mkdir gnu/java/nio
3277 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
3282 SYSTEMSPEC="-lgdi32 -lwsock32 -lws2_32"
3283 if test "${with_win32_nlsapi}" = "unicows"; then
3284 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
3293 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
3296 # Check whether --with-system-zlib or --without-system-zlib was given.
3297 if test "${with_system_zlib+set}" = set; then
3298 withval="$with_system_zlib"
3307 # If we find X, set shell vars x_includes and x_libraries to the
3308 # paths, otherwise set no_x=yes.
3309 # Uses ac_ vars as temps to allow command line to override cache and checks.
3310 # --without-x overrides everything else, but does not touch the cache.
3311 echo $ac_n "checking for X""... $ac_c" 1>&6
3312 echo "configure:3313: checking for X" >&5
3314 # Check whether --with-x or --without-x was given.
3315 if test "${with_x+set}" = set; then
3320 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3321 if test "x$with_x" = xno; then
3322 # The user explicitly disabled X.
3325 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3326 # Both variables are already set.
3329 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
3330 echo $ac_n "(cached) $ac_c" 1>&6
3332 # One or both of the vars are not set, and there is no cached value.
3333 ac_x_includes=NO ac_x_libraries=NO
3335 if mkdir conftestdir; then
3337 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3338 cat > Imakefile <<'EOF'
3340 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3342 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3343 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3344 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3345 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3346 for ac_extension in a so sl; do
3347 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3348 test -f $ac_im_libdir/libX11.$ac_extension; then
3349 ac_im_usrlibdir=$ac_im_libdir; break
3352 # Screen out bogus values from the imake configuration. They are
3353 # bogus both because they are the default anyway, and because
3354 # using them would break gcc on systems where it needs fixed includes.
3355 case "$ac_im_incroot" in
3357 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
3359 case "$ac_im_usrlibdir" in
3361 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
3368 if test "$ac_x_includes" = NO; then
3369 # Guess where to find include files, by looking for this one X11 .h file.
3370 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
3372 # First, try using that file with no special directory specified.
3373 cat > conftest.$ac_ext <<EOF
3374 #line 3375 "configure"
3375 #include "confdefs.h"
3376 #include <$x_direct_test_include>
3378 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3379 { (eval echo configure:3380: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3380 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3381 if test -z "$ac_err"; then
3383 # We can compile using X headers with no special include directory.
3387 echo "configure: failed program was:" >&5
3388 cat conftest.$ac_ext >&5
3390 # Look for the header file in a standard set of common directories.
3391 # Check X11 before X11Rn because it is often a symlink to the current release.
3394 /usr/X11R6/include \
3395 /usr/X11R5/include \
3396 /usr/X11R4/include \
3399 /usr/include/X11R6 \
3400 /usr/include/X11R5 \
3401 /usr/include/X11R4 \
3403 /usr/local/X11/include \
3404 /usr/local/X11R6/include \
3405 /usr/local/X11R5/include \
3406 /usr/local/X11R4/include \
3408 /usr/local/include/X11 \
3409 /usr/local/include/X11R6 \
3410 /usr/local/include/X11R5 \
3411 /usr/local/include/X11R4 \
3415 /usr/XFree86/include/X11 \
3418 /usr/local/include \
3419 /usr/unsupported/include \
3420 /usr/athena/include \
3421 /usr/local/x11r5/include \
3422 /usr/lpp/Xamples/include \
3424 /usr/openwin/include \
3425 /usr/openwin/share/include \
3428 if test -r "$ac_dir/$x_direct_test_include"; then
3429 ac_x_includes=$ac_dir
3435 fi # $ac_x_includes = NO
3437 if test "$ac_x_libraries" = NO; then
3438 # Check for the libraries.
3440 test -z "$x_direct_test_library" && x_direct_test_library=Xt
3441 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
3443 # See if we find them without any special options.
3444 # Don't add to $LIBS permanently.
3445 ac_save_LIBS="$LIBS"
3446 LIBS="-l$x_direct_test_library $LIBS"
3447 cat > conftest.$ac_ext <<EOF
3448 #line 3449 "configure"
3449 #include "confdefs.h"
3452 ${x_direct_test_function}()
3455 if { (eval echo configure:3456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3457 LIBS="$ac_save_LIBS"
3458 # We can link X programs with no special library path.
3461 echo "configure: failed program was:" >&5
3462 cat conftest.$ac_ext >&5
3464 LIBS="$ac_save_LIBS"
3465 # First see if replacing the include by lib works.
3466 # Check X11 before X11Rn because it is often a symlink to the current release.
3467 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
3478 /usr/local/X11/lib \
3479 /usr/local/X11R6/lib \
3480 /usr/local/X11R5/lib \
3481 /usr/local/X11R4/lib \
3483 /usr/local/lib/X11 \
3484 /usr/local/lib/X11R6 \
3485 /usr/local/lib/X11R5 \
3486 /usr/local/lib/X11R4 \
3490 /usr/XFree86/lib/X11 \
3494 /usr/unsupported/lib \
3496 /usr/local/x11r5/lib \
3497 /usr/lpp/Xamples/lib \
3501 /usr/openwin/share/lib \
3504 for ac_extension in a so sl; do
3505 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
3506 ac_x_libraries=$ac_dir
3513 fi # $ac_x_libraries = NO
3515 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
3516 # Didn't find X anywhere. Cache the known absence of X.
3517 ac_cv_have_x="have_x=no"
3519 # Record where we found X for the cache.
3520 ac_cv_have_x="have_x=yes \
3521 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3525 eval "$ac_cv_have_x"
3528 if test "$have_x" != yes; then
3529 echo "$ac_t""$have_x" 1>&6
3532 # If each of the values was on the command line, it overrides each guess.
3533 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3534 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3535 # Update the cache value to reflect the command line values.
3536 ac_cv_have_x="have_x=yes \
3537 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3538 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
3541 if test "$no_x" = yes; then
3542 # Not all programs may use this symbol, but it does not hurt to define it.
3543 cat >> confdefs.h <<\EOF
3544 #define X_DISPLAY_MISSING 1
3547 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3549 if test -n "$x_includes"; then
3550 X_CFLAGS="$X_CFLAGS -I$x_includes"
3553 # It would also be nice to do this for all -L options, not just this one.
3554 if test -n "$x_libraries"; then
3555 X_LIBS="$X_LIBS -L$x_libraries"
3556 # For Solaris; some versions of Sun CC require a space after -R and
3557 # others require no space. Words are not sufficient . . . .
3558 case "`(uname -sr) 2>/dev/null`" in
3560 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
3561 echo "configure:3562: checking whether -R must be followed by a space" >&5
3562 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
3563 cat > conftest.$ac_ext <<EOF
3564 #line 3565 "configure"
3565 #include "confdefs.h"
3571 if { (eval echo configure:3572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3575 echo "configure: failed program was:" >&5
3576 cat conftest.$ac_ext >&5
3581 if test $ac_R_nospace = yes; then
3582 echo "$ac_t""no" 1>&6
3583 X_LIBS="$X_LIBS -R$x_libraries"
3585 LIBS="$ac_xsave_LIBS -R $x_libraries"
3586 cat > conftest.$ac_ext <<EOF
3587 #line 3588 "configure"
3588 #include "confdefs.h"
3594 if { (eval echo configure:3595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3598 echo "configure: failed program was:" >&5
3599 cat conftest.$ac_ext >&5
3604 if test $ac_R_space = yes; then
3605 echo "$ac_t""yes" 1>&6
3606 X_LIBS="$X_LIBS -R $x_libraries"
3608 echo "$ac_t""neither works" 1>&6
3611 LIBS="$ac_xsave_LIBS"
3615 # Check for system-dependent libraries X programs must link with.
3616 # Do this before checking for the system-independent R6 libraries
3617 # (-lICE), since we may need -lsocket or whatever for X linking.
3619 if test "$ISC" = yes; then
3620 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3622 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
3623 # libraries were built with DECnet support. And karl@cs.umb.edu says
3624 # the Alpha needs dnet_stub (dnet does not exist).
3625 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
3626 echo "configure:3627: checking for dnet_ntoa in -ldnet" >&5
3627 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3628 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3629 echo $ac_n "(cached) $ac_c" 1>&6
3631 ac_save_LIBS="$LIBS"
3633 cat > conftest.$ac_ext <<EOF
3634 #line 3635 "configure"
3635 #include "confdefs.h"
3636 /* Override any gcc2 internal prototype to avoid an error. */
3637 /* We use char because int might match the return type of a gcc2
3638 builtin and then its argument prototype would still apply. */
3645 if { (eval echo configure:3646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3647 eval "ac_cv_lib_$ac_lib_var=yes"
3649 echo "configure: failed program was:" >&5
3650 cat conftest.$ac_ext >&5
3652 eval "ac_cv_lib_$ac_lib_var=no"
3655 LIBS="$ac_save_LIBS"
3658 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3659 echo "$ac_t""yes" 1>&6
3660 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3662 echo "$ac_t""no" 1>&6
3665 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3666 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
3667 echo "configure:3668: checking for dnet_ntoa in -ldnet_stub" >&5
3668 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3669 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3670 echo $ac_n "(cached) $ac_c" 1>&6
3672 ac_save_LIBS="$LIBS"
3673 LIBS="-ldnet_stub $LIBS"
3674 cat > conftest.$ac_ext <<EOF
3675 #line 3676 "configure"
3676 #include "confdefs.h"
3677 /* Override any gcc2 internal prototype to avoid an error. */
3678 /* We use char because int might match the return type of a gcc2
3679 builtin and then its argument prototype would still apply. */
3686 if { (eval echo configure:3687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3688 eval "ac_cv_lib_$ac_lib_var=yes"
3690 echo "configure: failed program was:" >&5
3691 cat conftest.$ac_ext >&5
3693 eval "ac_cv_lib_$ac_lib_var=no"
3696 LIBS="$ac_save_LIBS"
3699 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3700 echo "$ac_t""yes" 1>&6
3701 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3703 echo "$ac_t""no" 1>&6
3708 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3709 # to get the SysV transport functions.
3710 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
3712 # The nsl library prevents programs from opening the X display
3713 # on Irix 5.2, according to dickey@clark.net.
3714 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3715 echo "configure:3716: checking for gethostbyname" >&5
3716 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then