Gary V. Vaughan [Wed, 29 Nov 2000 01:36:05 +0000 (01:36 +0000)]
* libltdl/ltdl.c (lt_dlopen): Change the default search order
for modules. If the named module has no directory component,
always start the search with the user_search_path directories,
and then fall back on the current directory only if that fails.
Gary V. Vaughan [Tue, 21 Nov 2000 08:56:36 +0000 (08:56 +0000)]
* libltdl/Makefile.am (libltdl_la_LDFLAGS): increment the version
number to reflect the breakage of binary compatibility.
* doc/libtool.texi (Libltdl interface): Document
LT_NON_POSIX_NAMESPACE.
* libltdl/ltdl.h (LT_POSIX_NAMESPACE): Deleted. The default is
now to use this namespace, so the cpp macro is no longer
necessary.
Gary V. Vaughan [Sun, 19 Nov 2000 02:34:29 +0000 (02:34 +0000)]
* ltdl.c: Relegate non-POSIX-compliant symbols (e.g. those
ending in ``_t'') to deprecated #define compatibility macros.
Also ease up on the namespace pollution, so that only ``lt_''
and ``LT_'' prefixes are taken from the global namespace.
* ltdl.h: ditto.
Akim Demaille [Tue, 31 Oct 2000 23:16:36 +0000 (23:16 +0000)]
* libtool.m4: Adjust the copyright notice.
Quote all the macro names when defined.
Some minor formatting changes.
(AM_PROG_LIBTOOL, AM_ENABLE_SHARED, AM_ENABLE_STATIC)
(AM_DISABLE_SHARED, AM_DISABLE_STATIC, AM_PROG_LD, AM_PROG_NM):
Don't use indir when useless. Don't add trailing `dnl' either.
* ltconfig.in [netbsd*] (deplibs_check_method, file_magic_cmd,
file_magic_test_file): Removed inappropriate duplicate
definitions; these variables are set in AC_DEPLIBS_CHECK_METHOD.
* libtool.m4 (lt_cv_file_magic_cmd): Don't use '${MAGIC_CMD}' or
'${OBJDUMP}'; Solaris' /bin/sh loses with `}' in cache files.
(ac_cv_path_MAGIC_CMD): Renamed to lt_cv_path_MAGIC_CMD.
Gary V. Vaughan [Fri, 29 Sep 2000 21:06:27 +0000 (21:06 +0000)]
* libtool.m4 (MAGIC_CMD): Don't use MAGIC, since BSD versions of
the file command use this environment variable to hold the
location of the magic database.
* ltconfig.in (MAGIC_CMD): ditto.
Reported by Marc Espie <Marc.Espie@liafa.jussieu.fr>
* ltconfig.in (lt_cv_dlopen_self, lt_cv_dlopen_self_static): Use
"$ac_ext" as test program extension instead of the hard-coded
"c" because the link command expects a test program ending with
the former.
Reported by Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
Gary V. Vaughan [Fri, 15 Sep 2000 02:40:07 +0000 (02:40 +0000)]
From Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
* libtool.m4 (pw32): Initial support for pw32, assuming that
libtool's behaviour in this environment is identical to under
cygwin.
* ltconfig.in (pw32): ditto.
* ltmain.in (pw32): ditto.
* NEWS: Updated.
Michael Matz [Tue, 12 Sep 2000 23:33:21 +0000 (23:33 +0000)]
* ltmain.in: Be careful about filenames with multiple `.'s in
them when calculating file extensions.
Reported by Joel Reed <jreed@support.ddiworld.com>
* ltconfig.in: Removed all references to what used to be
hardcode_into_libs=all. 2000-09-03's patch was wrong.
* ltmain.in: Likewise.
* tests/build-relink.test, tests/build-relink2.test: Adjust.
* tests/*.test (CONFIG_SITE): Ultrix's /bin/sh fails on
`. /dev/null'. Set CONFIG_SITE to /dev/null/config/site, to make
sure we pick a non-existent file.
* ltconfig.in: Get rid of hardcode_into_libs=all; use
hardcode_into_libs=yes && shlibpath_overrides_runpath!=yes
instead.
[FreeBSD 3.[01]] (shlibpath_overrides_runpath): Set to no.
* ltmain.in: Likewise.
* tests/build-relink.test, tests/build-relink2.test: Adjust.
* libtool.m4 (AM_PROG_GCJ): Removed.
(LT_AC_PROG_GCJ): Use AC_CHECK_TOOL. Set GCJ to `no' if not
found.
* configure.in: Use LT_AC_PROG_GCJ.
Reported by Nick Hudson <nick@nthcliff.demon.co.uk>
* demo/Makefile.am: Don't extract configuration variables directly
from the libtool script, since it breaks with multiple
configurations. Use $(LIBTOOL) --config instead.
* ltcf-c.sh, ltcf-cxx.sh, ltcf-gcj.sh (archive_cmds,
archive_expsym_cmds) : Use compiler_flags instead of linker flags
when $CC is used for linking.
Reported by Alex Hornby <alex@anvil.co.uk>
Ossama Othman [Thu, 31 Aug 2000 16:04:56 +0000 (16:04 +0000)]
* ltcf-c.sh, ltcf-cxx.sh, ltcf-gcj.sh: Removed RCD ID tags. They
were causing merge problems for those who maintain a copy of
libtool in their own CVS repository.
Reported by Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
Gary V. Vaughan [Sun, 27 Aug 2000 11:14:32 +0000 (11:14 +0000)]
* ltconfig.in (with_gcc): Make the value of this option
available to the generated libtool script.
* ltmain.in (compile_command, finalize_command): The native C
and C++ compilers on IRIX require the -LANG:std in order to to
compile correctly. The same options should _not_ be passed
through to gcc on IRIX, or at all on other architectures for
backwards compatibility (among others).
Reported by Bob Freisenhahn <bfreisen@simple.dallas.tx.us>
Reported by Albert Chin-A-Young <china@thewrittenword.com>
Alexandre Oliva [Tue, 1 Aug 2000 03:47:20 +0000 (03:47 +0000)]
* ltcf-c.sh (need_lc): Fix test message. Set wl for archive_cmds.
(ac_cv_prog_cc_pic): Don't print `cached' without `checking'.
* ltcf-cxx.sh (need_lc): Set based on postdeps.
* ltmain.in (tagname): Use `case' instead of `grep' to infer it.
Match even when there are changes in white-space.
(link): Accumulate base_compile so that -L flags that are part of
$CC aren't retained.
Raja R Harinath [Mon, 24 Jul 2000 05:33:28 +0000 (05:33 +0000)]
* tests/Makefile.am (COMMON_TESTS): New variable.
(CXX_TESTS): Define unconditionally.
(TESTS): Move all tests to COMMON_TESTS, and conditionally
include CXX_TESTS.
(EXTRA_DIST): Don't use $(TESTS).
* ltcf-c.sh, ltcf-cxx.sh: Check if -lc is necessary for building
shared library.
* ltcf-gcj.sh: Assume -lc is implicitly linked in.
* ltconfig.in: Set build_libtool_need_lc to indicate it.
* ltmain.in: Add -lc when building shared libary only if
necessary.
* ltcf-c.sh (wlarc, netbsd, aout): Set wlarc to empty.
(hardcode_dynamic_flag_spec, export_dynamic_flag_spec): Use
wlarc instead of wl.
* ltcf-gcj.sh (wlarc, netbsd, aout): Set wlarc to empty.
(hardcode_dynamic_flag_spec, export_dynamic_flag_spec): Use
wlarc instead of wl.
* libtool.m4 (AC_LIBTOOL_GCJ): Require either AC_PROG_GCJ or
AM_PROG_GCJ.
(AC_PROG_LIBTOOL): Change internal comments to dnl, so that they
don't make it to the `configure' script.
* libtool.m4 (AM_PROG_GCJ): Quote it so that aclocal won't bring
it in if it only appears in libtool.m4.
(AC_PROG_LIBTOOL): Move AC_PROG_CXX, AC_PROG_GCJ and AM_PROG_GCJ
hooks here, so that they can be far simpler!
Ossama Othman [Tue, 13 Jun 2000 21:52:34 +0000 (21:52 +0000)]
* libtool.m4: Updated comment.
* ltcf-cxx.sh (archive_cmds, archive_expsym_cmds,
hardcode_libdir_flag_spec, export_dynamic_flag_spec,
whole_archive_flag_spec, with_gnu_ld): Added two default
configurations for GNU g++ (one for g++ with GNU ld, and one for
g++ with native linker). Updated all platform-specific g++
configurations to only be used if GNU ld isn't the backend linker.
Added support for the KCC (Kuck and Associates, Inc. (KAI) C++
Compiler) to the Linux and OSF/1 configurations.
(ac_cv_prog_cc_wl): Added KAI C++ configuration.
(archive_expsym_cmds): Some configurations were missing the
argument that sets the name of the output library.
* libltdl/ltdl.c, libltdl/libltdl.h: Synchronized with HEAD branch
versions.
* ltcf-cxx.sh (whole_archive_flag_spec): Added missing back quotes
(`) around a command that had to be evaluated. This fixes GNU ld
"--whole-archive" support detection.
(wlarc): Fixed usage of $wlarc, which must be $wl in all cases,
but when really using $LD for linking.
* ltmain.in (deplibs): Add the library paths to end of the
deplibs, instead of the beginning, since deplibs is reordered
later on.
Ossama Othman [Tue, 6 Jun 2000 03:23:51 +0000 (03:23 +0000)]
* ltcf-cxx.sh (compiler_lib_search_path), ltconfig.in
(compiler_lib_search_path), ltmain.in (libs): The library path
that the compiler uses internally was being placed before the one
supplied by the user. Added a loop that moves that path after the
user supplied one.
Reported by Stephan Kulow <coolo@kde.org> and Michael Matz
<matz@ifh.de>
Gary V. Vaughan [Tue, 30 May 2000 00:21:05 +0000 (00:21 +0000)]
* ltcf-c.sh (netbsd*): archive_cmds and archive_expsym_cmds
were reversed with respect to definition of __ELF__.
* ltcf-gcj.sh (netbsd*): ditto.
From Keisuke Inoue <keisuke@csl.sony.co.jp>
Gary V. Vaughan [Mon, 29 May 2000 17:39:25 +0000 (17:39 +0000)]
* libtool.m4 (netbsd*): Use -L option to file_magic_cmd as for
freebsd (below).
* libtool.m4 (netbsd ELF): support file_magic.
From Dan Winship <danw@helixcode.com>.
* libtool.m4 (bsdi4*): Add -L option to bsdi4's file_magic_cmd
command. Under BSD/OS 4.1 several libraries are now symlinks
rather than regular files. Adding -L tells the file program
to follow the symlink.
Fred Fish [Mon, 29 May 2000 16:25:23 +0000 (16:25 +0000)]
Support AR=mwld AR_FLAGS='-xml -o' for PPC Beos:
* ltconfig (old_AR_FLAGS): Add.
(old_archive_cmds): Use AR_FLAGS rather than hardcoding "cru".
(archive_cmds): Use AR_FLAGS rather than hardcoding "cru".
(AR_FLAGS): Default to "cru" if not set.
* ltcf-c.sh: ditto.
* ltcf-gcj.sh: ditto.
Gary V. Vaughan [Mon, 29 May 2000 15:07:28 +0000 (15:07 +0000)]
* ltconfig.in (echo): The following code actually prints the
double quotes -- so I removed them:
echo='printf "%sn"' $echo 't'
From Tuukka Toivonen <tutoivon@mail.student.oulu.fi>