• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GCC with patches for OS216


Commit MetaInfo

Revision904972fa160d5225c8f14382a1129daf71f453b5 (tree)
Zeit1999-08-03 12:16:40
AutorTom Tromey <tromey@cygn...>
CommiterTom Tromey

Log Message

* aclocal.m4, configure: Rebuilt for new libtool.

From-SVN: r28437

Ändern Zusammenfassung

Diff

--- a/libjava/ChangeLog
+++ b/libjava/ChangeLog
@@ -1,3 +1,7 @@
1+1999-08-02 Tom Tromey <tromey@cygnus.com>
2+
3+ * aclocal.m4, configure: Rebuilt for new libtool.
4+
15 1999-08-01 Tom Tromey <tromey@cygnus.com>
26
37 * configure: Rebuilt.
--- a/libjava/Makefile.in
+++ b/libjava/Makefile.in
@@ -87,6 +87,7 @@ LIBTOOL = @LIBTOOL@
8787 LN_S = @LN_S@
8888 MAINT = @MAINT@
8989 MAKEINFO = @MAKEINFO@
90+OBJDUMP = @OBJDUMP@
9091 PACKAGE = @PACKAGE@
9192 PERL = @PERL@
9293 RANLIB = @RANLIB@
@@ -96,7 +97,6 @@ THREADINCS = @THREADINCS@
9697 THREADLIBS = @THREADLIBS@
9798 THREADOBJS = @THREADOBJS@
9899 THREADSPEC = @THREADSPEC@
99-USE_SYMBOL_UNDERSCORE = @USE_SYMBOL_UNDERSCORE@
100100 VERSION = @VERSION@
101101 ZDEPS = @ZDEPS@
102102 ZINCS = @ZINCS@
--- a/libjava/aclocal.m4
+++ b/libjava/aclocal.m4
@@ -318,7 +318,7 @@ done<<>>dnl>>)
318318 changequote([,]))])
319319
320320
321-# serial 35 AC_PROG_LIBTOOL
321+# serial 40 AC_PROG_LIBTOOL
322322 AC_DEFUN(AC_PROG_LIBTOOL,
323323 [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
324324
@@ -327,8 +327,9 @@ AC_CACHE_SAVE
327327
328328 # Actually configure libtool. ac_aux_dir is where install-sh is found.
329329 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
330-LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
331-DLLTOOL="$DLLTOOL" AS="$AS" \
330+LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
331+LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
332+DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
332333 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
333334 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
334335 || AC_MSG_ERROR([libtool configure failed])
@@ -359,8 +360,6 @@ AC_REQUIRE([AC_PROG_RANLIB])dnl
359360 AC_REQUIRE([AC_PROG_CC])dnl
360361 AC_REQUIRE([AC_PROG_LD])dnl
361362 AC_REQUIRE([AC_PROG_NM])dnl
362-AC_REQUIRE([AC_SYS_NM_PARSE])dnl
363-AC_REQUIRE([AC_SYS_SYMBOL_UNDERSCORE])dnl
364363 AC_REQUIRE([AC_PROG_LN_S])dnl
365364 dnl
366365
@@ -369,10 +368,16 @@ libtool_flags="--cache-file=$cache_file"
369368 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
370369 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
371370 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
372-test "$lt_dlopen" = yes && libtool_flags="$libtool_flags --enable-dlopen"
373-test "$silent" = yes && libtool_flags="$libtool_flags --silent"
374371 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
375372 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
373+ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN],
374+[libtool_flags="$libtool_flags --enable-dlopen"])
375+ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
376+[libtool_flags="$libtool_flags --enable-win32-dll"])
377+AC_ARG_ENABLE(libtool-lock,
378+ [ --disable-libtool-lock avoid locking (might break parallel builds)])
379+test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
380+test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
376381
377382 # Some flags need to be propagated to the compiler or linker for good
378383 # libtool support.
@@ -408,33 +413,28 @@ case "$host" in
408413 fi
409414 ;;
410415
411-*-*-cygwin*)
412- AC_SYS_LIBTOOL_CYGWIN
416+ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
417+[*-*-cygwin* | *-*-mingw*)
418+ AC_CHECK_TOOL(DLLTOOL, dlltool, false)
419+ AC_CHECK_TOOL(AS, as, false)
420+ AC_CHECK_TOOL(OBJDUMP, objdump, false)
413421 ;;
414-
422+])
415423 esac
416-
417-# enable the --disable-libtool-lock switch
418-
419-AC_ARG_ENABLE(libtool-lock,
420-[ --disable-libtool-lock force libtool not to do file locking],
421-need_locks=$enableval,
422-need_locks=yes)
423-
424-if test x"$need_locks" = xno; then
425- libtool_flags="$libtool_flags --disable-lock"
426-fi
427424 ])
428425
429-# AC_LIBTOOL_DLOPEN - check for dlopen support
430-AC_DEFUN(AC_LIBTOOL_DLOPEN, [lt_dlopen=yes])
426+# AC_LIBTOOL_DLOPEN - enable checks for dlopen support
427+AC_DEFUN(AC_LIBTOOL_DLOPEN, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])])
428+
429+# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
430+AC_DEFUN(AC_LIBTOOL_WIN32_DLL, [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])])
431431
432432 # AC_ENABLE_SHARED - implement the --enable-shared flag
433433 # Usage: AC_ENABLE_SHARED[(DEFAULT)]
434434 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
435435 # `yes'.
436-AC_DEFUN(AC_ENABLE_SHARED,
437-[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
436+AC_DEFUN(AC_ENABLE_SHARED, [dnl
437+define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
438438 AC_ARG_ENABLE(shared,
439439 changequote(<<, >>)dnl
440440 << --enable-shared[=PKGS] build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT],
@@ -459,15 +459,15 @@ enable_shared=AC_ENABLE_SHARED_DEFAULT)dnl
459459 ])
460460
461461 # AC_DISABLE_SHARED - set the default shared flag to --disable-shared
462-AC_DEFUN(AC_DISABLE_SHARED,
463-[AC_ENABLE_SHARED(no)])
462+AC_DEFUN(AC_DISABLE_SHARED, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
463+AC_ENABLE_SHARED(no)])
464464
465465 # AC_ENABLE_STATIC - implement the --enable-static flag
466466 # Usage: AC_ENABLE_STATIC[(DEFAULT)]
467467 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
468468 # `yes'.
469-AC_DEFUN(AC_ENABLE_STATIC,
470-[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
469+AC_DEFUN(AC_ENABLE_STATIC, [dnl
470+define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
471471 AC_ARG_ENABLE(static,
472472 changequote(<<, >>)dnl
473473 << --enable-static[=PKGS] build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT],
@@ -492,16 +492,16 @@ enable_static=AC_ENABLE_STATIC_DEFAULT)dnl
492492 ])
493493
494494 # AC_DISABLE_STATIC - set the default static flag to --disable-static
495-AC_DEFUN(AC_DISABLE_STATIC,
496-[AC_ENABLE_STATIC(no)])
495+AC_DEFUN(AC_DISABLE_STATIC, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
496+AC_ENABLE_STATIC(no)])
497497
498498
499499 # AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
500500 # Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
501501 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
502502 # `yes'.
503-AC_DEFUN(AC_ENABLE_FAST_INSTALL,
504-[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
503+AC_DEFUN(AC_ENABLE_FAST_INSTALL, [dnl
504+define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
505505 AC_ARG_ENABLE(fast-install,
506506 changequote(<<, >>)dnl
507507 << --enable-fast-install[=PKGS] optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT],
@@ -526,9 +526,8 @@ enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl
526526 ])
527527
528528 # AC_ENABLE_FAST_INSTALL - set the default to --disable-fast-install
529-AC_DEFUN(AC_DISABLE_FAST_INSTALL,
530-[AC_ENABLE_FAST_INSTALL(no)])
531-
529+AC_DEFUN(AC_DISABLE_FAST_INSTALL, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
530+AC_ENABLE_FAST_INSTALL(no)])
532531
533532 # AC_PROG_LD - find the path to the GNU or non-GNU linker
534533 AC_DEFUN(AC_PROG_LD,
@@ -546,7 +545,7 @@ if test "$ac_cv_prog_gcc" = yes; then
546545 case "$ac_prog" in
547546 # Accept absolute paths.
548547 changequote(,)dnl
549- /* | [A-Za-z]:[\\/]*)
548+ [\\/]* | [A-Za-z]:[\\/]*)
550549 re_direlt='/[^/][^/]*/\.\./'
551550 changequote([,])dnl
552551 # Canonicalize the path of ld
@@ -572,10 +571,10 @@ else
572571 fi
573572 AC_CACHE_VAL(ac_cv_path_LD,
574573 [if test -z "$LD"; then
575- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
574+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
576575 for ac_dir in $PATH; do
577576 test -z "$ac_dir" && ac_dir=.
578- if test -f "$ac_dir/$ac_prog"; then
577+ if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
579578 ac_cv_path_LD="$ac_dir/$ac_prog"
580579 # Check to see if the program is GNU ld. I'd rather use --version,
581580 # but apparently some GNU ld's only accept -v.
@@ -620,10 +619,10 @@ AC_CACHE_VAL(ac_cv_path_NM,
620619 # Let the user override the test.
621620 ac_cv_path_NM="$NM"
622621 else
623- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
622+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
624623 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
625624 test -z "$ac_dir" && ac_dir=.
626- if test -f $ac_dir/nm; then
625+ if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
627626 # Check to see if the nm accepts a BSD-compat flag.
628627 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
629628 # nm: unknown option "B" ignored
@@ -647,227 +646,22 @@ AC_MSG_RESULT([$NM])
647646 AC_SUBST(NM)
648647 ])
649648
650-# AC_SYS_NM_PARSE - Check for command to grab the raw symbol name followed
651-# by C symbol name from nm.
652-AC_DEFUN(AC_SYS_NM_PARSE,
649+# AC_CHECK_LIBM - check for math library
650+AC_DEFUN(AC_CHECK_LIBM,
653651 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
654-AC_REQUIRE([AC_PROG_NM])dnl
655-# Check for command to grab the raw symbol name followed by C symbol from nm.
656-AC_MSG_CHECKING([command to parse $NM output])
657-AC_CACHE_VAL(ac_cv_sys_global_symbol_pipe,
658-[# These are sane defaults that work on at least a few old systems.
659-# {They come from Ultrix. What could be older than Ultrix?!! ;)}
660-
661-changequote(,)dnl
662-# Character class describing NM global symbol codes.
663-ac_symcode='[BCDEGRST]'
664-
665-# Regexp to match symbols that can be accessed directly from C.
666-ac_sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
667-
668-# Transform the above into a raw symbol and a C symbol.
669-ac_symxfrm='\1 \2\3 \3'
670-
671-# Transform an extracted symbol line into a proper C declaration
672-ac_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
673-
674-# Define system-specific variables.
675-case "$host_os" in
676-aix*)
677- ac_symcode='[BCDT]'
678- ;;
679-cygwin* | mingw*)
680- ac_symcode='[ABCDGISTW]'
681- ;;
682-hpux*)
683- ac_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'"
652+LIBM=
653+case "$host" in
654+*-*-beos* | *-*-cygwin*)
655+ # These system don't have libm
684656 ;;
685-irix*)
686- ac_symcode='[BCDEGRST]'
657+*-ncr-sysv4.3*)
658+ AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
659+ AC_CHECK_LIB(m, main, LIBM="$LIBM -lm")
687660 ;;
688-solaris*)
689- ac_symcode='[BDT]'
661+*)
662+ AC_CHECK_LIB(m, main, LIBM="-lm")
690663 ;;
691664 esac
692-
693-# If we're using GNU nm, then use its standard symbol codes.
694-if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
695- ac_symcode='[ABCDGISTW]'
696-fi
697-changequote([,])dnl
698-
699-# Try without a prefix undercore, then with it.
700-for ac_symprfx in "" "_"; do
701-
702- ac_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($ac_symcode\)[ ][ ]*\($ac_symprfx\)$ac_sympat$/$ac_symxfrm/p'"
703-
704- # Check to see that the pipe works correctly.
705- ac_pipe_works=no
706- rm -f conftest.$ac_ext
707- cat > conftest.$ac_ext <<EOF
708-#ifdef __cplusplus
709-extern "C" {
710-#endif
711-char nm_test_var;
712-void nm_test_func(){}
713-#ifdef __cplusplus
714-}
715-#endif
716-int main(){nm_test_var='a';nm_test_func;return 0;}
717-EOF
718-
719- if AC_TRY_EVAL(ac_compile); then
720- # Now try to grab the symbols.
721- ac_nlist=conftest.nm
722-
723- if AC_TRY_EVAL(NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) && test -s "$ac_nlist"; then
724-
725- # Try sorting and uniquifying the output.
726- if sort "$ac_nlist" | uniq > "$ac_nlist"T; then
727- mv -f "$ac_nlist"T "$ac_nlist"
728- else
729- rm -f "$ac_nlist"T
730- fi
731-
732- # Make sure that we snagged all the symbols we need.
733- if egrep ' nm_test_var$' "$ac_nlist" >/dev/null; then
734- if egrep ' nm_test_func$' "$ac_nlist" >/dev/null; then
735- cat <<EOF > conftest.c
736-#ifdef __cplusplus
737-extern "C" {
738-#endif
739-
740-EOF
741- # Now generate the symbol file.
742- eval "$ac_global_symbol_to_cdecl"' < "$ac_nlist" >> conftest.c'
743-
744- cat <<EOF >> conftest.c
745-#if defined (__STDC__) && __STDC__
746-# define lt_ptr_t void *
747-#else
748-# define lt_ptr_t char *
749-# define const
750-#endif
751-
752-/* The mapping between symbol names and symbols. */
753-const struct {
754- const char *name;
755- lt_ptr_t address;
756-}
757-changequote(,)dnl
758-lt_preloaded_symbols[] =
759-changequote([,])dnl
760-{
761-EOF
762- sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$ac_nlist" >> conftest.c
763- cat <<\EOF >> conftest.c
764- {0, (lt_ptr_t) 0}
765-};
766-
767-#ifdef __cplusplus
768-}
769-#endif
770-EOF
771- # Now try linking the two files.
772- mv conftest.$ac_objext conftestm.$ac_objext
773- ac_save_LIBS="$LIBS"
774- ac_save_CFLAGS="$CFLAGS"
775- LIBS="conftestm.$ac_objext"
776- CFLAGS="$CFLAGS$no_builtin_flag"
777- if AC_TRY_EVAL(ac_link) && test -s conftest; then
778- ac_pipe_works=yes
779- else
780- echo "configure: failed program was:" >&AC_FD_CC
781- cat conftest.c >&AC_FD_CC
782- fi
783- LIBS="$ac_save_LIBS"
784- CFLAGS="$ac_save_CFLAGS"
785- else
786- echo "cannot find nm_test_func in $ac_nlist" >&AC_FD_CC
787- fi
788- else
789- echo "cannot find nm_test_var in $ac_nlist" >&AC_FD_CC
790- fi
791- else
792- echo "cannot run $ac_cv_sys_global_symbol_pipe" >&AC_FD_CC
793- fi
794- else
795- echo "$progname: failed program was:" >&AC_FD_CC
796- cat conftest.c >&AC_FD_CC
797- fi
798- rm -rf conftest*
799-
800- # Do not use the global_symbol_pipe unless it works.
801- if test "$ac_pipe_works" = yes; then
802- if test x"$ac_symprfx" = x"_"; then
803- ac_cv_sys_symbol_underscore=yes
804- else
805- ac_cv_sys_symbol_underscore=no
806- fi
807- break
808- else
809- ac_cv_sys_global_symbol_pipe=
810- fi
811-done
812-])
813-
814-ac_result=yes
815-if test -z "$ac_cv_sys_global_symbol_pipe"; then
816- ac_result=no
817-fi
818-AC_MSG_RESULT($ac_result)
819-])
820-
821-# AC_SYS_LIBTOOL_CYGWIN - find tools needed on cygwin
822-AC_DEFUN(AC_SYS_LIBTOOL_CYGWIN,
823-[AC_CHECK_TOOL(DLLTOOL, dlltool, false)
824-AC_CHECK_TOOL(AS, as, false)
825-])
826-
827-# AC_SYS_SYMBOL_UNDERSCORE - does the compiler prefix global symbols
828-# with an underscore?
829-AC_DEFUN(AC_SYS_SYMBOL_UNDERSCORE,
830-[AC_REQUIRE([AC_PROG_NM])dnl
831-AC_REQUIRE([AC_SYS_NM_PARSE])dnl
832-AC_MSG_CHECKING([for _ prefix in compiled symbols])
833-AC_CACHE_VAL(ac_cv_sys_symbol_underscore,
834-[ac_cv_sys_symbol_underscore=no
835-cat > conftest.$ac_ext <<EOF
836-void nm_test_func(){}
837-int main(){nm_test_func;return 0;}
838-EOF
839-if AC_TRY_EVAL(ac_compile); then
840- # Now try to grab the symbols.
841- ac_nlist=conftest.nm
842- if AC_TRY_EVAL(NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) && test -s "$ac_nlist"; then
843- # See whether the symbols have a leading underscore.
844- if egrep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
845- ac_cv_sys_symbol_underscore=yes
846- else
847- if egrep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
848- :
849- else
850- echo "configure: cannot find nm_test_func in $ac_nlist" >&AC_FD_CC
851- fi
852- fi
853- else
854- echo "configure: cannot run $ac_cv_sys_global_symbol_pipe" >&AC_FD_CC
855- fi
856-else
857- echo "configure: failed program was:" >&AC_FD_CC
858- cat conftest.c >&AC_FD_CC
859-fi
860-rm -rf conftest*
861-])
862-AC_MSG_RESULT($ac_cv_sys_symbol_underscore)
863-USE_SYMBOL_UNDERSCORE=${ac_cv_sys_symbol_underscore=no}
864-AC_SUBST(USE_SYMBOL_UNDERSCORE)dnl
865-])
866-
867-# AC_CHECK_LIBM - check for math library
868-AC_DEFUN(AC_CHECK_LIBM, [
869-AC_CHECK_LIB(mw, _mwvalidcheckl)
870-AC_CHECK_LIB(m, cos)
871665 ])
872666
873667 # AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
@@ -878,13 +672,14 @@ AC_CHECK_LIB(m, cos)
878672 # '${top_builddir}/' (note the single quotes!) if your package is not
879673 # flat, and, if you're not using automake, define top_builddir as
880674 # appropriate in the Makefiles.
881-AC_DEFUN(AC_LIBLTDL_CONVENIENCE, [
675+AC_DEFUN(AC_LIBLTDL_CONVENIENCE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
882676 case "$enable_ltdl_convenience" in
883677 no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
884678 "") enable_ltdl_convenience=yes
885679 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
886680 esac
887681 LIBLTDL=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdlc.la
682+ INCLTDL=ifelse($#,1,-I$1,['-I${top_builddir}/libltdl'])
888683 ])
889684
890685 # AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
@@ -896,16 +691,23 @@ AC_DEFUN(AC_LIBLTDL_CONVENIENCE, [
896691 # flat, and, if you're not using automake, define top_builddir as
897692 # appropriate in the Makefiles.
898693 # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
899-AC_DEFUN(AC_LIBLTDL_INSTALLABLE, [
900- AC_CHECK_LIB(ltdl, main, LIBLTDL="-lltdl", [
901- case "$enable_ltdl_install" in
902- no) AC_MSG_WARN([libltdl not installed, but installation disabled]) ;;
903- "") enable_ltdl_install=yes
904- ac_configure_args="$ac_configure_args --enable-ltdl-install" ;;
905- esac
694+AC_DEFUN(AC_LIBLTDL_INSTALLABLE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
695+ AC_CHECK_LIB(ltdl, main,
696+ [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
697+ [if test x"$enable_ltdl_install" = xno; then
698+ AC_MSG_WARN([libltdl not installed, but installation disabled])
699+ else
700+ enable_ltdl_install=yes
701+ fi
906702 ])
907- if test x"$enable_ltdl_install" != x"no"; then
703+ if test x"$enable_ltdl_install" = x"yes"; then
704+ ac_configure_args="$ac_configure_args --enable-ltdl-install"
908705 LIBLTDL=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdl.la
706+ INCLTDL=ifelse($#,1,-I$1,['-I${top_builddir}/libltdl'])
707+ else
708+ ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
709+ LIBLTDL="-lltdl"
710+ INCLTDL=
909711 fi
910712 ])
911713
@@ -917,7 +719,7 @@ AC_DEFUN(AM_DISABLE_SHARED, [indir([AC_DISABLE_SHARED], $@)])dnl
917719 AC_DEFUN(AM_DISABLE_STATIC, [indir([AC_DISABLE_STATIC], $@)])dnl
918720 AC_DEFUN(AM_PROG_LD, [indir([AC_PROG_LD])])dnl
919721 AC_DEFUN(AM_PROG_NM, [indir([AC_PROG_NM])])dnl
920-AC_DEFUN(AM_SYS_NM_PARSE, [indir([AC_SYS_NM_PARSE])])dnl
921-AC_DEFUN(AM_SYS_SYMBOL_UNDERSCORE, [indir([AC_SYS_SYMBOL_UNDERSCORE])])dnl
922-AC_DEFUN(AM_SYS_LIBTOOL_CYGWIN, [indir([AC_SYS_LIBTOOL_CYGWIN])])dnl
722+
723+dnl This is just to silence aclocal about the macro not being used
724+ifelse([AC_DISABLE_FAST_INSTALL])dnl
923725
--- a/libjava/configure
+++ b/libjava/configure
@@ -29,7 +29,7 @@ ac_help="$ac_help
2929 ac_help="$ac_help
3030 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
3131 ac_help="$ac_help
32- --disable-libtool-lock force libtool not to do file locking"
32+ --disable-libtool-lock avoid locking (might break parallel builds)"
3333 ac_help="$ac_help
3434 --enable-fast-character Prefer speed over size for Character"
3535 ac_help="$ac_help
@@ -1919,7 +1919,7 @@ echo "configure:1919: checking for ld used by GCC" >&5
19191919 ac_prog=`($CC -print-prog-name=ld) 2>&5`
19201920 case "$ac_prog" in
19211921 # Accept absolute paths.
1922- /* | [A-Za-z]:[\\/]*)
1922+ [\\/]* | [A-Za-z]:[\\/]*)
19231923 re_direlt='/[^/][^/]*/\.\./'
19241924 # Canonicalize the path of ld
19251925 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
@@ -1948,10 +1948,10 @@ if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
19481948 echo $ac_n "(cached) $ac_c" 1>&6
19491949 else
19501950 if test -z "$LD"; then
1951- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1951+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
19521952 for ac_dir in $PATH; do
19531953 test -z "$ac_dir" && ac_dir=.
1954- if test -f "$ac_dir/$ac_prog"; then
1954+ if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19551955 ac_cv_path_LD="$ac_dir/$ac_prog"
19561956 # Check to see if the program is GNU ld. I'd rather use --version,
19571957 # but apparently some GNU ld's only accept -v.
@@ -2002,10 +2002,10 @@ else
20022002 # Let the user override the test.
20032003 ac_cv_path_NM="$NM"
20042004 else
2005- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2005+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
20062006 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
20072007 test -z "$ac_dir" && ac_dir=.
2008- if test -f $ac_dir/nm; then
2008+ if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
20092009 # Check to see if the nm accepts a BSD-compat flag.
20102010 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
20112011 # nm: unknown option "B" ignored
@@ -2030,212 +2030,8 @@ NM="$ac_cv_path_NM"
20302030 echo "$ac_t""$NM" 1>&6
20312031
20322032
2033-# Check for command to grab the raw symbol name followed by C symbol from nm.
2034-echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
2035-echo "configure:2036: checking command to parse $NM output" >&5
2036-if eval "test \"`echo '$''{'ac_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
2037- echo $ac_n "(cached) $ac_c" 1>&6
2038-else
2039- # These are sane defaults that work on at least a few old systems.
2040-# {They come from Ultrix. What could be older than Ultrix?!! ;)}
2041-
2042-# Character class describing NM global symbol codes.
2043-ac_symcode='[BCDEGRST]'
2044-
2045-# Regexp to match symbols that can be accessed directly from C.
2046-ac_sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
2047-
2048-# Transform the above into a raw symbol and a C symbol.
2049-ac_symxfrm='\1 \2\3 \3'
2050-
2051-# Transform an extracted symbol line into a proper C declaration
2052-ac_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
2053-
2054-# Define system-specific variables.
2055-case "$host_os" in
2056-aix*)
2057- ac_symcode='[BCDT]'
2058- ;;
2059-cygwin* | mingw*)
2060- ac_symcode='[ABCDGISTW]'
2061- ;;
2062-hpux*)
2063- ac_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'"
2064- ;;
2065-irix*)
2066- ac_symcode='[BCDEGRST]'
2067- ;;
2068-solaris*)
2069- ac_symcode='[BDT]'
2070- ;;
2071-esac
2072-
2073-# If we're using GNU nm, then use its standard symbol codes.
2074-if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
2075- ac_symcode='[ABCDGISTW]'
2076-fi
2077-
2078-# Try without a prefix undercore, then with it.
2079-for ac_symprfx in "" "_"; do
2080-
2081- ac_cv_sys_global_symbol_pipe="sed -n -e 's/^.* \($ac_symcode\) *\($ac_symprfx\)$ac_sympat$/$ac_symxfrm/p'"
2082-
2083- # Check to see that the pipe works correctly.
2084- ac_pipe_works=no
2085- rm -f conftest.$ac_ext
2086- cat > conftest.$ac_ext <<EOF
2087-#ifdef __cplusplus
2088-extern "C" {
2089-#endif
2090-char nm_test_var;
2091-void nm_test_func(){}
2092-#ifdef __cplusplus
2093-}
2094-#endif
2095-int main(){nm_test_var='a';nm_test_func;return 0;}
2096-EOF
2097-
2098- if { (eval echo configure:2099: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2099- # Now try to grab the symbols.
2100- ac_nlist=conftest.nm
2101-
2102- if { (eval echo configure:2103: \"$NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then
2103-
2104- # Try sorting and uniquifying the output.
2105- if sort "$ac_nlist" | uniq > "$ac_nlist"T; then
2106- mv -f "$ac_nlist"T "$ac_nlist"
2107- else
2108- rm -f "$ac_nlist"T
2109- fi
2110-
2111- # Make sure that we snagged all the symbols we need.
2112- if egrep ' nm_test_var$' "$ac_nlist" >/dev/null; then
2113- if egrep ' nm_test_func$' "$ac_nlist" >/dev/null; then
2114- cat <<EOF > conftest.c
2115-#ifdef __cplusplus
2116-extern "C" {
2117-#endif
2118-
2119-EOF
2120- # Now generate the symbol file.
2121- eval "$ac_global_symbol_to_cdecl"' < "$ac_nlist" >> conftest.c'
2122-
2123- cat <<EOF >> conftest.c
2124-#if defined (__STDC__) && __STDC__
2125-# define lt_ptr_t void *
2126-#else
2127-# define lt_ptr_t char *
2128-# define const
2129-#endif
2130-
2131-/* The mapping between symbol names and symbols. */
2132-const struct {
2133- const char *name;
2134- lt_ptr_t address;
2135-}
2136-lt_preloaded_symbols[] =
2137-{
2138-EOF
2139- sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$ac_nlist" >> conftest.c
2140- cat <<\EOF >> conftest.c
2141- {0, (lt_ptr_t) 0}
2142-};
2143-
2144-#ifdef __cplusplus
2145-}
2146-#endif
2147-EOF
2148- # Now try linking the two files.
2149- mv conftest.$ac_objext conftestm.$ac_objext
2150- ac_save_LIBS="$LIBS"
2151- ac_save_CFLAGS="$CFLAGS"
2152- LIBS="conftestm.$ac_objext"
2153- CFLAGS="$CFLAGS$no_builtin_flag"
2154- if { (eval echo configure:2155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2155- ac_pipe_works=yes
2156- else
2157- echo "configure: failed program was:" >&5
2158- cat conftest.c >&5
2159- fi
2160- LIBS="$ac_save_LIBS"
2161- CFLAGS="$ac_save_CFLAGS"
2162- else
2163- echo "cannot find nm_test_func in $ac_nlist" >&5
2164- fi
2165- else
2166- echo "cannot find nm_test_var in $ac_nlist" >&5
2167- fi
2168- else
2169- echo "cannot run $ac_cv_sys_global_symbol_pipe" >&5
2170- fi
2171- else
2172- echo "$progname: failed program was:" >&5
2173- cat conftest.c >&5
2174- fi
2175- rm -rf conftest*
2176-
2177- # Do not use the global_symbol_pipe unless it works.
2178- if test "$ac_pipe_works" = yes; then
2179- if test x"$ac_symprfx" = x"_"; then
2180- ac_cv_sys_symbol_underscore=yes
2181- else
2182- ac_cv_sys_symbol_underscore=no
2183- fi
2184- break
2185- else
2186- ac_cv_sys_global_symbol_pipe=
2187- fi
2188-done
2189-
2190-fi
2191-
2192-
2193-ac_result=yes
2194-if test -z "$ac_cv_sys_global_symbol_pipe"; then
2195- ac_result=no
2196-fi
2197-echo "$ac_t""$ac_result" 1>&6
2198-
2199-echo $ac_n "checking for _ prefix in compiled symbols""... $ac_c" 1>&6
2200-echo "configure:2201: checking for _ prefix in compiled symbols" >&5
2201-if eval "test \"`echo '$''{'ac_cv_sys_symbol_underscore'+set}'`\" = set"; then
2202- echo $ac_n "(cached) $ac_c" 1>&6
2203-else
2204- ac_cv_sys_symbol_underscore=no
2205-cat > conftest.$ac_ext <<EOF
2206-void nm_test_func(){}
2207-int main(){nm_test_func;return 0;}
2208-EOF
2209-if { (eval echo configure:2210: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2210- # Now try to grab the symbols.
2211- ac_nlist=conftest.nm
2212- if { (eval echo configure:2213: \"$NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then
2213- # See whether the symbols have a leading underscore.
2214- if egrep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
2215- ac_cv_sys_symbol_underscore=yes
2216- else
2217- if egrep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
2218- :
2219- else
2220- echo "configure: cannot find nm_test_func in $ac_nlist" >&5
2221- fi
2222- fi
2223- else
2224- echo "configure: cannot run $ac_cv_sys_global_symbol_pipe" >&5
2225- fi
2226-else
2227- echo "configure: failed program was:" >&5
2228- cat conftest.c >&5
2229-fi
2230-rm -rf conftest*
2231-
2232-fi
2233-
2234-echo "$ac_t""$ac_cv_sys_symbol_underscore" 1>&6
2235-USE_SYMBOL_UNDERSCORE=${ac_cv_sys_symbol_underscore=no}
2236-
22372033 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2238-echo "configure:2239: checking whether ln -s works" >&5
2034+echo "configure:2035: checking whether ln -s works" >&5
22392035 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
22402036 echo $ac_n "(cached) $ac_c" 1>&6
22412037 else
@@ -2261,18 +2057,26 @@ libtool_flags="--cache-file=$cache_file"
22612057 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
22622058 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
22632059 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2264-test "$lt_dlopen" = yes && libtool_flags="$libtool_flags --enable-dlopen"
2265-test "$silent" = yes && libtool_flags="$libtool_flags --silent"
22662060 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
22672061 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
22682062
2063+
2064+# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2065+if test "${enable_libtool_lock+set}" = set; then
2066+ enableval="$enable_libtool_lock"
2067+ :
2068+fi
2069+
2070+test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2071+test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2072+
22692073 # Some flags need to be propagated to the compiler or linker for good
22702074 # libtool support.
22712075 case "$host" in
22722076 *-*-irix6*)
22732077 # Find out which ABI we are using.
2274- echo '#line 2275 "configure"' > conftest.$ac_ext
2275- if { (eval echo configure:2276: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2078+ echo '#line 2079 "configure"' > conftest.$ac_ext
2079+ if { (eval echo configure:2080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22762080 case "`/usr/bin/file conftest.o`" in
22772081 *32-bit*)
22782082 LD="${LD-ld} -32"
@@ -2293,19 +2097,19 @@ case "$host" in
22932097 SAVE_CFLAGS="$CFLAGS"
22942098 CFLAGS="$CFLAGS -belf"
22952099 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2296-echo "configure:2297: checking whether the C compiler needs -belf" >&5
2100+echo "configure:2101: checking whether the C compiler needs -belf" >&5
22972101 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
22982102 echo $ac_n "(cached) $ac_c" 1>&6
22992103 else
23002104 cat > conftest.$ac_ext <<EOF
2301-#line 2302 "configure"
2105+#line 2106 "configure"
23022106 #include "confdefs.h"
23032107
23042108 int main() {
23052109
23062110 ; return 0; }
23072111 EOF
2308-if { (eval echo configure:2309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2112+if { (eval echo configure:2113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23092113 rm -rf conftest*
23102114 lt_cv_cc_needs_belf=yes
23112115 else
@@ -2324,161 +2128,9 @@ echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
23242128 fi
23252129 ;;
23262130
2327-*-*-cygwin*)
2328- # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
2329-set dummy ${ac_tool_prefix}dlltool; ac_word=$2
2330-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2331-echo "configure:2332: checking for $ac_word" >&5
2332-if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2333- echo $ac_n "(cached) $ac_c" 1>&6
2334-else
2335- if test -n "$DLLTOOL"; then
2336- ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2337-else
2338- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2339- ac_dummy="$PATH"
2340- for ac_dir in $ac_dummy; do
2341- test -z "$ac_dir" && ac_dir=.
2342- if test -f $ac_dir/$ac_word; then
2343- ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
2344- break
2345- fi
2346- done
2347- IFS="$ac_save_ifs"
2348-fi
2349-fi
2350-DLLTOOL="$ac_cv_prog_DLLTOOL"
2351-if test -n "$DLLTOOL"; then
2352- echo "$ac_t""$DLLTOOL" 1>&6
2353-else
2354- echo "$ac_t""no" 1>&6
2355-fi
2356-
2357-
2358-if test -z "$ac_cv_prog_DLLTOOL"; then
2359-if test -n "$ac_tool_prefix"; then
2360- # Extract the first word of "dlltool", so it can be a program name with args.
2361-set dummy dlltool; ac_word=$2
2362-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2363-echo "configure:2364: checking for $ac_word" >&5
2364-if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2365- echo $ac_n "(cached) $ac_c" 1>&6
2366-else
2367- if test -n "$DLLTOOL"; then
2368- ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2369-else
2370- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2371- ac_dummy="$PATH"
2372- for ac_dir in $ac_dummy; do
2373- test -z "$ac_dir" && ac_dir=.
2374- if test -f $ac_dir/$ac_word; then
2375- ac_cv_prog_DLLTOOL="dlltool"
2376- break
2377- fi
2378- done
2379- IFS="$ac_save_ifs"
2380- test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
2381-fi
2382-fi
2383-DLLTOOL="$ac_cv_prog_DLLTOOL"
2384-if test -n "$DLLTOOL"; then
2385- echo "$ac_t""$DLLTOOL" 1>&6
2386-else
2387- echo "$ac_t""no" 1>&6
2388-fi
2389-
2390-else
2391- DLLTOOL="false"
2392-fi
2393-fi
2394-
2395-# Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2396-set dummy ${ac_tool_prefix}as; ac_word=$2
2397-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2398-echo "configure:2399: checking for $ac_word" >&5
2399-if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2400- echo $ac_n "(cached) $ac_c" 1>&6
2401-else
2402- if test -n "$AS"; then
2403- ac_cv_prog_AS="$AS" # Let the user override the test.
2404-else
2405- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2406- ac_dummy="$PATH"
2407- for ac_dir in $ac_dummy; do
2408- test -z "$ac_dir" && ac_dir=.
2409- if test -f $ac_dir/$ac_word; then
2410- ac_cv_prog_AS="${ac_tool_prefix}as"
2411- break
2412- fi
2413- done
2414- IFS="$ac_save_ifs"
2415-fi
2416-fi
2417-AS="$ac_cv_prog_AS"
2418-if test -n "$AS"; then
2419- echo "$ac_t""$AS" 1>&6
2420-else
2421- echo "$ac_t""no" 1>&6
2422-fi
2423-
2424-
2425-if test -z "$ac_cv_prog_AS"; then
2426-if test -n "$ac_tool_prefix"; then
2427- # Extract the first word of "as", so it can be a program name with args.
2428-set dummy as; ac_word=$2
2429-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2430-echo "configure:2431: checking for $ac_word" >&5
2431-if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2432- echo $ac_n "(cached) $ac_c" 1>&6
2433-else
2434- if test -n "$AS"; then
2435- ac_cv_prog_AS="$AS" # Let the user override the test.
2436-else
2437- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2438- ac_dummy="$PATH"
2439- for ac_dir in $ac_dummy; do
2440- test -z "$ac_dir" && ac_dir=.
2441- if test -f $ac_dir/$ac_word; then
2442- ac_cv_prog_AS="as"
2443- break
2444- fi
2445- done
2446- IFS="$ac_save_ifs"
2447- test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
2448-fi
2449-fi
2450-AS="$ac_cv_prog_AS"
2451-if test -n "$AS"; then
2452- echo "$ac_t""$AS" 1>&6
2453-else
2454- echo "$ac_t""no" 1>&6
2455-fi
2456-
2457-else
2458- AS="false"
2459-fi
2460-fi
2461-
2462-
2463- ;;
24642131
24652132 esac
24662133
2467-# enable the --disable-libtool-lock switch
2468-
2469-# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2470-if test "${enable_libtool_lock+set}" = set; then
2471- enableval="$enable_libtool_lock"
2472- need_locks=$enableval
2473-else
2474- need_locks=yes
2475-fi
2476-
2477-
2478-if test x"$need_locks" = xno; then
2479- libtool_flags="$libtool_flags --disable-lock"
2480-fi
2481-
24822134
24832135 # Save cache, so that ltconfig can load it
24842136 cat > confcache <<\EOF
@@ -2531,8 +2183,9 @@ rm -f confcache
25312183
25322184 # Actually configure libtool. ac_aux_dir is where install-sh is found.
25332185 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2534-LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
2535-DLLTOOL="$DLLTOOL" AS="$AS" \
2186+LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2187+LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
2188+DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
25362189 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
25372190 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
25382191 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
@@ -2625,7 +2278,7 @@ EOF
26252278 esac
26262279
26272280 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2628-echo "configure:2629: checking how to run the C preprocessor" >&5
2281+echo "configure:2282: checking how to run the C preprocessor" >&5
26292282 # On Suns, sometimes $CPP names a directory.
26302283 if test -n "$CPP" && test -d "$CPP"; then
26312284 CPP=
@@ -2640,13 +2293,13 @@ else
26402293 # On the NeXT, cc -E runs the code through the compiler's parser,
26412294 # not just through cpp.
26422295 cat > conftest.$ac_ext <<EOF
2643-#line 2644 "configure"
2296+#line 2297 "configure"
26442297 #include "confdefs.h"
26452298 #include <assert.h>
26462299 Syntax Error
26472300 EOF
26482301 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2649-{ (eval echo configure:2650: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2302+{ (eval echo configure:2303: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
26502303 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
26512304 if test -z "$ac_err"; then
26522305 :
@@ -2657,13 +2310,13 @@ else
26572310 rm -rf conftest*
26582311 CPP="${CC-cc} -E -traditional-cpp"
26592312 cat > conftest.$ac_ext <<EOF
2660-#line 2661 "configure"
2313+#line 2314 "configure"
26612314 #include "confdefs.h"
26622315 #include <assert.h>
26632316 Syntax Error
26642317 EOF
26652318 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2666-{ (eval echo configure:2667: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2319+{ (eval echo configure:2320: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
26672320 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
26682321 if test -z "$ac_err"; then
26692322 :
@@ -2674,13 +2327,13 @@ else
26742327 rm -rf conftest*
26752328 CPP="${CC-cc} -nologo -E"
26762329 cat > conftest.$ac_ext <<EOF
2677-#line 2678 "configure"
2330+#line 2331 "configure"
26782331 #include "confdefs.h"
26792332 #include <assert.h>
26802333 Syntax Error
26812334 EOF
26822335 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2683-{ (eval echo configure:2684: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2336+{ (eval echo configure:2337: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
26842337 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
26852338 if test -z "$ac_err"; then
26862339 :
@@ -2705,7 +2358,7 @@ fi
27052358 echo "$ac_t""$CPP" 1>&6
27062359
27072360 cat > conftest.$ac_ext <<EOF
2708-#line 2709 "configure"
2361+#line 2362 "configure"
27092362 #include "confdefs.h"
27102363 #include <stdint.h>
27112364 EOF
@@ -2720,7 +2373,7 @@ fi
27202373 rm -f conftest*
27212374
27222375 cat > conftest.$ac_ext <<EOF
2723-#line 2724 "configure"
2376+#line 2377 "configure"
27242377 #include "confdefs.h"
27252378 #include <inttypes.h>
27262379 EOF
@@ -2735,7 +2388,7 @@ fi
27352388 rm -f conftest*
27362389
27372390 cat > conftest.$ac_ext <<EOF
2738-#line 2739 "configure"
2391+#line 2392 "configure"
27392392 #include "confdefs.h"
27402393 #include <sys/types.h>
27412394 EOF
@@ -2750,7 +2403,7 @@ fi
27502403 rm -f conftest*
27512404
27522405 cat > conftest.$ac_ext <<EOF
2753-#line 2754 "configure"
2406+#line 2407 "configure"
27542407 #include "confdefs.h"
27552408 #include <sys/config.h>
27562409 EOF
@@ -2767,7 +2420,7 @@ rm -f conftest*
27672420
27682421
27692422 cat > conftest.$ac_ext <<EOF
2770-#line 2771 "configure"
2423+#line 2424 "configure"
27712424 #include "confdefs.h"
27722425 #include <time.h>
27732426 EOF
@@ -2782,7 +2435,7 @@ fi
27822435 rm -f conftest*
27832436
27842437 cat > conftest.$ac_ext <<EOF
2785-#line 2786 "configure"
2438+#line 2439 "configure"
27862439 #include "confdefs.h"
27872440 #include <time.h>
27882441 EOF
@@ -2820,7 +2473,7 @@ ZLIBSPEC=
28202473 libsubdir=.libs
28212474
28222475 echo $ac_n "checking for garbage collector to use""... $ac_c" 1>&6
2823-echo "configure:2824: checking for garbage collector to use" >&5
2476+echo "configure:2477: checking for garbage collector to use" >&5
28242477 # Check whether --enable-java-gc or --disable-java-gc was given.
28252478 if test "${enable_java_gc+set}" = set; then
28262479 enableval="$enable_java_gc"
@@ -2870,7 +2523,7 @@ esac
28702523
28712524
28722525 echo $ac_n "checking for threads package to use""... $ac_c" 1>&6
2873-echo "configure:2874: checking for threads package to use" >&5
2526+echo "configure:2527: checking for threads package to use" >&5
28742527 # Check whether --enable-threads or --disable-threads was given.
28752528 if test "${enable_threads+set}" = set; then
28762529 enableval="$enable_threads"
@@ -3062,12 +2715,12 @@ else
30622715 for ac_func in strerror ioctl select open fsync sleep
30632716 do
30642717 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3065-echo "configure:3066: checking for $ac_func" >&5
2718+echo "configure:2719: checking for $ac_func" >&5
30662719 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
30672720 echo $ac_n "(cached) $ac_c" 1>&6
30682721 else
30692722 cat > conftest.$ac_ext <<EOF
3070-#line 3071 "configure"
2723+#line 2724 "configure"
30712724 #include "confdefs.h"
30722725 /* System header to define __stub macros and hopefully few prototypes,
30732726 which can conflict with char $ac_func(); below. */
@@ -3090,7 +2743,7 @@ $ac_func();
30902743
30912744 ; return 0; }
30922745 EOF
3093-if { (eval echo configure:3094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2746+if { (eval echo configure:2747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
30942747 rm -rf conftest*
30952748 eval "ac_cv_func_$ac_func=yes"
30962749 else
@@ -3117,12 +2770,12 @@ done
31172770 for ac_func in ctime_r ctime
31182771 do
31192772 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3120-echo "configure:3121: checking for $ac_func" >&5
2773+echo "configure:2774: checking for $ac_func" >&5
31212774 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
31222775 echo $ac_n "(cached) $ac_c" 1>&6
31232776 else
31242777 cat > conftest.$ac_ext <<EOF
3125-#line 3126 "configure"
2778+#line 2779 "configure"
31262779 #include "confdefs.h"
31272780 /* System header to define __stub macros and hopefully few prototypes,
31282781 which can conflict with char $ac_func(); below. */
@@ -3145,7 +2798,7 @@ $ac_func();
31452798
31462799 ; return 0; }
31472800 EOF
3148-if { (eval echo configure:3149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2801+if { (eval echo configure:2802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
31492802 rm -rf conftest*
31502803 eval "ac_cv_func_$ac_func=yes"
31512804 else
@@ -3172,12 +2825,12 @@ done
31722825 for ac_func in gmtime_r localtime_r readdir_r getpwuid_r
31732826 do
31742827 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3175-echo "configure:3176: checking for $ac_func" >&5
2828+echo "configure:2829: checking for $ac_func" >&5
31762829 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
31772830 echo $ac_n "(cached) $ac_c" 1>&6
31782831 else
31792832 cat > conftest.$ac_ext <<EOF
3180-#line 3181 "configure"
2833+#line 2834 "configure"
31812834 #include "confdefs.h"
31822835 /* System header to define __stub macros and hopefully few prototypes,
31832836 which can conflict with char $ac_func(); below. */
@@ -3200,7 +2853,7 @@ $ac_func();
32002853
32012854 ; return 0; }
32022855 EOF
3203-if { (eval echo configure:3204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2856+if { (eval echo configure:2857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
32042857 rm -rf conftest*
32052858 eval "ac_cv_func_$ac_func=yes"
32062859 else
@@ -3227,12 +2880,12 @@ done
32272880 for ac_func in access stat mkdir rename rmdir unlink realpath
32282881 do
32292882 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3230-echo "configure:3231: checking for $ac_func" >&5
2883+echo "configure:2884: checking for $ac_func" >&5
32312884 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
32322885 echo $ac_n "(cached) $ac_c" 1>&6
32332886 else
32342887 cat > conftest.$ac_ext <<EOF
3235-#line 3236 "configure"
2888+#line 2889 "configure"
32362889 #include "confdefs.h"
32372890 /* System header to define __stub macros and hopefully few prototypes,
32382891 which can conflict with char $ac_func(); below. */
@@ -3255,7 +2908,7 @@ $ac_func();
32552908
32562909 ; return 0; }
32572910 EOF
3258-if { (eval echo configure:3259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2911+if { (eval echo configure:2912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
32592912 rm -rf conftest*
32602913 eval "ac_cv_func_$ac_func=yes"
32612914 else
@@ -3282,12 +2935,12 @@ done
32822935 for ac_func in inet_aton inet_addr
32832936 do
32842937 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3285-echo "configure:3286: checking for $ac_func" >&5
2938+echo "configure:2939: checking for $ac_func" >&5
32862939 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
32872940 echo $ac_n "(cached) $ac_c" 1>&6
32882941 else
32892942 cat > conftest.$ac_ext <<EOF
3290-#line 3291 "configure"
2943+#line 2944 "configure"
32912944 #include "confdefs.h"
32922945 /* System header to define __stub macros and hopefully few prototypes,
32932946 which can conflict with char $ac_func(); below. */
@@ -3310,7 +2963,7 @@ $ac_func();
33102963
33112964 ; return 0; }
33122965 EOF
3313-if { (eval echo configure:3314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2966+if { (eval echo configure:2967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
33142967 rm -rf conftest*
33152968 eval "ac_cv_func_$ac_func=yes"
33162969 else
@@ -3337,12 +2990,12 @@ done
33372990 for ac_func in inet_pton uname
33382991 do
33392992 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3340-echo "configure:3341: checking for $ac_func" >&5
2993+echo "configure:2994: checking for $ac_func" >&5
33412994 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
33422995 echo $ac_n "(cached) $ac_c" 1>&6
33432996 else
33442997 cat > conftest.$ac_ext <<EOF
3345-#line 3346 "configure"
2998+#line 2999 "configure"
33462999 #include "confdefs.h"
33473000 /* System header to define __stub macros and hopefully few prototypes,
33483001 which can conflict with char $ac_func(); below. */
@@ -3365,7 +3018,7 @@ $ac_func();
33653018
33663019 ; return 0; }
33673020 EOF
3368-if { (eval echo configure:3369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3021+if { (eval echo configure:3022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
33693022 rm -rf conftest*
33703023 eval "ac_cv_func_$ac_func=yes"
33713024 else
@@ -3393,12 +3046,12 @@ done
33933046 for ac_func in gethostbyname_r
33943047 do
33953048 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3396-echo "configure:3397: checking for $ac_func" >&5
3049+echo "configure:3050: checking for $ac_func" >&5
33973050 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
33983051 echo $ac_n "(cached) $ac_c" 1>&6
33993052 else
34003053 cat > conftest.$ac_ext <<EOF
3401-#line 3402 "configure"
3054+#line 3055 "configure"
34023055 #include "confdefs.h"
34033056 /* System header to define __stub macros and hopefully few prototypes,
34043057 which can conflict with char $ac_func(); below. */
@@ -3421,7 +3074,7 @@ $ac_func();
34213074
34223075 ; return 0; }
34233076 EOF
3424-if { (eval echo configure:3425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3077+if { (eval echo configure:3078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
34253078 rm -rf conftest*
34263079 eval "ac_cv_func_$ac_func=yes"
34273080 else
@@ -3448,7 +3101,7 @@ EOF
34483101 # We look for the one that returns `int'.
34493102 # Hopefully this check is robust enough.
34503103 cat > conftest.$ac_ext <<EOF
3451-#line 3452 "configure"
3104+#line 3105 "configure"
34523105 #include "confdefs.h"
34533106 #include <netdb.h>
34543107 EOF
@@ -3468,7 +3121,7 @@ rm -f conftest*
34683121 *" -D_REENTRANT "*) ;;
34693122 *)
34703123 echo $ac_n "checking whether gethostbyname_r declaration requires -D_REENTRANT""... $ac_c" 1>&6
3471-echo "configure:3472: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
3124+echo "configure:3125: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
34723125 if eval "test \"`echo '$''{'libjava_cv_gethostbyname_r_needs_reentrant'+set}'`\" = set"; then
34733126 echo $ac_n "(cached) $ac_c" 1>&6
34743127 else
@@ -3481,14 +3134,14 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes
34813134 cross_compiling=$ac_cv_prog_cxx_cross
34823135
34833136 cat > conftest.$ac_ext <<EOF
3484-#line 3485 "configure"
3137+#line 3138 "configure"
34853138 #include "confdefs.h"
34863139 #include <netdb.h>
34873140 int main() {
34883141 gethostbyname_r("", 0, 0);
34893142 ; return 0; }
34903143 EOF
3491-if { (eval echo configure:3492: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3144+if { (eval echo configure:3145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
34923145 rm -rf conftest*
34933146 libjava_cv_gethostbyname_r_needs_reentrant=no
34943147 else
@@ -3498,14 +3151,14 @@ else
34983151 CPPFLAGS_SAVE="$CPPFLAGS"
34993152 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
35003153 cat > conftest.$ac_ext <<EOF
3501-#line 3502 "configure"
3154+#line 3155 "configure"
35023155 #include "confdefs.h"
35033156 #include <netdb.h>
35043157 int main() {
35053158 gethostbyname_r("", 0, 0);
35063159 ; return 0; }
35073160 EOF
3508-if { (eval echo configure:3509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3161+if { (eval echo configure:3162: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
35093162 rm -rf conftest*
35103163 libjava_cv_gethostbyname_r_needs_reentrant=yes
35113164 else
@@ -3540,12 +3193,12 @@ EOF
35403193 esac
35413194
35423195 echo $ac_n "checking for struct hostent_data""... $ac_c" 1>&6
3543-echo "configure:3544: checking for struct hostent_data" >&5
3196+echo "configure:3197: checking for struct hostent_data" >&5
35443197 if eval "test \"`echo '$''{'libjava_cv_struct_hostent_data'+set}'`\" = set"; then
35453198 echo $ac_n "(cached) $ac_c" 1>&6
35463199 else
35473200 cat > conftest.$ac_ext <<EOF
3548-#line 3549 "configure"
3201+#line 3202 "configure"
35493202 #include "confdefs.h"
35503203
35513204 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
@@ -3556,7 +3209,7 @@ int main() {
35563209 struct hostent_data data;
35573210 ; return 0; }
35583211 EOF
3559-if { (eval echo configure:3560: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3212+if { (eval echo configure:3213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
35603213 rm -rf conftest*
35613214 libjava_cv_struct_hostent_data=yes
35623215 else
@@ -3585,12 +3238,12 @@ done
35853238 for ac_func in gethostbyaddr_r
35863239 do
35873240 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3588-echo "configure:3589: checking for $ac_func" >&5
3241+echo "configure:3242: checking for $ac_func" >&5
35893242 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
35903243 echo $ac_n "(cached) $ac_c" 1>&6
35913244 else
35923245 cat > conftest.$ac_ext <<EOF
3593-#line 3594 "configure"
3246+#line 3247 "configure"
35943247 #include "confdefs.h"
35953248 /* System header to define __stub macros and hopefully few prototypes,
35963249 which can conflict with char $ac_func(); below. */
@@ -3613,7 +3266,7 @@ $ac_func();
36133266
36143267 ; return 0; }
36153268 EOF
3616-if { (eval echo configure:3617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3269+if { (eval echo configure:3270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
36173270 rm -rf conftest*
36183271 eval "ac_cv_func_$ac_func=yes"
36193272 else
@@ -3640,7 +3293,7 @@ EOF
36403293 # We look for the one that returns `int'.
36413294 # Hopefully this check is robust enough.
36423295 cat > conftest.$ac_ext <<EOF
3643-#line 3644 "configure"
3296+#line 3297 "configure"
36443297 #include "confdefs.h"
36453298 #include <netdb.h>
36463299 EOF
@@ -3664,12 +3317,12 @@ done
36643317 for ac_func in gethostname
36653318 do
36663319 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3667-echo "configure:3668: checking for $ac_func" >&5
3320+echo "configure:3321: checking for $ac_func" >&5
36683321 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
36693322 echo $ac_n "(cached) $ac_c" 1>&6
36703323 else
36713324 cat > conftest.$ac_ext <<EOF
3672-#line 3673 "configure"
3325+#line 3326 "configure"
36733326 #include "confdefs.h"
36743327 /* System header to define __stub macros and hopefully few prototypes,
36753328 which can conflict with char $ac_func(); below. */
@@ -3692,7 +3345,7 @@ $ac_func();
36923345
36933346 ; return 0; }
36943347 EOF
3695-if { (eval echo configure:3696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3348+if { (eval echo configure:3349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
36963349 rm -rf conftest*
36973350 eval "ac_cv_func_$ac_func=yes"
36983351 else
@@ -3716,7 +3369,7 @@ EOF
37163369 EOF
37173370
37183371 cat > conftest.$ac_ext <<EOF
3719-#line 3720 "configure"
3372+#line 3373 "configure"
37203373 #include "confdefs.h"
37213374 #include <unistd.h>
37223375 EOF
@@ -3743,12 +3396,12 @@ done
37433396 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np sched_yield
37443397 do
37453398 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3746-echo "configure:3747: checking for $ac_func" >&5
3399+echo "configure:3400: checking for $ac_func" >&5
37473400 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
37483401 echo $ac_n "(cached) $ac_c" 1>&6
37493402 else
37503403 cat > conftest.$ac_ext <<EOF
3751-#line 3752 "configure"
3404+#line 3405 "configure"
37523405 #include "confdefs.h"
37533406 /* System header to define __stub macros and hopefully few prototypes,
37543407 which can conflict with char $ac_func(); below. */
@@ -3771,7 +3424,7 @@ $ac_func();
37713424
37723425 ; return 0; }
37733426 EOF
3774-if { (eval echo configure:3775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3427+if { (eval echo configure:3428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
37753428 rm -rf conftest*
37763429 eval "ac_cv_func_$ac_func=yes"
37773430 else
@@ -3799,12 +3452,12 @@ done
37993452 for ac_func in sched_yield
38003453 do
38013454 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3802-echo "configure:3803: checking for $ac_func" >&5
3455+echo "configure:3456: checking for $ac_func" >&5
38033456 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
38043457 echo $ac_n "(cached) $ac_c" 1>&6
38053458 else
38063459 cat > conftest.$ac_ext <<EOF
3807-#line 3808 "configure"
3460+#line 3461 "configure"
38083461 #include "confdefs.h"
38093462 /* System header to define __stub macros and hopefully few prototypes,
38103463 which can conflict with char $ac_func(); below. */
@@ -3827,7 +3480,7 @@ $ac_func();
38273480
38283481 ; return 0; }
38293482 EOF
3830-if { (eval echo configure:3831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3483+if { (eval echo configure:3484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38313484 rm -rf conftest*
38323485 eval "ac_cv_func_$ac_func=yes"
38333486 else
@@ -3849,7 +3502,7 @@ EOF
38493502 else
38503503 echo "$ac_t""no" 1>&6
38513504 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
3852-echo "configure:3853: checking for sched_yield in -lposix4" >&5
3505+echo "configure:3506: checking for sched_yield in -lposix4" >&5
38533506 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
38543507 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
38553508 echo $ac_n "(cached) $ac_c" 1>&6
@@ -3857,7 +3510,7 @@ else
38573510 ac_save_LIBS="$LIBS"
38583511 LIBS="-lposix4 $LIBS"
38593512 cat > conftest.$ac_ext <<EOF
3860-#line 3861 "configure"
3513+#line 3514 "configure"
38613514 #include "confdefs.h"
38623515 /* Override any gcc2 internal prototype to avoid an error. */
38633516 /* We use char because int might match the return type of a gcc2
@@ -3868,7 +3521,7 @@ int main() {
38683521 sched_yield()
38693522 ; return 0; }
38703523 EOF
3871-if { (eval echo configure:3872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3524+if { (eval echo configure:3525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
38723525 rm -rf conftest*
38733526 eval "ac_cv_lib_$ac_lib_var=yes"
38743527 else
@@ -3903,12 +3556,12 @@ done
39033556 for ac_func in gettimeofday time ftime
39043557 do
39053558 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3906-echo "configure:3907: checking for $ac_func" >&5
3559+echo "configure:3560: checking for $ac_func" >&5
39073560 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
39083561 echo $ac_n "(cached) $ac_c" 1>&6
39093562 else
39103563 cat > conftest.$ac_ext <<EOF
3911-#line 3912 "configure"
3564+#line 3565 "configure"
39123565 #include "confdefs.h"
39133566 /* System header to define __stub macros and hopefully few prototypes,
39143567 which can conflict with char $ac_func(); below. */
@@ -3931,7 +3584,7 @@ $ac_func();
39313584
39323585 ; return 0; }
39333586 EOF
3934-if { (eval echo configure:3935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3587+if { (eval echo configure:3588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
39353588 rm -rf conftest*
39363589 eval "ac_cv_func_$ac_func=yes"
39373590 else
@@ -3962,12 +3615,12 @@ done
39623615 for ac_func in memmove
39633616 do
39643617 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3965-echo "configure:3966: checking for $ac_func" >&5
3618+echo "configure:3619: checking for $ac_func" >&5
39663619 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
39673620 echo $ac_n "(cached) $ac_c" 1>&6
39683621 else
39693622 cat > conftest.$ac_ext <<EOF
3970-#line 3971 "configure"
3623+#line 3624 "configure"
39713624 #include "confdefs.h"
39723625 /* System header to define __stub macros and hopefully few prototypes,
39733626 which can conflict with char $ac_func(); below. */
@@ -3990,7 +3643,7 @@ $ac_func();
39903643
39913644 ; return 0; }
39923645 EOF
3993-if { (eval echo configure:3994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3646+if { (eval echo configure:3647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
39943647 rm -rf conftest*
39953648 eval "ac_cv_func_$ac_func=yes"
39963649 else
@@ -4020,12 +3673,12 @@ done
40203673 for ac_func in memcpy
40213674 do
40223675 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4023-echo "configure:4024: checking for $ac_func" >&5
3676+echo "configure:3677: checking for $ac_func" >&5
40243677 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
40253678 echo $ac_n "(cached) $ac_c" 1>&6
40263679 else
40273680 cat > conftest.$ac_ext <<EOF
4028-#line 4029 "configure"
3681+#line 3682 "configure"
40293682 #include "confdefs.h"
40303683 /* System header to define __stub macros and hopefully few prototypes,
40313684 which can conflict with char $ac_func(); below. */
@@ -4048,7 +3701,7 @@ $ac_func();
40483701
40493702 ; return 0; }
40503703 EOF
4051-if { (eval echo configure:4052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3704+if { (eval echo configure:3705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
40523705 rm -rf conftest*
40533706 eval "ac_cv_func_$ac_func=yes"
40543707 else
@@ -4096,7 +3749,7 @@ done
40963749 #--------------------------------------------------------------------
40973750
40983751 echo $ac_n "checking for socket libraries""... $ac_c" 1>&6
4099-echo "configure:4100: checking for socket libraries" >&5
3752+echo "configure:3753: checking for socket libraries" >&5
41003753 if eval "test \"`echo '$''{'gcj_cv_lib_sockets'+set}'`\" = set"; then
41013754 echo $ac_n "(cached) $ac_c" 1>&6
41023755 else
@@ -4104,12 +3757,12 @@ else
41043757 gcj_checkBoth=0
41053758 unset ac_cv_func_connect
41063759 echo $ac_n "checking for connect""... $ac_c" 1>&6
4107-echo "configure:4108: checking for connect" >&5
3760+echo "configure:3761: checking for connect" >&5
41083761 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
41093762 echo $ac_n "(cached) $ac_c" 1>&6
41103763 else
41113764 cat > conftest.$ac_ext <<EOF
4112-#line 4113 "configure"
3765+#line 3766 "configure"
41133766 #include "confdefs.h"
41143767 /* System header to define __stub macros and hopefully few prototypes,
41153768 which can conflict with char connect(); below. */
@@ -4132,7 +3785,7 @@ connect();
41323785
41333786 ; return 0; }
41343787 EOF
4135-if { (eval echo configure:4136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3788+if { (eval echo configure:3789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
41363789 rm -rf conftest*
41373790 eval "ac_cv_func_connect=yes"
41383791 else
@@ -4155,7 +3808,7 @@ fi
41553808 if test "$gcj_checkSocket" = 1; then
41563809 unset ac_cv_func_connect
41573810 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4158-echo "configure:4159: checking for main in -lsocket" >&5
3811+echo "configure:3812: checking for main in -lsocket" >&5
41593812 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
41603813 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
41613814 echo $ac_n "(cached) $ac_c" 1>&6
@@ -4163,14 +3816,14 @@ else
41633816 ac_save_LIBS="$LIBS"
41643817 LIBS="-lsocket $LIBS"
41653818 cat > conftest.$ac_ext <<EOF
4166-#line 4167 "configure"
3819+#line 3820 "configure"
41673820 #include "confdefs.h"
41683821
41693822 int main() {
41703823 main()
41713824 ; return 0; }
41723825 EOF
4173-if { (eval echo configure:4174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3826+if { (eval echo configure:3827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
41743827 rm -rf conftest*
41753828 eval "ac_cv_lib_$ac_lib_var=yes"
41763829 else
@@ -4197,12 +3850,12 @@ fi
41973850 LIBS="$LIBS -lsocket -lnsl"
41983851 unset ac_cv_func_accept
41993852 echo $ac_n "checking for accept""... $ac_c" 1>&6
4200-echo "configure:4201: checking for accept" >&5
3853+echo "configure:3854: checking for accept" >&5
42013854 if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
42023855 echo $ac_n "(cached) $ac_c" 1>&6
42033856 else
42043857 cat > conftest.$ac_ext <<EOF
4205-#line 4206 "configure"
3858+#line 3859 "configure"
42063859 #include "confdefs.h"
42073860 /* System header to define __stub macros and hopefully few prototypes,
42083861 which can conflict with char accept(); below. */
@@ -4225,7 +3878,7 @@ accept();
42253878
42263879 ; return 0; }
42273880 EOF
4228-if { (eval echo configure:4229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3881+if { (eval echo configure:3882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
42293882 rm -rf conftest*
42303883 eval "ac_cv_func_accept=yes"
42313884 else
@@ -4252,12 +3905,12 @@ fi
42523905 gcj_oldLibs=$LIBS
42533906 LIBS="$LIBS $gcj_cv_lib_sockets"
42543907 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4255-echo "configure:4256: checking for gethostbyname" >&5
3908+echo "configure:3909: checking for gethostbyname" >&5
42563909 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
42573910 echo $ac_n "(cached) $ac_c" 1>&6
42583911 else
42593912 cat > conftest.$ac_ext <<EOF
4260-#line 4261 "configure"
3913+#line 3914 "configure"
42613914 #include "confdefs.h"
42623915 /* System header to define __stub macros and hopefully few prototypes,
42633916 which can conflict with char gethostbyname(); below. */
@@ -4280,7 +3933,7 @@ gethostbyname();
42803933
42813934 ; return 0; }
42823935 EOF
4283-if { (eval echo configure:4284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3936+if { (eval echo configure:3937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
42843937 rm -rf conftest*
42853938 eval "ac_cv_func_gethostbyname=yes"
42863939 else
@@ -4298,7 +3951,7 @@ if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
42983951 else
42993952 echo "$ac_t""no" 1>&6
43003953 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
4301-echo "configure:4302: checking for main in -lnsl" >&5
3954+echo "configure:3955: checking for main in -lnsl" >&5
43023955 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
43033956 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
43043957 echo $ac_n "(cached) $ac_c" 1>&6
@@ -4306,14 +3959,14 @@ else
43063959 ac_save_LIBS="$LIBS"
43073960 LIBS="-lnsl $LIBS"
43083961 cat > conftest.$ac_ext <<EOF
4309-#line 4310 "configure"
3962+#line 3963 "configure"
43103963 #include "confdefs.h"
43113964
43123965 int main() {
43133966 main()
43143967 ; return 0; }
43153968 EOF
4316-if { (eval echo configure:4317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3969+if { (eval echo configure:3970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
43173970 rm -rf conftest*
43183971 eval "ac_cv_lib_$ac_lib_var=yes"
43193972 else
@@ -4345,7 +3998,7 @@ echo "$ac_t""$gcj_cv_lib_sockets" 1>&6
43453998
43463999 if test "$with_system_zlib" = yes; then
43474000 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
4348-echo "configure:4349: checking for deflate in -lz" >&5
4001+echo "configure:4002: checking for deflate in -lz" >&5
43494002 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
43504003 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
43514004 echo $ac_n "(cached) $ac_c" 1>&6
@@ -4353,7 +4006,7 @@ else
43534006 ac_save_LIBS="$LIBS"
43544007 LIBS="-lz $LIBS"
43554008 cat > conftest.$ac_ext <<EOF
4356-#line 4357 "configure"
4009+#line 4010 "configure"
43574010 #include "confdefs.h"
43584011 /* Override any gcc2 internal prototype to avoid an error. */
43594012 /* We use char because int might match the return type of a gcc2
@@ -4364,7 +4017,7 @@ int main() {
43644017 deflate()
43654018 ; return 0; }
43664019 EOF
4367-if { (eval echo configure:4368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4020+if { (eval echo configure:4021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
43684021 rm -rf conftest*
43694022 eval "ac_cv_lib_$ac_lib_var=yes"
43704023 else
@@ -4393,7 +4046,7 @@ fi
43934046 # requires -ldl.
43944047 if test "$GC" = boehm; then
43954048 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
4396-echo "configure:4397: checking for main in -ldl" >&5
4049+echo "configure:4050: checking for main in -ldl" >&5
43974050 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
43984051 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
43994052 echo $ac_n "(cached) $ac_c" 1>&6
@@ -4401,14 +4054,14 @@ else
44014054 ac_save_LIBS="$LIBS"
44024055 LIBS="-ldl $LIBS"
44034056 cat > conftest.$ac_ext <<EOF
4404-#line 4405 "configure"
4057+#line 4058 "configure"
44054058 #include "confdefs.h"
44064059
44074060 int main() {
44084061 main()
44094062 ; return 0; }
44104063 EOF
4411-if { (eval echo configure:4412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4064+if { (eval echo configure:4065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
44124065 rm -rf conftest*
44134066 eval "ac_cv_lib_$ac_lib_var=yes"
44144067 else
@@ -4517,17 +4170,17 @@ for ac_hdr in unistd.h bstring.h sys/time.h sys/types.h fcntl.h sys/ioctl.h sys/
45174170 do
45184171 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
45194172 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4520-echo "configure:4521: checking for $ac_hdr" >&5
4173+echo "configure:4174: checking for $ac_hdr" >&5
45214174 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
45224175 echo $ac_n "(cached) $ac_c" 1>&6
45234176 else
45244177 cat > conftest.$ac_ext <<EOF
4525-#line 4526 "configure"
4178+#line 4179 "configure"
45264179 #include "confdefs.h"
45274180 #include <$ac_hdr>
45284181 EOF
45294182 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4530-{ (eval echo configure:4531: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4183+{ (eval echo configure:4184: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
45314184 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
45324185 if test -z "$ac_err"; then
45334186 rm -rf conftest*
@@ -4557,17 +4210,17 @@ for ac_hdr in dirent.h
45574210 do
45584211 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
45594212 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4560-echo "configure:4561: checking for $ac_hdr" >&5
4213+echo "configure:4214: checking for $ac_hdr" >&5
45614214 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
45624215 echo $ac_n "(cached) $ac_c" 1>&6
45634216 else
45644217 cat > conftest.$ac_ext <<EOF
4565-#line 4566 "configure"
4218+#line 4219 "configure"
45664219 #include "confdefs.h"
45674220 #include <$ac_hdr>
45684221 EOF
45694222 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4570-{ (eval echo configure:4571: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4223+{ (eval echo configure:4224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
45714224 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
45724225 if test -z "$ac_err"; then
45734226 rm -rf conftest*
@@ -4595,16 +4248,16 @@ done
45954248
45964249
45974250 echo $ac_n "checking whether struct sockaddr_in6 is in netinet/in.h""... $ac_c" 1>&6
4598-echo "configure:4599: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
4251+echo "configure:4252: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
45994252 cat > conftest.$ac_ext <<EOF
4600-#line 4601 "configure"
4253+#line 4254 "configure"
46014254 #include "confdefs.h"
46024255 #include <netinet/in.h>
46034256 int main() {
46044257 struct sockaddr_in6 addr6;
46054258 ; return 0; }
46064259 EOF
4607-if { (eval echo configure:4608: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4260+if { (eval echo configure:4261: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
46084261 rm -rf conftest*
46094262 cat >> confdefs.h <<\EOF
46104263 #define HAVE_INET6 1
@@ -4620,16 +4273,16 @@ fi
46204273 rm -f conftest*
46214274
46224275 echo $ac_n "checking for socklen_t in sys/socket.h""... $ac_c" 1>&6
4623-echo "configure:4624: checking for socklen_t in sys/socket.h" >&5
4276+echo "configure:4277: checking for socklen_t in sys/socket.h" >&5
46244277 cat > conftest.$ac_ext <<EOF
4625-#line 4626 "configure"
4278+#line 4279 "configure"
46264279 #include "confdefs.h"
46274280 #include <sys/socket.h>
46284281 int main() {
46294282 socklen_t x = 5;
46304283 ; return 0; }
46314284 EOF
4632-if { (eval echo configure:4633: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4285+if { (eval echo configure:4286: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
46334286 rm -rf conftest*
46344287 cat >> confdefs.h <<\EOF
46354288 #define HAVE_SOCKLEN_T 1
@@ -4645,16 +4298,16 @@ fi
46454298 rm -f conftest*
46464299
46474300 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
4648-echo "configure:4649: checking for tm_gmtoff in struct tm" >&5
4301+echo "configure:4302: checking for tm_gmtoff in struct tm" >&5
46494302 cat > conftest.$ac_ext <<EOF
4650-#line 4651 "configure"
4303+#line 4304 "configure"
46514304 #include "confdefs.h"
46524305 #include <time.h>
46534306 int main() {
46544307 struct tm tim; tim.tm_gmtoff = 0;
46554308 ; return 0; }
46564309 EOF
4657-if { (eval echo configure:4658: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4310+if { (eval echo configure:4311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
46584311 rm -rf conftest*
46594312 cat >> confdefs.h <<\EOF
46604313 #define STRUCT_TM_HAS_GMTOFF 1
@@ -4667,16 +4320,16 @@ else
46674320 rm -rf conftest*
46684321 echo "$ac_t""no" 1>&6
46694322 echo $ac_n "checking for global timezone variable""... $ac_c" 1>&6
4670-echo "configure:4671: checking for global timezone variable" >&5
4323+echo "configure:4324: checking for global timezone variable" >&5
46714324 cat > conftest.$ac_ext <<EOF
4672-#line 4673 "configure"
4325+#line 4326 "configure"
46734326 #include "confdefs.h"
46744327 #include <time.h>
46754328 int main() {
46764329 long z2 = timezone;
46774330 ; return 0; }
46784331 EOF
4679-if { (eval echo configure:4680: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4332+if { (eval echo configure:4333: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
46804333 rm -rf conftest*
46814334 cat >> confdefs.h <<\EOF
46824335 #define HAVE_TIMEZONE 1
@@ -4696,19 +4349,19 @@ rm -f conftest*
46964349 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
46974350 # for constant arguments. Useless!
46984351 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4699-echo "configure:4700: checking for working alloca.h" >&5
4352+echo "configure:4353: checking for working alloca.h" >&5
47004353 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
47014354 echo $ac_n "(cached) $ac_c" 1>&6
47024355 else
47034356 cat > conftest.$ac_ext <<EOF
4704-#line 4705 "configure"
4357+#line 4358 "configure"
47054358 #include "confdefs.h"
47064359 #include <alloca.h>
47074360 int main() {
47084361 char *p = alloca(2 * sizeof(int));
47094362 ; return 0; }
47104363 EOF
4711-if { (eval echo configure:4712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4364+if { (eval echo configure:4365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
47124365 rm -rf conftest*
47134366 ac_cv_header_alloca_h=yes
47144367 else
@@ -4729,12 +4382,12 @@ EOF
47294382 fi
47304383
47314384 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4732-echo "configure:4733: checking for alloca" >&5
4385+echo "configure:4386: checking for alloca" >&5
47334386 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
47344387 echo $ac_n "(cached) $ac_c" 1>&6
47354388 else
47364389 cat > conftest.$ac_ext <<EOF
4737-#line 4738 "configure"
4390+#line 4391 "configure"
47384391 #include "confdefs.h"
47394392
47404393 #ifdef __GNUC__
@@ -4762,7 +4415,7 @@ int main() {
47624415 char *p = (char *) alloca(1);
47634416 ; return 0; }
47644417 EOF
4765-if { (eval echo configure:4766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4418+if { (eval echo configure:4419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
47664419 rm -rf conftest*
47674420 ac_cv_func_alloca_works=yes
47684421 else
@@ -4794,12 +4447,12 @@ EOF
47944447
47954448
47964449 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4797-echo "configure:4798: checking whether alloca needs Cray hooks" >&5
4450+echo "configure:4451: checking whether alloca needs Cray hooks" >&5
47984451 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
47994452 echo $ac_n "(cached) $ac_c" 1>&6
48004453 else
48014454 cat > conftest.$ac_ext <<EOF
4802-#line 4803 "configure"
4455+#line 4456 "configure"
48034456 #include "confdefs.h"
48044457 #if defined(CRAY) && ! defined(CRAY2)
48054458 webecray
@@ -4824,12 +4477,12 @@ echo "$ac_t""$ac_cv_os_cray" 1>&6
48244477 if test $ac_cv_os_cray = yes; then
48254478 for ac_func in _getb67 GETB67 getb67; do
48264479 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4827-echo "configure:4828: checking for $ac_func" >&5
4480+echo "configure:4481: checking for $ac_func" >&5
48284481 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
48294482 echo $ac_n "(cached) $ac_c" 1>&6
48304483 else
48314484 cat > conftest.$ac_ext <<EOF
4832-#line 4833 "configure"
4485+#line 4486 "configure"
48334486 #include "confdefs.h"
48344487 /* System header to define __stub macros and hopefully few prototypes,
48354488 which can conflict with char $ac_func(); below. */
@@ -4852,7 +4505,7 @@ $ac_func();
48524505
48534506 ; return 0; }
48544507 EOF
4855-if { (eval echo configure:4856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4508+if { (eval echo configure:4509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
48564509 rm -rf conftest*
48574510 eval "ac_cv_func_$ac_func=yes"
48584511 else
@@ -4879,7 +4532,7 @@ done
48794532 fi
48804533
48814534 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4882-echo "configure:4883: checking stack direction for C alloca" >&5
4535+echo "configure:4536: checking stack direction for C alloca" >&5
48834536 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
48844537 echo $ac_n "(cached) $ac_c" 1>&6
48854538 else
@@ -4887,7 +4540,7 @@ else
48874540 ac_cv_c_stack_direction=0
48884541 else
48894542 cat > conftest.$ac_ext <<EOF
4890-#line 4891 "configure"
4543+#line 4544 "configure"
48914544 #include "confdefs.h"
48924545 find_stack_direction ()
48934546 {
@@ -4906,7 +4559,7 @@ main ()
49064559 exit (find_stack_direction() < 0);
49074560 }
49084561 EOF
4909-if { (eval echo configure:4910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4562+if { (eval echo configure:4563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
49104563 then
49114564 ac_cv_c_stack_direction=1
49124565 else
@@ -4929,7 +4582,7 @@ fi
49294582
49304583
49314584 echo $ac_n "checking for g++ -g jboolean bug""... $ac_c" 1>&6
4932-echo "configure:4933: checking for g++ -g jboolean bug" >&5
4585+echo "configure:4586: checking for g++ -g jboolean bug" >&5
49334586 if eval "test \"`echo '$''{'libjava_cv_gxx_debug_jboolean_bug'+set}'`\" = set"; then
49344587 echo $ac_n "(cached) $ac_c" 1>&6
49354588 else
@@ -4942,14 +4595,14 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes
49424595 cross_compiling=$ac_cv_prog_cxx_cross
49434596
49444597 cat > conftest.$ac_ext <<EOF
4945-#line 4946 "configure"
4598+#line 4599 "configure"
49464599 #include "confdefs.h"
49474600 typedef __java_boolean jboolean;
49484601 int main() {
49494602
49504603 ; return 0; }
49514604 EOF
4952-if { (eval echo configure:4953: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4605+if { (eval echo configure:4606: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
49534606 rm -rf conftest*
49544607 libjava_cv_gxx_debug_jboolean_bug=no
49554608 else
@@ -4983,7 +4636,7 @@ do
49834636 # Extract the first word of "$ac_prog", so it can be a program name with args.
49844637 set dummy $ac_prog; ac_word=$2
49854638 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4986-echo "configure:4987: checking for $ac_word" >&5
4639+echo "configure:4640: checking for $ac_word" >&5
49874640 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
49884641 echo $ac_n "(cached) $ac_c" 1>&6
49894642 else
@@ -5211,9 +4864,7 @@ s%@LIBGCJ_CXXFLAGS@%$LIBGCJ_CXXFLAGS%g
52114864 s%@LIBGCJ_JAVAFLAGS@%$LIBGCJ_JAVAFLAGS%g
52124865 s%@LD@%$LD%g
52134866 s%@NM@%$NM%g
5214-s%@USE_SYMBOL_UNDERSCORE@%$USE_SYMBOL_UNDERSCORE%g
52154867 s%@LN_S@%$LN_S%g
5216-s%@DLLTOOL@%$DLLTOOL%g
52174868 s%@LIBTOOL@%$LIBTOOL%g
52184869 s%@COMPPATH@%$COMPPATH%g
52194870 s%@TESTSUBDIR_TRUE@%$TESTSUBDIR_TRUE%g
--- a/libjava/testsuite/Makefile.in
+++ b/libjava/testsuite/Makefile.in
@@ -89,6 +89,7 @@ LN_S = @LN_S@
8989 MAINT = @MAINT@
9090 MAKEINFO = @MAKEINFO@
9191 NM = @NM@
92+OBJDUMP = @OBJDUMP@
9293 PACKAGE = @PACKAGE@
9394 PERL = @PERL@
9495 RANLIB = @RANLIB@
@@ -98,7 +99,6 @@ THREADINCS = @THREADINCS@
9899 THREADLIBS = @THREADLIBS@
99100 THREADOBJS = @THREADOBJS@
100101 THREADSPEC = @THREADSPEC@
101-USE_SYMBOL_UNDERSCORE = @USE_SYMBOL_UNDERSCORE@
102102 VERSION = @VERSION@
103103 ZDEPS = @ZDEPS@
104104 ZINCS = @ZINCS@
--- a/zlib/ChangeLog.gcj
+++ b/zlib/ChangeLog.gcj
@@ -1,3 +1,7 @@
1+1999-08-02 Tom Tromey <tromey@cygnus.com>
2+
3+ * aclocal.m4, configure: Rebuilt for new libtool.
4+
15 1999-07-19 Alexandre Oliva <oliva@dcc.unicamp.br>
26
37 * Makefile.am (*-recursive, *-am, *-multi): Automake does not
--- a/zlib/Makefile.in
+++ b/zlib/Makefile.in
@@ -75,9 +75,9 @@ LN_S = @LN_S@
7575 MAINT = @MAINT@
7676 MAKEINFO = @MAKEINFO@
7777 NM = @NM@
78+OBJDUMP = @OBJDUMP@
7879 PACKAGE = @PACKAGE@
7980 RANLIB = @RANLIB@
80-USE_SYMBOL_UNDERSCORE = @USE_SYMBOL_UNDERSCORE@
8181 VERSION = @VERSION@
8282 target_all = @target_all@
8383 zlib_basedir = @zlib_basedir@
--- a/zlib/aclocal.m4
+++ b/zlib/aclocal.m4
@@ -174,7 +174,7 @@ else
174174 fi])
175175
176176
177-# serial 35 AC_PROG_LIBTOOL
177+# serial 40 AC_PROG_LIBTOOL
178178 AC_DEFUN(AC_PROG_LIBTOOL,
179179 [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
180180
@@ -183,8 +183,9 @@ AC_CACHE_SAVE
183183
184184 # Actually configure libtool. ac_aux_dir is where install-sh is found.
185185 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
186-LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
187-DLLTOOL="$DLLTOOL" AS="$AS" \
186+LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
187+LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
188+DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
188189 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
189190 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
190191 || AC_MSG_ERROR([libtool configure failed])
@@ -215,8 +216,6 @@ AC_REQUIRE([AC_PROG_RANLIB])dnl
215216 AC_REQUIRE([AC_PROG_CC])dnl
216217 AC_REQUIRE([AC_PROG_LD])dnl
217218 AC_REQUIRE([AC_PROG_NM])dnl
218-AC_REQUIRE([AC_SYS_NM_PARSE])dnl
219-AC_REQUIRE([AC_SYS_SYMBOL_UNDERSCORE])dnl
220219 AC_REQUIRE([AC_PROG_LN_S])dnl
221220 dnl
222221
@@ -225,10 +224,16 @@ libtool_flags="--cache-file=$cache_file"
225224 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
226225 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
227226 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
228-test "$lt_dlopen" = yes && libtool_flags="$libtool_flags --enable-dlopen"
229-test "$silent" = yes && libtool_flags="$libtool_flags --silent"
230227 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
231228 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
229+ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN],
230+[libtool_flags="$libtool_flags --enable-dlopen"])
231+ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
232+[libtool_flags="$libtool_flags --enable-win32-dll"])
233+AC_ARG_ENABLE(libtool-lock,
234+ [ --disable-libtool-lock avoid locking (might break parallel builds)])
235+test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
236+test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
232237
233238 # Some flags need to be propagated to the compiler or linker for good
234239 # libtool support.
@@ -264,33 +269,28 @@ case "$host" in
264269 fi
265270 ;;
266271
267-*-*-cygwin*)
268- AC_SYS_LIBTOOL_CYGWIN
272+ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
273+[*-*-cygwin* | *-*-mingw*)
274+ AC_CHECK_TOOL(DLLTOOL, dlltool, false)
275+ AC_CHECK_TOOL(AS, as, false)
276+ AC_CHECK_TOOL(OBJDUMP, objdump, false)
269277 ;;
270-
278+])
271279 esac
272-
273-# enable the --disable-libtool-lock switch
274-
275-AC_ARG_ENABLE(libtool-lock,
276-[ --disable-libtool-lock force libtool not to do file locking],
277-need_locks=$enableval,
278-need_locks=yes)
279-
280-if test x"$need_locks" = xno; then
281- libtool_flags="$libtool_flags --disable-lock"
282-fi
283280 ])
284281
285-# AC_LIBTOOL_DLOPEN - check for dlopen support
286-AC_DEFUN(AC_LIBTOOL_DLOPEN, [lt_dlopen=yes])
282+# AC_LIBTOOL_DLOPEN - enable checks for dlopen support
283+AC_DEFUN(AC_LIBTOOL_DLOPEN, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])])
284+
285+# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
286+AC_DEFUN(AC_LIBTOOL_WIN32_DLL, [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])])
287287
288288 # AC_ENABLE_SHARED - implement the --enable-shared flag
289289 # Usage: AC_ENABLE_SHARED[(DEFAULT)]
290290 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
291291 # `yes'.
292-AC_DEFUN(AC_ENABLE_SHARED,
293-[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
292+AC_DEFUN(AC_ENABLE_SHARED, [dnl
293+define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
294294 AC_ARG_ENABLE(shared,
295295 changequote(<<, >>)dnl
296296 << --enable-shared[=PKGS] build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT],
@@ -315,15 +315,15 @@ enable_shared=AC_ENABLE_SHARED_DEFAULT)dnl
315315 ])
316316
317317 # AC_DISABLE_SHARED - set the default shared flag to --disable-shared
318-AC_DEFUN(AC_DISABLE_SHARED,
319-[AC_ENABLE_SHARED(no)])
318+AC_DEFUN(AC_DISABLE_SHARED, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
319+AC_ENABLE_SHARED(no)])
320320
321321 # AC_ENABLE_STATIC - implement the --enable-static flag
322322 # Usage: AC_ENABLE_STATIC[(DEFAULT)]
323323 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
324324 # `yes'.
325-AC_DEFUN(AC_ENABLE_STATIC,
326-[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
325+AC_DEFUN(AC_ENABLE_STATIC, [dnl
326+define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
327327 AC_ARG_ENABLE(static,
328328 changequote(<<, >>)dnl
329329 << --enable-static[=PKGS] build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT],
@@ -348,16 +348,16 @@ enable_static=AC_ENABLE_STATIC_DEFAULT)dnl
348348 ])
349349
350350 # AC_DISABLE_STATIC - set the default static flag to --disable-static
351-AC_DEFUN(AC_DISABLE_STATIC,
352-[AC_ENABLE_STATIC(no)])
351+AC_DEFUN(AC_DISABLE_STATIC, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
352+AC_ENABLE_STATIC(no)])
353353
354354
355355 # AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
356356 # Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
357357 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
358358 # `yes'.
359-AC_DEFUN(AC_ENABLE_FAST_INSTALL,
360-[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
359+AC_DEFUN(AC_ENABLE_FAST_INSTALL, [dnl
360+define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
361361 AC_ARG_ENABLE(fast-install,
362362 changequote(<<, >>)dnl
363363 << --enable-fast-install[=PKGS] optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT],
@@ -382,9 +382,8 @@ enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl
382382 ])
383383
384384 # AC_ENABLE_FAST_INSTALL - set the default to --disable-fast-install
385-AC_DEFUN(AC_DISABLE_FAST_INSTALL,
386-[AC_ENABLE_FAST_INSTALL(no)])
387-
385+AC_DEFUN(AC_DISABLE_FAST_INSTALL, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
386+AC_ENABLE_FAST_INSTALL(no)])
388387
389388 # AC_PROG_LD - find the path to the GNU or non-GNU linker
390389 AC_DEFUN(AC_PROG_LD,
@@ -402,7 +401,7 @@ if test "$ac_cv_prog_gcc" = yes; then
402401 case "$ac_prog" in
403402 # Accept absolute paths.
404403 changequote(,)dnl
405- /* | [A-Za-z]:[\\/]*)
404+ [\\/]* | [A-Za-z]:[\\/]*)
406405 re_direlt='/[^/][^/]*/\.\./'
407406 changequote([,])dnl
408407 # Canonicalize the path of ld
@@ -428,10 +427,10 @@ else
428427 fi
429428 AC_CACHE_VAL(ac_cv_path_LD,
430429 [if test -z "$LD"; then
431- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
430+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
432431 for ac_dir in $PATH; do
433432 test -z "$ac_dir" && ac_dir=.
434- if test -f "$ac_dir/$ac_prog"; then
433+ if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
435434 ac_cv_path_LD="$ac_dir/$ac_prog"
436435 # Check to see if the program is GNU ld. I'd rather use --version,
437436 # but apparently some GNU ld's only accept -v.
@@ -476,10 +475,10 @@ AC_CACHE_VAL(ac_cv_path_NM,
476475 # Let the user override the test.
477476 ac_cv_path_NM="$NM"
478477 else
479- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
478+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
480479 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
481480 test -z "$ac_dir" && ac_dir=.
482- if test -f $ac_dir/nm; then
481+ if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
483482 # Check to see if the nm accepts a BSD-compat flag.
484483 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
485484 # nm: unknown option "B" ignored
@@ -503,227 +502,22 @@ AC_MSG_RESULT([$NM])
503502 AC_SUBST(NM)
504503 ])
505504
506-# AC_SYS_NM_PARSE - Check for command to grab the raw symbol name followed
507-# by C symbol name from nm.
508-AC_DEFUN(AC_SYS_NM_PARSE,
505+# AC_CHECK_LIBM - check for math library
506+AC_DEFUN(AC_CHECK_LIBM,
509507 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
510-AC_REQUIRE([AC_PROG_NM])dnl
511-# Check for command to grab the raw symbol name followed by C symbol from nm.
512-AC_MSG_CHECKING([command to parse $NM output])
513-AC_CACHE_VAL(ac_cv_sys_global_symbol_pipe,
514-[# These are sane defaults that work on at least a few old systems.
515-# {They come from Ultrix. What could be older than Ultrix?!! ;)}
516-
517-changequote(,)dnl
518-# Character class describing NM global symbol codes.
519-ac_symcode='[BCDEGRST]'
520-
521-# Regexp to match symbols that can be accessed directly from C.
522-ac_sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
523-
524-# Transform the above into a raw symbol and a C symbol.
525-ac_symxfrm='\1 \2\3 \3'
526-
527-# Transform an extracted symbol line into a proper C declaration
528-ac_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
529-
530-# Define system-specific variables.
531-case "$host_os" in
532-aix*)
533- ac_symcode='[BCDT]'
534- ;;
535-cygwin* | mingw*)
536- ac_symcode='[ABCDGISTW]'
537- ;;
538-hpux*)
539- ac_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'"
508+LIBM=
509+case "$host" in
510+*-*-beos* | *-*-cygwin*)
511+ # These system don't have libm
540512 ;;
541-irix*)
542- ac_symcode='[BCDEGRST]'
513+*-ncr-sysv4.3*)
514+ AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
515+ AC_CHECK_LIB(m, main, LIBM="$LIBM -lm")
543516 ;;
544-solaris*)
545- ac_symcode='[BDT]'
517+*)
518+ AC_CHECK_LIB(m, main, LIBM="-lm")
546519 ;;
547520 esac
548-
549-# If we're using GNU nm, then use its standard symbol codes.
550-if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
551- ac_symcode='[ABCDGISTW]'
552-fi
553-changequote([,])dnl
554-
555-# Try without a prefix undercore, then with it.
556-for ac_symprfx in "" "_"; do
557-
558- ac_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($ac_symcode\)[ ][ ]*\($ac_symprfx\)$ac_sympat$/$ac_symxfrm/p'"
559-
560- # Check to see that the pipe works correctly.
561- ac_pipe_works=no
562- rm -f conftest.$ac_ext
563- cat > conftest.$ac_ext <<EOF
564-#ifdef __cplusplus
565-extern "C" {
566-#endif
567-char nm_test_var;
568-void nm_test_func(){}
569-#ifdef __cplusplus
570-}
571-#endif
572-int main(){nm_test_var='a';nm_test_func;return 0;}
573-EOF
574-
575- if AC_TRY_EVAL(ac_compile); then
576- # Now try to grab the symbols.
577- ac_nlist=conftest.nm
578-
579- if AC_TRY_EVAL(NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) && test -s "$ac_nlist"; then
580-
581- # Try sorting and uniquifying the output.
582- if sort "$ac_nlist" | uniq > "$ac_nlist"T; then
583- mv -f "$ac_nlist"T "$ac_nlist"
584- else
585- rm -f "$ac_nlist"T
586- fi
587-
588- # Make sure that we snagged all the symbols we need.
589- if egrep ' nm_test_var$' "$ac_nlist" >/dev/null; then
590- if egrep ' nm_test_func$' "$ac_nlist" >/dev/null; then
591- cat <<EOF > conftest.c
592-#ifdef __cplusplus
593-extern "C" {
594-#endif
595-
596-EOF
597- # Now generate the symbol file.
598- eval "$ac_global_symbol_to_cdecl"' < "$ac_nlist" >> conftest.c'
599-
600- cat <<EOF >> conftest.c
601-#if defined (__STDC__) && __STDC__
602-# define lt_ptr_t void *
603-#else
604-# define lt_ptr_t char *
605-# define const
606-#endif
607-
608-/* The mapping between symbol names and symbols. */
609-const struct {
610- const char *name;
611- lt_ptr_t address;
612-}
613-changequote(,)dnl
614-lt_preloaded_symbols[] =
615-changequote([,])dnl
616-{
617-EOF
618- sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$ac_nlist" >> conftest.c
619- cat <<\EOF >> conftest.c
620- {0, (lt_ptr_t) 0}
621-};
622-
623-#ifdef __cplusplus
624-}
625-#endif
626-EOF
627- # Now try linking the two files.
628- mv conftest.$ac_objext conftestm.$ac_objext
629- ac_save_LIBS="$LIBS"
630- ac_save_CFLAGS="$CFLAGS"
631- LIBS="conftestm.$ac_objext"
632- CFLAGS="$CFLAGS$no_builtin_flag"
633- if AC_TRY_EVAL(ac_link) && test -s conftest; then
634- ac_pipe_works=yes
635- else
636- echo "configure: failed program was:" >&AC_FD_CC
637- cat conftest.c >&AC_FD_CC
638- fi
639- LIBS="$ac_save_LIBS"
640- CFLAGS="$ac_save_CFLAGS"
641- else
642- echo "cannot find nm_test_func in $ac_nlist" >&AC_FD_CC
643- fi
644- else
645- echo "cannot find nm_test_var in $ac_nlist" >&AC_FD_CC
646- fi
647- else
648- echo "cannot run $ac_cv_sys_global_symbol_pipe" >&AC_FD_CC
649- fi
650- else
651- echo "$progname: failed program was:" >&AC_FD_CC
652- cat conftest.c >&AC_FD_CC
653- fi
654- rm -rf conftest*
655-
656- # Do not use the global_symbol_pipe unless it works.
657- if test "$ac_pipe_works" = yes; then
658- if test x"$ac_symprfx" = x"_"; then
659- ac_cv_sys_symbol_underscore=yes
660- else
661- ac_cv_sys_symbol_underscore=no
662- fi
663- break
664- else
665- ac_cv_sys_global_symbol_pipe=
666- fi
667-done
668-])
669-
670-ac_result=yes
671-if test -z "$ac_cv_sys_global_symbol_pipe"; then
672- ac_result=no
673-fi
674-AC_MSG_RESULT($ac_result)
675-])
676-
677-# AC_SYS_LIBTOOL_CYGWIN - find tools needed on cygwin
678-AC_DEFUN(AC_SYS_LIBTOOL_CYGWIN,
679-[AC_CHECK_TOOL(DLLTOOL, dlltool, false)
680-AC_CHECK_TOOL(AS, as, false)
681-])
682-
683-# AC_SYS_SYMBOL_UNDERSCORE - does the compiler prefix global symbols
684-# with an underscore?
685-AC_DEFUN(AC_SYS_SYMBOL_UNDERSCORE,
686-[AC_REQUIRE([AC_PROG_NM])dnl
687-AC_REQUIRE([AC_SYS_NM_PARSE])dnl
688-AC_MSG_CHECKING([for _ prefix in compiled symbols])
689-AC_CACHE_VAL(ac_cv_sys_symbol_underscore,
690-[ac_cv_sys_symbol_underscore=no
691-cat > conftest.$ac_ext <<EOF
692-void nm_test_func(){}
693-int main(){nm_test_func;return 0;}
694-EOF
695-if AC_TRY_EVAL(ac_compile); then
696- # Now try to grab the symbols.
697- ac_nlist=conftest.nm
698- if AC_TRY_EVAL(NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) && test -s "$ac_nlist"; then
699- # See whether the symbols have a leading underscore.
700- if egrep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
701- ac_cv_sys_symbol_underscore=yes
702- else
703- if egrep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
704- :
705- else
706- echo "configure: cannot find nm_test_func in $ac_nlist" >&AC_FD_CC
707- fi
708- fi
709- else
710- echo "configure: cannot run $ac_cv_sys_global_symbol_pipe" >&AC_FD_CC
711- fi
712-else
713- echo "configure: failed program was:" >&AC_FD_CC
714- cat conftest.c >&AC_FD_CC
715-fi
716-rm -rf conftest*
717-])
718-AC_MSG_RESULT($ac_cv_sys_symbol_underscore)
719-USE_SYMBOL_UNDERSCORE=${ac_cv_sys_symbol_underscore=no}
720-AC_SUBST(USE_SYMBOL_UNDERSCORE)dnl
721-])
722-
723-# AC_CHECK_LIBM - check for math library
724-AC_DEFUN(AC_CHECK_LIBM, [
725-AC_CHECK_LIB(mw, _mwvalidcheckl)
726-AC_CHECK_LIB(m, cos)
727521 ])
728522
729523 # AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
@@ -734,13 +528,14 @@ AC_CHECK_LIB(m, cos)
734528 # '${top_builddir}/' (note the single quotes!) if your package is not
735529 # flat, and, if you're not using automake, define top_builddir as
736530 # appropriate in the Makefiles.
737-AC_DEFUN(AC_LIBLTDL_CONVENIENCE, [
531+AC_DEFUN(AC_LIBLTDL_CONVENIENCE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
738532 case "$enable_ltdl_convenience" in
739533 no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
740534 "") enable_ltdl_convenience=yes
741535 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
742536 esac
743537 LIBLTDL=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdlc.la
538+ INCLTDL=ifelse($#,1,-I$1,['-I${top_builddir}/libltdl'])
744539 ])
745540
746541 # AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
@@ -752,16 +547,23 @@ AC_DEFUN(AC_LIBLTDL_CONVENIENCE, [
752547 # flat, and, if you're not using automake, define top_builddir as
753548 # appropriate in the Makefiles.
754549 # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
755-AC_DEFUN(AC_LIBLTDL_INSTALLABLE, [
756- AC_CHECK_LIB(ltdl, main, LIBLTDL="-lltdl", [
757- case "$enable_ltdl_install" in
758- no) AC_MSG_WARN([libltdl not installed, but installation disabled]) ;;
759- "") enable_ltdl_install=yes
760- ac_configure_args="$ac_configure_args --enable-ltdl-install" ;;
761- esac
550+AC_DEFUN(AC_LIBLTDL_INSTALLABLE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
551+ AC_CHECK_LIB(ltdl, main,
552+ [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
553+ [if test x"$enable_ltdl_install" = xno; then
554+ AC_MSG_WARN([libltdl not installed, but installation disabled])
555+ else
556+ enable_ltdl_install=yes
557+ fi
762558 ])
763- if test x"$enable_ltdl_install" != x"no"; then
559+ if test x"$enable_ltdl_install" = x"yes"; then
560+ ac_configure_args="$ac_configure_args --enable-ltdl-install"
764561 LIBLTDL=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdl.la
562+ INCLTDL=ifelse($#,1,-I$1,['-I${top_builddir}/libltdl'])
563+ else
564+ ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
565+ LIBLTDL="-lltdl"
566+ INCLTDL=
765567 fi
766568 ])
767569
@@ -773,7 +575,7 @@ AC_DEFUN(AM_DISABLE_SHARED, [indir([AC_DISABLE_SHARED], $@)])dnl
773575 AC_DEFUN(AM_DISABLE_STATIC, [indir([AC_DISABLE_STATIC], $@)])dnl
774576 AC_DEFUN(AM_PROG_LD, [indir([AC_PROG_LD])])dnl
775577 AC_DEFUN(AM_PROG_NM, [indir([AC_PROG_NM])])dnl
776-AC_DEFUN(AM_SYS_NM_PARSE, [indir([AC_SYS_NM_PARSE])])dnl
777-AC_DEFUN(AM_SYS_SYMBOL_UNDERSCORE, [indir([AC_SYS_SYMBOL_UNDERSCORE])])dnl
778-AC_DEFUN(AM_SYS_LIBTOOL_CYGWIN, [indir([AC_SYS_LIBTOOL_CYGWIN])])dnl
578+
579+dnl This is just to silence aclocal about the macro not being used
580+ifelse([AC_DISABLE_FAST_INSTALL])dnl
779581
--- a/zlib/configure
+++ b/zlib/configure
@@ -31,7 +31,7 @@ ac_help="$ac_help
3131 ac_help="$ac_help
3232 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
3333 ac_help="$ac_help
34- --disable-libtool-lock force libtool not to do file locking"
34+ --disable-libtool-lock avoid locking (might break parallel builds)"
3535
3636 # Initialize some variables set by options.
3737 # The variables have the same names as the options, with
@@ -1537,7 +1537,7 @@ echo "configure:1537: checking for ld used by GCC" >&5
15371537 ac_prog=`($CC -print-prog-name=ld) 2>&5`
15381538 case "$ac_prog" in
15391539 # Accept absolute paths.
1540- /* | [A-Za-z]:[\\/]*)
1540+ [\\/]* | [A-Za-z]:[\\/]*)
15411541 re_direlt='/[^/][^/]*/\.\./'
15421542 # Canonicalize the path of ld
15431543 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
@@ -1566,10 +1566,10 @@ if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
15661566 echo $ac_n "(cached) $ac_c" 1>&6
15671567 else
15681568 if test -z "$LD"; then
1569- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1569+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
15701570 for ac_dir in $PATH; do
15711571 test -z "$ac_dir" && ac_dir=.
1572- if test -f "$ac_dir/$ac_prog"; then
1572+ if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15731573 ac_cv_path_LD="$ac_dir/$ac_prog"
15741574 # Check to see if the program is GNU ld. I'd rather use --version,
15751575 # but apparently some GNU ld's only accept -v.
@@ -1620,10 +1620,10 @@ else
16201620 # Let the user override the test.
16211621 ac_cv_path_NM="$NM"
16221622 else
1623- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1623+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16241624 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
16251625 test -z "$ac_dir" && ac_dir=.
1626- if test -f $ac_dir/nm; then
1626+ if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
16271627 # Check to see if the nm accepts a BSD-compat flag.
16281628 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
16291629 # nm: unknown option "B" ignored
@@ -1648,212 +1648,8 @@ NM="$ac_cv_path_NM"
16481648 echo "$ac_t""$NM" 1>&6
16491649
16501650
1651-# Check for command to grab the raw symbol name followed by C symbol from nm.
1652-echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
1653-echo "configure:1654: checking command to parse $NM output" >&5
1654-if eval "test \"`echo '$''{'ac_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
1655- echo $ac_n "(cached) $ac_c" 1>&6
1656-else
1657- # These are sane defaults that work on at least a few old systems.
1658-# {They come from Ultrix. What could be older than Ultrix?!! ;)}
1659-
1660-# Character class describing NM global symbol codes.
1661-ac_symcode='[BCDEGRST]'
1662-
1663-# Regexp to match symbols that can be accessed directly from C.
1664-ac_sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
1665-
1666-# Transform the above into a raw symbol and a C symbol.
1667-ac_symxfrm='\1 \2\3 \3'
1668-
1669-# Transform an extracted symbol line into a proper C declaration
1670-ac_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
1671-
1672-# Define system-specific variables.
1673-case "$host_os" in
1674-aix*)
1675- ac_symcode='[BCDT]'
1676- ;;
1677-cygwin* | mingw*)
1678- ac_symcode='[ABCDGISTW]'
1679- ;;
1680-hpux*)
1681- ac_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'"
1682- ;;
1683-irix*)
1684- ac_symcode='[BCDEGRST]'
1685- ;;
1686-solaris*)
1687- ac_symcode='[BDT]'
1688- ;;
1689-esac
1690-
1691-# If we're using GNU nm, then use its standard symbol codes.
1692-if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
1693- ac_symcode='[ABCDGISTW]'
1694-fi
1695-
1696-# Try without a prefix undercore, then with it.
1697-for ac_symprfx in "" "_"; do
1698-
1699- ac_cv_sys_global_symbol_pipe="sed -n -e 's/^.* \($ac_symcode\) *\($ac_symprfx\)$ac_sympat$/$ac_symxfrm/p'"
1700-
1701- # Check to see that the pipe works correctly.
1702- ac_pipe_works=no
1703- rm -f conftest.$ac_ext
1704- cat > conftest.$ac_ext <<EOF
1705-#ifdef __cplusplus
1706-extern "C" {
1707-#endif
1708-char nm_test_var;
1709-void nm_test_func(){}
1710-#ifdef __cplusplus
1711-}
1712-#endif
1713-int main(){nm_test_var='a';nm_test_func;return 0;}
1714-EOF
1715-
1716- if { (eval echo configure:1717: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1717- # Now try to grab the symbols.
1718- ac_nlist=conftest.nm
1719-
1720- if { (eval echo configure:1721: \"$NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then
1721-
1722- # Try sorting and uniquifying the output.
1723- if sort "$ac_nlist" | uniq > "$ac_nlist"T; then
1724- mv -f "$ac_nlist"T "$ac_nlist"
1725- else
1726- rm -f "$ac_nlist"T
1727- fi
1728-
1729- # Make sure that we snagged all the symbols we need.
1730- if egrep ' nm_test_var$' "$ac_nlist" >/dev/null; then
1731- if egrep ' nm_test_func$' "$ac_nlist" >/dev/null; then
1732- cat <<EOF > conftest.c
1733-#ifdef __cplusplus
1734-extern "C" {
1735-#endif
1736-
1737-EOF
1738- # Now generate the symbol file.
1739- eval "$ac_global_symbol_to_cdecl"' < "$ac_nlist" >> conftest.c'
1740-
1741- cat <<EOF >> conftest.c
1742-#if defined (__STDC__) && __STDC__
1743-# define lt_ptr_t void *
1744-#else
1745-# define lt_ptr_t char *
1746-# define const
1747-#endif
1748-
1749-/* The mapping between symbol names and symbols. */
1750-const struct {
1751- const char *name;
1752- lt_ptr_t address;
1753-}
1754-lt_preloaded_symbols[] =
1755-{
1756-EOF
1757- sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$ac_nlist" >> conftest.c
1758- cat <<\EOF >> conftest.c
1759- {0, (lt_ptr_t) 0}
1760-};
1761-
1762-#ifdef __cplusplus
1763-}
1764-#endif
1765-EOF
1766- # Now try linking the two files.
1767- mv conftest.$ac_objext conftestm.$ac_objext
1768- ac_save_LIBS="$LIBS"
1769- ac_save_CFLAGS="$CFLAGS"
1770- LIBS="conftestm.$ac_objext"
1771- CFLAGS="$CFLAGS$no_builtin_flag"
1772- if { (eval echo configure:1773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1773- ac_pipe_works=yes
1774- else
1775- echo "configure: failed program was:" >&5
1776- cat conftest.c >&5
1777- fi
1778- LIBS="$ac_save_LIBS"
1779- CFLAGS="$ac_save_CFLAGS"
1780- else
1781- echo "cannot find nm_test_func in $ac_nlist" >&5
1782- fi
1783- else
1784- echo "cannot find nm_test_var in $ac_nlist" >&5
1785- fi
1786- else
1787- echo "cannot run $ac_cv_sys_global_symbol_pipe" >&5
1788- fi
1789- else
1790- echo "$progname: failed program was:" >&5
1791- cat conftest.c >&5
1792- fi
1793- rm -rf conftest*
1794-
1795- # Do not use the global_symbol_pipe unless it works.
1796- if test "$ac_pipe_works" = yes; then
1797- if test x"$ac_symprfx" = x"_"; then
1798- ac_cv_sys_symbol_underscore=yes
1799- else
1800- ac_cv_sys_symbol_underscore=no
1801- fi
1802- break
1803- else
1804- ac_cv_sys_global_symbol_pipe=
1805- fi
1806-done
1807-
1808-fi
1809-
1810-
1811-ac_result=yes
1812-if test -z "$ac_cv_sys_global_symbol_pipe"; then
1813- ac_result=no
1814-fi
1815-echo "$ac_t""$ac_result" 1>&6
1816-
1817-echo $ac_n "checking for _ prefix in compiled symbols""... $ac_c" 1>&6
1818-echo "configure:1819: checking for _ prefix in compiled symbols" >&5
1819-if eval "test \"`echo '$''{'ac_cv_sys_symbol_underscore'+set}'`\" = set"; then
1820- echo $ac_n "(cached) $ac_c" 1>&6
1821-else
1822- ac_cv_sys_symbol_underscore=no
1823-cat > conftest.$ac_ext <<EOF
1824-void nm_test_func(){}
1825-int main(){nm_test_func;return 0;}
1826-EOF
1827-if { (eval echo configure:1828: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1828- # Now try to grab the symbols.
1829- ac_nlist=conftest.nm
1830- if { (eval echo configure:1831: \"$NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then
1831- # See whether the symbols have a leading underscore.
1832- if egrep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
1833- ac_cv_sys_symbol_underscore=yes
1834- else
1835- if egrep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
1836- :
1837- else
1838- echo "configure: cannot find nm_test_func in $ac_nlist" >&5
1839- fi
1840- fi
1841- else
1842- echo "configure: cannot run $ac_cv_sys_global_symbol_pipe" >&5
1843- fi
1844-else
1845- echo "configure: failed program was:" >&5
1846- cat conftest.c >&5
1847-fi
1848-rm -rf conftest*
1849-
1850-fi
1851-
1852-echo "$ac_t""$ac_cv_sys_symbol_underscore" 1>&6
1853-USE_SYMBOL_UNDERSCORE=${ac_cv_sys_symbol_underscore=no}
1854-
18551651 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1856-echo "configure:1857: checking whether ln -s works" >&5
1652+echo "configure:1653: checking whether ln -s works" >&5
18571653 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
18581654 echo $ac_n "(cached) $ac_c" 1>&6
18591655 else
@@ -1873,30 +1669,32 @@ else
18731669 echo "$ac_t""no" 1>&6
18741670 fi
18751671
1876-if test $host != $build; then
1877- ac_tool_prefix=${host_alias}-
1878-else
1879- ac_tool_prefix=
1880-fi
1881-
18821672
18831673 # Check for any special flags to pass to ltconfig.
18841674 libtool_flags="--cache-file=$cache_file"
18851675 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
18861676 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
18871677 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1888-test "$lt_dlopen" = yes && libtool_flags="$libtool_flags --enable-dlopen"
1889-test "$silent" = yes && libtool_flags="$libtool_flags --silent"
18901678 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
18911679 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
18921680
1681+
1682+# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1683+if test "${enable_libtool_lock+set}" = set; then
1684+ enableval="$enable_libtool_lock"
1685+ :
1686+fi
1687+
1688+test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1689+test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1690+
18931691 # Some flags need to be propagated to the compiler or linker for good
18941692 # libtool support.
18951693 case "$host" in
18961694 *-*-irix6*)
18971695 # Find out which ABI we are using.
1898- echo '#line 1899 "configure"' > conftest.$ac_ext
1899- if { (eval echo configure:1900: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1696+ echo '#line 1697 "configure"' > conftest.$ac_ext
1697+ if { (eval echo configure:1698: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19001698 case "`/usr/bin/file conftest.o`" in
19011699 *32-bit*)
19021700 LD="${LD-ld} -32"
@@ -1917,19 +1715,19 @@ case "$host" in
19171715 SAVE_CFLAGS="$CFLAGS"
19181716 CFLAGS="$CFLAGS -belf"
19191717 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1920-echo "configure:1921: checking whether the C compiler needs -belf" >&5
1718+echo "configure:1719: checking whether the C compiler needs -belf" >&5
19211719 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
19221720 echo $ac_n "(cached) $ac_c" 1>&6
19231721 else
19241722 cat > conftest.$ac_ext <<EOF
1925-#line 1926 "configure"
1723+#line 1724 "configure"
19261724 #include "confdefs.h"
19271725
19281726 int main() {
19291727
19301728 ; return 0; }
19311729 EOF
1932-if { (eval echo configure:1933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1730+if { (eval echo configure:1731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19331731 rm -rf conftest*
19341732 lt_cv_cc_needs_belf=yes
19351733 else
@@ -1948,161 +1746,9 @@ echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
19481746 fi
19491747 ;;
19501748
1951-*-*-cygwin*)
1952- # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
1953-set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1954-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1955-echo "configure:1956: checking for $ac_word" >&5
1956-if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1957- echo $ac_n "(cached) $ac_c" 1>&6
1958-else
1959- if test -n "$DLLTOOL"; then
1960- ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1961-else
1962- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1963- ac_dummy="$PATH"
1964- for ac_dir in $ac_dummy; do
1965- test -z "$ac_dir" && ac_dir=.
1966- if test -f $ac_dir/$ac_word; then
1967- ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1968- break
1969- fi
1970- done
1971- IFS="$ac_save_ifs"
1972-fi
1973-fi
1974-DLLTOOL="$ac_cv_prog_DLLTOOL"
1975-if test -n "$DLLTOOL"; then
1976- echo "$ac_t""$DLLTOOL" 1>&6
1977-else
1978- echo "$ac_t""no" 1>&6
1979-fi
1980-
1981-
1982-if test -z "$ac_cv_prog_DLLTOOL"; then
1983-if test -n "$ac_tool_prefix"; then
1984- # Extract the first word of "dlltool", so it can be a program name with args.
1985-set dummy dlltool; ac_word=$2
1986-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1987-echo "configure:1988: checking for $ac_word" >&5
1988-if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1989- echo $ac_n "(cached) $ac_c" 1>&6
1990-else
1991- if test -n "$DLLTOOL"; then
1992- ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
1993-else
1994- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1995- ac_dummy="$PATH"
1996- for ac_dir in $ac_dummy; do
1997- test -z "$ac_dir" && ac_dir=.
1998- if test -f $ac_dir/$ac_word; then
1999- ac_cv_prog_DLLTOOL="dlltool"
2000- break
2001- fi
2002- done
2003- IFS="$ac_save_ifs"
2004- test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
2005-fi
2006-fi
2007-DLLTOOL="$ac_cv_prog_DLLTOOL"
2008-if test -n "$DLLTOOL"; then
2009- echo "$ac_t""$DLLTOOL" 1>&6
2010-else
2011- echo "$ac_t""no" 1>&6
2012-fi
2013-
2014-else
2015- DLLTOOL="false"
2016-fi
2017-fi
2018-
2019-# Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2020-set dummy ${ac_tool_prefix}as; ac_word=$2
2021-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2022-echo "configure:2023: checking for $ac_word" >&5
2023-if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2024- echo $ac_n "(cached) $ac_c" 1>&6
2025-else
2026- if test -n "$AS"; then
2027- ac_cv_prog_AS="$AS" # Let the user override the test.
2028-else
2029- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2030- ac_dummy="$PATH"
2031- for ac_dir in $ac_dummy; do
2032- test -z "$ac_dir" && ac_dir=.
2033- if test -f $ac_dir/$ac_word; then
2034- ac_cv_prog_AS="${ac_tool_prefix}as"
2035- break
2036- fi
2037- done
2038- IFS="$ac_save_ifs"
2039-fi
2040-fi
2041-AS="$ac_cv_prog_AS"
2042-if test -n "$AS"; then
2043- echo "$ac_t""$AS" 1>&6
2044-else
2045- echo "$ac_t""no" 1>&6
2046-fi
2047-
2048-
2049-if test -z "$ac_cv_prog_AS"; then
2050-if test -n "$ac_tool_prefix"; then
2051- # Extract the first word of "as", so it can be a program name with args.
2052-set dummy as; ac_word=$2
2053-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2054-echo "configure:2055: checking for $ac_word" >&5
2055-if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2056- echo $ac_n "(cached) $ac_c" 1>&6
2057-else
2058- if test -n "$AS"; then
2059- ac_cv_prog_AS="$AS" # Let the user override the test.
2060-else
2061- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2062- ac_dummy="$PATH"
2063- for ac_dir in $ac_dummy; do
2064- test -z "$ac_dir" && ac_dir=.
2065- if test -f $ac_dir/$ac_word; then
2066- ac_cv_prog_AS="as"
2067- break
2068- fi
2069- done
2070- IFS="$ac_save_ifs"
2071- test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
2072-fi
2073-fi
2074-AS="$ac_cv_prog_AS"
2075-if test -n "$AS"; then
2076- echo "$ac_t""$AS" 1>&6
2077-else
2078- echo "$ac_t""no" 1>&6
2079-fi
2080-
2081-else
2082- AS="false"
2083-fi
2084-fi
2085-
2086-
2087- ;;
20881749
20891750 esac
20901751
2091-# enable the --disable-libtool-lock switch
2092-
2093-# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2094-if test "${enable_libtool_lock+set}" = set; then
2095- enableval="$enable_libtool_lock"
2096- need_locks=$enableval
2097-else
2098- need_locks=yes
2099-fi
2100-
2101-
2102-if test x"$need_locks" = xno; then
2103- libtool_flags="$libtool_flags --disable-lock"
2104-fi
2105-
21061752
21071753 # Save cache, so that ltconfig can load it
21081754 cat > confcache <<\EOF
@@ -2155,8 +1801,9 @@ rm -f confcache
21551801
21561802 # Actually configure libtool. ac_aux_dir is where install-sh is found.
21571803 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2158-LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
2159-DLLTOOL="$DLLTOOL" AS="$AS" \
1804+LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1805+LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1806+DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
21601807 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
21611808 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
21621809 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
@@ -2210,7 +1857,7 @@ EOF
22101857 target_all=libzgcj.la
22111858 else
22121859 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2213-echo "configure:2214: checking how to run the C preprocessor" >&5
1860+echo "configure:1861: checking how to run the C preprocessor" >&5
22141861 # On Suns, sometimes $CPP names a directory.
22151862 if test -n "$CPP" && test -d "$CPP"; then
22161863 CPP=
@@ -2225,13 +1872,13 @@ else
22251872 # On the NeXT, cc -E runs the code through the compiler's parser,
22261873 # not just through cpp.
22271874 cat > conftest.$ac_ext <<EOF
2228-#line 2229 "configure"
1875+#line 1876 "configure"
22291876 #include "confdefs.h"
22301877 #include <assert.h>
22311878 Syntax Error
22321879 EOF
22331880 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2234-{ (eval echo configure:2235: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1881+{ (eval echo configure:1882: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22351882 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22361883 if test -z "$ac_err"; then
22371884 :
@@ -2242,13 +1889,13 @@ else
22421889 rm -rf conftest*
22431890 CPP="${CC-cc} -E -traditional-cpp"
22441891 cat > conftest.$ac_ext <<EOF
2245-#line 2246 "configure"
1892+#line 1893 "configure"
22461893 #include "confdefs.h"
22471894 #include <assert.h>
22481895 Syntax Error
22491896 EOF
22501897 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2251-{ (eval echo configure:2252: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1898+{ (eval echo configure:1899: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22521899 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22531900 if test -z "$ac_err"; then
22541901 :
@@ -2259,13 +1906,13 @@ else
22591906 rm -rf conftest*
22601907 CPP="${CC-cc} -nologo -E"
22611908 cat > conftest.$ac_ext <<EOF
2262-#line 2263 "configure"
1909+#line 1910 "configure"
22631910 #include "confdefs.h"
22641911 #include <assert.h>
22651912 Syntax Error
22661913 EOF
22671914 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2268-{ (eval echo configure:2269: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1915+{ (eval echo configure:1916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22691916 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22701917 if test -z "$ac_err"; then
22711918 :
@@ -2293,17 +1940,17 @@ for ac_hdr in unistd.h
22931940 do
22941941 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22951942 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2296-echo "configure:2297: checking for $ac_hdr" >&5
1943+echo "configure:1944: checking for $ac_hdr" >&5
22971944 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
22981945 echo $ac_n "(cached) $ac_c" 1>&6
22991946 else
23001947 cat > conftest.$ac_ext <<EOF
2301-#line 2302 "configure"
1948+#line 1949 "configure"
23021949 #include "confdefs.h"
23031950 #include <$ac_hdr>
23041951 EOF
23051952 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2306-{ (eval echo configure:2307: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1953+{ (eval echo configure:1954: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23071954 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23081955 if test -z "$ac_err"; then
23091956 rm -rf conftest*
@@ -2332,12 +1979,12 @@ done
23321979 for ac_func in getpagesize
23331980 do
23341981 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2335-echo "configure:2336: checking for $ac_func" >&5
1982+echo "configure:1983: checking for $ac_func" >&5
23361983 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
23371984 echo $ac_n "(cached) $ac_c" 1>&6
23381985 else
23391986 cat > conftest.$ac_ext <<EOF
2340-#line 2341 "configure"
1987+#line 1988 "configure"
23411988 #include "confdefs.h"
23421989 /* System header to define __stub macros and hopefully few prototypes,
23431990 which can conflict with char $ac_func(); below. */
@@ -2360,7 +2007,7 @@ $ac_func();
23602007
23612008 ; return 0; }
23622009 EOF
2363-if { (eval echo configure:2364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2010+if { (eval echo configure:2011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23642011 rm -rf conftest*
23652012 eval "ac_cv_func_$ac_func=yes"
23662013 else
@@ -2385,7 +2032,7 @@ fi
23852032 done
23862033
23872034 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2388-echo "configure:2389: checking for working mmap" >&5
2035+echo "configure:2036: checking for working mmap" >&5
23892036 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
23902037 echo $ac_n "(cached) $ac_c" 1>&6
23912038 else
@@ -2393,7 +2040,7 @@ else
23932040 ac_cv_func_mmap_fixed_mapped=no
23942041 else
23952042 cat > conftest.$ac_ext <<EOF
2396-#line 2397 "configure"
2043+#line 2044 "configure"
23972044 #include "confdefs.h"
23982045
23992046 /* Thanks to Mike Haertel and Jim Avera for this test.
@@ -2533,7 +2180,7 @@ main()
25332180 }
25342181
25352182 EOF
2536-if { (eval echo configure:2537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2183+if { (eval echo configure:2184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
25372184 then
25382185 ac_cv_func_mmap_fixed_mapped=yes
25392186 else
@@ -2558,12 +2205,12 @@ fi
25582205 for ac_func in memcpy strerror
25592206 do
25602207 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2561-echo "configure:2562: checking for $ac_func" >&5
2208+echo "configure:2209: checking for $ac_func" >&5
25622209 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
25632210 echo $ac_n "(cached) $ac_c" 1>&6
25642211 else
25652212 cat > conftest.$ac_ext <<EOF
2566-#line 2567 "configure"
2213+#line 2214 "configure"
25672214 #include "confdefs.h"
25682215 /* System header to define __stub macros and hopefully few prototypes,
25692216 which can conflict with char $ac_func(); below. */
@@ -2586,7 +2233,7 @@ $ac_func();
25862233
25872234 ; return 0; }
25882235 EOF
2589-if { (eval echo configure:2590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2236+if { (eval echo configure:2237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
25902237 rm -rf conftest*
25912238 eval "ac_cv_func_$ac_func=yes"
25922239 else
@@ -2613,7 +2260,7 @@ done
26132260
26142261 if test "$with_system_zlib" = yes; then
26152262 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
2616-echo "configure:2617: checking for deflate in -lz" >&5
2263+echo "configure:2264: checking for deflate in -lz" >&5
26172264 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
26182265 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
26192266 echo $ac_n "(cached) $ac_c" 1>&6
@@ -2621,7 +2268,7 @@ else
26212268 ac_save_LIBS="$LIBS"
26222269 LIBS="-lz $LIBS"
26232270 cat > conftest.$ac_ext <<EOF
2624-#line 2625 "configure"
2271+#line 2272 "configure"
26252272 #include "confdefs.h"
26262273 /* Override any gcc2 internal prototype to avoid an error. */
26272274 /* We use char because int might match the return type of a gcc2
@@ -2632,7 +2279,7 @@ int main() {
26322279 deflate()
26332280 ; return 0; }
26342281 EOF
2635-if { (eval echo configure:2636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2282+if { (eval echo configure:2283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
26362283 rm -rf conftest*
26372284 eval "ac_cv_lib_$ac_lib_var=yes"
26382285 else
@@ -2664,17 +2311,17 @@ for ac_hdr in unistd.h
26642311 do
26652312 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
26662313 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2667-echo "configure:2668: checking for $ac_hdr" >&5
2314+echo "configure:2315: checking for $ac_hdr" >&5
26682315 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
26692316 echo $ac_n "(cached) $ac_c" 1>&6
26702317 else
26712318 cat > conftest.$ac_ext <<EOF
2672-#line 2673 "configure"
2319+#line 2320 "configure"
26732320 #include "confdefs.h"
26742321 #include <$ac_hdr>
26752322 EOF
26762323 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2677-{ (eval echo configure:2678: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2324+{ (eval echo configure:2325: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
26782325 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
26792326 if test -z "$ac_err"; then
26802327 rm -rf conftest*
@@ -2897,10 +2544,7 @@ s%@CC@%$CC%g
28972544 s%@RANLIB@%$RANLIB%g
28982545 s%@LD@%$LD%g
28992546 s%@NM@%$NM%g
2900-s%@USE_SYMBOL_UNDERSCORE@%$USE_SYMBOL_UNDERSCORE%g
29012547 s%@LN_S@%$LN_S%g
2902-s%@DLLTOOL@%$DLLTOOL%g
2903-s%@AS@%$AS%g
29042548 s%@LIBTOOL@%$LIBTOOL%g
29052549 s%@COMPPATH@%$COMPPATH%g
29062550 s%@CPP@%$CPP%g